{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://bound-method.github.io/docs/reference/schemas/agent-result.schema.json",
  "title": "BOUND Agent Result",
  "description": "Proposed machine-readable result report from bounded agent execution.",
  "type": "object",
  "additionalProperties": false,
  "required": ["version", "status", "summary", "changed_files", "verification"],
  "properties": {
    "version": { "type": "string", "minLength": 1 },
    "status": { "type": "string", "enum": ["proposed", "completed", "blocked", "failed"] },
    "summary": { "type": "string", "minLength": 1 },
    "changed_files": { "type": "array", "items": { "type": "string" } },
    "contract_impact": { "type": "array", "items": { "type": "string" } },
    "boundary_impact": { "type": "array", "items": { "type": "string" } },
    "assumptions": { "type": "array", "items": { "type": "string" } },
    "verification": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": ["check", "status", "evidence"],
        "properties": {
          "check": { "type": "string", "minLength": 1 },
          "status": { "type": "string", "enum": ["passed", "failed", "not_run"] },
          "evidence": { "type": "string", "minLength": 1 }
        }
      }
    },
    "blocked_reason": { "type": "string" }
  }
}
