Skip to content
In the news TRM Labs × Finray — audit-ready crypto transaction monitoring for banking
Finray

AI agent audit trail: what to record when agents write to your systems

What an audit trail of AI agent work should hold: who asked, which agent and credential acted, what changed, who accepted or rejected it, and what the agent could not do. Built on NIST SP 800-53 audit controls, with a field list and an invented example.

By
Finray
Published
Reading time
7 min

What should an AI agent audit trail record?

An audit trail of AI agent work should let someone who was not there answer five questions about any change: who asked for it, which agent did it with which credential, what exactly changed, who decided whether it stands, and what the agent was not allowed to do. If the answer to any of them lives only in a chat window, the trail has a gap.

This note sets out the fields to record, maps them to the audit controls in NIST SP 800-53, shows what goes wrong without them and follows one invented change through the trail. It is written for teams whose agents write to shared systems: issue trackers, document registers, configuration and code.

Why do agents need their own audit trail?

Ordinary audit logging assumes that a person sits behind each account. With agents, three things change. The actor is a model working for a person, so one log line has to name both. The agent can act many times a minute, so a missed record matters more. And the instruction came from a conversation that the system of record never sees, so the system has to log the effect, not the intention.

A chat transcript is not an audit trail for the same reason. It records what was said to the model. It does not prove what the target system did, it may be held by another provider, and it can be lost.

What does NIST SP 800-53 ask for?

NIST SP 800-53 Revision 5 is the US federal catalogue of security and privacy controls, widely used outside government as a reference. Its audit and accountability family (AU) covers what to log and how to protect the logs. Control AU-3, Content of Audit Records, asks for records that show the type of event, when and where it happened, where it came from, how it ended and who or what was involved. Other controls in the family cover which events to log (AU-2), keeping audit records and logging tools safe from unauthorised access, change and deletion (AU-9), evidence that ties an action to the person or process that performed it (AU-10), and keeping records for a period the organisation sets (AU-11).

What does NIST SP 800-53 ask for?
ControlTitleWhat it means for agent work
AU-2Event LoggingDecide which agent actions are logged: at least every create, change and move
AU-3Content of Audit RecordsEach record names the event, time, place, source, outcome and identities
AU-9Protection of Audit InformationAgents cannot change or delete the audit records
AU-10Non-repudiationThe record ties the change to the credential, and the credential to a person
AU-11Audit Record RetentionKeep the records as long as the records they describe
AC-6(9)Least Privilege: Log Use of Privileged FunctionsIf an agent ever runs a privileged function, that run is logged

The mapping in the third column is our reading, not NIST’s text. SP 800-53 is a catalogue, so a team picks the controls that fit its systems rather than adopting all of them.

Which fields should each record hold?

For each agent action on a shared system, record the following. The examples are invented.

Which fields should each record hold?
FieldWhat to recordExample (invented)
Requested byThe person on whose behalf the agent actedA. Developer
Agent and credentialWhich agent ran, and the token or account it usedCoding assistant, token “issues-drafting”
ActionCreate, update, move, comment, time entryCreate subtask
TargetThe record that changed, with its identifierIssue 1042
ChangeThe fields before and after, or the new contentEstimate: none to 3 hours
TimeWhen the system applied the change22 November 2026, 10:14
ConfirmationWhether the person confirmed before it was sentConfirmed in chat
Review decisionAccepted or rejected, by whom, whenAccepted by the team lead
OutcomeApplied, reverted, refusedApplied
RefusalsCalls the system refused, with the reasonDelete refused: no permission

Refusals are easy to forget and useful to keep. A run of refused deletes tells a reviewer that an agent was asked to do something its credential did not allow, which is exactly the case to look into.

What goes wrong without them?

What goes wrong without them?
Missing fieldWhat a reviewer cannot answer
Requested byWhich person is accountable for the change
Agent and credentialWhether a person or a model made it, and which token to revoke
Change before and afterWhat to restore if the change was wrong
Review decisionWhether anyone checked it
RefusalsWhether the agent tried something outside its scope

The four-eyes principle depends on the review decision being recorded. Without it, the second pair of eyes leaves no trace, and an auditor has to take the team’s word for it.

Where should the trail live?

In the system that holds the records the agent changed, not in the agent. The agent, the chat and the model provider can each change or disappear; the system of record is what the team and its auditors already rely on. Two more points follow from that:

  • The system writes the record, whatever the client sends. If the trail depends on the agent remembering to set a flag, it fails the first time a client is misconfigured.
  • The agent cannot erase it. Give agent credentials no delete rights, and keep the audit records themselves out of reach of any credential an agent holds.

The Model Context Protocol, one common way to connect assistants to tools, leaves this to implementors: its specification says MCP cannot enforce its security principles at the protocol level. The note on MCP servers for project management covers the protocol, and API token permissions for AI agents covers the credentials. When an agent initiates payments, the same record belongs on each posting, with the mandate and who initiated it, as set out in agentic payments for banks, EMIs and fintechs.

A worked example

The team and its records are invented. A developer asks an assistant to split a feature into subtasks and log the hour spent planning. The assistant drafts four subtasks and a time entry; the developer confirms in the chat.

The tracker writes four records of type “create subtask” and one of type “time entry”, each naming the developer as the person who asked, the agent’s token, the new content and the time. The subtasks wait for review; the team lead accepts three and rejects one, and the trail records both decisions and the revert. A day later the assistant, following a line in an issue description, tries to delete an old epic. The tracker refuses and logs the refusal. The security officer sees it in the weekly review, finds the planted line and removes it.

How does this fit US frameworks?

The NIST AI Risk Management Framework, intended for voluntary use, organises AI risk work into four functions: Govern, Map, Measure and Manage. In our reading, the audit trail is evidence for Manage (decisions on each change are recorded) and Measure (the refusals and rejections can be counted and reviewed). NIST’s Generative AI Profile, NIST AI 600-1, applies the framework to generative AI.

Teams that also report under SOC 2 will find the same records reused there; SOC 2 evidence for AI-assisted development lists what auditors typically sample.

Where does Pync fit?

Pync is Finray’s delivery and ISMS workspace. AI agents work in the same records as the team, with their own agent tokens. When an agent creates or changes an issue, a subtask or an asset, the change applies at once and lands in the Review queue, marked as created by AI and not yet valid. A person accepts it, or rejects it and the change is reverted. Change records, incidents and scheduled maintenance each keep their own trail, traced back to the work.

Pync from your own Claude session

Manage your AI agents and your team in Pync from your own Claude session. A Claude session works with Pync through agent skills, which call Pync's REST API with an agent API token. A person mints that token in their own Pync profile, under API tokens → New token. The session drafts each change, the person says yes in the chat, and only then is it sent.

  • What waits for review and what applies at once. Changes to issues, subtasks, assets and scheduled maintenance from an agent token apply at once, marked as not yet valid, and wait in the Review queue; timesheet edits, comments and attachment uploads apply at once, labelled AI. The server decides this, whatever the client sends. A person accepts or rejects each change in the queue, and a reject reverts it.
  • Moves are reviewed too. A move of an issue between states files its own review item.
  • What an agent token cannot do. An agent token cannot delete issues, attachments, timesheets or maintenance schedules, or change projects and labels; the server refuses with 403. A subtask an agent deletes waits in the Review queue, and a rejection restores it.

OpenAI Codex supports the same open agent skills format: a folder with a SKILL.md file. The steps, the scope and the US governance context are on AI coding agents and your team in one tracker.

Frequently asked questions

What is an AI agent audit trail?
A record of each action an AI agent took in a system: who asked for it, which agent and credential acted, what changed, when, with what outcome, and who accepted or rejected the result. It lets a reviewer reconstruct the work without asking the agent.
Is a chat transcript enough as an audit trail?
No. A transcript shows what was said, not what the system did. The system that holds the records should log the change itself, with the identity of the credential that made it, because the conversation can be lost, edited or held by another provider.
What should an audit record of an agent action contain?
NIST SP 800-53 control AU-3 lists the basics: the type of event, when and where it happened, its source, its outcome and who or what was involved. For agents, add the person who asked, the agent's credential and the review decision.
Should agents be allowed to delete their own records?
No. An agent that can delete can also remove the trace of what it did. Keep deletes with people, and protect the audit records themselves from change and deletion, which is what NIST control AU-9 is about.
How long should agent audit records be kept?
As long as your own retention rules require for the records the agent changed, and at least as long as an auditor or a client may ask about them. NIST control AU-11 leaves the period to the organisation's own retention policy; it does not fix one.

Sources

Read next

Discuss how this applies to your institution with the Finray team.

Book a briefing

All notes

Certificate of Registration NQA · UKAS Management Systems
ISO/IEC 27001:2022 Certificate of Registration issued by NQA to Finray Technologies Ltd, certificate number 215646, valid 21 October 2025 to 21 October 2028
Search
Type to search across Finray, products, company, and journal.

    Press Esc to close · ↵ to open the highlighted result.

    Book a briefing Step 1 of 3

    What you need

    Which platforms are in scope.

    For example a licence application, an audit or a ledger build-out.

    What happens after you book

    • A team member will respond within one business day with availability windows.
    • Corebanq runs as Cloud SaaS, Private SaaS or an Enterprise Licence.
    • After the briefing, the full Corebanq and XZiel API references are issued with test-environment access.
    • Due-diligence documents, such as a summary of the April 2026 independent penetration test, are available under NDA.