Concepts
Crashes and resume
Kill a worker at any point. The next one picks the run up from the last finished step.
A worker holds a lease on each run it drives and renews it with a heartbeat. If the heartbeat stops, a sweeper notices the lease expired and puts the run back in the queue.
The next worker reads the log and rebuilds the conversation from it. Model calls that completed are replayed from the log, byte for byte, including signed thinking blocks, so they're never paid for twice. Tool calls that completed are replayed from their recorded output.
The only open question is a tool call that started but never finished. What happens next depends on its effect level.
| Effect | Meaning | In doubt |
|---|---|---|
| pure | Reads only, safe to repeat | Run it again |
| sandboxed | Writes only inside a throwaway sandbox | Run it again in a fresh sandbox |
| external | Changes something in the world | Ask the tool's reconcile hook; if there isn't one, wait for a person |