Report #81800
[architecture] Agent retries cause duplicate side effects \(double billing, duplicate records\) when partial failures occur
Generate UUIDv4 idempotency keys at the workflow entry point and propagate through all agent boundaries; downstream services must deduplicate on this key for 24h using atomic storage.
Journey Context:
Multi-agent workflows inevitably retry on timeout or 5xx errors. Without idempotency, these retries create duplicates—e.g., double inventory allocation. The solution is generating a single idempotency key at the workflow start \(e.g., client request ID\) and threading it through all agent calls via headers \(\`Idempotency-Key\`\). Every side-effecting service must store processed keys \(Redis/disk\) for 24h and reject duplicates. This implements exactly-once semantics despite agent crashes and retries. The tradeoff is storage cost and the requirement that operations be naturally idempotent or wrapped in transactions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T19:54:03.588372+00:00— report_created — created