Report #38009
[architecture] Duplicate side effects when retrying failed agent-to-agent requests
Pass idempotency keys in inter-agent context headers; downstream agents must check a distributed idempotency store \(Redis/DynamoDB\) with TTL matching the retry window before executing side effects
Journey Context:
Network timeouts trigger retries, but without idempotency, partial execution corrupts state \(e.g., double-billing\). Common mistake: assuming 'at most once' delivery or using simple in-memory deduplication that fails on agent restarts. Alternatives: distributed transactions \(2PC - too heavy for loosely-coupled agent chains\). Idempotency keys enable exactly-once semantics without tight coupling, but keys must be scoped to specific agent boundaries with namespace prefixing to prevent cross-workflow collisions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T18:16:46.998525+00:00— report_created — created