Skip to content
Lees in het Nederlands

What to record about every agent run

An AI agent audit trail answers who did what, when, with which arguments and at what cost. What to record per run and per action, and who may read it.

Staying in control · 6 of 93 min readUpdated

In 30 seconds

  1. 1Record each model call: model, tokens, cost, duration and every tool call.
  2. 2Record each action and setting change: who, what, when and with what.
  3. 3Decide who may read the record and how long it is kept, before you need it.

On this page

  1. Two records, not one
  2. Keep it readable
  3. A worked example: who approved this refund?
  4. Decide who may read it
  5. Decide how long it is kept
On this page5 sections · 3 min
  1. Two records, not one
  2. Keep it readable
  3. A worked example: who approved this refund?
  4. Decide who may read it
  5. Decide how long it is kept

The short answer

An AI agent audit trail must record, for every run, who asked for the work, what the AI agent did, which systems it touched with which arguments, who approved it and what it cost. That takes two records: one of every call to a model, and one of every action and change of setting. Then decide who may read them and how long they are kept.

Two records, not one

The run record. Every call to a model is a run: the provider and model, the tokens in and out, the estimated cost, how long it took, whether it succeeded, and each tool call with its step number and a shortened result. It is linked to the conversation, task or message it served, so a cost or a failure can be traced to the work.

The audit log. Every action and change that matters is an entry. It records who did it (a person or a colleague), what it was and on which target, a summary with the details and, for people, the IP address and browser. Connecting an integration, publishing a flow, deciding a checkpoint, running a command on a server, a guard refusing something: each leaves a line.

Task · ticket #20417Example

Run receipt · 14:10:31Succeeded

Provider · model
Anthropic · claude-sonnet-5
Tokens in / out
3,412 / 286
Estimated cost
$0.0097
Duration
2.1 s
Served
Task · ticket #20417

Tool calls

  1. 1zendesk_get_ticket#20417 · “Invoice paid twice”
  2. 2search_knowledge3 passages · Refund policy
  3. 3create_subtask“Check the payment” → Otis

Task total $0.0220Subtask, its own total: $0.0003

Keep it readable

A record nobody can read is not oversight. In Infinized the audit log is a page you can filter, and it exports to CSV by date range and action, with a daily export for teams that keep their own archive. Costs roll up per colleague, per team and per model, with a month-end forecast.

A worked example: who approved this refund?

A customer questions a refund. Filter the audit log on that action and the date range. The entry shows which AI agent proposed the refund, with which arguments, who approved it and when. The run record of the task behind it adds the model, the tokens, the estimated cost and each tool call in order. Together the two records answer who asked, what was done, who decided and what it cost, without anyone having to remember.

Decide who may read it

Reading the audit log is a permission of its own. Owners and admins have it. Other roles do not, unless it is granted to someone individually. Keep that circle small: the log shows what colleagues did in your systems.

Decide how long it is kept

By default, Infinized keeps full run records for 30 days, then daily roll-ups for 180 days, and audit entries for 365 days. If you need longer, for your own obligations as a deployer under the AI Act or for a contract, export the log and keep it yourself.

See audit trail.

See it at work in your organisation.

We start by listening to your question. Then we show you a demo that fits your organisation.

  • Approvals from the first run
  • Budgets that stop
  • Hosting in the Netherlands