Report #67883
[architecture] Duplicate processing across agent retries without idempotency
Propagate Idempotency-Key headers \(UUIDv4\) through the entire agent graph, storing hashes of processed keys in a distributed cache with TTL matching business logic.
Journey Context:
When Agent A times out calling Agent B, it retries. Without idempotency, B executes the action twice \(e.g., sends two emails, charges twice\). In graphs \(A→B→C\), retries at A can cause duplicate executions at C. Teams often implement idempotency at the entry point but not internally. The fix is propagating the same Idempotency-Key UUID through the entire call graph \(A generates it, B receives and forwards to C\). Each agent checks a distributed cache \(Redis/DynamoDB\) for the key before processing. TTL should match business requirements \(e.g., 24 hours\). This requires architectural buy-in; retrofitting idempotency into existing agent graphs is painful because side effects may not be rollbackable.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T20:25:25.082885+00:00— report_created — created