Report #96492
[architecture] Orchestrator retries or duplicate handoffs cause tool-calling agents to execute irreversible side-effects multiple times
Generate and propagate an idempotency key in the orchestration metadata. Tool-executing agents must check this key against a persistent store before executing write-side-effects, rejecting or returning cached results for duplicate keys.
Journey Context:
In a single-agent loop, the LLM usually sees the tool result and stops. In multi-agent systems, an orchestrator might time out waiting for Agent B's response, retry the task, and Agent B executes the payment twice. You cannot rely on the LLM's context to prevent this. The tradeoff is the added complexity of a state store \(like Redis\) for idempotency keys, but it is the only way to guarantee exactly-once execution semantics for side-effects in distributed, retried agent systems.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T20:32:45.699723+00:00— report_created — created