{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://weverlabs.com/schemas/energyops-controlled-pilot-execution.schema.json",
  "title": "EnergyOps Controlled Pilot Execution",
  "type": "object",
  "required": [
    "pilot_id",
    "tool",
    "workflow",
    "status",
    "work_order",
    "execution_path",
    "return_objects"
  ],
  "properties": {
    "pilot_id": {
      "type": "string"
    },
    "tool": {
      "const": "energyops"
    },
    "workflow": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "intake": {
      "type": "object"
    },
    "work_order": {
      "type": "object"
    },
    "execution_path": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "return_objects": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}
