Report #45175
[architecture] Orchestrator retries on failed agent steps cause duplicate side effects \(e.g., duplicate emails or payments\)
Assign deterministic task IDs and enforce idempotency keys for all state-mutating tool calls executed by agents, tracking execution state in a shared ledger.
Journey Context:
Agents fail mid-step \(e.g., network timeout after executing a tool but before returning\). If the orchestrator retries the agent, the agent might re-execute the tool call it already made. Idempotency keys at the tool level prevent double-execution. Tradeoff: requires stateful tool execution and careful tracking of the agent's internal state, which complicates the agent's memory, but is the only way to guarantee exactly-once execution semantics in distributed systems.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T06:17:36.594910+00:00— report_created — created