# Rollback

> A mechanism that restores the previous versioned release when a deployment fails its verification.

Record: `architecture:rollback`
Kind: mechanism
Layer: [Correctness Core](https://banes-lab.com/records/layer/correctness-core.md)
Severity: mandatory
Scope: deployment, release
Canonical: https://banes-lab.com/ontology#architecture-rollback

Listed in [Architecture principles](https://banes-lab.com/api/records/architecture.md), after [Auto-Remediation](https://banes-lab.com/records/architecture/auto-remediation.md) and before [Blue-Green Deployment](https://banes-lab.com/records/architecture/blue-green-deployment.md).

## Repair

- Refactored by: Add Rollback Plan, Make Migration Backward-Compatible
- Detected by: no rollback path
- Violated by: deployment cannot be reverted
- Measured by: rollback success time
- Enforced by: release gates

## Requires

- [Versioned Artifact](https://banes-lab.com/records/lexicon/versioned-artifact.md)
- [Reversible Deployment](https://banes-lab.com/records/lexicon/reversible-deployment.md)

## Reinforces

- [Resilience](https://banes-lab.com/records/architecture/resilience.md)
- [Recovery](https://banes-lab.com/records/lexicon/recovery.md)

## Enables

- [Fast Failure Recovery](https://banes-lab.com/records/lexicon/fast-failure-recovery.md)

## Conflicts with

- [Irreversible Deployment](https://banes-lab.com/records/lexicon/irreversible-deployment.md)
- [Irreversible Migration](https://banes-lab.com/records/architecture/irreversible-migration.md)

## In tension with

- [Data Migration Compatibility](https://banes-lab.com/records/lexicon/data-migration-compatibility.md)

## Tensions

- [Rollback / Data Migration Compatibility](https://banes-lab.com/records/tension/data-migration-compatibility-rollback.md)

## Severity

- [mandatory](https://banes-lab.com/records/vocabulary/severity-mandatory.md)

## Category

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

## Reinforced by

- [Blue-Green Deployment](https://banes-lab.com/records/architecture/blue-green-deployment.md)

## Linked from

- [The deploy is a file operation](https://banes-lab.com/disciplined-methodology/ship/the-deploy-is-a-file-operation.md)
- [Computation and resource](https://banes-lab.com/software-architecture/principles/computation-and-resource.md)
- [Anti-patterns](https://banes-lab.com/ontology/principles/architecture-category-anti-patterns.md)
- [Error Handling / Resilience](https://banes-lab.com/ontology/principles/architecture-category-error-handling-resilience.md)
- [Self-Healing / Recovery / Deployment Safety](https://banes-lab.com/ontology/principles/architecture-category-self-healing-recovery-deployment-safety.md)
- [Core Vocabulary](https://banes-lab.com/ontology/lexicon/lexicon-category-core-vocabulary.md)
- [Self-Healing / Recovery / Deployment Safety](https://banes-lab.com/ontology/lexicon/lexicon-category-self-healing-recovery-deployment-safety.md)
- [Severity levels](https://banes-lab.com/ontology/schema/the-vocabulary-severity.md)
- [The resolutions](https://banes-lab.com/ontology/schema/the-resolutions.md)
