Repository navigation
Description
Codex manual logbook task T5 tracks this investigation. Task IDs are local to the provider logbook.
Problem and scope
Parent: #88. Evidence task: #245.
An abrupt native Codex process loss can leave an admitted child without a persisted terminal record. Sage correctly retains its reservation, but the tested resume paths do not resolve the assignment. Full Codex recovery needs an authoritative way to settle this state without inventing successful work or permitting two owners.
This issue records the missing capability. It does not authorize a new abandonment policy, change defaults, or enable installed automatic Sage.
Current evidence
The #245 probes use the actual native CLI 0.160.0 executable with simulated model responses and isolated profiles. The final harness is under validation.
- Clean EOF writes a child interruption record. The resumed parent reconciles that record once while leaving the logbook run unfinished.
- Direct native SIGKILL leaves no child terminal record in the observed transcript. Parent resume and registry reconciliation preserve the reservation.
- Loading the recorded child through
thread/resumeadds it to the registry aspending_init, but produces no child model request. The inspected transcript appends a settings event, not a terminal record. - The child response displays the old turn as interrupted. This does not establish persisted interruption evidence. No interruption request is sent when the saved turn is not reported active.
These are bounded observations. They do not prove that every native recovery path is unavailable.
Native contract to investigate
Parent interruption does not reload an absent child. Saved-child loading goes through the thread manager and recorded immediate-parent checks. API history normalization can change displayed status without writing a terminal record.
Identify a supported native producer of durable crash-reconciliation evidence. The evidence must bind the original owner, child, turn and assignment, and establish that the old execution cannot resume under the same authority. A display status, missing registry member, elapsed time, PID absence, or successful interrupt request alone is insufficient.
If that contract is unavailable, prepare two options for owner review:
- Request upstream durable reconciliation evidence and keep the assignment held until supported.
- Design an explicit owner-authorized abandonment operation with a distinct recorded outcome and rules that prevent overlapping execution.
Recommendation: investigate the native evidence contract first. Do not silently reinterpret interruption or successful completion as abandonment. Publishing an upstream request requires separate authorization.
Acceptance
- Verify current supported native APIs and their persistence semantics with pinned source and an actual native probe.
- Define recovery behavior after clean shutdown, abrupt loss, incomplete storage writes, repeated resume, and a competing or still-live owner.
- Preserve the original assignment, unfinished run, evidence and historical attempts. Do not fabricate reports, verdicts or success.
- Require exact identity and idempotent recovery. Refuse stale, conflicting, foreign or uncertain evidence.
- Review any product decision before implementation. Record the selected policy and its limits.
- Test the consumed production path, including failure controls and native recovery. Simulated model responses are acceptable for deterministic lifecycle evidence, not real-model quality claims.
- Complete required code, security and QA review cycles, build/check/tests, and baseline or mutation proof.
PR #140 is merged. Keep active Claude-owned #119, #105 and #67 untouched; recheck ownership before implementation. Keep #239 ownership claims, #243 execution context, and the upstream fail-closed hook issue separate; this task does not resolve them.
Released-source refresh: 0.163.0
The V2 interruption implementation still does not reload an unloaded runtime. It accepts ThreadNotFound/InternalAgentDied from interruption and returns its previously inspected snapshot. That route alone does not establish the durable crash-settlement evidence required here.
This is a source check, not a native 0.163.0 recovery trial or an exhaustive exclusion of other APIs. Upstream #54428 remains open without a reply. Keep unknown assignments held. No abandonment policy or activation change follows.
Activity
erickb336 commentedon Oct 15, 2026
Published the approved upstream request: openai/codex#54428
It includes the native 0.160.0 reproduction and 0.162.1 source audit. Newly released 0.163.0 has not been tested in this investigation. This tracking issue remains open pending authoritative recovery support and verification.
erickb336 commentedon Nov 9, 2026
Closing as obsolete. The native Codex runtime that held admitted children was deleted in PR #467 (T732) and PR #468 (T914). The upstream request to Codex stays filed on their side. Owner decision 2026-11-09.