Fix readiness-file race in killed-clock-writer regression test #21
Labels
No labels
epic
needs-info
needs-triage
ready-for-agent
ready-for-human
svd:fire
svd:go
svd:hold
svd:respec
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/attention-mind-mcp#21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The killed-clock-writer test can observe its ready file between creation and content completion. On unchanged main
68054f3b5f9686064c7156c2e9255962048f5d4a,test_killed_clock_writer_preserves_committed_floorfailed attests/test_foundation.py:465:ready.read_text()returned'', expected8765432101234567. The run had 358 passed, 1 failed, 64 deselected. No FileNotFoundError or child diagnostic was captured.The child writes readiness via
Path.write_text(...); the parent waits only forready.exists(). Source and output are consistent with a create-before-write synchronization race. This does not establish a product durability defect. Combined CI for that main SHA is green: Woodpecker pipeline 19.Exact command:
/Users/piers/src/attention-mind-mcp/.venv/bin/python -m pytest -m unit -q, cwd/Users/piers/src/attention-mind-mcp,PYTHONDONTWRITEBYTECODE=1,PYTHONPATH=/Users/piers/src/attention-mind-mcp/src. Main was observed clean before the continuation and after failure, but HEAD/status were not atomically captured at subprocess launch. Child stdout/stderr were inherited into the captured log; no separate child exit status was retained. No rerun has been attempted.Frozen evidence:
/Users/piers/.local/state/exhaust/groupthink/dd469-backup-proof/continuation-20261116/custody/stopped-baseline/review.md, SHA2567c6ff964927996532aee4c88f3e6028096a9cf778875256d7ba7d8b1bb88ab0b. Raw traceback and command metadata are in adjacent../checks/main-unit.logandmain-unit.json.Proposed scope for triage: make the test readiness handoff wait for complete content (or use an atomic publish), preserve the subprocess termination and persisted-floor assertions, and validate the synchronization adversarially. Do not change product clock semantics. This is outside custody #17's twelve-file proof scope.
The failure stopped #17's manually approved correction under #6 comment 41130. This issue grants no retry, custody continuation, new SVD run, scope expansion or budget reset. #6/#16/#17 holds remain; mind-spec and guide are reviewing the packet. No implementation is launched for this issue.
Blocked by
None for triage. Implementation requires its own scoped disposition; custody continuation separately requires the operator decision conveyed through guide.
Operator approval recorded: Piers answered Approve at 2026-11-16T22:32:19+11:00 to the reviewed #21 plan. One manual repair on a separate branch/PR, exactly
tests/test_foundation.pyreadiness publication (write.pending, then rename); no SVD, one delivery, zero automatic repairs. Each listed validation gate runs once; any unexpected failure stops. After independently reviewed PASS and standing T4 merge, the same frozen custody implementation may resume under comment41130. Budgets and failure evidence remain preserved; knownFailingTests stays empty; baseline reuse requires matching hashes/environment. Original-base inherited-file refusal stops without metadata rewrite. Staging still requires complete independently reviewed custody PASS; parent/release remain held.Decision and original source archived under
/Users/piers/.local/state/exhaust/groupthink/dd469-backup-proof/continuation-20261116/baseline-repair21/authorization.json; custody authorization also records the decision. Reviewed plan:/private/tmp/dd469-attention-baseline-repair-review-20261116.md. Operator source:/Users/piers/src/_architect/dd469-minds-2026-11-16/coordination.md.STOP: PR #22 at
cfbe5c18bdremains unmerged. The once-only runner passed forced-race/targeted, 359 unit, 64 transport, Ruff and mypy, then exited 1 at final saved collection identity comparison (unit collection drift). Independent reviews passed; CI was pending at freeze. Read-only diagnosis: exactly two generated UUID parameter labels differ; 357 other unit IDs and all 64 transport IDs match; parameter source is unchanged. This has not been treated as PASS. No rerun, repair, merge or custody continuation. Frozen 39-file manifest SHA256 db97d3e8a7bee15878ca3a8eef8aa3a65b8073ab00009661bb182268807717b2 at /Users/piers/.local/state/exhaust/groupthink/dd469-backup-proof/continuation-20261116/baseline-repair21/stopped-collection. Saved-evidence-only adjudication proposal sent to mind-spec/guide: /private/tmp/dd469-attention21-collection-stop-review-packet-20261116.md. Holds and exhausted budgets remain.Operator ruling 2026-11-16T22:42:49+11:00: “merge 22 on green”. This disposes of the collection-comparator STOP without replacing its failed result or requiring separate adjudication. Exact PR22 head
cfbe5c18bdis green and mergeable. Merge-base diff is only tests/test_foundation.py (+4/-1), no ADR or contract pin. Original frozen failed comparison is preserved. Proceeding with authorized merge; custody remains governed by the existing 22:32 grant and all stop rules.