{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://github.com/mmerterden/multi-agent-pipeline/pipeline/schemas/autopilot-off.schema.json",
  "title": "Autopilot off",
  "description": "What POST /v1/autopilot/off returns (`autopilot-control.mjs off`): the mode is off and whether an in-flight session was stopped. The repo selection, queue and attempt history are kept.",
  "type": "object",
  "additionalProperties": false,
  "required": ["contractVersion", "enabled", "stoppedInFlight"],
  "properties": {
    "contractVersion": {
      "type": "string",
      "pattern": "^1\\.[0-9]+\\.[0-9]+$",
      "x-sensitivity": "none"
    },
    "enabled": {
      "const": false,
      "x-sensitivity": "none"
    },
    "stoppedInFlight": {
      "type": "boolean",
      "x-sensitivity": "none"
    }
  }
}
