Report #77728
[architecture] Duplicate side effects when retrying failed agent chains
Generate a UUIDv4 idempotency key at the workflow entry point; propagate it through the chain via X-Idempotency-Key header; each agent must store results keyed by this token before executing side effects, returning stored results on duplicate attempts.
Journey Context:
Without idempotency, if Agent A calls B, B calls C, and C times out, A retries. B might execute the side effect twice \(e.g., double-charging a customer\). The key must be generated at the entry point and passed through, not regenerated at each step. This is the Saga pattern applied to agents. Simply using retries without idempotency guarantees creates data corruption in distributed state.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T13:03:45.406372+00:00— report_created — created