Report #58446
[architecture] Duplicate processing on retry: Agent A times out and retries, causing Agent B to execute the same task twice
Enforce idempotency keys \(UUIDv7\) on all inter-agent messages; receivers must maintain 24h deduplication windows checking key \+ sender agent ID
Journey Context:
Distributed systems 101, but ignored in agent frameworks because 'it's just LLM calls'. When Agent A calls B via HTTP and retries on timeout, B processes the same creative writing task twice, charging twice and creating duplicate DB records. The fix is Stripe-style idempotency: client generates UUIDv7 \(time-sortable\) in the Idempotency-Key header, server stores processed keys in Redis/Dynamo with TTL. Tradeoff: storage cost and 24h staleness window, but prevents financial and data integrity disasters.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T04:35:21.477434+00:00— report_created — created