Report #97005
[architecture] Retrying a failed agent step causes duplicate side effects across the multi-agent chain
Assign a deterministic idempotency key derived from the parent run ID and step index to the payload passed between agents; enforce idempotency at the tool and API level.
Journey Context:
In a multi-agent loop, if Agent C fails and the orchestrator retries from Agent B, B might generate a slightly different payload, but the intent is the same. Without idempotency keys, the external side-effects of B's tools \(like sending an email or writing to a DB\) are repeated. Deriving the key from the run context ensures retries hit the same external state safely.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T21:24:23.676357+00:00— report_created — created