Repository navigation
Verify recovery for a reused Codex lead after child rejection (T62) - #236
Merged
Merged
Conversation
…-recovery # Conflicts: # scripts/fixtures/codex-native/setup-capture.mjs # scripts/fixtures/codex-native/setup-completion.mjs # scripts/probe-codex-lifecycle.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #235
Sage task T62
Verify that a Codex lead reused for a second assignment can recover a rejected specialist spawn while preserving its assignment history. Production recovery already exists on main. This change adds the missing regression, native diagnostic and scoped documentation.
The regression covers both Sage modes, original lead identity, foreign-parent/root refusal, repeated reconciliation, and exact capacity release. Extra capacity reservations are synthetic test inputs. The native route reuses one real child, rejects its specialist through the known unknown-model preflight response, and checks preserved lead history.
Verification
Head:
a9600aba32e824840397f62f6839b3a88254ddbc, based on main04f60cc.npm run buildandnpm run checkpass.03c616d. This proves existing behavior and a coverage gap, not a newly fixed production defect.node scripts/probe-codex-lifecycle.mjs --sage-followup-failed-childpasses on this head: three reservations, two preserved lead bindings/completions, one rejected specialist, no specialist child, exact failed issuer, exit 0 and temporary-profile cleanup. Model responses are simulated. The report-count finding from preliminary review was corrected before this final probe.npm test -- --test-concurrency=1: tests 1357, pass 1357, fail 0.Not verified: real-model recovery, arbitrary provider errors, active-child process restart, cross-session transfer or installed automatic Sage. Claude #140 remains unchanged. Parent tracking issue: #88. Full runtime work remains incomplete.