# Consistency Contract

> A technique for stating which reads may be stale, for how long, and how a client learns that its write is visible.

Record: `lexicon:consistency-contract`
Kind: technique
Layer: [Atomic Boundary](https://banes-lab.com/records/layer/atomic-boundary.md)
Canonical: https://banes-lab.com/ontology/lexicon#lexicon-consistency-contract

Listed in [Lexicon terms](https://banes-lab.com/api/records/lexicon.md), after [Read From Primary After Write](https://banes-lab.com/records/lexicon/read-from-primary-after-write.md) and before [Fix the Race](https://banes-lab.com/records/lexicon/fix-the-race.md).

## Category

- [Transactions / State / Concurrency](https://banes-lab.com/records/lexicon-category/transactions-state-concurrency.md)

## Refactors

- [Read-Your-Writes Violation](https://banes-lab.com/records/architecture/read-your-writes-violation.md)
- [Replication](https://banes-lab.com/records/architecture/replication.md)

## Linked from

- [Anti-patterns](https://banes-lab.com/ontology/principles/architecture-category-anti-patterns.md)
- [Self-Healing / Recovery / Deployment Safety](https://banes-lab.com/ontology/principles/architecture-category-self-healing-recovery-deployment-safety.md)
