{
  "handle": "Hierarchy",
  "data_schema": {
    "type": "object",
    "required": [
      "levels",
      "relationships"
    ],
    "properties": {
      "levels": {
        "type": "array",
        "description": "Ordered ranks (Top -> Bottom)"
      },
      "relationships": {
        "type": "object",
        "description": "Parent-Child map"
      },
      "root_id": {
        "type": "string",
        "description": "Apex node"
      }
    }
  },
  "mechanism": "The vertical ranking of {{category}}s or objects: every pair related by the ranking stands in an Upper/Lower relation. What the ranking *carries* varies by kind — a class hierarchy carries inheritance, an organisational one carries authority, a containment one carries neither — so those are implementer concerns rather than part of the ranking itself.",
  "gloss": "Vertical rank ordering with Upper/Lower relations, inheritance, and authority",
  "_meta": {
    "ring": 1,
    "tier": 1,
    "supersedes": [
      "sema:Hierarchy#mh:SHA-256:aa9bec7346dca2ce2e83a70fc352825aa78c907cd82a8306f7e6856e42ef245c",
      "sema:Hierarchy#mh:SHA-256:80394d9e6f07112954f1c2d203eaf6095df4d4569a890a9c6ca8b9c9b534ba3d"
    ],
    "path": [
      "Infrastructure",
      "Data Structures"
    ],
    "related": [
      "Localhinge#7a04"
    ]
  },
  "invariants": [
    "Acyclicity: no node is above itself, directly or transitively — a cycle leaves the ranking undefined.",
    "Antisymmetry: if A is Upper to B then B is not Upper to A."
  ],
  "sema_id": "sema:Hierarchy#mh:SHA-256:5951b6a616f97ff8ef7b78407ed0631150191253d88f00bbb2ef429cc5a8cf85",
  "sema_ref": "Hierarchy#5951",
  "sema_stub": "5951",
  "dependencies": {
    "references": {
      "category": "sema:Category#mh:SHA-256:d2db51ecab5ef8f0e434bd592f729c2ba955f0609e68a48aac9a95232447a696"
    }
  },
  "sema_layer": "Infrastructure",
  "sema_category": "Data Structures",
  "used_by": {
    "references": {
      "ChunkMerge": "sema:ChunkMerge#mh:SHA-256:a7a32d00372fcda30401ab77dbcb3a3b53fd3c4f013a2c9a5346e8b49ed76285",
      "LayeredCheck": "sema:LayeredCheck#mh:SHA-256:6d7379c20e7b733e77ee96409251b53d8e06133944506d9f7443b13178a38042",
      "Localhinge": "sema:Localhinge#mh:SHA-256:7a04e29d03a29b505561e3275ee3f10c6cdf2afcdf92bb71c14919ac6cbe8fa9",
      "SpecializationEdge": "sema:SpecializationEdge#mh:SHA-256:4d203b9383c917cc241dc8b4ab9cf6a48eb0113f86b60a0dda5cf3defb8b3017",
      "Task": "sema:Task#mh:SHA-256:a85010f508f85055170c396c8fa390125c1206888c565ac10651f3969a339f8d"
    }
  }
}
