EXECUTE HANDLER
queued → running
How this step works
The execute handler takes the lease. Only one executor holds a run's lease at a time.
WHO WRITES ITThe execute handler, while it holds the lease
Each write is a compare-and-set on the run row
EXECUTE HANDLER · APPROVAL GATE
running → paused
How this step works
The graph stops at the approval gate. Only the executor holding the current lease token can write this.
WHO WRITES ITThe execute handler, when the graph stops at the approval gate
Only the current lease token can write this
DECISION ENDPOINT
paused → queued
How this step works
The decision endpoint records a decision against the exact proposal digest, a fingerprint of the plan. One compare-and-set operation checks that the run is paused and the digest matches before recording it. Otherwise it returns 409 and records nothing.
ONE COMPARE-AND-SETAccepted only while the run is paused
and only if the proposal digest matches
Otherwise 409, and nothing is recorded
EXECUTOR
running → completed / rejected / unresolved
How this step works
The workflow returns with outcome approved, rejected or unresolved. The executor maps it to a status only when the whole workflow has returned.
OUTCOME TO STATUSapproved → completed
rejected → rejected
unresolved → unresolved
EXECUTOR · APPROVAL RE-CHECK, COMPARISON
running → blocked / compared
How this step works
Before each live action the approval is re-checked; if it fails, the run ends blocked. A comparison run stops at the gate as compared and is never approved to act.
TERMINALblocked: an approval re-check fails before an action, e.g. it expired after 15 minutes
compared: a comparison run stops at the gate and never acts
EXECUTOR · ROUTEDMODEL · CLAIM
running → budget_stopped / failed; queued → failed
How this step works
If a model call cannot reserve budget, the run ends as budget_stopped. An error that cannot be retried, an outdated workflow version or a missing workflow outcome ends it as failed. A run at the attempt cap fails when next claimed, even from queued.
TERMINALbudget_stopped: a model call cannot reserve budget
failed: a non-retryable error, a stale workflow version or no outcome
queued → failed: the attempt cap is reached at the next claim
ADMIN RESET · EVAL TIMEOUTS
queued / running → cancelled
How this step works
The admin environment reset cancels only stale, non-eval queued or running runs and refuses while newer runs are working. Eval and comparison timeouts can cancel their own queued, running or paused runs.
TERMINALThe environment reset cancels queued or running runs unchanged for 15 minutes, not eval runs
Eval and comparison timeouts can also cancel paused runs