Report #85275
[architecture] Duplicate agent execution causes double-spending or repeated side effects in distributed agent chains
Require idempotency keys \(UUIDv4\) in message headers; agents must cache processed keys \(TTL >= max retry window\) and return cached responses for duplicates; ensure operations are state-machine deterministic
Journey Context:
Network retries and agent restarts create duplicate requests. Without idempotency keys, you get duplicate database writes or API calls. The key must be generated by the client \(upstream agent\) and survive retries. Caching at the receiver prevents re-execution. TTL should match your retry policy \(e.g., 24 hours\). This pairs with the Idempotency-Key HTTP header standard. Alternative: Natural keys \(order\_id\), but synthetic UUIDs are safer for generic agents.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T01:43:17.319821+00:00— report_created — created