{
  "$id": "https://targetspace.ai/platform/schemas/prediction-instance.schema.json",
  "title": "PredictionInstance",
  "type": "object",
  "required": [
    "instance_id",
    "run_id",
    "target_id",
    "family",
    "query",
    "evidence_cutoff",
    "seal_deadline",
    "resolution_time",
    "answer_space",
    "resolution_rule"
  ],
  "properties": {
    "instance_id": {
      "type": "string",
      "pattern": "^[A-Za-z0-9._-]{3,64}$"
    },
    "run_id": {
      "type": "string",
      "pattern": "^[A-Za-z0-9._-]{3,64}$"
    },
    "target_id": {
      "type": "string",
      "pattern": "^[A-Za-z0-9._-]{3,64}$"
    },
    "family": {
      "enum": [
        "attention-shift",
        "focus-recovery",
        "priority-change",
        "commitment-followthrough",
        "machine-degradation"
      ]
    },
    "regime": {
      "enum": [
        "routine",
        "transition"
      ]
    },
    "query": {
      "type": "string",
      "description": "organizer-issued question about a future target state"
    },
    "evidence_cutoff": {
      "type": "string",
      "format": "date-time"
    },
    "seal_deadline": {
      "type": "string",
      "format": "date-time"
    },
    "resolution_time": {
      "type": "string",
      "format": "date-time"
    },
    "answer_space": {
      "$ref": "answer-space"
    },
    "resolution_rule": {
      "$ref": "resolution-rule"
    },
    "evidence_manifest": {
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^[A-Za-z0-9._-]{3,64}$"
      },
      "description": "stream_ids visible to the model up to cutoff"
    }
  }
}
