CheckedSourced, dated, and no one pays us

AI Agents / Risks

AI Agents · Risks

Logging and Audit Trails for Agent Actions

Over half of agents run without logging, and retrofitting it stalls projects at security review. What to record, and why conversation logs are not enough.

Facts checkedAugust 2026 For: Technical, Decision-makers

More than half of AI agents run without any security oversight or logging, and organisations that piloted without audit trail infrastructure are now rebuilding their permission and logging architecture before they can pass enterprise security review.

An expensive discovery to make after the pilot, and an easy one to avoid.

For a vendor-side perspective on remote companies, see the vendor page from Monitask.

Why conversation logs are not enough

Most agent platforms log the conversation — what was asked, what the model said.

That is not what you need when something goes wrong.

The question at that moment is what the agent did. Which system, which record, which change, with what result, on whose behalf.

A conversation log shows intent. An action log shows consequence. Only the second answers "what happened to our data".

What to record

Per action, not per conversation.

Which agent — its own identity, not a shared account or a person's. See agent identity.

On whose behalf, where the agent acts for a user. Both, not one.

Which tool was called, with what arguments.

What the tool returned — at minimum success or failure, and where practical a reference to the affected record.

When, with enough precision to reconstruct order.

What triggered it — a user request, a schedule, another agent.

Whether a human approved it, and who.

And the outcome. Completed, failed, escalated, abandoned.

What to record about failures

Frequently more useful than the successes, and frequently not captured.

Retries. How many, and why each failed. A retry pattern is both a cost problem and a signal that something is wrong. See what agents cost to run.

Iteration counts. An agent that took forty steps to do a five-step task is telling you something.

Escalations. What the agent could not do.

Rejections. Where a human declined an action, and why. This is the highest-value data in the system for improving scope, and it is almost never collected.

Why it has to be built alongside

Retrofitting means reconstructing what happened without a record of it, which is not possible.

Security review will ask for it. 81% of teams are past planning while only 14.4% have full security approval, and audit trails are a common blocker.

Incident response needs it. Without action logs, "did the agent touch this data" is unanswerable.

And regulators increasingly expect it.

Making the logs usable

Recording is not the hard part. Finding things is.

Queryable by agent, by user, by system, by time, by outcome. A file you can only read sequentially is not an audit trail.

Retained for a defined period, set deliberately. Long enough for investigation and dispute, and not indefinitely — these logs contain personal data and business data.

Access controlled. Agent logs show what people asked for and what data was touched.

Alerted on. Unusual volume, calls to tools an agent does not normally use, spikes in retries, actions outside normal hours. Detection matters because prevention is incomplete.

And reviewed, at least at first. The first weeks of logs show the gap between what you granted and what the agent actually uses — which is how you narrow permissions from evidence rather than guesswork. See permissions.

The multi-agent problem

Identity does not propagate by default. The second agent in a chain sees a call from the first, with no trace of the original user.

Which makes end-to-end attribution impossible unless you build it deliberately — a correlation identifier carried through the whole chain. For broader independent background, see OWASP GenAI Security Project.

Only 24.4% of organisations have full visibility into which agents are communicating with each other.

If you run more than one agent, decide how attribution propagates before you have an incident.

For small teams

Proportionate, and not nothing.

Know what the agent did. If the tool does not show an action history, that is a reason to be careful about what you connect it to.

Keep the outputs that went anywhere — sent messages, changed records.

Review the first twenty actions of anything new, properly.

And prefer tools that show you an action log over ones that show only a chat history. It is a reasonable question to ask a vendor.

Questions for a vendor

Do you log actions or only conversations?

Can we query by agent, user, system and time?

Can we export the logs?

What is the retention, and can we set it?

Can we alert on patterns?

And what identity appears in the log when the agent acts for a user? If the answer is only the user, attribution is already broken.

The short version

Conversation logs show intent; action logs show consequence. Only the second answers what happened to your data.

Record: which agent, on whose behalf, which tool, what arguments, what result, what approval.

Log rejections — where a human declined an action is the highest-value data for improving scope, and almost nobody collects it.

Build it alongside, not after, because retrofitting means reconstructing what was never recorded.

And decide how attribution propagates across agent chains before you need it, not during an incident.