{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://mosaicstack.dev/schemas/orchestrator/task.schema.json",
  "title": "Mosaic Orchestrator Task",
  "type": "object",
  "required": ["id", "title", "status"],
  "properties": {
    "id": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": ["pending", "running", "completed", "failed"]
    },
    "runtime": {
      "type": "string",
      "description": "Preferred worker runtime, e.g. codex, claude, opencode"
    },
    "command": {
      "type": "string",
      "description": "Worker command to execute for this task"
    },
    "quality_gates": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "metadata": {
      "type": "object"
    }
  },
  "additionalProperties": true
}
