Repository navigation
Description
Current status
Initial extraction is pushed on codex/t26-dispatch-failure at a6c234f, based on main 7720032.
Build and repository checks pass. Eight new tests pass and all eight fail on detached main. Missing receipt APIs account for core failures; adapter failures show missing recovery. All 104 server tests pass. Native retry verification, full tests, and independent review cycles remain. No PR is ready yet.
Sage task T26. Component of #88 and #138.
A native spawn can reserve capacity and then fail before a child starts. Preserve that reservation unless the protected sender transcript proves the exact supported preflight rejection.
Extract the prepared failed-dispatch path from the integration branch. This topic covers initial spawn rejection, including an initial lead's child. It does not add later assignments or edit Claude's active state-tool and hook files.
Acceptance:
- Core records an immutable failure receipt for an exact unbound reservation and releases its slot once. Changed identity or evidence, a bound assignment, and late binding refuse.
- The adapter verifies authenticated sender, owner epoch, call, turn, exact arguments, and server-authored unknown-model rejection. Missing, ambiguous, conflicting, or other errors retain capacity.
- Successful dispatch or child-start evidence prevents this release path.
- Reconcile before another spawn and after list/wait callbacks, including preserved work after Sage off.
- Native CLI probe with simulated responses verifies a failed spawn followed by a successful retry at capacity one, with exact journal counts and cleanup.
- New tests fail on detached main. Build, checks, full tests, exact-head CI, and two clean code/security/QA cycles pass before merge.
Installed activation, other failure kinds, later assignments, and the real-project pilot remain separate work. Automatic Sage remains incomplete; see #88.
Activity