Skip to content

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.

EffectMeaningIn doubt
pureReads only, safe to repeatRun it again
sandboxedWrites only inside a throwaway sandboxRun it again in a fresh sandbox
externalChanges something in the worldAsk the tool's reconcile hook; if there isn't one, wait for a person
NextTools