{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "required": ["iteration_number", "status"],
  "properties": {
    "iteration_number": {"type": "integer"},
    "status": {"type": "string", "enum": ["ACCEPTED", "REJECTED"]},
    "summary": {"type": "string"},
    "evaluated_at": {"type": "string"},
    "tasks_summary": {
      "type": "object",
      "properties": {
        "total": {"type": "integer"},
        "accepted": {"type": "integer"},
        "rejected": {"type": "integer"}
      }
    },
    "build_status": {
      "type": "object",
      "properties": {
        "passed": {"type": "boolean"},
        "command": {"type": "string"},
        "output_summary": {"type": "string"}
      }
    },
    "test_status": {
      "type": "object",
      "properties": {
        "passed": {"type": "boolean"},
        "command": {"type": "string"},
        "total": {"type": "integer"},
        "passed_count": {"type": "integer"},
        "failed_count": {"type": "integer"},
        "output_summary": {"type": "string"}
      }
    },
    "criteria_evaluation": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "criterion": {"type": "string"},
          "met": {"type": "boolean"}
        }
      }
    },
    "resolution_prompt": {"type": "string"}
  }
}