{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://awkit/schemas/consult-report.schema.json",
  "title": "Escalation Consult Report Summary",
  "description": "The JSON summary block an Architect consult report must end with. Validated by validateConsultReport() in scripts/escalate-helper.js. See docs/specs/PIPELINE_CONTRACT.md §4.",
  "type": "object",
  "required": ["root_cause", "files_to_modify"],
  "additionalProperties": true,
  "properties": {
    "root_cause": {
      "type": "string",
      "minLength": 1,
      "description": "Root cause analysis of the executor failure."
    },
    "files_to_modify": {
      "type": "array",
      "items": { "type": "string" },
      "description": "Repo-relative paths the fix should touch."
    },
    "precise_diff": {
      "type": "string",
      "description": "Optional unified-diff patch implementing the fix."
    }
  }
}
