agent: a non-human identity that
acts on a slice of your authority, with its own short-lived credential.
This page is the procedure. AI agent security explains
what each rule enforces and what is only observed.
This is the agent registry built into the TRUSTIVAN API, under
Agents in the dashboard. NHI Security has a separate runtime gate for
agents discovered across your estate; see
Runtime authorization gate.
1. Delegate the agent
Settings → Workloads → Delegate, or:workload and credential. The credential starts
twa_, is shown once, and is stored only as a digest.
Three limits apply before anything is created:
- You can delegate only what you hold. Every scope must be one you currently have and one a machine may hold. Both are checked again on every request the agent makes, so demoting you narrows the agent on its next call.
- Lifetimes are short. One hour by default, twelve at most.
- Counts are bounded. An agent counts against your plan’s non-human
identity limit, and an organization holds at most 200 live workloads
(
409beyond that).
2. Declare its tools
A tool is a named capability and, optionally, the one permission invoking it requires. Declaring a tool grants nothing: it narrows what the delegation already allows.
An agent can declare at most 64 tools. A person with
workloads:manage can
declare tools on any agent; an agent can declare its own and no other’s.
To see what the agent can do right now, with one line of reasoning per
tool:
3. Open a session
The agent opens a session for each run of work, stating what the run is for. From here on the agent calls the API with its own credential:purpose is required. A session lasts at most four hours and never longer
than the credential behind it. The response carries session; keep its id.
4. Ask before every tool call
Before the agent runs a tool, it asks. The request is recorded whether it is permitted or refused.200, with a decision and the action record
written for it. Act on decision.result:
decision.rules lists every rule that was evaluated, including those that did
not fire, and decision.summary is one sentence you can log.
An agent can only ask about itself. A request whose path names another agent
is 403.
Approve an irreversible action
A tool declaredirreversible returns step_up until a person approves that
exact action. The agent cannot assert that someone is present.
1
A person issues an approval
code is a current TOTP code, and is required when the approver has a
second factor (401 with mfa_required: true without one). The response
carries a token, returned once.2
The agent presents it
The agent repeats the request from step 4 with
"approval_token": "…".step_up again.
Contain or stop an agent
Choose the narrowest control that solves the problem.
Each accepts a
reason query parameter of up to 200 characters, and each is
idempotent: the first reason recorded is the one kept.
workloads:manage can use these, not only the person who
delegated the agent. During an incident, the person who can stop an agent is
whoever is awake.
Rotate the credential
Review what it did
The action trail is append-only and names both actors on every row: the agent
that acted and the person whose delegation made it possible.
Signals are observations, not enforcement. See
what is observed.
See also
- AI agent security
- Scopes: what a machine may and may not be granted.
- Billing and plans: the non-human identity limit.