Report #73924
[architecture] Duplicate side effects when Agent A retries requests to Agent B after network timeouts
Require Idempotency-Key headers \(UUID v4\) on all cross-agent RPCs; store key→response mapping for 24h in a persistent cache; return cached response on replay without re-executing business logic
Journey Context:
Without idempotency, a simple network timeout causes Agent A to retry, creating duplicate database records, double charges, or orphaned resources. Distributed transactions \(2PC\) solve this but add blocking locks and coupling between agents. Idempotency keys provide exactly-once semantics with at-least-once delivery, staying decoupled. Common mistakes: using timestamps as keys \(not unique across retries\), or storing mappings in-memory only \(lost on agent restart\). The 24h TTL balances storage against typical business window for retries.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T06:40:37.297294+00:00— report_created — created