{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://harness-forge.dev/schemas/runtime/authority-map.schema.json",
  "title": "Authority Map",
  "type": "object",
  "additionalProperties": false,
  "required": ["schemaVersion", "generatedAt", "concepts"],
  "properties": {
    "schemaVersion": { "type": "string", "minLength": 1 },
    "generatedAt": { "type": "string", "minLength": 1 },
    "concepts": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": ["conceptId", "canonicalPath", "tier"],
        "properties": {
          "conceptId": { "type": "string", "minLength": 1 },
          "title": { "type": "string" },
          "canonicalPath": { "type": "string", "minLength": 1 },
          "aliases": { "type": "array", "items": { "type": "string", "minLength": 1 } },
          "projections": { "type": "array", "items": { "type": "string", "minLength": 1 } },
          "surfaceType": { "type": "string" },
          "tier": { "type": "string", "enum": ["hot", "warm", "cold"] },
          "indexPriority": { "type": "string" },
          "reasonToLoad": { "type": "string" },
          "reasonToAvoid": { "type": "string" }
        }
      }
    }
  }
}
