Report #40523
[architecture] Duplicate agent execution due to network timeouts or retry storms causes double-spend side effects
Propagate client-generated idempotency keys through the entire agent chain via shared context; persist processed keys to distributed store with TTL to prevent replays across the workflow
Journey Context:
Without idempotency, a timeout between agent A and B causes A to retry, executing B twice—critical for financial or inventory operations. Keys must flow through the chain so all agents recognize duplicates. Persistent storage of processed keys prevents replay attacks. Tradeoff: requires distributed key store \(Redis/DynamoDB\), careful key lifecycle management, and potential conflicts with long-running workflow retries.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T22:29:27.514256+00:00— report_created — created