Repository navigation
Description
Sage task T34
Extract the integration’s one-dispatch-per-run rule for #88. A run names one execution across owner sessions in the same project. A completed run must not start again under another task, owner, call or child name. A proven initial failure may permit a new dispatch attempt; an exact old call remains an unchanged receipt.
The current integration checks this rule during historical journal replay. Main has previously allowed duplicate run IDs, so applying that new restriction to old records can make a valid existing journal unreadable. Preserve historical replay, and enforce the new rule when committing fresh reservations. Continue to refuse new duplication while an old overlapping history exists.
Scope: shared admission and its tests/documentation. Do not change state.mjs or Claude hooks while #140 is active. Test plain, role, brief and prepared reservations, cross-owner attempts, completion, failure release, concurrent winners and a journal produced by main before this change.
Acceptance: new tests fail detached main with the failure kind stated; build/check/full suite and exact-head CI pass; two clean code/security/QA cycles review the final commit. Core admission does not replace current-logbook validation in the provider. Installed automatic Sage remains disabled.
T34 review and validation — 2026-10-13
Draft PR #184 implements duplicate-run admission while preserving historical journals. Final head 68254c1 has two clean code, security and QA review cycles. Build/check and 56 focused tests pass. Four new tests fail behaviorally on detached main. Exact-head CI run 38425337326 passes all 1,137 tests.
The local full suite reports 1,136 pass and one existing Claude-hook stress-test failure: F-T229-20 terminated its code-of-paths worker after 120 seconds. That hook and test are unchanged; the isolated test passes on detached main. The local full-suite timeout remains unexplained, so #184 stays draft and unmerged. All local test and diagnostic processes finished. Claude PR #140 remains untouched.
T34 merged — 2026-10-13
PR #184 merged at ed7cf14. Reviewed head 68254c1 passed two clean code/security/QA cycles, all 1,137 exact-head CI tests, and all 1,137 local tests with npm test -- --test-concurrency=1. Serial scheduling retained every assertion and internal concurrency test. The previously failing stress case passed in about 9.9 seconds; resource contention is a supported inference, not a proven cause of the earlier timeout. All narrow-PR test processes finished.
The integration has the same fix at local merge f815120. Build/check and 21 focused checks pass. Its full serial suite is running before push. Installed automatic Sage remains disabled; this does not close #88.
Activity