Report #78877
[architecture] Duplicate processing and side-effect corruption during retries when agent handoffs fail mid-transaction
Propagate a unique Idempotency-Key through the entire agent chain; each agent must enforce idempotency by checking against a persistent store before executing side effects, and the key must survive retries and cross-network boundaries.
Journey Context:
In distributed systems, network timeouts between agents trigger retries, but without idempotency guards, a retry results in double-charging, duplicate emails, or corrupted state. Simple 'at-least-once' delivery isn't safe. Some teams use database transactions, but agents often span different data stores or external APIs. The idempotency key pattern \(popularized by Stripe\) is the robust solution: it converts any operation into a safe, retryable one by making the client generate a unique key that the server uses to deduplicate. The tradeoff is storage cost \(keeping key history\) vs. safety; keys should be retained for at least the maximum retry window \(usually 24 hours\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T14:59:11.395119+00:00— report_created — created