From db9f5152ad5041af38c09bd3df28cfc4cb89fc4b Mon Sep 17 00:00:00 2001 From: tegwick Date: Wed, 28 Oct 2026 00:31:30 +0100 Subject: [PATCH] Adopt staged WORK-RECORDS generation and catch the index up. The generated index had drifted from the workplan files. The opt-in lets the pre-commit hook rebuild WORK-RECORDS.md in the same commit as the workplan it indexes. Assistant: grok Assistant-Session: 01a17f9d-fe9d-7d72-9a22-6304f1a2a790 --- .generated-work-records.json | 1 + .generated-work-records.mk | 8 ++++++++ SCOPE.md | 13 +++++++++++++ WORK-RECORDS.md | 3 +++ 4 files changed, 25 insertions(+) create mode 100644 .generated-work-records.json create mode 100644 .generated-work-records.mk diff --git a/.generated-work-records.json b/.generated-work-records.json new file mode 100644 index 0000000..5025b0d --- /dev/null +++ b/.generated-work-records.json @@ -0,0 +1 @@ +{"version":1,"repo_slug":"whitehat-security"} diff --git a/.generated-work-records.mk b/.generated-work-records.mk new file mode 100644 index 0000000..69f0e8d --- /dev/null +++ b/.generated-work-records.mk @@ -0,0 +1,8 @@ +# Explicit opt-in recipe; no environment files or external make includes. +CUSTODIAN_SOURCE ?= /home/worsch/the-custodian +GENERATED_REPO_SLUG ?= whitehat-security +.PHONY: generated-work-records generated-work-records-check +generated-work-records: + python3 "$(CUSTODIAN_SOURCE)/scripts/generate_staged_work_records.py" --repo . --repo-slug "$(GENERATED_REPO_SLUG)" +generated-work-records-check: + python3 "$(CUSTODIAN_SOURCE)/scripts/generate_staged_work_records.py" --repo . --repo-slug "$(GENERATED_REPO_SLUG)" --check diff --git a/SCOPE.md b/SCOPE.md index e5693ea..dd122d9 100644 --- a/SCOPE.md +++ b/SCOPE.md @@ -190,3 +190,16 @@ a complete engagement record already exists. No live target is authorized. [`WHITEHAT-WP-0012`](workplans/WHITEHAT-WP-0012-ia-classification-and-v-observations.md) for the I/A classification, the offline V judge, and the blocked live E4, R4, and V requirements. + +## Generated work-record index + +This repository opts into staged-source WORK-RECORDS.md generation through +`.generated-work-records.json` and the isolated `.generated-work-records.mk` +recipe. `make generated-work-records` reuses the State Hub renderer through +the Custodian adapter; `make generated-work-records-check` verifies byte-exact +agreement with staged Markdown. The pre-commit hook uses the isolated recipe, +preserves unstaged index edits by refusing them, and retains the generated-only +commit guard. It does not contact the hub, alter workplan statuses, or grant +deployment authority. This consumes shared tooling; it does not make this +repository the provider of the generator capability. + diff --git a/WORK-RECORDS.md b/WORK-RECORDS.md index d0f69e4..aa5b7a5 100644 --- a/WORK-RECORDS.md +++ b/WORK-RECORDS.md @@ -8,6 +8,7 @@ | Kind | ID | Status | Lane | Source | | --- | --- | --- | --- | --- | +| workplan | WHITEHAT-WP-ADHOC-2026-10-11 | finished | — | workplans/ADHOC-2026-10-11.md | | workplan | WHITEHAT-WP-0001 | finished | — | workplans/WHITEHAT-WP-0001-cross-tenant-evidence.md | | workplan | WHITEHAT-WP-0002 | finished | — | workplans/WHITEHAT-WP-0002-receipt-admission-and-abort-records.md | | workplan | WHITEHAT-WP-0003 | finished | — | workplans/WHITEHAT-WP-0003-platform-custody-adapter.md | @@ -20,6 +21,7 @@ | workplan | WHITEHAT-WP-0010 | finished | — | workplans/WHITEHAT-WP-0010-emergent-knowledge-026-disposition.md | | workplan | WHITEHAT-WP-0011 | finished | — | workplans/WHITEHAT-WP-0011-scope-capability-gaps.md | | workplan | WHITEHAT-WP-0012 | blocked | — | workplans/WHITEHAT-WP-0012-ia-classification-and-v-observations.md | +| task | WHITEHAT-WP-ADHOC-2026-10-11-T01 | done | — | workplans/ADHOC-2026-10-11.md | | task | WHITEHAT-WP-0001-T01 | done | — | workplans/WHITEHAT-WP-0001-cross-tenant-evidence.md | | task | WHITEHAT-WP-0001-T02 | done | — | workplans/WHITEHAT-WP-0001-cross-tenant-evidence.md | | task | WHITEHAT-WP-0001-T03 | done | — | workplans/WHITEHAT-WP-0001-cross-tenant-evidence.md | @@ -67,3 +69,4 @@ | task | WHITEHAT-WP-0012-T05 | wait | — | workplans/WHITEHAT-WP-0012-ia-classification-and-v-observations.md | | intake | WHITEHAT-IN-0001 | closed | — | intakes/intakes.md | | intake | WHITEHAT-IN-0002 | closed | — | intakes/intakes.md | +| intake | WHITEHAT-IN-0003 | open | — | intakes/intakes.md |