● Demo
One task, from start to kill switch.
This page follows a support-bot task as an analyst's agents call a CRM through the Gateway. The commands are the ones in the onboarding guide, run against Postgres and a standalone Gateway. The screenshots are the built-in dashboard.
The hierarchy
Every certificate says which task and which agent it belongs to.
Each box is a certificate. A CA can sign the certificates below it, and its path length stops a chain from growing deeper than the app allows. Every name is a SPIFFE ID, such as spiffe://support-bot.acme.agents/task/t-7f3a/planner/researcher.
Try it: revoke the researcher. The Gateway refuses any chain that contains a revoked CA, so its subagents stop with it while the rest of the task carries on.
$ curl -XPOST $API/v1/tasks/$TASK/agents/revoke \ -d '{"agent":"planner/researcher"}' {"revoked":["planner/researcher","planner/researcher/web-search","planner/researcher/pdf-reader"]} # the next call from any of the three: 403 {"decision":"revoked","reason":"credential revoked"}
Step by step
What happens, and what you see.
Register an app
An admin registers the AI application once, with the scopes it may ever use. The app gets its own trust domain and an App CA signed by your root. With ADCS, the Task Authority writes a CSR and an administrator signs it with certreq.
$ curl -XPOST $API/v1/apps -d '{"app":"support-bot","org":"acme", "limits":{"scopes":["crm:read","crm:admin"]}}' {"app":"support-bot","spiffe_id":"spiffe://support-bot.acme.agents"}

Start a task for a person
The app starts a task with the analyst's sign-in token. The task gets its own Task CA, records who it acts for, and never holds a scope that person lacks. Unused tasks end on their own after 30 minutes.
$ TASK=$(curl -s -XPOST $API/v1/apps/support-bot/tasks \ -H "Authorization: Bearer $ALICE_TOKEN" | jq -r .task) t-f79174d2e12a0c2d4910bb589c0da1be

Spawn agents
The app adds agents to the task. An agent that starts subagents gets an Agent CA. Each agent can only narrow its parent's scopes, and the app's limits cap depth, children and the total number of agents.
$ curl -XPOST $API/v1/tasks/$TASK/agents \ -d '{"name":"planner","scopes":["crm:read"]}' {"agent":"planner","depth":1}

Issue the agent's certificate
The agent makes its own key, which never leaves it. Only the app's software can have the CSR signed, never a person, so nobody can walk off with an agent's identity. The certificate lasts 15 minutes at most and its only name is a SPIFFE ID.
$ openssl ecparam -name prime256v1 -genkey -noout -out agent.key
$ openssl req -new -key agent.key -subj "/" -out agent.csr
$ curl -XPOST $API/v1/tasks/$TASK/certificates -d @leaf.json \
| jq -r .certificate_pem > agent.pem
$ openssl x509 -in agent.pem -noout -ext subjectAltName
URI:spiffe://support-bot.acme.agents/task/t-f79174d2.../planner
Call through the Gateway
The agent calls the Gateway instead of the CRM. The Gateway checks the chain, revocation, suspension and the route's scope, drops any credential the agent sent, and adds the real one. The CRM sees the agent's SPIFFE ID and the task's owner in headers.
$ curl --cert agent.pem --key agent.key https://gateway:8443/crm/customers/42 200 {"authorization":"Bearer real-crm-secret", "spiffe_id":"spiffe://support-bot.acme.agents/task/t-f791.../planner"} $ curl ... https://gateway:8443/admin/export 403 {"decision":"deny","reason":"missing scope crm:admin"}

Trip the risk rule
An agent that keeps probing paths it has no scope for gets its task suspended after five denials in a minute, counted across every Gateway. Calls get 423 while an operator looks at the evidence and either resumes the task or revokes the culprit.
$ for i in 1 2 3 4; do curl ... https://gateway:8443/admin/export; done $ curl ... https://gateway:8443/crm/customers/42 423 {"decision":"suspended","reason":"task suspended pending review"}

Revoke, and check the record
Revoking the agent stops it and its subtree. The revocation reaches every Gateway through the database, so the next call is refused. Every step above is in a hash chain per app that the dashboard verifies.
$ curl -XPOST $API/v1/tasks/$TASK/agents/revoke -d '{"agent":"planner"}' $ curl ... https://gateway:8443/crm/customers/42 403 {"decision":"revoked","reason":"credential revoked"} $ curl "$API/v1/audit?limit=4" | jq -r '.entries[] | .kind + " " + .reason' agent.revoked onboarding task.resumed reviewed task.suspended 5 denied calls within 1m0s leaf.issued

Try it
Run the demo on a laptop in five minutes.
Simulated agents send real traffic through the Gateway. About one task in three has a rogue agent that gets caught, suspended and revoked while you watch.
# Go 1.27 and Node 22 or newer make demo # open http://127.0.0.1:8080 # with sign-in (Zitadel), Postgres and Temporal docker compose up --build -d --wait