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
This commit is contained in:
tegwick 2026-10-28 00:32:45 +01:00
parent 18924fd94a
commit 9a0d8f921e
4 changed files with 33 additions and 2 deletions

View file

@ -0,0 +1 @@
{"version":1,"repo_slug":"intelligence-radar"}

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 ?= intelligence-radar
.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

@ -36,3 +36,16 @@ actual outcome collection continue in IR-WP-0007.
Statehub holds work projections, not research evidence. Artifact hashes prove local
integrity, not truth. Scheduler operation depends on this workstation and its user
service manager; publication still requires editorial synthesis/review.
## 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.

View file

@ -15,7 +15,9 @@
| workplan | IR-WP-0005 | finished | — | workplans/IR-WP-0005-credential-delivery.md |
| workplan | IR-WP-0006 | blocked | — | workplans/IR-WP-0006-billing-reconciliation.md |
| workplan | IR-WP-0007 | blocked | — | workplans/IR-WP-0007-evidence-and-publication.md |
| workplan | IR-WP-0008 | active | — | workplans/IR-WP-0008-external-brief-intake.md |
| workplan | IR-WP-0008 | finished | — | workplans/IR-WP-0008-external-brief-intake.md |
| workplan | IR-WP-0009 | active | — | workplans/IR-WP-0009-website-brief-feed.md |
| workplan | IR-WP-0010 | active | — | workplans/IR-WP-0010-inbound-library-briefs.md |
| task | IR-WP-0001-T01 | done | — | workplans/IR-WP-0001-statehub-bootstrap.md |
| task | IR-WP-0001-T02 | done | — | workplans/IR-WP-0001-statehub-bootstrap.md |
| task | IR-WP-0001-T03 | done | — | workplans/IR-WP-0001-statehub-bootstrap.md |
@ -39,4 +41,11 @@
| task | IR-WP-0007-T04 | wait | — | workplans/IR-WP-0007-evidence-and-publication.md |
| task | IR-WP-0008-T01 | done | — | workplans/IR-WP-0008-external-brief-intake.md |
| task | IR-WP-0008-T02 | done | — | workplans/IR-WP-0008-external-brief-intake.md |
| task | IR-WP-0008-T03 | wait | — | workplans/IR-WP-0008-external-brief-intake.md |
| task | IR-WP-0008-T03 | cancel | — | workplans/IR-WP-0008-external-brief-intake.md |
| task | IR-WP-0009-T01 | wait | — | workplans/IR-WP-0009-website-brief-feed.md |
| task | IR-WP-0009-T02 | done | — | workplans/IR-WP-0009-website-brief-feed.md |
| task | IR-WP-0010-T01 | done | — | workplans/IR-WP-0010-inbound-library-briefs.md |
| task | IR-WP-0010-T02 | done | — | workplans/IR-WP-0010-inbound-library-briefs.md |
| task | IR-WP-0010-T03 | done | — | workplans/IR-WP-0010-inbound-library-briefs.md |
| task | IR-WP-0010-T04 | done | — | workplans/IR-WP-0010-inbound-library-briefs.md |
| task | IR-WP-0010-T05 | todo | — | workplans/IR-WP-0010-inbound-library-briefs.md |