Skip to content

Verify bound Codex interruption recovery (T60) #229

Closed

Description

@erickb336

Parent work: #88 and #138. Build after #227 in a separate PR from latest main.

Main already consumes bound interruption recovery. Close its verification gap with dedicated regression coverage, a native interruption probe and scoped documentation. The code releases admission capacity once, preserves assignment history, and leaves the unfinished logbook run available for later repair.

Scope:

  • Keep the existing consumed interruption reader and reconciliation implementation. Immutable comparison against integration confirms this production behavior is already on main. Main already has the interruption helper and two dedicated tests for terminal outcome and conflicting evidence. Add the two missing tests for off-mode/later-assignment isolation and once-only capacity release with stale-evidence refusal, plus the native probe route with its fixture allowlist.
  • Require an existing verified child binding, trusted transcript reference, exact original task delivery and one matching turn_aborted event with reason interrupted.
  • Refuse duplicate or conflicting terminal evidence, a mismatched actor/turn/task, or a later response in the same turn. An unfinished current turn returns no terminal evidence.
  • Preserve valid historical interruption evidence when the child starts another turn.
  • Save an interrupted outcome and evidence hash once. Never convert it to a successful completion or accepted report. Remove Sage delegation authority for that interrupted assignment.
  • Preserve reservations, earlier assignments, reports and logbook state. Keep off-mode ordinary tool behavior unchanged.
  • Missing initial binding evidence must retain capacity. Do not infer completion from timeouts, tool self-reports or missing callbacks.

Acceptance:

  • Positive and refusal tests cover exact evidence, malformed and conflicting snapshots, retries, reconnect, later turns, prior assignments and Sage off.
  • Demonstrate capacity release exactly once and no report, verdict or logbook-run completion.
  • Run the new regression tests on detached latest main; they should pass because the behavior already exists. Use isolated mutations to prove the tests detect incorrect terminal outcome, conflicting evidence, stale assignment and duplicate capacity release. Demonstrate that the native diagnostic route is absent on main. Do not claim missing production functionality.
  • Run the final-commit native --sage-interruption probe with a real CLI and simulated responses. Compare journal evidence with the native transcript, verify the absent stop callback and temporary-profile cleanup.
  • Build/check, focused/full tests, exact-head CI and two clean independent code/security/QA cycles must pass. Fake process commands first on PATH for every test/probe.

Exclude task transitions, repair scheduling, initial unbound dispatch recovery, installed activation, full command policy, board work and Claude-active functions. No product decision is currently identified for this extraction.

Activity

  1. added
    codex
    on Oct 14, 2026
  2. changed the title [-]Recover exact bound Codex interruptions (T60)[/-] [+]Verify bound Codex interruption recovery (T60)[/+] on Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    codex

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions