What is idempotency?

Definition

An idempotent operation can be repeated without adding another instance of its intended change. For example, setting a stored flag to a particular value differs from toggling it on each call. The property concerns the operation's defined effect, not merely whether it returns the same-looking response.

Idempotency is important when a caller may not know whether an earlier request completed. External effects still need appropriate identity and state checks; repetition is not safe simply because a workflow has durable records. Permission and source validation remain separate requirements.

ELI5

Idempotency means repeating the same identified operation has the same intended effect as doing it once. It protects a workflow when a timeout makes the caller unsure whether the first attempt finished.

For example, an agent can retry a refund request with the same operation key, and the payment system returns the original result instead of issuing a second refund. The guarantee requires durable request identities and outcome records, not just a prompt asking the agent to be careful.

Is every operation idempotent?

No. Operations that add a new item or apply another change on each call may have additional effects when repeated.

Does idempotency authorise a retry?

No. The caller still needs permission and reliable evidence about the operation's identity and semantics before repeating it.

  1. Salman Munaf beside the headline Bound Observe Recover in true white and attention blue
    How to Make AI Agent Failures Recoverable
    AI Engineer19m 48s2 VIEWS
  2. 0xSero in white, Mario Zechner in blue and Armin Ronacher in navy above the blue and white headline Agents Survive Crashes on black.
  3. Ishween Kaur gestures beside the blue and white headline AI AGENT PAYMENT RISKS against a black background.
  4. Viren Baraiya in a blue shirt looks toward the blue and white "DURABLE AGENTS" headline.
  5. A flat loop illustration beside the blue and white headline Durable Agent Work on black.
Definition card for idempotency: What is idempotency?

Idempotency is the property that repeating an operation has the same intended effect as performing it once.