# 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.

- Source: https://finray.tech/notes/ai-agent-audit-trail/
- Author: Finray
- Published: 2026-11-22
- Reading time: 7 min
- Publisher: Finray Technologies Ltd, Cyprus Companies Registry HE 445903

---

## 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).

| Control | Title | What it means for agent work |
| --- | --- | --- |
| AU-2 | Event Logging | Decide which agent actions are logged: at least every create, change and move |
| AU-3 | Content of Audit Records | Each record names the event, time, place, source, outcome and identities |
| AU-9 | Protection of Audit Information | Agents cannot change or delete the audit records |
| AU-10 | Non-repudiation | The record ties the change to the credential, and the credential to a person |
| AU-11 | Audit Record Retention | Keep the records as long as the records they describe |
| AC-6(9) | Least Privilege: Log Use of Privileged Functions | If 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.

| Field | What to record | Example (invented) |
| --- | --- | --- |
| Requested by | The person on whose behalf the agent acted | A. Developer |
| Agent and credential | Which agent ran, and the token or account it used | Coding assistant, token "issues-drafting" |
| Action | Create, update, move, comment, time entry | Create subtask |
| Target | The record that changed, with its identifier | Issue 1042 |
| Change | The fields before and after, or the new content | Estimate: none to 3 hours |
| Time | When the system applied the change | 22 November 2026, 10:14 |
| Confirmation | Whether the person confirmed before it was sent | Confirmed in chat |
| Review decision | Accepted or rejected, by whom, when | Accepted by the team lead |
| Outcome | Applied, reverted, refused | Applied |
| Refusals | Calls the system refused, with the reason | Delete 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?

| Missing field | What a reviewer cannot answer |
| --- | --- |
| Requested by | Which person is accountable for the change |
| Agent and credential | Whether a person or a model made it, and which token to revoke |
| Change before and after | What to restore if the change was wrong |
| Review decision | Whether anyone checked it |
| Refusals | Whether the agent tried something outside its scope |

The [four-eyes principle](/intelligence/glossary/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](/notes/mcp-server-project-management/) covers the protocol, and [API token permissions for AI agents](/notes/ai-agent-api-token-permissions/) 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](/solutions/agentic-payments/).

## 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](/notes/soc-2-evidence-ai-assisted-development/) lists what auditors typically sample.

## Where does Pync fit?

[Pync](/platforms/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](https://finray.tech/platforms/pync/ai-agents/).

## 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

- [NIST: SP 800-53 Rev. 5, Security and Privacy Controls for Information Systems and Organizations, AU and AC families (accessed 22 November 2026)](https://csrc.nist.gov/pubs/sp/800/53/r5/upd1/final)
- [NIST: AI Risk Management Framework and the Generative AI Profile, NIST AI 600-1 (accessed 22 November 2026)](https://www.nist.gov/itl/ai-risk-management-framework)
- [Model Context Protocol: Specification, latest version (accessed 22 November 2026)](https://modelcontextprotocol.io/specification/latest)
- [Finray: Pync, delivery and ISMS workspace (accessed 22 November 2026)](https://finray.tech/platforms/pync/)
- [Finray: How we build software with AI agents (accessed 22 November 2026)](https://finray.tech/company/how-we-build/)
