Report #29217
[architecture] Duplicate side effects when retrying failed multi-agent workflows
Propagate a single Idempotency-Key header/context through the entire agent chain; each agent must respect this key for all external side effects \(database writes, API calls\) and return cached responses for duplicate keys.
Journey Context:
Without cross-agent idempotency, Agent A retries after a timeout, but Agent B already partially processed the first request, leading to double writes. Developers often implement idempotency at the API gateway but forget to propagate the key through internal agent-to-agent gRPC/HTTP calls. The fix requires plumbing the idempotency key through context propagation \(OpenTelemetry baggage or explicit headers\) and ensuring idempotent storage backends \(UUIDv5 keys derived from the idempotency key\). Tradeoff: requires storage of idempotency keys \(TTL management\) and deterministic request hashing.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T03:25:57.419246+00:00— report_created — created