Repository navigation
Verify native Codex interruption recovery (T60) - #231
Merged
Merged
Conversation
This was referenced Oct 14, 2026
erickb336
marked this pull request as ready for review
October 14, 2026 11:00
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 #229
Sage task T60
The interruption diagnostic now checks a real bound Codex child: native interruption must record one exact interrupted outcome without a stop callback, report, verdict or completed logbook run. It also checks that capacity becomes available once. Model responses and the replacement reservation are simulated fixture inputs, not a second native child.
Production interruption recovery already exists on main. This change adds two missing regression tests, a dedicated native probe, fixture confinement tests and scoped documentation. The fixture permits only the authenticated root to interrupt its exact child with one input field.
Verification
Head:
9013c5a103fd4fb37439b79dfbe238ecb7629bf6, based on main5723be6.npm run build: built 302 files.npm run check: all checks pass. Focused checks: 6 tests, 6 pass, 0 fail.a22c3edbecause its helper is absent; that is not behavioral proof. A scratch mutation that permits every interrupt fails with pass instead of the expected denial.Two independent code/security/QA cycles are clean on this head. The exact-head native probe passes: one interrupted outcome with exact binding/hash, zero stop callbacks/reports/verdicts, unchanged logbook with the run open, once-only capacity release, and temporary-profile cleanup. The negative control disables reconciliation and fails with interruption_not_recovered; cleanup succeeds without a secondary error. Responses and the replacement reservation are simulated. The full local suite passed:
npm test -- --test-concurrency=1ended with 1,345 tests, 1,345 pass, 0 fail, exit 0. Exact-head CI run 38552306170 passed: 1,345 tests, 1,345 pass, 0 fail. All owned local processes finished. All local tests use fake process commands first on PATH.Not verified: real-model behavior, missing initial bindings, repair scheduling, full command policy or installed automatic Sage. The off-mode test alone does not prove terminal-child authority loss. All merge gates passed on the unchanged head.