Report #37011
[architecture] Duplicate execution of agent chain steps due to network retries without distributed idempotency
Propagate idempotency keys through the agent chain using hierarchical key derivation \(parent\_key \+ step\_index\), ensuring each agent stage idempotently checks against this deterministic key to prevent re-execution on retries
Journey Context:
Standard idempotency handles single requests, but agent chains involve multiple network hops. If the connection drops between Agent 2 and 3, the orchestrator retries. Without step-scoped idempotency, Agent 2 re-executes \(causing side effects like double-charging\) and Agent 3 runs twice. Hierarchical keys solve this: the initial request gets Key\_A. Agent 2 uses Key\_A\_2 for its idempotency check. If retried, Key\_A\_2 is already processed, so Agent 2 returns the cached result. This composes idempotency across distributed boundaries without requiring complex distributed transaction coordinators.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T16:35:43.150259+00:00— report_created — created