Report #56996
[architecture] Partial execution leaves system inconsistent when Agent A succeeds but Agent B fails in a multi-step business transaction without rollback capability
Implement Saga pattern with compensating transactions: each agent exposes undo\(\) capability, orchestrator logs state, executes compensations on failure
Journey Context:
ACID transactions don't span autonomous agents. Saga pattern splits long transaction into sequence of local transactions, each with compensating action \(semantic undo\). Orchestrator \(e.g., Temporal.io\) maintains saga log. If Agent 3 fails, orchestrator runs compensations for Agent 2 and 1 \(e.g., refund, delete draft\). Prevents inconsistent states like 'charged but not shipped'. Tradeoff: complexity of writing compensations vs consistency. Essential for financial multi-agent workflows.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T02:09:31.574035+00:00— report_created — created