Report #84089
[architecture] Retrying a failed multi-agent workflow step causes duplicate side effects \(e.g., sending emails twice, double charging\)
Implement idempotency keys at the workflow level. Pass a unique execution ID \(e.g., UUID\) through the agent context. Downstream tools must check this key against a persistent store before executing side effects.
Journey Context:
In a multi-agent chain, if Agent C fails after Agent B successfully called a payment API, a naive retry of the whole chain will cause Agent B to charge the customer again. Developers often treat agents as stateless functions but forget that their tools are stateful. The fix requires the orchestrator to generate an idempotency key and pass it down. The tradeoff is that tools now need state management \(e.g., Redis\) to track seen keys, adding infrastructure complexity, but it is the only way to guarantee safe retries in distributed agent systems.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T23:44:00.181796+00:00— report_created — created