{
  "version": 2,
  "activePhase": 1,
  "limits": {
    "requestCiphertextBytes": 4096,
    "replyCiphertextBytes": 16384,
    "envelopeTtlSeconds": 120
  },
  "verbs": {
    "list_runs": {
      "phase": 1,
      "mutating": false,
      "target": "none",
      "args": {
        "scope": {
          "type": "enum",
          "values": ["active", "recent"],
          "required": false,
          "default": "active"
        },
        "limit": { "type": "integer", "min": 1, "max": 20, "required": false, "default": 10 }
      }
    },
    "run_status": {
      "phase": 1,
      "mutating": false,
      "target": "run",
      "args": {
        "run": { "type": "string", "pattern": "^[A-Za-z0-9_-]{1,64}$", "required": true }
      }
    },
    "answer_question": {
      "phase": 1,
      "mutating": true,
      "target": "run",
      "args": {
        "run": { "type": "string", "pattern": "^[A-Za-z0-9_-]{1,64}$", "required": true },
        "question": { "type": "string", "pattern": "^[A-Za-z0-9._-]{1,64}$", "required": true },
        "answer": {
          "type": "idlist",
          "pattern": "^[A-Za-z0-9._-]{1,64}$",
          "minItems": 1,
          "maxItems": 8,
          "required": true
        }
      }
    },
    "stop_run": {
      "phase": 1,
      "mutating": true,
      "target": "run",
      "args": {
        "run": { "type": "string", "pattern": "^[A-Za-z0-9_-]{1,64}$", "required": true }
      }
    },
    "start_run": {
      "phase": 2,
      "mutating": true,
      "target": "none",
      "args": {
        "command": {
          "type": "enum",
          "values": ["review-only", "analysis", "test", "health", "doctor"],
          "required": true
        },
        "ref": { "type": "string", "pattern": "^[A-Za-z0-9#._/-]{1,80}$", "required": false }
      }
    }
  }
}
