Marks / Product integration / Durable execution
openclaw · Durable execution
Asynchronous dispatch outlives the client; idempotency keys on input; steer serializes; restart resumes with an explicit no-replay rule
Level
Criteria for this column
- 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)
met
What the source review found
Built in: chat.send persists input with an idempotency key, acks started, 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
Pinned evidence
Cited by the mark
- I87
ack
{runId, status:"started"}; "Dispatch owns execution from this point"openclaw/openclaw src/gateway/server-methods/chat-send-input-dispatch.ts L605-L640
- I88
session_pending_inputswith UNIQUE(session_id, idempotency_key)openclaw/openclaw src/state/openclaw-agent-schema.sql L906-L943
- I91
"Resume without replaying the request… Report unknown effects without retrying them"
openclaw/openclaw src/gateway/session-restart-resume-prompt.ts L1-L17
Also cited by the review finding
- I89
queue mode default
steer, debounce, cap, drop policyopenclaw/openclaw src/auto-reply/reply/queue/settings.ts L14-L41
- I90
8 transient retries within 90 s, 1–30 s backoff (60 s rate limit), then failover
openclaw/openclaw src/agents/embedded-agent-runner/run/failover-retry-controller.ts L34-L41
- I92
cron/ACP/PTYs/background processes not resumed; not exactly-once
Two independent graders
- Grader A
- 4 / 4
- Grader B
- 4 / 4
- Final
- 4 / 4