Durable execution
Criteria per level
- 0
State in memory only; a restart loses sessions
- 1
Sessions persist, but an in-flight turn is lost on restart and concurrent requests on one session are not serialized (dropped or racing)
- 2
Sessions persist and concurrent input is serialized (queue, steer or reject), but an interrupted turn is lost or must be resent by hand
- 3
Level 2, plus an interrupted turn is detected after restart and either closed out with a recorded error or resumed
- 4
Level 3, plus turns survive client disconnect and automatic resume or replay with an explicit idempotency rule (request ids, replay-safe declarations, at-least-once documented)
Every runtime, in report order
- 2 ↑3 codex opt: app-server daemon recovery Steer and writer lock serialize input. A crash cold-resumes without closing out the turn; only the opt daemon resumes eligible turns, with no idempotency rule
Review finding
Built in: a client disconnect drops subscriptions, but a live thread keeps running. Input to an active turn becomes a steer. Cross-process rollout writer lock. Request/stream retries 4/5. Daemon restart continues eligible local turns; a crash cold-resumes from the rollout (Note I-2). I12I13I15I16I17I18
- 2 goose Second run rejected, steps persisted. An interrupted turn is lost except confirmation-paused ones, so level 3 detect/close-out is unmet
Review finding
- 3 hermes-agent Turn lease serializes (interrupt default), and a recovery turn re-drives
resume_pending. Disconnect survival is opt; unresolved: whether/v1/runsresumes after restartReview finding
Varies by surface. Gateway: per-session turn lease; busy input interrupts by default [opt: queue, steer]; shutdown marks sessions
resume_pendingand re-drives them. API SSE disconnect interrupts the run;/v1/runsis connection-independent with idempotency keys. No step replay after a crash (Note I-4). I41I42I43I44I45I46 - 2 letta-code Cloud background runs and busy handling are server-side [D], so the evidence cap is 2. Local mode loses runs on a crash
Review finding
- 1 ↑2 nullclaw opt: queue_mode=serial/latest/debounce Default
queue_mode=offdrops busy-session input; the turn is persisted only after completion, so a crash loses itReview finding
Built in: per-session mutex. Default
queue_mode=offdrops messages for a busy session (logged) [opt: serial, latest, debounce]. Turn persisted only after completion; mid-turn crash loses the turn. A2A tasks and subagents in memory only. Provider retries and fallbacks. No webhook dedup. I71I72I73I74I75I76 - 4 openclaw Asynchronous dispatch outlives the client; idempotency keys on input; steer serializes; restart resumes with an explicit no-replay rule
Review finding
Built in:
chat.sendpersists input with an idempotency key, acksstarted, and runs asynchronously, so it outlives the client. One turn per session; extra input steers by default (cap 20). 8 retries/90 s then failover. Restart sends a "resume without replaying" prompt; tools not replayed (Note I-6). I87I88I89I90I91I92 - 4 opencode Durable inbox outlives disconnect; one execution per session; boot sweep resumes claims, documented as at-least-once
- 2 ↑3 pi alt: pi-durable CLI rejects concurrent prompts; orphaned calls get only synthetic transform-time errors, not recorded. pi-durable resumes or settles failed; unresolved: disconnect
Review finding
Not durable mid-turn: entries appended as finalized; on resume, orphaned tool calls get synthetic "No result provided" errors, not re-run. Second prompt while streaming rejected unless steer/followUp. stdin EOF waits for pending work. No session-file lock. [alt: pi-durable] (Note I-8). I113I114I115I116I117
- 0 ↑3 software-agent-sdk alt: agent-server Local SDK persists nothing without
persistence_dir. The server survives disconnect and marks stale RUNNING as ERROR, with no auto re-runReview finding
Local SDK:
run()is synchronous in the caller's thread; nothing persists withoutpersistence_dir. Server: runs in background tasks that survive disconnect; second run rejected. On reload, stale RUNNING becomes ERROR, no auto re-run. File lease (45 s TTL) per conversation; 5 LLM retries. I128I129I130I131I132I133I134 - 3 spore Detached runner,
requestIdidempotency and flock; a crashed turn is finalized as error. There is no automatic resume, so level 4 is unmetReview finding
Built in: a detached runner owns the turn and outlives the caller.
requestIdmakes sends idempotent; one runner per workspace (flock); concurrent sends join the inbox at the next round. Next runner finalizes a crashed turn as error, message left unread; no auto-continue. 3 model retries. I143I144I145I146I147I148I149