From 5e4942f28bc843073a5a67a2296a54d9e1ac3628 Mon Sep 17 00:00:00 2001 From: tegwick Date: Mon, 19 Oct 2026 13:15:26 +0200 Subject: [PATCH] build: adopt staged work-record index generation Assistant: codex Assistant-Model: gpt-6-astra Assistant-Session: 01a15374-f59f-7a31-86d2-d23b5d2ed181 --- .generated-work-records.json | 1 + .generated-work-records.mk | 8 ++++++++ Makefile | 7 +++++++ SCOPE.md | 17 +++++++++++++++++ WORK-RECORDS.md | 2 +- 5 files changed, 34 insertions(+), 1 deletion(-) 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..93a4cc9 --- /dev/null +++ b/.generated-work-records.json @@ -0,0 +1 @@ +{"version":1,"repo_slug":"kings-guard"} diff --git a/.generated-work-records.mk b/.generated-work-records.mk new file mode 100644 index 0000000..aca7a94 --- /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 ?= kings-guard +.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/Makefile b/Makefile index 18a5c37..4df0767 100644 --- a/Makefile +++ b/Makefile @@ -18,3 +18,10 @@ check-layer: run-demo: PYTHONPATH=src $(PYTHON) -m kings_guard.main --pilot qonto-assistant + +# CUST-WP-0079-T05: staged-source generation; hook uses the isolated recipe. +.PHONY: generated-work-records generated-work-records-check +generated-work-records: + $(MAKE) --no-print-directory -f .generated-work-records.mk generated-work-records +generated-work-records-check: + $(MAKE) --no-print-directory -f .generated-work-records.mk generated-work-records-check diff --git a/SCOPE.md b/SCOPE.md index d848f30..6fd2716 100644 --- a/SCOPE.md +++ b/SCOPE.md @@ -129,3 +129,20 @@ does it decide and act?** The first is in scope. The second is another layer's. - Exploration notes: `history/InitialExploration.md` - Agent instructions: `AGENTS.md` - Workplans: `workplans/` + + +## Repository maintenance reuse + +The tracked `.generated-work-records.json` adopts the Custodian staged-source +adapter for WORK-RECORDS.md. `make generated-work-records` uses the existing +State Hub renderer through `.generated-work-records.mk`; the shared pre-commit +hook runs this isolated recipe only for opted-in repositories. The corresponding +`make generated-work-records-check` is read-only. Canonical repository identity +is explicit and does not depend on the checkout directory. + +Unstaged source changes are preserved; conflicts and unstaged generated-file +changes stop the commit. For `git commit --only`, generate first and include +WORK-RECORDS.md with the selected source paths. Existing generated-only guards +and exact-scope secret scans remain in place. This is repository maintenance, +not a runtime service, authorization decision, deployment or publication. +Other index generators and hub-derived briefs retain their owner boundaries. diff --git a/WORK-RECORDS.md b/WORK-RECORDS.md index 03a09c4..869b3a7 100644 --- a/WORK-RECORDS.md +++ b/WORK-RECORDS.md @@ -14,7 +14,7 @@ | workplan | KG-WP-0002 | finished | — | workplans/KG-WP-0002-canonical-immune-contracts-and-posture-pilot.md | | workplan | KG-WP-0003 | finished | — | workplans/KG-WP-0003-evidence-completeness-and-live-observation.md | | workplan | KG-WP-0004 | finished | — | workplans/KG-WP-0004-architecture-layer-vocabulary-sweep.md | -| workplan | KG-WP-0005 | backlog | — | workplans/KG-WP-0005-qonto-source-cadence-admission.md | +| workplan | KG-WP-0005 | active | — | workplans/KG-WP-0005-qonto-source-cadence-admission.md | | workplan | KG-WP-0006 | finished | — | workplans/KG-WP-0006-observation-input-review.md | | task | KG-WP-ADHOC-2026-09-04-T01 | done | — | workplans/ADHOC-2026-09-04.md | | task | KG-WP-ADHOC-2026-10-10-T01 | done | — | workplans/ADHOC-2026-10-10.md |