Marks / Product integration / Durable execution
software-agent-sdk · Durable execution
Local SDK persists nothing without persistence_dir. The server survives disconnect and marks stale RUNNING as ERROR, with no auto re-run
Level
Criteria for this column
- 0
State in memory only; a restart loses sessions
default - 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
best - 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)
What the source review found
Local SDK: run() is synchronous in the caller's thread; nothing persists without persistence_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
Pinned evidence
Cited by the mark
- I128
pause()between steps; syncrun()interrupt falls back to pause - I129
server background run;
ConversationAlreadyRunningguard - I130
stale RUNNING → ERROR with
recovery_reason="server_restart"
Also cited by the review finding
- I131
owner_lease.json, TTL 45 s - I132
send during active gateway run → 409 unsaved; 429 after save
OpenHands/software-agent-sdk openhands-agent-server/openhands/agent_server/event_router.py L275-L290
- I133
WebSocket reconnect replays missed events via REST reconcile
- I134
num_retries=5, exponential waitsOpenHands/software-agent-sdk openhands-sdk/openhands/sdk/llm/llm.py L386-L399
Two independent graders
- Grader A
- 0 / 3
- Grader B
- 0 / 3
- Final
- 0 / 3