{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://github.com/mmerterden/multi-agent-pipeline/pipeline/schemas/autopilot-status.schema.json",
  "title": "Autopilot status",
  "description": "What GET /v1/autopilot returns: status.json as `autopilot-status.sh --json` builds it (the document the menu bar renders), plus contractVersion. Fields beyond the required ones are the status document's and may grow.",
  "type": "object",
  "additionalProperties": true,
  "required": [
    "contractVersion",
    "on",
    "slots",
    "running",
    "queued",
    "awaiting",
    "todayCount",
    "todayUsd",
    "spendUsd",
    "ceilingUsd"
  ],
  "properties": {
    "contractVersion": {
      "type": "string",
      "pattern": "^1\\.[0-9]+\\.[0-9]+$",
      "x-sensitivity": "none"
    },
    "on": {
      "type": "boolean",
      "x-sensitivity": "none"
    },
    "slots": {
      "type": "integer",
      "x-sensitivity": "none"
    },
    "running": {
      "type": "array",
      "x-sensitivity": "none"
    },
    "queued": {
      "type": "array",
      "x-sensitivity": "none"
    },
    "awaiting": {
      "type": "array",
      "x-sensitivity": "none"
    },
    "todayCount": {
      "type": "integer",
      "x-sensitivity": "none"
    },
    "todayUsd": {
      "type": "number",
      "x-sensitivity": "none"
    },
    "spendUsd": {
      "type": "number",
      "x-sensitivity": "none"
    },
    "ceilingUsd": {
      "type": "number",
      "x-sensitivity": "none"
    }
  }
}
