From 914e0786591829a5de676c46c25c62dff6c52bb2 Mon Sep 17 00:00:00 2001 From: tegwick Date: Wed, 28 Oct 2026 00:30:37 +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 | 12 ++++++++++++ WORK-RECORDS.md | 12 ++++++++++-- 4 files changed, 31 insertions(+), 2 deletions(-) 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..4c9b980 --- /dev/null +++ b/.generated-work-records.json @@ -0,0 +1 @@ +{"version":1,"repo_slug":"audit-core"} diff --git a/.generated-work-records.mk b/.generated-work-records.mk new file mode 100644 index 0000000..d064211 --- /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 ?= audit-core +.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 75c8d43..34818fb 100644 --- a/SCOPE.md +++ b/SCOPE.md @@ -126,6 +126,18 @@ effect of its own. - Agent instructions: `AGENTS.md` - Workplans: `workplans/` +## 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. + ## Local orientation brief policy — 2026-10-21 `.custodian-brief.md` is a local, ignored State Hub orientation snapshot. Refreshing diff --git a/WORK-RECORDS.md b/WORK-RECORDS.md index bf49016..2ddb409 100644 --- a/WORK-RECORDS.md +++ b/WORK-RECORDS.md @@ -26,7 +26,8 @@ | workplan | AUDIT-WP-0013 | blocked | — | workplans/AUDIT-WP-0013-cross-repo-sender-admission.md | | workplan | AUDIT-WP-0014 | blocked | — | workplans/AUDIT-WP-0014-execution-attribution-receipt.md | | workplan | AUDIT-WP-0015 | blocked | — | workplans/AUDIT-WP-0015-independent-evidence-returns.md | -| workplan | AUDIT-WP-0016 | ready | — | workplans/AUDIT-WP-0016-wave2-resource-right-sizing.md | +| workplan | AUDIT-WP-0016 | finished | — | workplans/AUDIT-WP-0016-wave2-resource-right-sizing.md | +| workplan | AUDIT-WP-0017 | proposed | — | workplans/AUDIT-WP-0017-production-audit-sources-and-correlation.md | | task | ADHOC-2026-09-14-T01 | done | — | workplans/ADHOC-2026-09-14.md | | task | ADHOC-2026-09-24-T01 | done | — | workplans/ADHOC-2026-09-24.md | | task | ADHOC-2026-10-15-T01 | done | — | workplans/ADHOC-2026-10-15.md | @@ -100,7 +101,14 @@ | task | AUDIT-WP-0014-T02 | wait | — | workplans/AUDIT-WP-0014-execution-attribution-receipt.md | | task | AUDIT-WP-0015-T01 | wait | — | workplans/AUDIT-WP-0015-independent-evidence-returns.md | | task | AUDIT-WP-0015-T02 | wait | — | workplans/AUDIT-WP-0015-independent-evidence-returns.md | -| task | AUDIT-WP-0016-T01 | wait | — | workplans/AUDIT-WP-0016-wave2-resource-right-sizing.md | +| task | AUDIT-WP-0016-T01 | done | — | workplans/AUDIT-WP-0016-wave2-resource-right-sizing.md | +| task | AUDIT-WP-0017-T01 | wait | — | workplans/AUDIT-WP-0017-production-audit-sources-and-correlation.md | +| task | AUDIT-WP-0017-T02 | wait | — | workplans/AUDIT-WP-0017-production-audit-sources-and-correlation.md | +| task | AUDIT-WP-0017-T03 | wait | — | workplans/AUDIT-WP-0017-production-audit-sources-and-correlation.md | +| task | AUDIT-WP-0017-T04 | wait | — | workplans/AUDIT-WP-0017-production-audit-sources-and-correlation.md | +| task | AUDIT-WP-0017-T05 | todo | — | workplans/AUDIT-WP-0017-production-audit-sources-and-correlation.md | +| task | AUDIT-WP-0017-T06 | todo | — | workplans/AUDIT-WP-0017-production-audit-sources-and-correlation.md | +| task | AUDIT-WP-0017-T07 | wait | — | workplans/AUDIT-WP-0017-production-audit-sources-and-correlation.md | | intake | AUDIT-IN-0001 | closed | — | intakes/intakes.md | | intake | AUDIT-IN-0002 | closed | — | intakes/intakes.md | | intake | AUDIT-IN-0003 | closed | — | intakes/intakes.md |