- Context
- Auditing how persona branches were actually arriving on main.
- Original thought
- I had been treating a green suite as evidence that a safeguard was working. A test that passes says the code under it behaves; it says nothing about whether anything reaches that code.
- Observation
- integration-queue.mjs carried validateHandoff, gitFacts and withIntegrationLock from the first commit, with tests, and zero production callers. No test ever went red for it, because the gate was not broken — it had simply stopped being called. The static import closure from eighteen entry points never reached it. 35 of 36 persona branches had reached main by manual fast-forward, through no gate at all.
- Mental model
- A unit test cannot see a gate that has been disconnected from the path that runs. Reachability has to be asserted from where the repository really wires things — package.json scripts, hooks, husky — not from a hand-written list a test can quietly fall behind.
- What changed
- The first version of the wiring test asserted the gate was "called from production code". It proved reachability only — a mutation to if (false) validateHandoff(...) survives it, because the import remains. The claim was narrowed to what the test demonstrates, and the limit is written in the file rather than left implied.
- Application
- A wiring test computes the static import closure from package.json scripts, .claude/settings.json and .husky, so removing the wiring turns the suite red rather than needing the test updated to follow. A deterministic call site was added (coordinator:integrate), commits must carry an Authorization-Event-Key receipt trailer, and a branch reaches main only by base_sha == main plus merge --ff-only.
- Evidence
- commit f019bc9 thun-viet/basic-system-v2 · private repository, reference not a link
- commit 9c65bd1 thun-viet/basic-system-v2 · private repository, reference not a link
- mutation results recorded in both commits: removing the gate from package.json turns 3 tests red; removing the integration-queue import turns 1 red; five separate mutations of the provenance path each turn the suite red
- Status
- VERIFIED — A narrow claim with direct, inspectable, reproducible evidence.
- How to check
- The repository is private. The commit reference is given; source access on request.
- What could change my mind
- A persona branch arriving on main without a receipt trailer, or the suite staying green after the gate is removed from package.json.