{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:awoooi:agent-nemotron-external-runner-readiness-v1",
  "title": "AWOOOI NeMo/Nemotron External Runner Readiness (v1)",
  "type": "object",
  "required": [
    "schema_version",
    "candidate_id",
    "run_id",
    "ready",
    "decision",
    "minimum_records",
    "gates",
    "failures",
    "counts",
    "artifacts",
    "safety",
    "next_actions"
  ],
  "properties": {
    "schema_version": {
      "type": "string",
      "const": "agent_nemotron_external_runner_readiness_v1"
    },
    "candidate_id": {
      "type": "string",
      "const": "nemo_nemotron_fabric"
    },
    "run_id": {
      "type": "string",
      "minLength": 1
    },
    "ready": {
      "type": "boolean"
    },
    "decision": {
      "type": "string",
      "enum": ["ready_for_approval", "blocked"]
    },
    "minimum_records": {
      "type": "integer",
      "minimum": 1
    },
    "gates": {
      "type": "object",
      "additionalProperties": {
        "type": "boolean"
      }
    },
    "failures": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "counts": {
      "type": "object",
      "required": ["manifest", "sanitize_report", "sanitized_preflight"],
      "properties": {
        "manifest": {
          "type": "object",
          "additionalProperties": true
        },
        "sanitize_report": {
          "type": "object",
          "additionalProperties": true
        },
        "sanitized_preflight": {
          "type": "object",
          "additionalProperties": true
        }
      },
      "additionalProperties": false
    },
    "artifacts": {
      "type": "object",
      "additionalProperties": true
    },
    "safety": {
      "type": "object",
      "additionalProperties": true
    },
    "next_actions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "additionalProperties": false
}
