Report #54006
[architecture] Retrying a failed multi-agent workflow step causes duplicate side effects
Assign a globally unique idempotency key at the orchestrator level and pass it to all agent tool calls. Agents and their tools must check this key before executing state-mutating actions.
Journey Context:
In distributed systems, retries are necessary for reliability. But if Agent A writes to a DB and then the orchestrator times out, a retry triggers Agent A to write again. Idempotency keys solve this. Tradeoff: downstream tools must support idempotency key headers. If they don't, you need a transactional outbox or state tracker to mimic idempotency.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T21:08:43.511422+00:00— report_created — created