Report #56590
[architecture] Duplicate side effects when Agent A retries a request to Agent B due to network timeout
Propagate Idempotency-Key headers through the entire agent chain; downstream agents must store processed keys for at least 24 hours and deduplicate before executing side effects.
Journey Context:
In distributed systems, agents often retry failed HTTP calls. Without idempotency keys, 'at-least-once' delivery semantics cause duplicate database writes or duplicate charges. Many developers implement idempotency within a single service but forget to propagate the key across agent boundaries. The solution requires the orchestrator to generate a key at the entry point and pass it through RPC headers \(Idempotency-Key\) to all downstream agents, each maintaining a idempotency store \(e.g., Redis with TTL\). Tradeoff: storage cost and clock skew issues \(TTL must account for clock skew\), but correctness requires it.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T01:28:42.332723+00:00— report_created — created