{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://model-sandbox.twooton.com/schemas/v1/experiment.schema.json",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "schemaVersion": {
      "const": "1.0.0"
    },
    "id": {
      "$ref": "https://model-sandbox.twooton.com/schemas/v1/common.schema.json#/$defs/id"
    },
    "title": {
      "type": "string",
      "minLength": 1
    },
    "date": {
      "type": "string",
      "format": "date"
    },
    "taskType": {
      "type": "string",
      "minLength": 1
    },
    "description": {
      "type": "string",
      "minLength": 1
    },
    "protocol": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "version": {
          "type": "string",
          "minLength": 1
        },
        "prompt": {
          "type": "string",
          "minLength": 1
        },
        "instructionsTemplate": {
          "type": "string",
          "minLength": 1
        },
        "execution": {
          "type": "string",
          "minLength": 1
        },
        "timingDefinition": {
          "type": "string",
          "minLength": 1
        },
        "controls": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          }
        },
        "limitations": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          }
        }
      },
      "required": [
        "version",
        "prompt",
        "instructionsTemplate",
        "execution",
        "timingDefinition",
        "controls",
        "limitations"
      ]
    },
    "rubricVersion": {
      "type": "string",
      "minLength": 1
    },
    "metrics": {
      "type": "array",
      "items": {
        "$ref": "https://model-sandbox.twooton.com/schemas/v1/common.schema.json#/$defs/metric"
      }
    },
    "viewers": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      }
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      }
    },
    "extensions": {
      "$ref": "https://model-sandbox.twooton.com/schemas/v1/common.schema.json#/$defs/extensions"
    }
  },
  "required": [
    "schemaVersion",
    "id",
    "title",
    "date",
    "taskType",
    "description",
    "protocol",
    "rubricVersion",
    "metrics",
    "viewers"
  ]
}
