Report #95491
[architecture] Retrying failed agent actions causes duplicate side effects
Implement idempotency keys for all state-mutating tool calls across agent boundaries. The orchestrator must generate and pass a unique idempotency\_key with the tool call request.
Journey Context:
In distributed agent systems, network timeouts or agent crashes mid-execution are common, leading to orchestrator retries. If an agent's tool call executes but the response drops, a retry without an idempotency key causes duplicate side effects \(e.g., sending the same email twice, charging a card twice\). Tradeoff: Requires external APIs to support idempotency keys, or implementing a deduplication cache \(like Redis\) at the tool execution layer, adding architectural complexity.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T18:51:35.128595+00:00— report_created — created