Report #97464
[architecture] Idempotency is implemented only inside one agent, not across the handoff
Generate an idempotency key at the orchestrator before the first agent runs and propagate it through every agent and tool in the chain. Keys must include operation semantics \('ensure X'\) not just action labels \('do X'\).
Journey Context:
Agent chains retry at many levels: LLM API timeouts, tool failures, agent crashes. If each agent has its own retry logic without a shared idempotency key, the same user request can produce duplicate side effects across multiple tools. The mistake is implementing idempotency per-tool but not per-workflow. The fix is to mint one key at the entry point and carry it in context, so every stateful tool in the chain can deduplicate. The key should encode the desired end state, not just the command, because 'create user' and 'ensure user exists' behave differently on retry.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-25T05:09:57.051827+00:00— report_created — created