{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://gautierdorval.com/corpus-snapshot.manifest.schema.json",
  "title": "Corpus snapshot manifest schema",
  "description": "Public interface schema for declaring a bounded corpus snapshot used by audit, scoring, or comparison protocols. This surface documents a reference structure only and does not expose proprietary execution rules, annotation procedures, or private audit material.",
  "type": "object",
  "required": ["schemaVersion", "snapshotId", "createdAt", "items"],
  "properties": {
    "schemaVersion": { "type": "string" },
    "snapshotId": { "type": "string" },
    "createdAt": { "type": "string", "format": "date-time" },
    "scope": {
      "type": "object",
      "properties": {
        "entity": { "type": "string" },
        "locale": { "type": "string" },
        "notes": { "type": "string" }
      },
      "additionalProperties": true
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["uri", "kind"],
        "properties": {
          "uri": { "type": "string", "format": "uri-reference" },
          "kind": { "type": "string" },
          "checksum": { "type": "string" },
          "capturedAt": { "type": "string", "format": "date-time" },
          "lang": { "type": "string" }
        },
        "additionalProperties": true
      }
    }
  },
  "additionalProperties": true
}
