Fix clock test readiness publication race #22

Merged
svc-agent-writer merged 1 commit from fix/21-clock-readiness into main 2026-11-16 11:43:41 +00:00

Summary

Publish the killed-clock-writer test's readiness value only after its complete write. This prevents the parent from observing an empty file between creation and writing. The kill, wait and reopened persisted-floor assertions remain unchanged.

- write directly to the readiness path
+ write the complete value to a sibling .pending path
+ rename it onto the readiness path

Closes #21. Exactly one changed file: tests/test_foundation.py.

Evidence

  • Before: unchanged main's unit run failed the readiness assertion with '' (358 passed, one failed). A forced schedule on the actual AST-extracted original child script reproduced incomplete publication.
  • After: the same schedule on the repaired child script withheld the final name until full publication; child stderr/exit and kill/reopen evidence retained. Targeted test passed; all 359 unit tests passed. Test collection remains 359 unit and 64 transport cases. All 64 transport tests and static checks passed; both independent reviews passed. STOP: the final saved unit-collection comparison failed because two import-time UUID parameter labels differ. Diagnosis and evidence are frozen; no rerun or merge is authorized pending adjudication. Exact-head CI remains a separate required gate.

Operator approved one manual repair and once-only validation at 2026-11-16T22:32:19+11:00: authorization. Local evidence: /Users/piers/.local/state/exhaust/groupthink/dd469-backup-proof/continuation-20261116/baseline-repair21/. Any unexpected failed/incomplete gate stops; no automatic repair or test discount. Custody and staging clearance are separate.

Merge Danger

Door: two-way

Blast Radius: tests

Only test readiness synchronization changes. No product or storage-durability semantics change.

Final operator disposition and merge

At 2026-11-16T22:42:49+11:00 Piers ordered “merge 22 on green”, disposing of the collection-comparator STOP without requiring separate adjudication. The failed raw comparison remains preserved as historical evidence; it was not rerun or overwritten. Exact head cfbe5c18bd passed Woodpecker validation. T4 confirmed only tests/test_foundation.py (+4/-1), no ADR or contract pin. Merged and read back as 2b0e9af450 at 2026-11-16T11:43:41Z. Earlier pending/STOP wording above records the pre-ruling state. Custody continuation retains its separate existing limits.

## Summary Publish the killed-clock-writer test's readiness value only after its complete write. This prevents the parent from observing an empty file between creation and writing. The kill, wait and reopened persisted-floor assertions remain unchanged. ```diff - write directly to the readiness path + write the complete value to a sibling .pending path + rename it onto the readiness path ``` Closes #21. Exactly one changed file: `tests/test_foundation.py`. ## Evidence - **Before:** unchanged main's unit run failed the readiness assertion with `''` (358 passed, one failed). A forced schedule on the actual AST-extracted original child script reproduced incomplete publication. - **After:** the same schedule on the repaired child script withheld the final name until full publication; child stderr/exit and kill/reopen evidence retained. Targeted test passed; all 359 unit tests passed. Test collection remains 359 unit and 64 transport cases. All 64 transport tests and static checks passed; both independent reviews passed. **STOP:** the final saved unit-collection comparison failed because two import-time UUID parameter labels differ. Diagnosis and evidence are frozen; no rerun or merge is authorized pending adjudication. Exact-head CI remains a separate required gate. Operator approved one manual repair and once-only validation at 2026-11-16T22:32:19+11:00: [authorization](https://git.groupthink.asia/dev/attention-mind-mcp/issues/21#issuecomment-41223). Local evidence: `/Users/piers/.local/state/exhaust/groupthink/dd469-backup-proof/continuation-20261116/baseline-repair21/`. Any unexpected failed/incomplete gate stops; no automatic repair or test discount. Custody and staging clearance are separate. ## Merge Danger **Door:** two-way **Blast Radius:** tests Only test readiness synchronization changes. No product or storage-durability semantics change. ## Final operator disposition and merge At 2026-11-16T22:42:49+11:00 Piers ordered “merge 22 on green”, disposing of the collection-comparator STOP without requiring separate adjudication. The failed raw comparison remains preserved as historical evidence; it was not rerun or overwritten. Exact head cfbe5c18bd1fb6b6de5aef26c6f79363bcdee679 passed Woodpecker validation. T4 confirmed only tests/test_foundation.py (+4/-1), no ADR or contract pin. Merged and read back as 2b0e9af450391f9d8fbfecb32bfbe6113faa71f3 at 2026-11-16T11:43:41Z. Earlier pending/STOP wording above records the pre-ruling state. Custody continuation retains its separate existing limits.
Fix clock test readiness publication race (#21)
All checks were successful
ci/woodpecker/pr/validation Pipeline was successful
cfbe5c18bd
Sign in to join this conversation.
No description provided.