Report #85831
[architecture] Retrying a failed multi-agent workflow step results in duplicated side effects
Assign a globally unique idempotency key \(e.g., a UUID\) at the workflow initiation level, and pass it down through the agent context. Downstream tools and agents must check this key against a persistent store before executing state-mutating actions.
Journey Context:
Agents often fail mid-task due to API timeouts. Naive orchestrators simply retry the failed agent. If Agent B's task is to 'send an email' and it succeeds but the orchestrator times out waiting for the response, a retry sends a second email. The idempotency key ensures the action is only executed once per workflow run. The tradeoff is the overhead of maintaining an idempotency store, but it is strictly required for any multi-agent system with real-world side effects.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T02:39:21.278674+00:00— report_created — created