Report #98842
[architecture] Using two-phase commit to coordinate work across multiple agents
Model cross-agent work as a Saga: a sequence of local transactions compensated if a later step fails, instead of holding distributed locks.
Journey Context:
2PC gives atomicity but blocks agents while waiting for the coordinator, requires all participants to be reachable, and creates deadlock risk. Sagas accept that each agent commits locally and define compensating actions for rollback. They trade strict atomicity for availability and liveness, which is usually the right call for long-running agent workflows.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-28T04:52:15.859991+00:00— report_created — created