{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://example.local/schemas/experiment_manifest.schema.json",
  "title": "ExperimentManifest",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "experiment_name",
    "dataset_snapshot_id",
    "base_config",
    "overrides"
  ],
  "properties": {
    "experiment_name": {
      "type": "string",
      "minLength": 1
    },
    "dataset_snapshot_id": {
      "type": "string",
      "minLength": 1
    },
    "description": {
      "type": "string"
    },
    "base_config": {
      "type": "string",
      "minLength": 1
    },
    "overrides": {
      "type": "object"
    },
    "splits": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "kind"
        ],
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "year",
              "regime",
              "sector",
              "walk_forward",
              "score_bucket"
            ]
          },
          "params": {
            "type": "object"
          }
        }
      }
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "notes": {
      "type": "string"
    }
  }
}
