The failure mode that I see with AI companies: an agent is X steps into a unknown-step plan and the process dies. Queues used to be and can be a solution. durable execution gives you at-least-once per activity, so exactly-once side effects are still your job. What retries don’t give you is position. The retry has to work out what already happened. With an LLM in the loop it gets worse, because re-running a step re-asks the model, and the model may pick a different tool. Your retry becomes a different run with different side effects.
Replaying recorded results for the completed steps is the only way I know to get the same run back. That’s why I think it belongs in the runtime, for the same reason write-ahead logging belongs in the database. Any app could keep its own commit log. Almost none do, because the database does it once and does it properly.
The usual cost applies, and it’s real: replay means orchestration code must be deterministic, so model calls and I/O have to live in activities. Temporal, Restate, and others make the same trade. This isn’t a single-vendor idea.
The article is also upfront about the limits. Durable execution won’t fix a workflow that is deterministically wrong, and it says nothing about whether the work was authorised.
Question for people running agents in production: do you want your agent framework (Langgraph etc) to own this, or the runtime underneath it? And if it’s the framework, how do you handle crashes mid-running today?
Disclosure: I work at Diagrid, which published this.