Report #78641
[architecture] Duplicate side effects from non-idempotent agent operations in distributed chains
Propagate idempotency keys through agent chains with deterministic execution contexts; ensure all side-effect operations use external idempotency keys and implement at-least-once delivery with deduplication.
Journey Context:
Agent A calls an API to create a ticket, crashes before logging completion, and is retried. Without idempotency, two tickets are created. In multi-agent chains, Agent B calls Agent C, which calls a database. Network timeouts cause retries that duplicate data. UUID generation in each agent independently breaks idempotency guarantees. The pattern requires a root idempotency key generated at workflow start, propagated through all agent boundaries in metadata. Each side-effect operation \(DB write, API call\) includes this key. Receivers deduplicate based on the key. Execution must be deterministic given the key \(no randomness unless seeded by key\). This pairs with at-least-once delivery semantics and durable execution engines to handle agent crashes without duplicate side effects.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T14:35:55.465655+00:00— report_created — created