{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://gautierdorval.com/qbank.schema.json",
  "title": "Question bank schema",
  "description": "Public interface schema for a bounded question bank used in testing, audit, or scoring contexts. The schema documents a minimal interoperable structure and does not disclose private prompts, hidden evaluation protocols, or proprietary benchmark inventories.",
  "type": "object",
  "required": ["schemaVersion", "questions"],
  "properties": {
    "schemaVersion": { "type": "string" },
    "questions": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["id", "prompt"],
        "properties": {
          "id": { "type": "string" },
          "prompt": { "type": "string" },
          "locale": { "type": "string" },
          "tags": {
            "type": "array",
            "items": { "type": "string" }
          },
          "expectedMode": { "type": "string" }
        },
        "additionalProperties": true
      }
    }
  },
  "additionalProperties": true
}
