Report #61040
[architecture] Retrying failed multi-agent workflows results in duplicated side effects \(emails sent twice, resources created twice\)
Attach an idempotency key \(e.g., a UUID workflow ID \+ step ID\) to the state payload passed between agents. Downstream agents must pass this key to any tool or API that mutates external state.
Journey Context:
When Agent B fails after Agent A successfully called an API, orchestration frameworks often retry the whole workflow or the failing step. If Agent A's API call wasn't idempotent, the retry duplicates the action. Developers often rely on LLMs to 'check if it exists first,' which is unreliable. The tradeoff is that external APIs must support idempotency keys, but this is the only deterministic way to guarantee exactly-once execution semantics in distributed agent systems.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T08:56:37.034245+00:00— report_created — created