Repository navigation
Description
Sage task T4 (Codex manual logbook namespace)
Parent tracking issue: #88.
Outcome
Capture what the actual supported Codex runtime does when its owning process stops with one active Sage child, then the same root resumes. Use this evidence to define the next recovery implementation. Do not assume restart restores the child or frees its reservation.
Current evidence covers root-only process resume, completed-child continuation, and exact terminal reconciliation. It does not prove active-child restart. A prior completed-child probe found that direct app-server input to a multi-agent v2 child is refused; that is not a supported recovery shortcut.
Scope
Build an isolated observational probe using CLI 0.160.0 and fixed simulated model responses. Preserve normal policy, native permissions, admission, and run validation. Do not enable installed automatic Sage.
- Establish one actual run, prepared assignment, reservation, and child binding.
- Let the child complete a harmless control, then hold its next model response. Require native evidence that the exact child is Running.
- Preserve the journal, run row, native identities, turn, and transcript locations inside the fixture.
- Inspect the pinned runtime shutdown and resume implementation before choosing control operations.
- Test clean shutdown separately from abrupt loss. For clean shutdown, verify the tracked transport EOF actually terminates the process; a timeout is not success. For abrupt loss, signal only the fixture's tracked process handle and record its terminal result.
- Resume the same root and temporary profile with a fresh authenticated connection. Observe root/child identity, owner epoch, mode, SessionStart handling, registry, current turn, and instruction delivery.
- Invoke existing parent reconciliation. Require retained capacity unless exact native terminal evidence permits release. Do not invent a report, successful task, or successful run.
- Attempt a prepared parent follow-up only if existing terminal/run rules permit it. Direct child app-server input is not an alternative authority path.
- Capture each failed phase with bounded local evidence before cleanup. Report measured behavior separately from inferred causes.
Acceptance
- Deterministic barriers establish the child state before shutdown; no tight time or CPU bounds.
- Evidence distinguishes clean shutdown, abrupt loss, root resume, child restoration, terminal reconciliation, and later continuation.
- Spoofed or missing evidence cannot create authority or free another assignment.
- Existing completion, interruption, and capacity-rejection behavior remains intact.
- Every owned background task terminates before the final report. No real process-list reads or global signals; fake process tools stay first on PATH in tests.
- Build/check/full suite, meaningful regression or mutation evidence, and independent reviews cover any committed probe or runtime change.
- Real-model judgment, installed activation, and cross-session transfer are explicitly unverified unless separately demonstrated.
Boundaries
This task gathers evidence and adds its repeatable probe. Any product change to adoption of unfinished work by a different root needs a separate design decision. Existing session/epoch ownership must not be weakened.
Claude #140 owns shared task-set/replan, merge-check, logbook-view, and verdict work. Do not change those bodies. Run native probes after the current integration validation releases its single local test lane. This task does not resolve #243 or openai/codex#41979.
Activity
erickb336 commentedon Oct 15, 2026
The restart investigation found a useful distinction. A clean native shutdown writes an interruption record, which Sage reconciles. Direct native process loss leaves the tested assignment without terminal evidence; the resumed parent retains its reservation. Neither tested route resumes the child's work. These observations use CLI 0.160.0 and simulated responses; final harness reviews and validation are still in progress.
Next, test a separate opt-in child-load route after abrupt loss. Resume the parent, then call
thread/resumefor its saved child without new input or configuration overrides. Observe the saved native identity and transcript. If a live turn exists, request interruption of the exact saved turn. Otherwise record the refusal. Only a persisted native terminal record can justify releasing capacity.Pinned native source supports child loading through the saved immediate parent. Parent
interrupt_agentalone does not reload an absent child. API history can also display an interrupted status without writing a terminal record. The probe must keep those observations separate.This extends the observational experiment only. It does not add a production recovery rule, fabricate completion, enable automatic Sage, or adopt work under a new owner. No product decision is needed for this bounded check. If it cannot settle the assignment, document the missing evidence contract before designing a recovery operation.