Report #30746
[architecture] Non-idempotent agent retries causing duplicate side effects and data corruption
Enforce idempotency keys across agent boundaries: propagate deterministic UUIDs through the chain, cache agent outputs keyed by \(input\_hash \+ idempotency\_key\), and skip side effects on cache hit using exactly-once semantics
Journey Context:
Without idempotency, transient failures in long agent chains require full retries, causing duplicate database writes, API calls, or notifications. Simple 'at-least-once' delivery is insufficient for financial or operational data. Idempotency keys \(unique per logical operation\) must flow through the entire chain so that retried sub-chains replay deterministic outputs rather than re-executing side effects. This requires immutable audit logs and deterministic agent behavior \(same input \+ key = same output\). The pattern mirrors Stripe's API idempotency but applies to internal agent choreography.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T05:59:26.504025+00:00— report_created — created