{
  "$id": "https://targetspace.ai/platform/schemas/benchmark-run.schema.json",
  "title": "BenchmarkRun",
  "type": "object",
  "required": [
    "run_id",
    "name",
    "target_type",
    "evidence_streams",
    "horizon",
    "baselines",
    "cost_axes",
    "created_at",
    "status"
  ],
  "properties": {
    "run_id": {
      "type": "string",
      "pattern": "^[A-Za-z0-9._-]{3,64}$"
    },
    "name": {
      "type": "string",
      "maxLength": 120
    },
    "target_type": {
      "enum": [
        "person",
        "robot",
        "vehicle",
        "patient",
        "learner",
        "machine",
        "team",
        "building"
      ]
    },
    "target_id": {
      "type": "string",
      "pattern": "^[A-Za-z0-9._-]{3,64}$"
    },
    "evidence_streams": {
      "type": "array",
      "items": {
        "$ref": "evidence-stream"
      },
      "minItems": 1
    },
    "horizon": {
      "type": "object",
      "required": [
        "min_hours",
        "max_hours"
      ],
      "properties": {
        "min_hours": {
          "type": "number"
        },
        "max_hours": {
          "type": "number"
        }
      }
    },
    "baselines": {
      "type": "array",
      "items": {
        "$ref": "baseline"
      },
      "minItems": 2
    },
    "cost_axes": {
      "type": "array",
      "items": {
        "enum": [
          "privacy_exposure",
          "user_burden",
          "consent_burden",
          "hardware_cost",
          "compute_storage",
          "latency",
          "missingness_maintenance",
          "institutional_ethical_risk"
        ]
      }
    },
    "deployment_level": {
      "enum": [
        "core",
        "controlled",
        "full"
      ]
    },
    "status": {
      "enum": [
        "draft",
        "open",
        "sealed",
        "resolving",
        "scored"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "notes": {
      "type": "string"
    }
  }
}
