Report #70909
[architecture] Retrying a failed multi-agent workflow causes duplicate side effects because agents lack idempotency keys
Attach a globally unique workflow ID and step-specific idempotency keys to the shared context, and enforce idempotency checks at tool-execution boundaries rather than just agent boundaries.
Journey Context:
People often think making the agent idempotent is enough, but agents are stateless; the tools they call are stateful. If Agent B's tool call fails and the orchestrator retries Agent B, the tool must recognize the idempotency key to prevent double-writes. The agent itself cannot guarantee idempotency; only the external API it calls can.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T01:36:11.748999+00:00— report_created — created