{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://altheia.local/schemas/altheia_sector_pack_improvement_patch_1.1.schema.json",
  "title": "ALTHEIA Sector Pack Improvement Patch 1.1",
  "type": "object",
  "additionalProperties": false,
  "required": ["schema_version", "sector_id", "base_pack_version", "dimension_updates", "sources_to_add", "unresolved"],
  "properties": {
    "schema_version": {"const": "altheia_sector_pack_improvement_patch_1.1"},
    "sector_id": {"type": "string", "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"},
    "base_pack_version": {"type": "string", "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"},
    "dimension_updates": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": ["slot", "changes", "rationale"],
        "properties": {
          "slot": {"type": "string", "pattern": "^D(?:0[1-9]|[1-3][0-9]|4[0-5])$"},
          "changes": {"type": "object", "minProperties": 1},
          "rationale": {"type": "string", "minLength": 10}
        }
      }
    },
    "sources_to_add": {"type": "array", "items": {"type": "object", "required": ["title", "source_type", "retrieved_at"]}},
    "unresolved": {"type": "array", "items": {"type": "object", "required": ["check_id", "reason", "required_input"]}}
  }
}
