AP43 · No durable execution or idempotence
Family: Loop, stopping and orchestration
Moderate evidence
Original names: ignoring durability in agent workflows, non-idempotent side effects
A failure halfway through, and the agent starts over, sending again the email it had already sent.
Definition
A long task runs without persisting its progress or its tool calls: any failure means starting over, and a replayed step repeats its side effect (payment, email, write) for lack of an idempotency key.
Observable symptoms
- Duplicates downstream, such as two emails or two orders, with the same conversation ID.
- Failed sessions that cost roughly two full runs.
- Identical tool calls (same tool, same arguments) right after a resume.
Why it hurts
An agent is a stateful process: starting over pays for the whole context again and frustrates the user. And a durable execution engine replays steps from the checkpoint, so a non-idempotent side effect runs a second time.
Figures
- Thoughtworks puts ignoring durability in agent workflows in the “Caution” ring, an anti-pattern seen across many teams, resulting in systems that work in development but fail in production (April 2026).
- Anthropic does not restart its research agents from the beginning, which is expensive and frustrating: its systems resume from where the agent was when the error occurred.
- Frameworks have not solved it: a LangGraph feature request opened on 28 July 2026 notes that long-running or retried graph executions re-invoke tools and duplicate side effects when workers restart or time out.
Remedies from the catalogue
- D6 · Long-running harness — Durable execution with checkpoints: after a failure, the agent resumes from the last validated step.
- B6 · Custom state graph — A persistent state graph, in which every node with a side effect is wrapped in a task that can be replayed without a double effect.
- D2 · Structured notes and recited plan — A recited plan that marks the steps done, so they are not redone on resume.
Measures outside the catalogue
- An idempotency key passed to every tool with a side effect, and an outbox-style log of effects.
- A check of the real state before redoing an action.
Misused patterns
Related anti-patterns
Sources
- Technology Radar, vol. 34 — Thoughtworks, 2026-04
- How we built our multi-agent research system — Anthropic, 2025-06-13
- [Feature Proposal] Durable tool execution idempotency & retry middleware — LangGraph (GitHub), 2026-07-28
Content reviewed on 2026-10-05