Report #76703
[architecture] Duplicate agent runs create inconsistent state or double-charges
Require idempotency keys \(UUID v4\) on all inter-agent messages; implement exactly-once processing via deduplication tables \(TTL 24h\) at each agent ingress; use idempotent consumer pattern with external state stores
Journey Context:
Network retries and orchestrator replays are inevitable. Without idempotency keys, Agent B cannot distinguish 'new request' from 'retry of old request.' The dedup table must be external to the agent process \(crash-safe\). TTL prevents unbounded growth. Tradeoff: external dependency adds latency \(~5-10ms\), but 'at-least-once' delivery without idempotency leads to financial/operational disasters in payment or inventory agents.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T11:20:04.021834+00:00— report_created — created