Repository navigation
Verify active-child Codex process restart behavior (T4) - #247
Merged
Merged
Conversation
erickb336
marked this pull request as ready for review
October 15, 2026 20:58
This was referenced Oct 15, 2026
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 #245
Sage task T4
Result
Adds an observational CLI 0.160.0 probe for an active child's state across owner process restart. It changes no production policy or installed activation defaults.
Exact candidate:
02d306608da424ef6611965fb09426fa70e8a419.With fixed simulated model responses and a directly tracked native executable:
The load route supplies no child input, starts no child turn, and sends no follow-up. Displayed status is not terminal evidence. These are bounded observations, not proof that recovery is impossible indefinitely or that automatic child restoration works.
The original launcher-loss captures remain explicitly separate. Killing an npm launcher does not prove native SIGKILL. Current runs validate the native executable format and exact version before spawning that path directly.
Validation
npm run build: 306 generated files;npm run checkpasses.node scripts/probe-codex-active-child-restart.mjs --clean-eofnode scripts/probe-codex-active-child-restart.mjs --abrupt-lossnode scripts/probe-codex-active-child-restart.mjs --abrupt-loss --load-childnpm test -- --test-concurrency=1: 1,408 passed, zero failed, skipped, or cancelled; exit 0 on this exact head. The earlier 1,403-pass result belongs to predecessor68afedd.Baseline proof is limited: all six final helper test files copied to detached main
bdd7aa2produce six file-level failures because their modules are absent. These are not 16 behavioral failures. This proves absent harness APIs, not a repaired production behavior. The new child-load tests cover new observational APIs, so no historical runtime regression is claimed.The incomplete-capture test fails against the pre-repair cleanup helper. An isolated FIFO-open observer passes on this candidate and fails when the pre-open regular-file guard is removed; it intercepts the open and cannot hang on a FIFO. The earlier EOF mutant fails when EOF alone is treated as terminal. These controls are separate from full-suite results.
Reproduce the focused checks:
node --test --test-name-pattern='restart |EOF is not exit|abrupt loss signals|RPC close rejects' scripts/codex-server.test.mjsNative commands and isolation requirements are in
docs/verification/codex-active-child-restart.md. Raw captures remain local. No real-model judgment, installed-session adoption, or cross-session authority transfer is verified.