Skip to content

Verify native Codex interruption recovery (T60) - #231

Merged
erickb336 merged 3 commits into
mainfrom
codex/t60-interruption-proof
Oct 14, 2026
Merged

erickb336 merged 3 commits into
mainfrom
codex/t60-interruption-proof

Conversation

@erickb336

@erickb336 erickb336 commented Oct 14, 2026 •

Copy link
Copy Markdown
Owner

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 main 5723be6.

  • npm run build: built 302 files. npm run check: all checks pass. Focused checks: 6 tests, 6 pass, 0 fail.
  • Four interruption tests pass unchanged detached main, including the two newly extracted cases. These prove an existing behavior and a coverage gap, not a production repair.
  • Six isolated mutations fail at the intended controls: wrong terminal outcome, conflicting evidence hash, wrong binding, retained interrupted capacity, skipped off-mode reconciliation, and skipped continuation reconciliation.
  • Main rejects the new diagnostic flag before launching native work.
  • The new guard test fails on prior head a22c3ed because its helper is absent; that is not behavioral proof. A scratch mutation that permits every interrupt fails with pass instead of the expected denial.
  • First security review found overly broad fixture interrupt permission. The dedicated root/target/input guard repairs it, and direct tests exercise the same function serialized into the native fixture.

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=1 ended 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.

@erickb336
erickb336 marked this pull request as ready for review October 14, 2026 11:00
@erickb336
erickb336 merged commit 70b78e4 into main Oct 14, 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 bound Codex interruption recovery (T60)

1 participant