{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://gautierdorval.com/iip-report.schema.json",
  "title": "IIP report schema",
  "description": "Public interface schema for a bounded interpretation integrity report. This file declares a report envelope and high-level sections only. It does not disclose proprietary scoring weights, annotation rules, sector-specific calibrations, or audit heuristics.",
  "type": "object",
  "required": ["schemaVersion", "reportId", "generatedAt", "scope", "metrics"],
  "properties": {
    "schemaVersion": { "type": "string" },
    "reportId": { "type": "string" },
    "generatedAt": { "type": "string", "format": "date-time" },
    "scope": {
      "type": "object",
      "properties": {
        "snapshotId": { "type": "string" },
        "modelFamily": { "type": "string" },
        "notes": { "type": "string" }
      },
      "additionalProperties": true
    },
    "metrics": {
      "type": "object",
      "properties": {
        "mvs": { "type": "number" },
        "idi": { "type": "number" },
        "nss": { "type": "number" },
        "iis": { "type": "number" }
      },
      "additionalProperties": true
    },
    "taxonomy": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "label": { "type": "string" },
          "count": { "type": "integer", "minimum": 0 }
        },
        "additionalProperties": true
      }
    }
  },
  "additionalProperties": true
}
