Onboard an agent with no manifest
Goal: give an existing agent its first manifest, built from what it actually does rather than from a guess, without it gaining any authority before a person has reviewed that manifest.
1. Register the agent with no manifest
curl -X POST "$CONTROL_PLANE/v1/agents" -H "Authorization: Bearer $AGENTIC_AUTH_ADMIN_TOKEN" \
-H 'Content-Type: application/json' -d '{"name": "support-agent"}'
The agent now exists, but it has no manifest version and no compiled policy. No session can include it, so it can authorize nothing.
2. Record what it does under test
Run the agent's own tests with edge recording on, through the sidecar in observe mode, or with the SDK:
agentic-auth drift record --out trace.json -- pytest -q tests/support_agent
Every call the agent made is now in trace.json: which tools, which agents it delegated to,
and how deep its chains went.
3. Propose a manifest from the trace
agentic-auth sandbox propose-local trace.json --agent support-agent > proposed.json
The proposal declares exactly what was observed, and nothing more. Its x-proposal block says
what it was built from.
4. Review it: this is the ratification
A proposal knows what the agent did, not what it should do, so a person completes it:
- Data classes. Set
data_classeson each tool. The trace records calls, not the meaning of the data. - Privileged tools. Mark destructive tools
privileged: true. They then need a transaction token bound to their exact parameters. - Trim. Remove anything the agent did that it shouldn't keep doing.
- Coverage. Check
covers_no_behaviour. If it'strue, the trace was empty and the proposal declares nothing.
5. Register the reviewed manifest
agentic-auth manifest register-dir manifests/ --control-plane "$CONTROL_PLANE" \
--override-reason "first manifest, reviewed from a recorded trace"
Use register-dir with the reviewed file in manifests/, or POST /v1/manifests. It
reconciles against capability discovery like any other manifest, and the agent's authority
starts here.
From now on, the CI drift check on the same tests fails any change that makes the agent do something its manifest doesn't declare.
The control plane also has sandbox endpoints (/v1/agents/{id}/sandbox,
agentic-auth sandbox run, behind AGENTIC_AUTH_SANDBOX_ENABLED). Nothing feeds a run the
agent's calls yet, so a run ends empty. Use the recorded-trace path above.