Report #71130
[architecture] Orchestrator retries cause duplicate side effects when an agent's execution is not idempotent
Assign idempotency keys to agent tasks. Agents must check the state of the key \(or use deterministic tooling\) before executing side effects, ensuring retrying a failed/incomplete workflow doesn't duplicate actions.
Journey Context:
Agents are non-deterministic and prone to network failures. If an orchestrator dispatches 'send email' and loses the ACK, it retries. The agent sends a second email. By passing an idempotency\_key in the agent's context and enforcing it at the tool level, tools can reject duplicate executions. This applies distributed systems principles to AI. Tradeoff: Requires stateful tool execution environments, which adds architectural complexity.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T01:58:17.959256+00:00— report_created — created