{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "L03 review_agenda input schema",
  "description": "Strict input shape. Blank templates are preparation scaffolds, not runnable inputs.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "matter_id",
    "reviewer_id",
    "questions",
    "approved_materials",
    "scope_policy"
  ],
  "properties": {
    "matter_id": {
      "type": "string",
      "minLength": 1
    },
    "reviewer_id": {
      "type": "string",
      "minLength": 1
    },
    "questions": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "question_id",
          "text"
        ],
        "properties": {
          "question_id": {
            "type": "string",
            "minLength": 1
          },
          "text": {
            "type": "string"
          }
        }
      }
    },
    "approved_materials": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "source_id",
          "version_id",
          "text"
        ],
        "properties": {
          "source_id": {
            "type": "string",
            "minLength": 1
          },
          "version_id": {
            "type": "string",
            "minLength": 1
          },
          "text": {
            "type": "string"
          }
        }
      }
    },
    "scope_policy": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "policy_id",
          "text"
        ],
        "properties": {
          "policy_id": {
            "type": "string",
            "minLength": 1
          },
          "text": {
            "type": "string"
          }
        }
      }
    }
  }
}
