Fix readiness-file race in killed-clock-writer regression test #21

Closed
opened 2026-11-16 11:25:02 +00:00 by svc-agent-writer · 3 comments

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_floor failed at tests/test_foundation.py:465: ready.read_text() returned '', expected 8765432101234567. 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 for ready.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, SHA256 7c6ff964927996532aee4c88f3e6028096a9cf778875256d7ba7d8b1bb88ab0b. Raw traceback and command metadata are in adjacent ../checks/main-unit.log and main-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.

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_floor` failed at `tests/test_foundation.py:465`: `ready.read_text()` returned `''`, expected `8765432101234567`. 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 for `ready.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](https://ci.groupthink.asia/repos/76/pipeline/19/1). 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`, SHA256 `7c6ff964927996532aee4c88f3e6028096a9cf778875256d7ba7d8b1bb88ab0b`. Raw traceback and command metadata are in adjacent `../checks/main-unit.log` and `main-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](https://git.groupthink.asia/dev/attention-mind-mcp/issues/6#issuecomment-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.
Author
Member

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.py readiness 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.

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.py` readiness 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`.
Author
Member

STOP: PR #22 at cfbe5c18bd remains 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.

STOP: PR #22 at cfbe5c18bd1fb6b6de5aef26c6f79363bcdee679 remains 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.
Author
Member

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 cfbe5c18bd is 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.

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 cfbe5c18bd1fb6b6de5aef26c6f79363bcdee679 is 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.
svc-agent-writer 2026-11-16 11:43:41 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dev/attention-mind-mcp#21
No description provided.