{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/quorum-dog/json-schema/quorum-dog-test-run-request-schema.json",
  "title": "TestRunRequest",
  "description": "Send `questions` (or the legacy `buckets`).",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/quorum-dog-openapi.json#/components/schemas/TestRunRequest",
  "type": "object",
  "required": [
    "model"
  ],
  "properties": {
    "model": {
      "type": "string"
    },
    "questions": {
      "type": "object",
      "description": "Known-answer questions per difficulty. Each 1–100; 300 total.",
      "properties": {
        "easy": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100
        },
        "medium": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100
        },
        "hard": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100
        }
      },
      "additionalProperties": false
    },
    "buckets": {
      "type": "object",
      "deprecated": true,
      "description": "Earlier shape, still accepted: light maps to easy, medium to medium, hard to hard.",
      "properties": {
        "light": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100
        },
        "medium": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100
        },
        "hard": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100
        }
      },
      "additionalProperties": false
    },
    "tiers": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "free",
          "plus",
          "pro"
        ]
      },
      "description": "Tiers to test. Defaults to every tier the mode permits; the questions are split across them."
    },
    "punch_up": {
      "type": "boolean",
      "default": false,
      "description": "Also fire each lower tier on a higher tier's questions. Needs two tiers."
    },
    "seed": {
      "type": "string",
      "description": "Draw seed. It steers the draw but does not fix it: which questions are drawn also depends on other runs, so a quote and its launch can differ in questions."
    },
    "judges": {
      "deprecated": true,
      "description": "Ignored: a known-answer run has no judge panel."
    },
    "judge_repeats": {
      "deprecated": true,
      "description": "Ignored."
    },
    "judging_protocol": {
      "deprecated": true,
      "description": "Ignored."
    },
    "dry_run": {
      "type": "boolean",
      "default": false,
      "description": "The launcher's quote and the price only. Nothing runs, nothing is billed."
    }
  }
}