{
  "code": null,
  "collection": "architecture",
  "href": "https://banes-lab.com/ontology#architecture-write-barrier",
  "id": "write-barrier",
  "kind": "mechanism",
  "layer": {
    "href": "https://banes-lab.com/ontology/schema#layer-execution-core",
    "json": "https://banes-lab.com/json/records/layer/execution-core",
    "label": "Execution Core",
    "markdown": "https://banes-lab.com/records/layer/execution-core.md",
    "ref": "layer:execution-core"
  },
  "name": "Write Barrier",
  "ref": "architecture:write-barrier",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-coordination-surface",
          "json": "https://banes-lab.com/json/records/lexicon/coordination-surface",
          "label": "Coordination Surface",
          "markdown": "https://banes-lab.com/records/lexicon/coordination-surface.md",
          "ref": "lexicon:coordination-surface"
        }
      ],
      "relation": "requires"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-optimistic-locking",
          "json": "https://banes-lab.com/json/records/architecture/optimistic-locking",
          "label": "Optimistic Locking",
          "markdown": "https://banes-lab.com/records/architecture/optimistic-locking.md",
          "ref": "architecture:optimistic-locking"
        }
      ],
      "relation": "reinforces"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-single-writer-coordination",
          "json": "https://banes-lab.com/json/records/lexicon/single-writer-coordination",
          "label": "Single-Writer Coordination",
          "markdown": "https://banes-lab.com/records/lexicon/single-writer-coordination.md",
          "ref": "lexicon:single-writer-coordination"
        }
      ],
      "relation": "enables"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-lost-update",
          "json": "https://banes-lab.com/json/records/architecture/lost-update",
          "label": "Lost Update",
          "markdown": "https://banes-lab.com/records/architecture/lost-update.md",
          "ref": "architecture:lost-update"
        }
      ],
      "relation": "conflicts-with"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-whole-surface-rewrite",
          "json": "https://banes-lab.com/json/records/lexicon/whole-surface-rewrite",
          "label": "Whole-Surface Rewrite",
          "markdown": "https://banes-lab.com/records/lexicon/whole-surface-rewrite.md",
          "ref": "lexicon:whole-surface-rewrite"
        }
      ],
      "relation": "violated-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-hold-the-barrier-for-planned-writes",
          "json": "https://banes-lab.com/json/records/lexicon/hold-the-barrier-for-planned-writes",
          "label": "Hold the Barrier for Planned Writes",
          "markdown": "https://banes-lab.com/records/lexicon/hold-the-barrier-for-planned-writes.md",
          "ref": "lexicon:hold-the-barrier-for-planned-writes"
        },
        {
          "href": "https://banes-lab.com/ontology#architecture-optimistic-locking",
          "json": "https://banes-lab.com/json/records/architecture/optimistic-locking",
          "label": "Optimistic Locking",
          "markdown": "https://banes-lab.com/records/architecture/optimistic-locking.md",
          "ref": "architecture:optimistic-locking"
        }
      ],
      "relation": "refactored-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/grammar#pag-production-refusal-line",
          "json": "https://banes-lab.com/json/records/pag/production-refusal-line",
          "label": "refusal_line",
          "markdown": "https://banes-lab.com/records/pag/production-refusal-line.md",
          "ref": "pag:production-refusal-line"
        }
      ],
      "relation": "expressed-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/schema#vocabulary-severity-contextual",
          "json": "https://banes-lab.com/json/records/vocabulary/severity-contextual",
          "label": "contextual",
          "markdown": "https://banes-lab.com/records/vocabulary/severity-contextual.md",
          "ref": "vocabulary:severity-contextual"
        }
      ],
      "relation": "severity"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology#architecture-category-coordination-surfaces",
          "json": "https://banes-lab.com/json/records/architecture-category/coordination-surfaces",
          "label": "Coordination Surfaces",
          "markdown": "https://banes-lab.com/records/architecture-category/coordination-surfaces.md",
          "ref": "architecture-category:coordination-surfaces"
        }
      ],
      "relation": "category"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/disciplined-methodology/verify#verify-the-verifier",
          "json": "https://banes-lab.com/json/disciplined-methodology/verify/verify-the-verifier",
          "label": "Verify the verifier",
          "markdown": "https://banes-lab.com/disciplined-methodology/verify/verify-the-verifier.md",
          "ref": "chapter:/disciplined-methodology/verify#verify-the-verifier"
        },
        {
          "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-transactions-state-concurrency",
          "json": "https://banes-lab.com/json/ontology/principles/architecture-category-transactions-state-concurrency",
          "label": "Transactions / State / Concurrency",
          "markdown": "https://banes-lab.com/ontology/principles/architecture-category-transactions-state-concurrency.md",
          "ref": "chapter:/ontology#architecture-category-transactions-state-concurrency"
        },
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-category-control-coordination-centralization",
          "json": "https://banes-lab.com/json/ontology/lexicon/lexicon-category-control-coordination-centralization",
          "label": "Control / Coordination / Centralization",
          "markdown": "https://banes-lab.com/ontology/lexicon/lexicon-category-control-coordination-centralization.md",
          "ref": "chapter:/ontology/lexicon#lexicon-category-control-coordination-centralization"
        },
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-category-coordination-surfaces",
          "json": "https://banes-lab.com/json/ontology/lexicon/lexicon-category-coordination-surfaces",
          "label": "Coordination Surfaces",
          "markdown": "https://banes-lab.com/ontology/lexicon/lexicon-category-coordination-surfaces.md",
          "ref": "chapter:/ontology/lexicon#lexicon-category-coordination-surfaces"
        },
        {
          "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"
        }
      ],
      "relation": "linked-from"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/coordination#file-coordination-models-coordination-model-md",
          "json": "https://banes-lab.com/json/source/coordination/models/coordination.model.md",
          "label": "models/coordination.model.md",
          "markdown": "https://banes-lab.com/source/coordination/models/coordination.model.md.md",
          "ref": "anatomy:file-coordination-models-coordination-model-md"
        }
      ],
      "relation": "evidence"
    }
  ],
  "summary": "A mechanism that lets a planned exclusive write to a shared surface proceed only once every peer is observed parked, beside a compare-and-swap that covers every other write.",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/ontology#architecture-operand-free-outcome-surface",
      "json": "https://banes-lab.com/json/records/architecture/operand-free-outcome-surface",
      "label": "Operand-Free Outcome Surface",
      "markdown": "https://banes-lab.com/records/architecture/operand-free-outcome-surface.md",
      "ref": "architecture:operand-free-outcome-surface"
    },
    "previous": {
      "href": "https://banes-lab.com/ontology#architecture-declared-subject",
      "json": "https://banes-lab.com/json/records/architecture/declared-subject",
      "label": "Declared Subject",
      "markdown": "https://banes-lab.com/records/architecture/declared-subject.md",
      "ref": "architecture:declared-subject"
    }
  },
  "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": "planned rewrite → wait until every peer is parked → write → any other write: re-read, compare its own span, refuse with the diff on an overlap",
    "before": "a tool rewrites the board whole → a peer's record written a moment earlier is gone → every check passes",
    "lang": "flow",
    "medium": "composite"
  },
  "formedBy": null,
  "scope": [
    "surface",
    "concurrency"
  ],
  "severity": "contextual"
}
