Berildocs GitHub

Memory cards

A saga is a sequence with compensation

confidence: highupdated: 2026-11-25status: activeengineeringdistributedtransaction

Claim#

A distributed write has no single transaction. Each step needs a compensating action and a retry policy.

Test#

Fail a middle step. Check the compensation and the final state.

Proof#

A consistent final state after a partial failure.

Failure modes#

A compensation that is not idempotent can double-refund.