Adopt staged WORK-RECORDS generation and catch the index up.

SBOM-WP-0005 finished in 5a1fe3f without the generated index. 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: 01a17f77-a02b-7372-b1da-d7f74c0bad78
This commit is contained in:
tegwick 2026-10-27 23:40:48 +01:00
parent 5a1fe3ff50
commit 2c10d9754e
4 changed files with 23 additions and 2 deletions

View file

@ -0,0 +1 @@
{"version":1,"repo_slug":"sbom-nexus"}

View file

@ -0,0 +1,8 @@
# Explicit opt-in recipe; no environment files or external make includes.
CUSTODIAN_SOURCE ?= /home/worsch/the-custodian
GENERATED_REPO_SLUG ?= sbom-nexus
.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

View file

@ -33,6 +33,18 @@ compatibility, SQLite development, PostgreSQL runtime/migrations, and a proven
history importer. `SBOM-WP-0002` owns deployment, external caller cutover, and
production stabilization.
## 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

View file

@ -11,7 +11,7 @@
| workplan | SBOM-WP-0001 | finished | — | workplans/SBOM-WP-0001-bootstrap-and-state-hub-extraction.md |
| workplan | SBOM-WP-0003 | finished | — | workplans/SBOM-WP-0003-controlled-source-and-replay.md |
| workplan | SBOM-WP-0004 | finished | — | workplans/SBOM-WP-0004-database-lease-rotation.md |
| workplan | SBOM-WP-0005 | ready | — | workplans/SBOM-WP-0005-wave2-resource-right-sizing.md |
| workplan | SBOM-WP-0005 | finished | — | workplans/SBOM-WP-0005-wave2-resource-right-sizing.md |
| task | SBOM-WP-0001-T01 | done | — | workplans/SBOM-WP-0001-bootstrap-and-state-hub-extraction.md |
| task | SBOM-WP-0001-T02 | done | — | workplans/SBOM-WP-0001-bootstrap-and-state-hub-extraction.md |
| task | SBOM-WP-0001-T03 | done | — | workplans/SBOM-WP-0001-bootstrap-and-state-hub-extraction.md |
@ -24,5 +24,5 @@
| task | SBOM-WP-0004-T01 | done | — | workplans/SBOM-WP-0004-database-lease-rotation.md |
| task | SBOM-WP-0004-T02 | done | — | workplans/SBOM-WP-0004-database-lease-rotation.md |
| task | SBOM-WP-0004-T03 | done | — | workplans/SBOM-WP-0004-database-lease-rotation.md |
| task | SBOM-WP-0005-T01 | wait | — | workplans/SBOM-WP-0005-wave2-resource-right-sizing.md |
| task | SBOM-WP-0005-T01 | done | — | workplans/SBOM-WP-0005-wave2-resource-right-sizing.md |
| intake | SBOM-IN-0001 | open | — | intakes/intakes.md |