{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/quorum-dog/json-schema/quorum-dog-test-run-accepted-schema.json",
  "title": "TestRunAccepted",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/quorum-dog-openapi.json#/components/schemas/TestRunAccepted",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "dry_run": {
      "type": "boolean"
    },
    "batch_id": {
      "type": "string",
      "format": "uuid"
    },
    "model": {
      "type": "string",
      "description": "The Mode's ticker; echoes the request when `mode` is `null`."
    },
    "mode": {
      "type": [
        "string",
        "null"
      ],
      "description": "The Mode, by its ticker in COMPANY:MODE form (e.g. `QRUM:STAN`), the same name `model` takes. `null` when the Mode has no ticker or the name lookup fails; the call itself is unaffected."
    },
    "total_questions": {
      "type": "integer"
    },
    "per_difficulty": {
      "type": "object",
      "additionalProperties": true,
      "description": "Count, per-question price and subtotal per difficulty."
    },
    "quote": {
      "type": "object",
      "additionalProperties": true,
      "description": "On a dry run: the launcher's own estimate (`estimated_cost_usd`, `queue_length`, punch-up figures), the same one the Mode Builder shows."
    },
    "billed_usd": {
      "type": "number",
      "description": "The maximum. On a dry run, what a launch of the same spec holds; on a launch, held from your balance. When the run finishes you are charged only for questions that produced an answer (a fallback answer counts) and the rest is refunded."
    },
    "max_usd": {
      "type": "number",
      "description": "The quoted maximum, equal to `billed_usd` at launch."
    },
    "discount": {
      "type": "number",
      "description": "The multiplier applied to the normal per-question price: 0.75 (25% off)."
    },
    "price": {
      "type": "object",
      "additionalProperties": true,
      "description": "On a dry run: `lines` (count, per-question price, subtotal), `questions`, `discount_pct`, `max_total_usd` and what you are charged for."
    },
    "price_basis": {
      "type": "string"
    },
    "ignored": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Earlier request fields that were sent and ignored."
    },
    "status_url": {
      "type": "string"
    },
    "note": {
      "type": "string"
    }
  }
}