An audit trail for AI agent code changes
Last updated: November 16, 2026
When an AI coding agent changes your code, someone will eventually ask: what was it asked to do, what did it actually do, and what shows that it worked? An audit trail is the record that answers those questions after the fact. This page describes what such a record should hold, what AvowGate keeps, for how long, and just as important, what it cannot show.
The questions a trail should answer
- What was asked? The request, written down before the work started.
- What proves it? The tests for each requirement and their results for the exact commit.
- What did the agent do? The commands it ran, the files it changed and the pages it fetched.
- Who decided what? The sign-offs, dismissals and pauses, with the name of the person who made them.
What AvowGate records
There are two layers. The first is the work record: the task, its commitments, the tests linked to each, the results reported for each commit, the deployments, and every decision only a person may make. An agent can add requirements and report results, but it cannot sign off a risk, dismiss a finding or retire a test, so those entries always carry a person's name. Pausing and resuming the agents is written to the audit trail as well.
The second layer is Agent Watch, which shows in plain words the commands your agent ran, the files it changed and the web addresses it fetched. Each action is green (ordinary), amber (take a look) or red (stop and check), with a short reason. A flagged action that no task accounts for is marked unexplained. Each card has an Around this action view that shows what the same agent did just before and after. If the tool reports which AI model and provider did the work, that is shown too.
How long it is kept
Agent Watch actions are kept for 7 days on Free, 90 days on Builder and 365 days on Team. Red actions are kept for at least 90 days on every plan, so you can still investigate them after the plan's normal window.
Reviewing what the agent did
A person can press Mark expected or Mark concerning on an action and write a short note. Reviewed actions leave the Needs attention list, and the note is kept with the action. The server decides the colour, so an agent cannot lower its own flag.
Keys and passwords
Keys, tokens and passwords are hidden on your computer before anything is sent, and again on our server. Ordinary file reads are not reported; a read is reported only when the path looks like a key, a password file, an environment file or a token file.
What it cannot show
- Agent Watch is not a sandbox. It reports what the agent's tool shows before each step. A program the agent starts can do more than its command line shows, and a determined agent can try to disguise a command. Treat red and amber as a reason to look, not as proof that everything else is fine.
- It is only as honest as the tool. The model name and provider are reported by the tool, not verified. Code a person pasted in from a model is not seen, and an agent could choose not to report it.
- Stopping works only through the hook. By default Agent Watch only reports. A person can switch on refusing red actions, pause the agents, or pause them automatically after a number of red actions, but each works only through the hook the agent runs. An agent that does not run it, or removes it, is not stopped, and if AvowGate cannot be reached the step is allowed.
- A task link is not a justification. It means the action happened while that task was open, not that the task needs it.
Where to start
The setup steps are in the guide, and the work record is described in how to make an AI coding agent prove its work with tests and a quality gate for AI-generated code. Sign-up is open, and the home page has a read-only live demo; the Watch tab has a Run the demo button that plays a made-up session so you can see the cards first. What the record is for is judgment: a person still has to sign off what no test can show.
Questions and answers
What is an audit trail for AI agent code changes?
It is a record of what an AI coding agent was asked to do, what it did, and what evidence shows the result: the requirements, the tests and their results for each commit, the actions the agent reported such as commands run and files changed, and the decisions a named person made about them.
What does AvowGate record about an AI agent's actions?
Agent Watch records the commands the agent ran, the files it changed and the web addresses it fetched, as reported by the agent's tool before each step. Each action is marked green, amber or red with a short reason, and keys, tokens and passwords are hidden before anything is sent.
How long are the records kept?
Agent Watch actions are kept for 7 days on Free, 90 days on Builder and 365 days on Team. Red actions are kept for at least 90 days on every plan, so they can still be investigated after the normal window.
Does an audit trail stop an agent from doing something harmful?
No. Agent Watch is not a sandbox. By default it only reports. A person can switch on refusing red actions or pause the agents, but that works only through the hook the agent runs: an agent that does not run it, or removes it, is not stopped.