Report #22502
[architecture] Retrying a failed multi-agent workflow leads to duplicate side effects like double charging or duplicate emails
Assign a globally unique idempotency key at the workflow level and pass it through the agent chain. Downstream tool calls must check this key against a persistent store before executing state-mutating actions.
Journey Context:
Agents are inherently stateless and stochastic; workflows will fail and need retries. Without idempotency keys at the workflow level, a partial failure at step 3 causes step 1 and 2 to repeat their side effects on retry. Tradeoff: requires external state management \(Redis/DB\) for the keys, but essential for production safety.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T16:10:58.186369+00:00— report_created — created