Skip to content

Verify recovery for a reused Codex lead after child rejection (T62) - #236

Merged
erickb336 merged 3 commits into
mainfrom
codex/t62-reused-lead-recovery
Oct 15, 2026
Merged

erickb336 merged 3 commits into
mainfrom
codex/t62-reused-lead-recovery

Conversation

@erickb336

@erickb336 erickb336 commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

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 main 04f60cc.

  • npm run build and npm run check pass.
  • Combined focused checks: 15 tests, 15 pass, 0 fail.
  • The new on/off regression passes detached main 03c616d. This proves existing behavior and a coverage gap, not a newly fixed production defect.
  • Four isolated mutations fail at their intended controls: use the wrong original binding, skip parent identity validation, retain failed-spawn capacity, or skip off-mode reconciliation.
  • node scripts/probe-codex-lifecycle.mjs --sage-followup-failed-child passes 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.
  • Exact-head CI run 38771701868: success; tests 1357, pass 1357, fail 0.
  • Two independent code, security and QA review cycles are clean on this unchanged head.
  • Local tests/probes use fake process commands first on PATH. All owned local processes ended; the native probe removed its temporary profile.

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.

…-recovery

# Conflicts:
#	scripts/fixtures/codex-native/setup-capture.mjs
#	scripts/fixtures/codex-native/setup-completion.mjs
#	scripts/probe-codex-lifecycle.mjs
@erickb336
erickb336 marked this pull request as ready for review October 15, 2026 17:03
@erickb336
erickb336 merged commit 8cffddd into main Oct 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Verify reused Codex lead recovery after a rejected child spawn (T62)

1 participant