An agent in TRUSTIVAN is a workload of kind 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.
Who does what:

1. Delegate the agent

Settings → Workloads → Delegate, or:
The response carries 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 (409 beyond that).
The agent now appears under Agents, with no tools.

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:
This is computed on every read, never stored. It is also the Capabilities card on the agent’s page.

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.
The response is always 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.
Two requests quarantine the agent automatically: naming a tool it never declared, and naming a session that belongs to another agent. An agent that asks only an HTTP status question will miss this, because the status is 200. Read result.
An agent can only ask about itself. A request whose path names another agent is 403.

Approve an irreversible action

A tool declared irreversible 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": "…".
An approval covers one agent, one tool and one resource. It is single-use and expires after five minutes. A token that does not fit (another tool, another resource, expired, already spent) is not an error: the action is judged as having no person behind it and answers 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.
A quarantine never expires on its own. Only a person releases it. Anyone holding 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

Rotation replaces the secret and nothing else: the agent keeps its id, scopes, tools, sessions and history. The previous secret keeps working for five minutes so requests in flight can finish. A revoked or expired agent cannot be rotated; delegate a new one.

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