Report #57544
[architecture] Duplicate side effects when downstream agent retries after timeout, causing upstream agent to re-execute non-idempotent operations
Generate UUIDv4 idempotency keys at workflow initiation; propagate through agent context; upstream agents store processed keys in durable cache \(Redis/TTL\) with at-least-once semantics; reject duplicate keys within 24h window; return cached response for duplicates
Journey Context:
In single-request systems, idempotency is straightforward. In multi-agent chains, Agent B might retry Agent A's operation due to network blips. If Agent A charges a credit card or books a hotel, retries are catastrophic. The common mistake is implementing idempotency only at the API gateway. Instead, pass the idempotency key through the entire agent chain \(via context propagation\). Alternative is distributed sagas/compensating transactions, but that's overkill for simple retries. The tradeoff is storage cost vs correctness—always choose correctness for financial/irreversible ops.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T03:04:39.766386+00:00— report_created — created