How to Audit AI Employee Activity Across Every Run
What a defensible audit of AI activity has to answer, which fields to capture, and how to reconstruct a single run from the log.
Direct Answer (Quick Summary)
Auditing AI employee activity means reconstructing any single run: what the employee was asked to do, which tools it called, with which arguments, under what authorisation, what was held for approval, and what finally changed. That requires an append-only log of assignments, tool calls, approvals, cost and final state.
Key Takeaways
- An audit is only defensible if you can reconstruct one specific run end to end, not summarise a week of activity.
- Prompt transcripts record what the model said; tool-call arguments record what actually changed in the world.
- Tool calls need arguments, response status and duration, not just the tool name and a success flag.
- Approval events must record what was held, who approved it, and when, including auto-rejected timeouts.
- Append-only storage matters because an audit record that can be edited is an opinion, not evidence.
- Audit access should be narrower than operational access, with breaks recorded on their own log.
- Retention rules need to be explicit, because the default is usually shorter than the compliance window.
Auditing AI employee activity means being able to reconstruct any single run: what the employee was asked to do, which tools it called, with which arguments, under what authorisation, what was held for approval, and what finally changed. That reconstruction is the deliverable. A dashboard of aggregate counts is a management artefact, not an audit.
The three questions an audit has to answer
What did it do? The sequence of steps and the tool calls, with arguments and results. Without arguments you know the employee opened the CRM; you do not know what it wrote.
On whose authority? Which employee, which connected account, which permission scope, which policy was in force at the time. An action taken with a scope you thought you had revoked is a control failure, and you can only prove that from the record.
What changed? Which external systems were mutated, which records were written, what it cost. This is the part that matters when a customer disputes something.
If your log answers none of the three, it is a debug log. That is still useful, and it is not an audit. The distinction is exactly the one drawn in why AI employees need governance: governance is only real if the evidence exists afterwards.
The fields that make reconstruction possible
| Field | Reconstruction value |
|---|---|
| Run id, employee id, outcome id | Joins the run to the role and the work it was given |
| Timestamps, start and end | Establishes ordering and duration across systems |
| Task list at start | Shows the plan before any side effect |
| Tool name and arguments | The actual external call and its payload |
| Tool response status and latency | Separates a rejected call from a silent failure |
| Approval events | What was held, who cleared it, when |
| Cost per step | Attribution for billing and for abuse detection |
| Final state and error | Why the run ended the way it did |
Two of these are routinely omitted and both are expensive to omit. Tool arguments: if you log only the tool name and a success flag, you cannot tell a correct write from a correct-shaped write to the wrong record. Approval events: if the gate exists but the approval itself is not logged, you cannot show that a human authorised an external action.
A procedure for auditing AI activity
- Pick the question first. Regulatory evidence, incident investigation and cost attribution need different fields, so decide what you are proving before you decide what to log.
- Confirm the log is append-only and timestamped at write time, not at export time. A record that can be edited cannot be evidence.
- Verify the run id is present on every step, including tool calls that failed and approvals that timed out. Gaps at failure are where the interesting behaviour lives.
- Walk one recent run end to end and write out the narrative in plain language. If you cannot, your fields are wrong, not your analysis.
- Check that the connected credential in use is the one you expect, per run, rather than per workspace assumption.
- Compare the recorded authority against the policy in force at the time, not the policy you have today. Policies drift; the record does not.
- Export the slice, hash it, and store the export somewhere the AI workforce cannot write to. An audit that lives inside the audited system is self-referential.
- Review retention against the compliance window you are actually subject to. The platform default is usually shorter than the question you will be asked.
A failure mode worth naming
The classic audit failure is logging the conversation and calling it governance. You have the model's reasoning and none of its effects. Every real incident then turns into an argument about what the employee must have done, because the tool arguments were never persisted.
The second classic failure is over-redaction. Redacting PII at capture time so aggressively that the record cannot answer the question it exists for. Redaction should follow the data classification policy, and it should be reversible under a narrower role, not baked in as a lossy transform. If the reviewer cannot read the arguments, there is no reviewer.
Reconstructing one run, worked
An operations lead asks why a customer's renewal record was overwritten three weeks ago. Working from the run log:
- The run id maps to one outcome assigned to one reasoning-layer employee.
- The task list shows a four-step plan drafted before the first tool call.
- The second tool call carries a full record write, not a field-level patch, with arguments naming the record and the prior values.
- No approval event is present for that step, because the employee held it inside an allowlisted connector scope rather than the approval gate.
- The final state is completed, and the cost attributed to the run is visible.
The finding is not a model bug. It is a policy gap: a destructive write sat below the approval gate. The remedy is human approval in AI workflows applied to write operations, plus the permission scoping described in AI employee permissions explained. Nobody could have found this without the arguments in the log, and no amount of aggregate reporting would have surfaced it.
Sampling, retention and who can read it
Full retention of every argument for every run is expensive, and most of it is never read. The workable pattern is continuous sampling for detection and full reconstruction on demand. Sample wide for anomalies - unexpected volume, new tool names, writes outside normal hours - then pull the complete run for the flagged window. How to track AI decisions covers the decision-level view that feeds this sampling.
Access to the audit log should be narrower than operational access, and reads of the log should themselves be logged. An audit trail that any operator can quietly browse has already been audited by whoever wanted to avoid one. The permission model is described in AI access control what enterprises need to know, and the prevention side in how to prevent AI employees from taking unauthorized actions.
How to apply this
Reconstruct one run from your current logs, in prose, without opening a second tool. Write down which of the three questions you could answer and which you could not. Then close the gaps you found in this order: tool arguments, approval events, credential identity per run. Those three fields are what turn a transcript into evidence, and they are what every AI employee audit trail has to contain.
Sources and further reading
- AICPA: SOC 2: the assurance standard buyers often ask for.
- NIST SP 800-53 Rev. 5: the reference catalog of access and audit controls.
- Anthropic: Building Effective Agents: workflow and agent patterns from production use.
Frequently Asked Questions
What is the minimum data needed to audit AI employee activity?
Six fields on every run: run id, the outcome it was assigned, the task list from before the first tool call, each tool call with its arguments and response status, every approval event with approver and timestamp, and the final state with cost. Without arguments you cannot see what was written, and without approval events you cannot show a human authorised it. Prompt transcripts alone cover none of the three audit questions.
How long should AI activity logs be retained?
Set retention to the longest window you can be audited against, not the platform default. For internal investigations a few months of runs is usually enough, while regulated external actions may need a year or more. Whichever window you pick, export the slice out of the AI workforce into storage it cannot write to, and record the export hash so the copy is demonstrably unchanged.
Do we need to log full prompts to meet an audit standard?
Usually not on their own. Prompts show intent; tool-call arguments and external writes show effect. Most auditors care about which system was changed, what value was written, under which credential and with whose approval. Log prompts when they contain material decisions or regulated data, but treat tool arguments and approval events as the mandatory core of the record.
Who should be able to read the AI employee audit log?
A narrower group than the people who can operate the AI workforce - typically compliance, security and the owner of the relevant outcome. Give the audit role read access rather than blanket operational access, and log reads of the audit log itself. If an operator can browse the trail without creating a record of having done so, the trail offers no assurance.
How do I audit an AI employee that failed rather than misbehaved?
Failure is audited with the same fields as misbehaviour: the task list, the tool responses including status and latency, the error that ended the run, and the retry pattern. Repeated failures on the same call are the signal worth chasing, because they usually mean a broken connector or a missing permission rather than a bad decision. Group runs by the failing tool to find the systemic cause quickly.
Can an audit log be too detailed to be useful?
Yes, when redaction is applied at capture time and destroys the arguments you need. Redaction should follow your data classification policy, with reversible access for a narrower reviewing role rather than a lossy transform at write time. An audit record a reviewer cannot read is not evidence, and over-collection without classification is its own governance problem.
Related reading
- Why AI Employees Need Governance
- Why Every AI Employee Needs an Audit Trail
- How to Track AI Decisions So You Can Defend Them Later
- Human Approval in AI Workflows: Where the Gate Belongs
- AI Employee Permissions Explained: Scope, Roles, Revocation
- AI Access Control: What Enterprises Need Before Rollout
- Your AI Employee Can Now Run Your Warm Introductions