{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://super-calendar.io/agents/landing.schema.json",
  "title": "Super Calendar Landing Index",
  "type": "object",
  "required": ["name", "version", "kind", "canonical", "authority", "sections"],
  "properties": {
    "name": { "type": "string" },
    "version": { "type": "string" },
    "kind": { "const": "landing-structure-index" },
    "canonical": { "type": "string" },
    "description": { "type": "string" },
    "authority": {
      "type": "object",
      "additionalProperties": { "type": "string" }
    },
    "production_surfaces": {
      "type": "array",
      "items": { "$ref": "#/$defs/surface" }
    },
    "non_authoritative_surfaces": {
      "type": "array",
      "items": { "$ref": "#/$defs/surface" }
    },
    "sections": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["id", "role", "message"],
        "properties": {
          "id": { "type": "string" },
          "role": { "type": "string" },
          "message": { "type": "string" }
        },
        "additionalProperties": false
      }
    },
    "agent_rules": {
      "type": "array",
      "items": { "type": "string" }
    }
  },
  "$defs": {
    "surface": {
      "type": "object",
      "required": ["id", "path", "purpose", "canonical"],
      "properties": {
        "id": { "type": "string" },
        "path": { "type": "string" },
        "purpose": { "type": "string" },
        "canonical": { "type": "boolean" }
      },
      "additionalProperties": false
    }
  },
  "additionalProperties": false
}
