What are the three things the phrase can mean?
Execution determinism means the runtime can re-run your code and arrive at the same state, which is what durable runtimes rely on to recover from a crash. Control-flow determinism means the sequence of steps is declared in advance and can be read before it runs, instead of being decided by a model at each turn. Output determinism means the same input produces the same result every time, which holds for code and does not hold for a model call even at temperature zero. Vendors and search results blur these together. They are separate properties with separate owners, and an AI pipeline needs all three considered.
How do durable runtimes enforce execution determinism?
Each one has a rule and a failure mode. Temporal replays workflow code against its event history and raises a non-deterministic error if the commands the code emits no longer match the history, so workflow code cannot do I/O, read the clock, or call random outside an activity. DBOS re-invokes a workflow with its original inputs and serves each step from its Postgres checkpoint, raising a nondeterminism error if a step's result does not match. Restate journals every step and replays the journal, with non-deterministic calls wrapped so their results are recorded. Cloudflare Workflows caches step return values by name, so names must be stable and branches must derive from step output. Microsoft's Durable Task states the rule most plainly: an orchestrator replays multiple times and must produce the same result each time.
DBOS: same steps, same inputs, same order. Step results checkpointed in Postgres
Restate: every step journaled. Non-deterministic calls recorded through ctx.run
Cloudflare Workflows: stable step names. Branch on the event or prior step output
All four treat the model call itself as a step whose result is recorded, not reproduced.
What can a deterministic runtime not do for an agent?
It cannot make a model call reproducible. A durable runtime guarantees that a completed step is not re-executed and that an interrupted one resumes. It records the model's answer rather than regenerating it. Ask the same model the same question in a fresh run and the answer can differ. The Compiled AI paper measured 95% reproducibility for direct inference at temperature zero against 100% for a deterministic implementation of the same work. A durable agent loop is a reliable way to run a non-deterministic process. It is not a deterministic process.
Where do agent frameworks sit?
LangGraph's durable execution is checkpointer-based: on resume it replays from the entrypoint, restoring completed task results, and it asks that non-deterministic work and side effects live in tasks and be idempotent. That gives an agent graph execution determinism and, because the graph is declared, control-flow determinism at the level of nodes. What the model decides inside a node is still the model's call. The framework makes the loop's shape explicit. It does not reduce how much of the work is inference.
How do you make the agent itself more deterministic?
Reduce the number of steps that call a model. A mature agent skill is mostly settled procedure: validating fields, routing on thresholds, calling APIs in a fixed order, formatting payloads. Those steps had one correct implementation the first time and have the same one now, and as code they are deterministic at zero tokens. Rote compiles a proven skill into a workflow with five explicit node kinds, where pure functions and external calls are code, LLM judges and bounded agent loops are the retained inference surface, and human approval gates are durable pauses. The result runs on whichever deterministic runtime you choose, with the non-deterministic part shrunk to the steps that genuinely need judgment and visibly labelled.
How do you measure it?
Run the same input several times and compare outputs field by field, not just success rates. Rote Cloud reports a determinism metric computed exactly this way, across the latest batch of runs on one input, alongside cost and wall-clock time per run. For a local pipeline, rote eval --run executes both the original skill and the compiled workflow against the same cases. Publish the agreement rate with the model name and date, because a retained judge's variance is part of the result and changes when the model does.
Frequently asked questions
Can an AI agent workflow be deterministic?
Parts of it can. Rote makes control flow explicit and moves pure functions and fixed API orchestration into testable code. Nodes intentionally kept as LLM judges or agent loops remain probabilistic. The goal is to minimize and expose the inference surface, not pretend every output is deterministic.
Is Temporal a deterministic runtime for AI agents?
Temporal gives an agent execution determinism: workflow code is replayed against its event history, so recovery reproduces the same path, and any model call is an activity whose recorded result is reused rather than regenerated. It does not make the model's output deterministic. The same applies to DBOS, Restate, and Cloudflare Workflows.
What is the difference between durable and deterministic?
Durable means a workflow survives crashes and restarts, resuming from its last completed step. Deterministic means the same input yields the same path and output. Durable runtimes require deterministic workflow code to make replay work, but they record non-deterministic results such as a model's answer rather than making them repeatable. A pipeline can be durable and still vary wherever it calls a model.
Compile a workflow
Inspect the open-source CLI or run a compilation in Rote Cloud.