Explainers

Audit trails for AI agents: what to record

The fields every AI agent action should log, a sample record for one payment, how long to keep logs in the UK, US and EU, and how to test a vendor.

Part of the guideAI agents for business finance: what they can and can't do

The short answer

For every action, an AI agent's audit trail should record what it did, when, on whose behalf, under which mandate and version, from which data, why, and who approved it, including actions it refused or failed to complete. The log should be tamper-evident, exportable in a standard format, and kept at least as long as the financial records it supports: six years for UK company records, and at least six months for logs of high-risk systems under the EU AI Act.

An AI agent that acts on your finances is only as trustworthy as your ability to reconstruct what it did. The audit trail is how you answer an auditor, a tax inspector, a customer complaint or your own question of "why did that payment go out?". This article sets out what to record. It expands the audit trail section of our guide to AI agents for business finance.

Why agent logs differ from ordinary system logs

Accounting software already records who posted what and when. That is not enough for an agent, for three reasons.

  • The actor is software acting for someone. You need to know which agent acted, on whose authority and within which limits.
  • The reasoning matters. A person who matches a payment can be asked why. An agent cannot be asked later, so its reasons must be captured at the time.
  • The agent changes. Models, prompts, rules and permissions are updated. A log that does not record the version cannot explain why behaviour differed last March.

The fields to record for every action

Action ID and timestamp
A unique reference and the exact time, in a stated time zone.
Agent and version
Which agent acted, and the version of its model, instructions and rules at that moment.
Mandate and ceiling
The mandate it was acting under and the limit that applied, so you can check it stayed inside it.
Principal
The business, team or person on whose behalf it acted.
Trigger
What started the action: a schedule, an incoming payment, a request from a named person.
Inputs
The records it used, by reference: bank line, invoice, email, document. Store references or hashes rather than copying sensitive data.
Action and outcome
What it did or tried to do, and the result: completed, refused, failed, escalated.
Reasoning and confidence
A short, plain explanation and any confidence score, such as "amount and invoice number match; payer name matches customer".
Approval
Who approved, when and through which channel, or a note that no approval was required under the mandate.
Before and after
For any change to a record, the previous and new values.

Refused and failed actions matter as much as completed ones. An agent that tried to pay a changed bank account and was blocked is exactly the event you want to find later.

A worked example: one payment

Here is what a complete record might look like for a supplier payment prepared by an agent and approved by a person. The details are illustrative.

FieldValue
Action IDACT-2026-10-0412
Time14 Oct 2026, 09:42:10 UTC
Agent and versionFinance agent, mandate v3, rules v12
Mandate and ceilingPay existing suppliers; £5,000 per payment, £15,000 per day
TriggerBill BIL-2290 due 15 Oct 2026
InputsBill BIL-2290 (£6,240), purchase order PO-118, goods received note GRN-77
Proposed actionPay £6,240 to existing supplier, bank details unchanged since 2024
OutcomeEscalated: amount above £5,000 ceiling
ReasoningThree-way match on bill, order and receipt; supplier and bank details known
ApprovalApproved by finance manager, 10:05 UTC, in-app with PIN
ResultPayment sent 10:05 UTC; reference recorded

An auditor can see from this one record that the agent stayed within its mandate, why it escalated and who took responsibility. That is the principle in our article on finance decisions a person should make, made visible.

How much data is that?

Less than you might expect. If a business runs 20,000 agent actions a month and each record is about 2 KB, that is around 40 MB a month, or roughly 2.9 GB over six years. Storage is rarely the constraint; discipline about what to record is.

Access matters as much as volume. Your finance lead, your external accountant and your auditor should each be able to read and export the log without asking the vendor. The people who configure an agent should not be able to delete or rewrite its history, and any access to the log should itself be recorded.

How long to keep it

RuleMinimum period
UK company records6 years from the end of the financial year they relate to, longer in some cases (such as a late return or an open HMRC check)
US tax records (IRS)Generally 3 years from filing; employment tax records at least 4 years; longer in some situations
EU AI Act, deployers of high-risk systemsAutomatically generated logs under your control, at least 6 months unless other law sets a different period

If an agent's actions support your financial records, keep its log for as long as those records. In practice, six years covers most UK and US needs for ordinary business finance; check sector rules if you are regulated.

Testing a vendor's audit trail

  1. Ask for a sample export. Is it in a standard format, such as CSV or JSON, that your accountant can open without the vendor's product?
  2. Pick three past actions, one completed, one escalated and one refused, and check every field above is present.
  3. Check whether the log can be edited. It should be append-only, with any correction recorded as a new entry.
  4. Ask whether the agent's version and mandate are captured with each action.
  5. Ask how long logs are kept, where, and what happens to them if you leave.
  6. Confirm that sensitive data in logs is protected and not used to train other customers' models.

Standards can help structure these conversations. ISO/IEC 42001, published in December 2023, sets out an AI management system, and the NIST AI Risk Management Framework covers documentation and traceability. For the EU log duty in context, see the EU AI Act for finance teams. The full governance model is in the parent guide on governing AI agents in finance.

Where Pryme fits

On Pryme business accounts, agents such as the Finance and Compliance agents prepare work inside a mandate with a ceiling. Above the ceiling a person decides, and an audit trail records agent actions. The agents are built and certified by Pryme Intelligence, a separate company.

Outside Nigeria, Pryme's activities are carried out through regulated partners.

Questions people ask

What should an AI audit log contain?

At minimum: what the agent did, when, under which mandate and version, using which inputs, why, what happened and who approved it. It should include refused and failed actions, not just completed ones.

How long should I keep AI agent logs?

As long as the financial records they support. For UK companies that is generally six years from the end of the relevant financial year. Under the EU AI Act, deployers of high-risk systems must keep logs for at least six months.

Can an auditor rely on an AI agent's work?

Auditors rely on evidence and controls. A complete, tamper-evident log linking each action to its source records and approvals gives them that evidence; a black box does not.

Should audit logs store the AI's prompts?

Store enough to explain the action: the inputs by reference, the agent's version and its stated reasoning. Copying every raw prompt can create a store of sensitive data, so protect anything you keep.

Sources

  1. GOV.UK: Running a limited company - company and accounting records · accessed Oct 2026
  2. IRS: Common questions about recordkeeping for small businesses · accessed Oct 2026
  3. European Commission AI Act Service Desk: Article 26, obligations of deployers of high-risk AI systems · accessed Oct 2026
  4. ISO: ISO/IEC 42001:2023 AI management systems · accessed Oct 2026
  5. NIST: AI Risk Management Framework · accessed Oct 2026

This article is general information, not financial, legal or tax advice. Products described are provided under the terms on this site and are subject to regulation and eligibility.

More from this guide