Repository navigation
Description
Outcome
After interruption or uncertain acceptance, operators can distinguish committed facts, unresolved external effects, and explicitly unavailable results without the kernel silently repeating work.
Parent: #2659.
Scope
Qualify interrupted-run recovery, uncertain append resolution, final admission/cancellation ordering, bounded settlement, and concurrent-result progress through the isolated kernel. Record recovery decisions explicitly; reconstructing history itself must not manufacture interruption or execute recovery actions.
The passive lifecycle is merged in #2755 (56c38b5e53455caff18be4807d2d0b7445bbc82d), not recovery execution. Preserve its terminality contract: ordinary endings require individual tool settlement; only explicit Limit/CaptureFailed bulk endings derive settlement for outstanding calls. No late tool invocation/disposition facts are admitted after ending. External work may still require cancellation/draining, but that does not reopen terminal history or prove stopped effects. The earlier terminal-run settlement wording is superseded by this merged contract.
Acceptance
- Deterministic fault injection covers loss before/after acceptance and before/after in-memory application, plus tool effects occurring before a result can commit.
- Uncertain acceptance is resolved under the original proposal identity before dependent advancement; no hidden retry reexecutes a tool.
- Cancellation winning final admission prevents invocation; admission winning first permits only honest interruption/unknown-effects reporting, not rollback or proven cessation.
- Recovery of an active crashed run records explicit recovery/ending facts consistent with the merged passive lifecycle, without inventing known tool outcomes or automatically continuing under the old run identity. Classify calls before ordinary termination, or use an explicit allowed bulk ending when its reason is warranted; do not reinterpret ordinary interruption as bulk closeout.
- Reconstruction, explicit recovery, and a newly authorized run are observably separate operations.
- Bounded settlement and late-result handling do not resume a canceled run, block indefinitely, or let stale work advance a successor.
- Ready concurrent results retain independent progress and accepted facts survive another reconstruction.
Dependencies and boundaries
Logical-request construction/reconstruction is merged in #2793 (91e3155236feb5dd684f0f6bf51e805cad1d30a4). Reconstruction verifies retained parameters and the canonical request CID against the original record prefix/run without backend I/O, current configuration or execution. This is a passive primitive, not crash recovery, resumed invocation, a historical lifecycle snapshot or new execution authority. Recovery qualification and every acceptance item above remain open.
Build on the session and isolated-harness stories; retain reusable fault tests for production qualification. Resolve concrete pairing/settlement atomicity questions in a scoped plan rather than treating this outline as an API decision. No exactly-once external execution claim, generic workflow replay, automatic crash resume, or planned same-active-run replica handoff.
Design context: execution/recovery and cancellation/results.
Activity