{
  "code": null,
  "collection": "architecture",
  "href": "https://banes-lab.com/ontology#architecture-declared-subject",
  "id": "declared-subject",
  "kind": "constraint",
  "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": "Declared Subject",
  "ref": "architecture:declared-subject",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-coordination-record",
          "json": "https://banes-lab.com/json/records/lexicon/coordination-record",
          "label": "Coordination Record",
          "markdown": "https://banes-lab.com/records/lexicon/coordination-record.md",
          "ref": "lexicon:coordination-record"
        }
      ],
      "relation": "requires"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-stable-identity",
          "json": "https://banes-lab.com/json/records/lexicon/stable-identity",
          "label": "Stable Identity",
          "markdown": "https://banes-lab.com/records/lexicon/stable-identity.md",
          "ref": "lexicon:stable-identity"
        }
      ],
      "relation": "reinforces"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-rederivation-detection",
          "json": "https://banes-lab.com/json/records/lexicon/rederivation-detection",
          "label": "Rederivation Detection",
          "markdown": "https://banes-lab.com/records/lexicon/rederivation-detection.md",
          "ref": "lexicon:rederivation-detection"
        }
      ],
      "relation": "enables"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-location-derived-identity",
          "json": "https://banes-lab.com/json/records/lexicon/location-derived-identity",
          "label": "Location-Derived Identity",
          "markdown": "https://banes-lab.com/records/lexicon/location-derived-identity.md",
          "ref": "lexicon:location-derived-identity"
        }
      ],
      "relation": "violated-by"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-allocate-identity-once",
          "json": "https://banes-lab.com/json/records/lexicon/allocate-identity-once",
          "label": "Allocate Identity Once",
          "markdown": "https://banes-lab.com/records/lexicon/allocate-identity-once.md",
          "ref": "lexicon:allocate-identity-once"
        },
        {
          "href": "https://banes-lab.com/ontology/lexicon#lexicon-declare-the-subject-beside-the-id",
          "json": "https://banes-lab.com/json/records/lexicon/declare-the-subject-beside-the-id",
          "label": "Declare the Subject Beside the Id",
          "markdown": "https://banes-lab.com/records/lexicon/declare-the-subject-beside-the-id.md",
          "ref": "lexicon:declare-the-subject-beside-the-id"
        }
      ],
      "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-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/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/lexicon#lexicon-category-domain-architecture",
          "json": "https://banes-lab.com/json/ontology/lexicon/lexicon-category-domain-architecture",
          "label": "Domain Architecture",
          "markdown": "https://banes-lab.com/ontology/lexicon/lexicon-category-domain-architecture.md",
          "ref": "chapter:/ontology/lexicon#lexicon-category-domain-architecture"
        },
        {
          "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 rule or precondition that a record carries an allocated id and a declared subject key as two fields, so a moved surface keeps the id, a renamed subject keeps the key, and two records sharing a key are a finding.",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/ontology#architecture-write-barrier",
      "json": "https://banes-lab.com/json/records/architecture/write-barrier",
      "label": "Write Barrier",
      "markdown": "https://banes-lab.com/records/architecture/write-barrier.md",
      "ref": "architecture:write-barrier"
    },
    "previous": {
      "href": "https://banes-lab.com/ontology#architecture-derived-record-state",
      "json": "https://banes-lab.com/json/records/architecture/derived-record-state",
      "label": "Derived Record State",
      "markdown": "https://banes-lab.com/records/architecture/derived-record-state.md",
      "ref": "architecture:derived-record-state"
    }
  },
  "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": "id = <surface-key>-<ordinal>, allocated once → subject = <declared> → a second record declaring the same subject is reported",
    "before": "record id = <surface-path>-<ordinal> → the surface moves → every id changes and every edge citing one dangles",
    "lang": "flow",
    "medium": "composite"
  },
  "formedBy": null,
  "scope": [
    "record",
    "identity"
  ],
  "severity": "mandatory"
}
