{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://example.com/schemas/agent-index.schema.json",
  "title": "Agent Orientation Index",
  "type": "object",
  "required": ["description", "objective", "read_first", "endpoints", "note"],
  "properties": {
    "description": { "type": "string", "minLength": 1 },
    "objective": { "type": "string", "minLength": 1 },
    "read_first": { "type": "array", "minItems": 5, "items": { "type": "string", "pattern": "^/" } },
    "endpoints": {
      "type": "array",
      "minItems": 30,
      "items": {
        "type": "object",
        "required": ["path", "purpose"],
        "properties": {
          "path": { "type": "string", "pattern": "^/" },
          "purpose": { "type": "string", "minLength": 1 }
        }
      }
    },
    "note": { "type": "string", "minLength": 1 }
  }
}
