{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Forecasting One successful research Choice response v1.1",
  "type": "object",
  "properties": {
    "schema_version": {
      "const": "1.1"
    },
    "request_id": {
      "type": "string",
      "format": "uuid"
    },
    "model": {
      "const": "forecasting-one-r13-c"
    },
    "model_version": {
      "type": "string",
      "pattern": "^r13-c@[a-f0-9]{40}$"
    },
    "task": {
      "type": "object",
      "properties": {
        "type": {
          "const": "choice"
        },
        "instructions": {
          "type": "string",
          "minLength": 1,
          "maxLength": 8000,
          "pattern": "\\S"
        },
        "criteria": {
          "type": "object",
          "minProperties": 2,
          "maxProperties": 20,
          "propertyNames": {
            "type": "string",
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,63}$",
            "maxLength": 64
          },
          "additionalProperties": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 2000,
                "pattern": "\\S"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "resolution": {
          "type": "object",
          "properties": {
            "criteria": {
              "type": "string",
              "minLength": 1,
              "maxLength": 8000,
              "pattern": "\\S"
            },
            "resolves_at": {
              "type": "string",
              "format": "date-time",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(Z|[+-]\\d{2}:\\d{2})$"
            }
          },
          "required": [
            "criteria",
            "resolves_at"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "type",
        "instructions",
        "criteria",
        "resolution"
      ],
      "additionalProperties": false
    },
    "result": {
      "type": "object",
      "properties": {
        "type": {
          "const": "choice"
        },
        "choice": {
          "type": "string",
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,63}$",
          "maxLength": 64
        },
        "probabilities": {
          "type": "object",
          "minProperties": 2,
          "maxProperties": 20,
          "propertyNames": {
            "type": "string",
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,63}$",
            "maxLength": 64
          },
          "additionalProperties": {
            "type": "number",
            "minimum": 0,
            "maximum": 1
          }
        },
        "confidence": {
          "type": "null"
        },
        "calibration_status": {
          "const": "not_independently_verified"
        }
      },
      "required": [
        "type",
        "choice",
        "probabilities",
        "confidence",
        "calibration_status"
      ],
      "additionalProperties": false
    },
    "generated_at": {
      "type": "string",
      "format": "date-time",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(Z|[+-]\\d{2}:\\d{2})$"
    },
    "input_as_of": {
      "type": "string",
      "format": "date-time",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(Z|[+-]\\d{2}:\\d{2})$"
    },
    "input_id": {
      "type": "string",
      "pattern": "^sha256:[a-f0-9]{64}$"
    },
    "timing": {
      "type": "object",
      "properties": {
        "gateway_queue_ms": {
          "type": "number",
          "minimum": 0
        },
        "model_queue_ms": {
          "type": "number",
          "minimum": 0
        },
        "inference_ms": {
          "type": "number",
          "minimum": 0
        },
        "load_ms": {
          "type": "number",
          "minimum": 0
        },
        "cold_start": {
          "type": "boolean"
        },
        "gateway_total_ms": {
          "type": "number",
          "minimum": 0
        },
        "cache_hit": {
          "const": false
        },
        "client_end_to_end_ms": {
          "type": "null"
        }
      },
      "required": [
        "gateway_queue_ms",
        "model_queue_ms",
        "inference_ms",
        "load_ms",
        "cold_start",
        "gateway_total_ms",
        "cache_hit",
        "client_end_to_end_ms"
      ],
      "additionalProperties": false
    },
    "mode": {
      "const": "research"
    }
  },
  "required": [
    "schema_version",
    "request_id",
    "model",
    "model_version",
    "task",
    "result",
    "generated_at",
    "input_as_of",
    "input_id",
    "timing",
    "mode"
  ],
  "additionalProperties": false,
  "description": "Real successful responses only: choice is an argmax over exactly the requested criteria IDs; confidence is unavailable (null), not the maximum probability; one probability per requested ID, sum 1 (tolerance 1e-6), measured nonnegative server timing. Client end-to-end timing is measured by the client. Documentation illustrations with null server timings are not successful research responses."
}