Use the Agents page to see which AI agents are registered in an aidb database, what they're allowed to access, and how often governance denies their actions. Select Agents in the cluster sidebar to open it. The page is available only for aidb databases; HM and Loki sources don't record agent identities.
The page has two tabs: Roster and Behavior.
Browsing the roster
Use the Roster tab to see the agents registered in aidb, five per page, with their Agent name and Purpose. Use Search... to find an agent, or Filter agents to pick agents by name.
Selecting a row opens Agent Details on the right, with the agent's name and declared purpose, its Permissions, and its Recent Activity. The Permissions section uses Postgres catalogs to show current grants for the role mapped to the agent's purpose. It isn't a history of what the agent accessed. Recent Activity lists the agent's latest sessions with their start time. Select an identifier to open one. View Agent Activity opens Activity filtered to that agent. When the agent has a per-run token budget set in aidb, Agent Details also shows Input token budget and Output token budget. An agent without a budget shows neither row.
The viewer connects read-only. Change an agent's permissions in the database.
If the viewer's role can't read the aidb agent catalog, the tab shows Agent registry unavailable.
Reviewing agent behavior
Use the Behavior tab to see, for each agent, its governed actions and denied decisions over the last 7 days. It's a first look at which agents keep being denied, not a verdict. The period shows as a chip above the table. To look at another period, choose a date range of up to 31 days in Filter agents.
The cards at the top count Agents Observed, Governed Actions, agents that Needs Attention, and Denied Actions. The table lists each agent's Actions, Denied Actions, Denial Rate, Denials Per Day, Last Denied date, Tokens in / out, and a Signal:
| Signal | Meaning, with the default thresholds |
|---|---|
| No decisions | No allowed or denied decision was recorded for the agent. |
| Not enough data | Fewer than 10 governed actions, too few to judge. |
| None | Less than 5% of actions denied. |
| Occasional | From 5% to less than 20% denied. |
| Repeated | 20% or more denied. |
| Privilege escalation blocked | aidb refused at least one attempt to switch role, for example SET ROLE or set_config('role', ...). Shown ahead of the rate-based signal. |
Tokens in / out counts the model tokens the agent's runs consumed in the period, input and output, as reported by the model provider. The column needs aidb 7.10.0 or later. On earlier versions, and until a run reports a count, the cell shows —. Sorting by the column puts agents without a count last.
The table is sorted by signal, so the agents denied most often come first. The Needs Attention card counts agents with Repeated or Privilege escalation blocked. A signal says what happened, not why: a high denial rate can mean an agent asks for more than its purpose allows, or that the grants for its purpose are too narrow for legitimate work. Check the denied steps before acting. To receive a notification when an agent shows the Repeated or Privilege escalation blocked signal, see Receiving notifications.
Filter agents also narrows the table by agent, by a range of denial rates, and by signal.
Selecting a row opens Agent Behavior on the right, with the agent's purpose, its Decisions (total, approved, and denied actions, and the denial rate), its Denial Reasons, and Objects in Denied Queries. View Agent Activity opens Activity filtered to the agent and the same period.
Objects in Denied Queries lists the tables that the agent's denied queries touched, with a count for each. aidb 7.7 doesn't record which object a denial was about, so the list is read from the query text and includes only queries that reference a single table. Queries that reference several tables, or none, aren't counted. If no object can be identified, the section isn't shown.
If the chart value bff.governanceDecisionsEnabled is false, the table shows only Agent, Groups, Spans, and Tokens in / out, without decision columns or signals.
Auditing agents called over MCP
When an MCP client calls an agent registered in aidb, the dashboard shows the activity of the aidb agent. The external client's own telemetry isn't recorded in aidb.
In aidb 7.10 and later, the aidb MCP endpoint lists each registered agent as a tool, so an MCP client can call an agent directly. The endpoint lists every agent to any client role in aidb_users, with no per-agent filter. The endpoint skips agents whose names aren't valid tool names, and a role outside aidb_users sees no agents.
To restrict which agents a client can run, use Postgres privileges. For setup steps, see Connecting a client and Configuring agent roles in the AIDB documentation.
Withhold membership in
aidb_usersto stop a role from listing or calling agents.Grant or withhold membership in a purpose role to control which agents a client can run. An agent with a purpose runs the agent's SQL as the purpose's role.
aidbrefuses the call unless the client role canSET ROLEto the purpose's role.Limit the client role's own grants for agents without a purpose, because the agents run as the client role.
Set
CONNECTION LIMITon the role to cap simultaneous agent calls. Each agent call holds a connection, and the endpoint has no cap on concurrent calls.Use
pg_hba.confand databaseCONNECTgrants to control who can connect, and to which database.
An agent called over MCP runs the same reasoning loop as one called from SQL. An agent with a purpose records governance decisions, which feed the agent's Signal on the Behavior tab. The Signal belongs to the registered agent, whether the client called the agent over MCP or SQL. An agent without a purpose records no decisions, so the agent shows No decisions.
To find an agent run started by an MCP client, open Activity and search for the MCP session ID. The Steps column shows the number of recorded steps, and OBO Principal shows the Postgres role the client used. Select View Full Details to see the governance decisions. See Inspecting a session.
Calling aidb tools directly over MCP, such as run_sql_query, differs from calling an agent. Postgres privileges still apply, but a denied tool call leaves only an error span, without a governance decision. The denial doesn't count toward an agent's denials or Signal.
Note
Don't set a client role to read-only if you want to audit the role's agent calls. aidb doesn't store telemetry in a read-only transaction. The cause doesn't matter. A role or database default (default_transaction_read_only), ALTER SYSTEM, a session SET, BEGIN READ ONLY, and a hot standby all count. The agent calls then record no sessions, steps, or decisions, so the calls don't appear in the viewer. The agent also keeps no conversation to resume.
Read-only mode isn't a security boundary, because a role can usually change the role's own default. Use the privileges listed above to restrict the role.
For each batch of records not stored, aidb writes one LOG line to the Postgres server log:
[telemetry] traces: N record(s) not stored, transaction is read-only (operations={...}, trace_ids={...}, span_ids=[...] +M more)The signal is traces, logs, or metrics. Search the log for not stored, transaction is read-only. The line names operations and IDs, not contents.