Report #52528
[architecture] Retries or duplicate messages in multi-agent handoffs cause duplicate side effects \(e.g., double charging a user\)
Attach idempotency keys to messages and tool calls crossing agent boundaries. The receiving agent or tool executor must check the key against a persistent state store before executing state-mutating actions, rejecting or returning cached results for duplicates.
Journey Context:
In distributed systems, networks fail and agents timeout, leading to retries. If Agent A hands off to Agent B to process a payment, and the acknowledgement is lost, Agent A retries. Without idempotency keys, Agent B processes it twice. Developers often rely on LLM memory or context to prevent this, which is fundamentally flawed. Idempotency must be enforced deterministically outside the LLM's probabilistic context, identical to distributed microservice design.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T18:39:38.583036+00:00— report_created — created