{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://medgauge.org/schemas/0.1.0/roadmap.schema.json",
  "title": "roadmap",
  "description": "Planned work that is not a benchmark card (studies, infrastructure). Every item is planned; nothing here is a result.",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": { "type": "string", "pattern": "^rm-[a-z0-9-]+$" },
          "title": { "type": "string", "minLength": 1 },
          "kind": { "type": "string", "enum": ["study", "infrastructure", "content"] },
          "status": { "const": "planned" },
          "added": { "type": "string", "format": "date" },
          "summary": { "type": "string", "minLength": 1 },
          "rationale": { "type": "string" },
          "design": { "type": "array", "items": { "type": "string", "minLength": 1 } },
          "not_in_scope": { "type": "array", "items": { "type": "string", "minLength": 1 } },
          "next_steps": { "type": "array", "items": { "type": "string", "minLength": 1 } },
          "capabilities": { "type": "array", "items": { "type": "string", "pattern": "^[ABCDEX]\\.\\d+(\\.\\d+)?$" } }
        },
        "required": ["id", "title", "kind", "status", "added", "summary", "next_steps"]
      }
    }
  },
  "required": ["items"]
}
