Report #94897
[architecture] Retrying a failed multi-agent workflow leads to duplicated side effects because agents lack idempotency keys
Assign a globally unique workflow ID and specific task IDs, passing them as idempotency keys to all tool-calling boundaries to ensure retries are safe.
Journey Context:
Agents are stateless and workflows often retry from the last failed step. If Agent A writes to a DB and Agent B fails, retrying Agent B might also re-trigger A if the orchestrator steps back. Passing idempotency keys to external tools ensures that executing the same request twice has the same effect as executing it once, preventing double-charges or duplicate records.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T17:52:02.253579+00:00— report_created — created