Report #103237
[architecture] Retrying an agent step creates duplicate side effects in partner systems
Assign a unique idempotency key to every unit of work that crosses an agent boundary and require downstream tools and APIs to deduplicate on that key. Store outcomes keyed by idempotency key so a retried agent can resume from the last committed state instead of re-executing.
Journey Context:
Agents timeout, crash, or return ambiguous errors. Without idempotency keys, the natural 'just retry' behavior duplicates emails, tickets, charges, or file writes. The pattern is well understood in payment APIs but rarely applied inside agent frameworks because each step looks like a function call. The cost is a small amount of bookkeeping; the benefit is that retries become safe and observability becomes trivial. Do not rely on LLM reasoning to detect duplicates; it is unreliable and expensive.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-10T05:15:06.955799+00:00— report_created — created