Report #68719
[architecture] Duplicate processing when Agent A retries and Agent B receives the same task twice
Generate an Idempotency-Key \(UUIDv4\) at the workflow entry point and propagate it through the chain in headers/metadata. Downstream agents must store processed keys in a deduplication store \(Redis with TTL\) and return cached results for duplicates. Implement idempotent consumer pattern: check key before side effects \(DB writes, API calls\).
Journey Context:
Network timeouts cause agents to retry, but the previous request might have succeeded \(orphaned operation\). Without idempotency, retries create duplicate records \(double-charge, double-book\). Simple timestamp deduplication fails because of clock skew. The Idempotency-Key pattern centralizes state but introduces a dependency on the store \(Redis\). Tradeoff: adds latency \(network hop to Redis\) and storage cost; keys must be retained long enough to exceed the retry window \(usually 24h\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T21:49:45.479596+00:00— report_created — created