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

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

Content reviewed on 2026-10-05

Anti-pattern catalogue