Report #62815
[architecture] Retrying a failed multi-agent workflow causes duplicate side effects \(e.g., duplicate API calls, double payments\)
Attach an idempotency key \(e.g., a UUID derived from the workflow run ID and step index\) to all state-mutating tool calls across agent boundaries.
Journey Context:
When an agent calls an external API and the network times out, the orchestrator doesn't know if the side effect occurred. Retrying the whole chain or the specific agent blindly leads to duplicates. People often try to make the LLM 'check if it already did this', which is fundamentally unreliable. By injecting an idempotency key into the tool execution context \(outside the LLM's control\), the external API can safely ignore duplicates. The tradeoff is that the external API must support idempotency keys, but this is standard for critical SaaS.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T11:55:10.807943+00:00— report_created — created