{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:awoooi:agent-nemotron-replay-finalizer-report-v1",
  "title": "AWOOOI NeMo/Nemotron Replay Finalizer Report (v1)",
  "type": "object",
  "required": [
    "schema_version",
    "candidate_id",
    "stage",
    "approved",
    "decision",
    "failures",
    "import_report",
    "contract_report",
    "pipeline_report",
    "promotion_gate"
  ],
  "properties": {
    "schema_version": {
      "type": "string",
      "const": "agent_nemotron_replay_finalizer_report_v1"
    },
    "candidate_id": {
      "type": "string",
      "const": "nemo_nemotron_fabric"
    },
    "stage": {
      "type": "string",
      "enum": ["import", "contract", "baseline", "promotion_gate"]
    },
    "approved": {
      "type": "boolean"
    },
    "decision": {
      "type": "string",
      "enum": ["approved", "blocked"]
    },
    "failures": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "import_report": {
      "type": "object",
      "additionalProperties": true
    },
    "contract_report": {
      "type": ["object", "null"],
      "additionalProperties": true
    },
    "pipeline_report": {
      "type": ["object", "null"],
      "additionalProperties": true
    },
    "grading_report": {
      "type": ["object", "null"],
      "additionalProperties": true
    },
    "scorecard": {
      "type": ["object", "null"],
      "additionalProperties": true
    },
    "promotion_gate": {
      "type": ["object", "null"],
      "additionalProperties": true
    },
    "inputs": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "outputs": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    }
  },
  "additionalProperties": false
}
