Marks / Product integration / Durable execution
pi · Durable execution
CLI rejects concurrent prompts; orphaned calls get only synthetic transform-time errors, not recorded. pi-durable resumes or settles failed; unresolved: disconnect
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
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
Pinned evidence
Cited by the mark
- I113
orphaned tool calls get synthetic "No result provided"
earendil-works/pi packages/ai/src/api/transform-messages.ts L179-L200
- I114
"Agent is already processing. Specify streamingBehavior…"
earendil-works/pi packages/coding-agent/src/core/agent-session.ts L2242-L2250
- I117
[alt: pi-durable] in-flight tool replay only if
replay: "safe"(see also packages/durable/src/harness/tool.ts)earendil-works/pi packages/durable/src/harness/generation.ts L567-L614
Also cited by the review finding
- I115
stdin EOF → orderly shutdown awaiting pending work
earendil-works/pi packages/coding-agent/src/modes/rpc/rpc-mode.ts L731-L756
- I116
provider retry with backoff;
proper-lockfilenot used for session files (grep)earendil-works/pi packages/coding-agent/src/core/agent-session.ts L3936-L3976
Two independent graders
- Grader A
- 2 / 3
- Grader B
- 2 / 3
- Final
- 2 / 3