What is recorded#
bastn records every tool call outcome, every enforcement decision and every approval event in its audit log. A row records:
- the kind of row, the server, the tool, the verdict (for example allowed, blocked, rate limited or error) and the reason;
- who made the call: the team, user and agent, and a fingerprint of the key;
- the request, session, run and approval ids, the connector and the relay if there was one, and the latency;
- the MCP client and model the agent reported, the destination, and the size of the arguments and result;
- digests of the arguments and the result, never their content.
The digests are keyed, so someone who can read the log cannot confirm a guess of small arguments by hashing it. Equal arguments still give equal digests, so rows can be matched to each other.
A call that runs has two rows: an intent row sealed before the call is sent to the tool, and a call row with the outcome. If the intent row cannot be written, the call is not sent.
Changes made in the dashboard, such as a policy edit, a key minted or an agent killed, are recorded too.
The hash chain#
Each row is sealed into a hash chain: its hash covers the row and the hash of the row before it, and is keyed with a secret bastn holds. Editing, deleting or reordering a sealed row breaks the chain from that row on, and nobody without the key can compute a valid link to repair it.
Audit rows are append-only. Old rows leave the log only through retention, which records each prune in the chain, and legal holds stop retention from removing the rows they cover.
Note
Checking the chain needs the key. On Hosted, bastn holds the key and runs the check; you can export your teams' rows (see Exports), but you cannot check the keyed hashes yourself. On an Enterprise self-hosted install you hold the key and can verify the whole chain offline. See Hosted and self-hosted.
The activity log#
Open Activity in the dashboard. Its Log tab is the audit log: it lists the rows of the teams you can see, newest first.
- Quick filters above the rows narrow them in one click: Denied, Held, Errors and Last 24h.
- Filters opens the rest: kind, server, tool, verdict, agent (picked by name), user, key fingerprint, connector and time, and under More filters the request, run and trace ids.
- Open a row to see its full sealed record, including the digests and the delegation chain when a delegated credential made the call.
- Live tail follows new rows as they arrive.
Members, viewers and admins of a team see its rows. Rows of other teams are not shown.
Exports#
JSONL export#
Open Chain and exports on the Log tab. Export JSONL downloads the rows you can see as JSONL, one row per line, oldest first, ending with the chain head at the time of the export. Your export holds your teams' rows only. It is a subset of the chain, so on its own it cannot prove that no row is missing.
Evidence bundles#
With an agent, server, tool, run, trace or time filter applied, Export evidence appears beside it and saves an evidence bundle for an incident. It contains:
- the rows that match, and every other row in the same stretch of the chain, so the stretch is complete;
- a manifest with the filter, who exported it and when;
- a summary of what the selected rows touched: calls by verdict and effect, agents, servers, tools and users.
In your bundle, rows of other teams in the same stretch appear only as links (their sequence number and hashes), with nothing they record.
Each export is itself recorded in the log.
Legal holds#
Org admins can place a legal hold to keep evidence through retention. Open Activity, Chain and exports, then New hold under Legal holds.
A hold covers your whole org, one team, one agent or one server, optionally only between two times. It needs a reason, and can have an expiry. While it is active, retention does not delete the rows or approvals it covers. Release it when the matter ends.
Placing, releasing and the expiry of a hold are each recorded in the log.