{
  "code": null,
  "collection": "architecture",
  "href": "https://banes-lab.com/ontology#architecture-rollback",
  "id": "rollback",
  "kind": "mechanism",
  "layer": {
    "href": "https://banes-lab.com/ontology/schema#layer-correctness-core",
    "json": "https://banes-lab.com/json/records/layer/correctness-core",
    "label": "Correctness Core",
    "markdown": "https://banes-lab.com/records/layer/correctness-core.md",
    "ref": "layer:correctness-core"
  },
  "name": "Rollback",
  "ref": "architecture:rollback",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-versioned-artifact",
          "json": "https://banes-lab.com/json/records/lexicon/versioned-artifact",
          "label": "Versioned Artifact",
          "markdown": "https://banes-lab.com/records/lexicon/versioned-artifact.md",
          "ref": "lexicon:versioned-artifact"
        },
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-reversible-deployment",
          "json": "https://banes-lab.com/json/records/lexicon/reversible-deployment",
          "label": "Reversible Deployment",
          "markdown": "https://banes-lab.com/records/lexicon/reversible-deployment.md",
          "ref": "lexicon:reversible-deployment"
        }
      ],
      "relation": "requires"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-resilience",
          "json": "https://banes-lab.com/json/records/architecture/resilience",
          "label": "Resilience",
          "markdown": "https://banes-lab.com/records/architecture/resilience.md",
          "ref": "architecture:resilience"
        },
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-recovery",
          "json": "https://banes-lab.com/json/records/lexicon/recovery",
          "label": "Recovery",
          "markdown": "https://banes-lab.com/records/lexicon/recovery.md",
          "ref": "lexicon:recovery"
        }
      ],
      "relation": "reinforces"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-fast-failure-recovery",
          "json": "https://banes-lab.com/json/records/lexicon/fast-failure-recovery",
          "label": "Fast Failure Recovery",
          "markdown": "https://banes-lab.com/records/lexicon/fast-failure-recovery.md",
          "ref": "lexicon:fast-failure-recovery"
        }
      ],
      "relation": "enables"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-irreversible-deployment",
          "json": "https://banes-lab.com/json/records/lexicon/irreversible-deployment",
          "label": "Irreversible Deployment",
          "markdown": "https://banes-lab.com/records/lexicon/irreversible-deployment.md",
          "ref": "lexicon:irreversible-deployment"
        },
        {
          "href": "https://banes-lab.com/ontology#architecture-irreversible-migration",
          "json": "https://banes-lab.com/json/records/architecture/irreversible-migration",
          "label": "Irreversible Migration",
          "markdown": "https://banes-lab.com/records/architecture/irreversible-migration.md",
          "ref": "architecture:irreversible-migration"
        }
      ],
      "relation": "conflicts-with"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-data-migration-compatibility",
          "json": "https://banes-lab.com/json/records/lexicon/data-migration-compatibility",
          "label": "Data Migration Compatibility",
          "markdown": "https://banes-lab.com/records/lexicon/data-migration-compatibility.md",
          "ref": "lexicon:data-migration-compatibility"
        }
      ],
      "relation": "tensions-with"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/schema#tension-data-migration-compatibility-rollback",
          "json": "https://banes-lab.com/json/records/tension/data-migration-compatibility-rollback",
          "label": "Rollback / Data Migration Compatibility",
          "markdown": "https://banes-lab.com/records/tension/data-migration-compatibility-rollback.md",
          "ref": "tension:data-migration-compatibility-rollback"
        }
      ],
      "relation": "tensions"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-irreversible-deployment",
          "json": "https://banes-lab.com/json/records/lexicon/irreversible-deployment",
          "label": "Irreversible Deployment",
          "markdown": "https://banes-lab.com/records/lexicon/irreversible-deployment.md",
          "ref": "lexicon:irreversible-deployment"
        }
      ],
      "relation": "violated-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-rollback-plan",
          "json": "https://banes-lab.com/json/records/lexicon/rollback-plan",
          "label": "Rollback Plan",
          "markdown": "https://banes-lab.com/records/lexicon/rollback-plan.md",
          "ref": "lexicon:rollback-plan"
        },
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-expand-contract-migration",
          "json": "https://banes-lab.com/json/records/lexicon/expand-contract-migration",
          "label": "Expand-Contract Migration",
          "markdown": "https://banes-lab.com/records/lexicon/expand-contract-migration.md",
          "ref": "lexicon:expand-contract-migration"
        }
      ],
      "relation": "refactored-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/schema#vocabulary-severity-mandatory",
          "json": "https://banes-lab.com/json/records/vocabulary/severity-mandatory",
          "label": "mandatory",
          "markdown": "https://banes-lab.com/records/vocabulary/severity-mandatory.md",
          "ref": "vocabulary:severity-mandatory"
        }
      ],
      "relation": "severity"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-category-self-healing-recovery-deployment-safety",
          "json": "https://banes-lab.com/json/records/architecture-category/self-healing-recovery-deployment-safety",
          "label": "Self-Healing / Recovery / Deployment Safety",
          "markdown": "https://banes-lab.com/records/architecture-category/self-healing-recovery-deployment-safety.md",
          "ref": "architecture-category:self-healing-recovery-deployment-safety"
        }
      ],
      "relation": "category"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-blue-green-deployment",
          "json": "https://banes-lab.com/json/records/architecture/blue-green-deployment",
          "label": "Blue-Green Deployment",
          "markdown": "https://banes-lab.com/records/architecture/blue-green-deployment.md",
          "ref": "architecture:blue-green-deployment"
        }
      ],
      "relation": "reinforced-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/disciplined-methodology/ship#the-deploy-is-a-file-operation",
          "json": "https://banes-lab.com/json/disciplined-methodology/ship/the-deploy-is-a-file-operation",
          "label": "The deploy is a file operation",
          "markdown": "https://banes-lab.com/disciplined-methodology/ship/the-deploy-is-a-file-operation.md",
          "ref": "chapter:/disciplined-methodology/ship#the-deploy-is-a-file-operation"
        },
        {
          "href": "https://banes-lab.com/software-architecture/principles#computation-and-resource",
          "json": "https://banes-lab.com/json/software-architecture/principles/computation-and-resource",
          "label": "Computation and resource",
          "markdown": "https://banes-lab.com/software-architecture/principles/computation-and-resource.md",
          "ref": "chapter:/software-architecture/principles#computation-and-resource"
        },
        {
          "href": "https://banes-lab.com/ontology#architecture-category-anti-patterns",
          "json": "https://banes-lab.com/json/ontology/principles/architecture-category-anti-patterns",
          "label": "Anti-patterns",
          "markdown": "https://banes-lab.com/ontology/principles/architecture-category-anti-patterns.md",
          "ref": "chapter:/ontology#architecture-category-anti-patterns"
        },
        {
          "href": "https://banes-lab.com/ontology#architecture-category-error-handling-resilience",
          "json": "https://banes-lab.com/json/ontology/principles/architecture-category-error-handling-resilience",
          "label": "Error Handling / Resilience",
          "markdown": "https://banes-lab.com/ontology/principles/architecture-category-error-handling-resilience.md",
          "ref": "chapter:/ontology#architecture-category-error-handling-resilience"
        },
        {
          "href": "https://banes-lab.com/ontology#architecture-category-self-healing-recovery-deployment-safety",
          "json": "https://banes-lab.com/json/ontology/principles/architecture-category-self-healing-recovery-deployment-safety",
          "label": "Self-Healing / Recovery / Deployment Safety",
          "markdown": "https://banes-lab.com/ontology/principles/architecture-category-self-healing-recovery-deployment-safety.md",
          "ref": "chapter:/ontology#architecture-category-self-healing-recovery-deployment-safety"
        },
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-category-core-vocabulary",
          "json": "https://banes-lab.com/json/ontology/lexicon/lexicon-category-core-vocabulary",
          "label": "Core Vocabulary",
          "markdown": "https://banes-lab.com/ontology/lexicon/lexicon-category-core-vocabulary.md",
          "ref": "chapter:/ontology/lexicon#lexicon-category-core-vocabulary"
        },
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-category-self-healing-recovery-deployment-safety",
          "json": "https://banes-lab.com/json/ontology/lexicon/lexicon-category-self-healing-recovery-deployment-safety",
          "label": "Self-Healing / Recovery / Deployment Safety",
          "markdown": "https://banes-lab.com/ontology/lexicon/lexicon-category-self-healing-recovery-deployment-safety.md",
          "ref": "chapter:/ontology/lexicon#lexicon-category-self-healing-recovery-deployment-safety"
        },
        {
          "href": "https://banes-lab.com/ontology/schema#the-vocabulary-severity",
          "json": "https://banes-lab.com/json/ontology/schema/the-vocabulary-severity",
          "label": "Severity levels",
          "markdown": "https://banes-lab.com/ontology/schema/the-vocabulary-severity.md",
          "ref": "chapter:/ontology/schema#the-vocabulary-severity"
        },
        {
          "href": "https://banes-lab.com/ontology/schema#the-resolutions",
          "json": "https://banes-lab.com/json/ontology/schema/the-resolutions",
          "label": "The resolutions",
          "markdown": "https://banes-lab.com/ontology/schema/the-resolutions.md",
          "ref": "chapter:/ontology/schema#the-resolutions"
        }
      ],
      "relation": "linked-from"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/deploy#file-deploy-core-steps-recovery-step-ts",
          "json": "https://banes-lab.com/json/source/deploy/core/steps/recovery.step.ts",
          "label": "restoreManaged",
          "markdown": "https://banes-lab.com/source/deploy/core/steps/recovery.step.ts.md",
          "ref": "anatomy:file-deploy-core-steps-recovery-step-ts"
        }
      ],
      "relation": "evidence"
    }
  ],
  "summary": "A mechanism that restores the previous versioned release when a deployment fails its verification.",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/ontology#architecture-blue-green-deployment",
      "json": "https://banes-lab.com/json/records/architecture/blue-green-deployment",
      "label": "Blue-Green Deployment",
      "markdown": "https://banes-lab.com/records/architecture/blue-green-deployment.md",
      "ref": "architecture:blue-green-deployment"
    },
    "previous": {
      "href": "https://banes-lab.com/ontology#architecture-auto-remediation",
      "json": "https://banes-lab.com/json/records/architecture/auto-remediation",
      "label": "Auto-Remediation",
      "markdown": "https://banes-lab.com/records/architecture/auto-remediation.md",
      "ref": "architecture:auto-remediation"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/records/architecture",
    "label": "Architecture principles",
    "markdown": "https://banes-lab.com/api/records/architecture.md",
    "ref": "api:records/architecture"
  },
  "aliases": [],
  "exemplar": {
    "after": "const release = await deploy(fooVersion);\nif (!(await release.verify())) await release.rollback(previousFooVersion);",
    "before": "deploy(fooVersion);",
    "lang": "ts",
    "medium": "code"
  },
  "formedBy": null,
  "scope": [
    "deployment",
    "release"
  ],
  "severity": "mandatory"
}
