# Saga Compensation

> For long-running distributed workflows, split work into steps, persist progress, define compensating actions, and recover from partial failure through forward or backward correction.

Record: `algorithms:saga-compensation`
Kind: algorithm
Canonical: https://banes-lab.com/ontology/algorithms#algorithms-saga-compensation
Closure: https://banes-lab.com/json/records/algorithms/saga-compensation/closure

Listed in [Algorithm contracts](https://banes-lab.com/api/records/algorithms.md), after [Event Messaging](https://banes-lab.com/records/algorithms/event-messaging.md) and before [Transaction Boundary](https://banes-lab.com/records/algorithms/transaction-boundary.md).

## Domain

- [Architecture](https://banes-lab.com/records/algorithms-domain/architecture.md)

## Tier

- [leaf](https://banes-lab.com/records/vocabulary/domain-tier-leaf.md)

## Math type

- [Computation](https://banes-lab.com/records/reasoning/math-type-computation.md)

## Force

- [Event messaging](https://banes-lab.com/records/force/event-messaging.md)

## Linked from

- [The mathematics](https://banes-lab.com/ontology/reasoning/the-mathematics.md)
- [Domain tiers](https://banes-lab.com/ontology/schema/the-vocabulary-domain-tier.md)
- [The forces](https://banes-lab.com/ontology/schema/the-forces.md)
