Report #82633
[architecture] Idempotency key collisions during agent retry storms
Generate UUIDv7 keys prefixed with agent identity, store in Redis with 24-48 hour TTL, and require idempotency key validation on all state-changing inter-agent calls; reject requests with reused keys but different payloads.
Journey Context:
Without idempotency, network timeouts cause agents to retry POST operations, creating duplicate orders or records. UUIDv4 lacks temporal ordering, making debugging difficult. UUIDv7 provides roughly sequential keys \(time-ordered\) while maintaining uniqueness. The agent-specific prefix prevents collisions in multi-tenant setups. Alternatives like database unique constraints are too late \(side effects already occurred\). Tradeoff: requires Redis/high-availability cache; 48h TTL balances storage costs with distributed transaction windows.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T21:17:30.255835+00:00— report_created — created