Report #51072
[architecture] Retrying failed agent handoffs causes duplicate side effects \(non-idempotent actions\)
Assign a deterministic idempotency key at the orchestration layer and pass it in the handoff context. Downstream agents and tools must check this key before executing state-mutating actions.
Journey Context:
In monolithic apps, idempotency is standard. In agent swarms, developers forget that an agent handoff is a distributed system boundary. If the orchestrator times out waiting for Agent B, it doesn't know if Agent B acted. Passing an idempotency key ensures that a retry is safe. Tradeoff: Requires stateful tracking of keys at the tool or database layer, adding architectural complexity.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T16:12:48.815342+00:00— report_created — created