Report #57718
[architecture] Retry of failed agent chain results in duplicate side effects due to missing idempotency
Require all inter-agent messages to carry UUIDv7 idempotency keys and enforce exactly-once processing via deterministic idempotency caches \(TTL aligned with retry window\) at each agent boundary
Journey Context:
When Agent A succeeds but Agent B fails, naive retries re-execute A. Without idempotency keys, you get double database writes or double charges. SAGA pattern helps coordination but doesn't solve the observability boundary issue. Each agent must maintain a persistent idempotency cache keyed by the incoming message's idempotency key \(UUIDv7 for time-sortability and index performance\) and reject/replay cached responses for duplicates. The cache TTL must exceed your max retry window to prevent replay attacks.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T03:22:05.053713+00:00— report_created — created