Skip to main content

CLI: agentic-auth sandbox

Cold start: propose a first manifest from what an agent was observed doing, then have a person ratify it. Install with pip install 'authzai[drift]'.

Ratification stays a human act. There is no --yes and no batch mode. A flag that pinned a proposal without anyone reading it would be the automation cold start exists to prevent.

:::note What works in 0.4.0

propose-local works end to end: record the agent with drift record, fold the trace into a proposal, review it, then register it. The control-plane commands (run, propose, ratify) call working endpoints, but nothing feeds a server-side run a trace yet, so a run captures no behaviour. Onboard an agent with no manifest walks through the path that works.

:::

sandbox propose-local TRACE --agent NAME [--run-id ID]​

Folds an edge trace produced by drift record into a proposed manifest and prints it. It runs locally and never contacts a control plane. --run-id defaults to local.

agentic-auth sandbox propose-local trace.json --agent support-agent > proposed.json

sandbox run AGENT_ID --scope SCOPE --token TOKEN [--url URL] [--deadline-seconds N] [--tool REF]...​

Starts an observation run with POST /v1/agents/{agent_id}/sandbox. Every --tool is exposed as a mock that records the call and performs nothing. A tool not listed is unreachable. Prints the run, including its id.

sandbox propose AGENT_ID --token TOKEN [--url URL] [--run RUN_ID]​

Prints the manifest proposed from a completed run, the latest one unless --run names one. It warns when the run observed no behaviour at all, and when the recorder lost events, because in either case the proposal may be narrower than what the agent really does. A proposal governs nothing until it is ratified.

sandbox ratify AGENT_ID --run RUN_ID --token TOKEN [--url URL] [--doc FILE]​

Pins a proposal as the agent's manifest. Without --doc the proposal is pinned as generated. With --doc, your edited document is pinned instead, and the command first prints what it adds beyond what the run observed, so you can see what you are adding before it becomes policy. The ratified manifest then reconciles like any other, and one that fails reconciliation is not admitted.

For run, propose and ratify: --url defaults to http://localhost:8000, and --token defaults to AGENTIC_AUTH_ADMIN_TOKEN. The control plane must run with AGENTIC_AUTH_SANDBOX_ENABLED=true, or every call returns 404.