Supervaizer
Created: 2024-12-28
Updated: 2026-10-11
Supervaizer is the Python controller SDK for exposing AI agents to Supervaize Studio through the Supervaizer v2 operation contract.
Supervaizer v2 is layered on:
- A2A for discovery, Agent Cards, JSON-RPC controller calls, and SSE events
- A2UI for agent-authored UI surface documents rendered by Studio
- Supervaizer v2 semantics for Jobs, Cases, Steps, Resources, Datasets, Surfaces, Actions, Artifacts, and
job.sync convergence
Supervaizer does not contain agent business logic. Agents declare their resources, surfaces, actions, and artifacts; Studio consumes that declaration as a generic operations UI.
Beta: Supervaizer v2 is under active development. Protocol versions are pinned in the registration contract and incompatible versions should fail explicitly.
Start Here
Quick Start
1. Install
pip install supervaizer
For local development from this repository:
just install-dev # uv sync --extra dev
2. Run The Built-In V2 Hello World Agent
The fastest way to see the v2 controller is local mode:
supervaizer start --local
Local mode runs the agents from your supervaizer_control.py plus the built-in Hello World agent (disable it with SUPERVAIZER_DISABLE_HELLO_WORLD=true); with no control file it starts Hello World alone. Hello World declares:
- a v2 Agent Card
job.start and case.step.awaiting A2UI surfaces
job.start, job.start.preview, job.sync, and step.awaiting.submit actions
- one generated resource action,
resource.hello_messages.list
- a minimal HITL review step when human review is enabled
Local mode binds to 127.0.0.1, skips Studio registration, and uses the API key local-dev. It also bypasses Studio workspace authorization for /a2a actions and surfaces, so X-API-Key alone is enough:
curl -s http://127.0.0.1:8000/a2a \
-H "X-API-Key: local-dev" -H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "id": 1, "method": "supervaizer/action.invoke",
"params": {"request_id": "r1", "actor": {"user_id": "me"},
"workspace": {"id": "local"}, "mission_id": "m1",
"agent_slug": "hello-world-ai-agent", "surface": "job.start",
"action": "job.start", "input": {"count": 1}, "job_id": "job-1"}}'
Handlers receive an unverified workspace_authorization whose grant_id is local-mode, and the server logs a startup warning. The bypass applies only while the server has no Studio account, workspace auth is not enabled, and issuer, audience, public key, and JWKS URL are all empty. SUPERVAIZER_WORKSPACE_AUTH_LEEWAY_SECONDS does not count, and SUPERVAIZER_WORKSPACE_AUTH_REQUIRED=false leaves the bypass on. Otherwise every call needs a real Studio token. JSON-RPC -32030 then carries error.data.code workspace_authorization_missing when the verifier is enabled and the header is absent, or workspace_authorization_not_configured when no verifier is enabled. Never expose a local-mode port: anyone who reaches it can run your agents with the well-known key. --host 0.0.0.0, --host ::, and an empty host bind 127.0.0.1; any other --host is kept.
Open these endpoints:
| URL | Purpose | Access |
|---|
http://127.0.0.1:8000/docs | FastAPI Swagger docs | public |
http://127.0.0.1:8000/.well-known/agents.json | A2A discovery | public |
http://127.0.0.1:8000/.well-known/health | Controller health | public |
POST http://127.0.0.1:8000/a2a | A2A JSON-RPC controller endpoint | X-API-Key (write scope); workspace token outside local mode |
GET http://127.0.0.1:8000/a2a/events | SSE stream for v2 effects | X-API-Key (read scope) |
http://127.0.0.1:8000/manage | Admin interface and agent workbench | Tailscale IP, or loopback in local mode |
3. Inspect The Hello World Example