Marks / Product integration / Durable execution
codex · Durable execution
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
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
default - 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
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
Pinned evidence
Cited by the mark
- I13
TurnInputSubmission::{Accepted, Started, Steered, NotSubmitted} - I15
cross-process ownership lock for thread (rollout) writers
- I17
recovery snapshot only for uncancelled, input-recorded, single-local-environment turns
openai/codex codex-rs/core/src/session/daemon_recovery.rs L19-L47
Also cited by the review finding
- I12
on connection close, teardown only if thread already gone from core manager
openai/codex codex-rs/app-server/src/request_processors/thread_processor.rs L4023-L4039
- I16
stream idle 300 s; stream retries 5; request retries 4; cap 100
openai/codex codex-rs/model-provider-info/src/lib.rs L74-L81
- I18
managed daemon consumes recovery snapshot and restores threads (cold-resume)
openai/codex codex-rs/app-server/src/daemon_thread_recovery.rs L1-L49
Two independent graders
- Grader A
- 2 / 3
- Grader B
- 2 / 3
- Final
- 2 / 3