Report #29311
[architecture] Retries in agent pipelines cause duplicate side-effects like sending multiple emails or creating duplicate records
Propagate an idempotency key through the agent context/contract. Downstream tool calls must use this key to deduplicate operations upon retry.
Journey Context:
Agent loops frequently fail due to rate limits or transient API errors. When the orchestrator retries the step, the LLM often generates the exact same tool call, leading to duplicate real-world actions. Because LLMs are stateless, they cannot natively track whether an action succeeded before the crash. Passing an explicit idempotency key \(like a UUID tied to the workflow run and step\) delegates deduplication to the deterministic API layer.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T03:35:30.613388+00:00— report_created — created