ADHOC-2026-09-22-T01: statehub register renders {CREDENTIAL_ROUTING} into AGENTS.md

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

Assistant: claude-code
Assistant-Model: opus
Assistant-Process: 7184@bnt-lap001
Assistant-Session: 4b436ae2-b17c-4b40-8754-200b161b26e4
This commit is contained in:
tegwick 2026-09-22 07:58:55 +02:00
parent fafaced426
commit 19450d7618
3 changed files with 54 additions and 1 deletions

View file

@ -0,0 +1,43 @@
---
id: STATE-WP-ADHOC-2026-09-22
type: workplan
title: "Ad hoc fixes — 2026-09-22"
domain: infotech
repo: state-hub
status: finished
owner: claude-code
topic_slug: state-hub
created: "2026-09-22"
updated: "2026-09-22"
---
## Fill the {CREDENTIAL_ROUTING} placeholder in statehub register
```task
id: STATE-WP-ADHOC-2026-09-22-T01
status: done
priority: low
```
Reported by canned-prompts (State Hub message
`7b7daa15-78db-4530-aaed-914108245d4c`): `statehub register` wrote
`agents-codex.template` into AGENTS.md without substituting
`{CREDENTIAL_ROUTING}`, leaving the literal token in every repo registered
through that path. `scripts/update_agent_instruction_files.py` and
`scripts/propagate_credential_routing.py` already rendered it; only
`write_registration_files` in `statehub_register.py` did not.
Completed 2026-09-22. `write_registration_files` now renders
`credential-routing.template` with the same values and substitutes it.
`test_write_registration_files_primes_codex_repo` asserts no unresolved
`{UPPER_CASE}` token remains and that the credential section is present
(`26 passed`).
Residual (not state-hub's files): 18 sibling repos still carry the literal
token in AGENTS.md (binky-control, coulomb-social, facetted-interfaces,
fluid-telegram, glas-harness, ground-game, hall-of-helix, kings-guard,
pr-hall-of-helix, ops-mason, qonto-assistant, prj-canon-federation,
rapp-postgres, resource-control, rein-openweights, rein-aharness,
tenant-engine, test-driver). Regenerating with
`scripts/update_agent_instruction_files.py` fixes them in each repo's own
session.