{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://hsimc.tech/reality-registry/schemas/reality.schema.json",
  "title": "HSIMC Reality JSON v0.1",
  "type": "object",
  "required": [
    "schema",
    "reality_id",
    "reality_class",
    "version",
    "display",
    "canonical_url",
    "machine_url",
    "identity",
    "authority",
    "visibility",
    "state",
    "continuity",
    "overlay_policy",
    "mcp_projection",
    "created_at",
    "updated_at",
    "content_sha256"
  ],
  "properties": {
    "schema": {
      "const": "hsimc.reality.v0.1"
    },
    "reality_id": {
      "type": "string",
      "minLength": 8
    },
    "reality_class": {
      "enum": [
        "ORGANIZATION",
        "PLACE",
        "WORK",
        "CAPABILITY",
        "ASSET",
        "RELATIONSHIP",
        "THOUGHT",
        "EVIDENCE",
        "OUTCOME"
      ]
    },
    "version": {
      "type": "string"
    },
    "display": {
      "type": "object"
    },
    "canonical_url": {
      "type": "string"
    },
    "machine_url": {
      "type": "string"
    },
    "subject_refs": {
      "type": "array"
    },
    "context_refs": {
      "type": "array"
    },
    "identity": {
      "type": "object"
    },
    "claims": {
      "type": "array"
    },
    "evidence_refs": {
      "type": "array"
    },
    "authority": {
      "type": "object"
    },
    "visibility": {
      "type": "object"
    },
    "state": {
      "type": "object"
    },
    "relations": {
      "type": "array"
    },
    "continuity": {
      "type": "object"
    },
    "overlay_policy": {
      "type": "object"
    },
    "mcp_projection": {
      "type": "object"
    },
    "created_at": {
      "type": "string"
    },
    "updated_at": {
      "type": "string"
    },
    "content_sha256": {
      "type": "string"
    }
  }
}
