VaikoraVaikora

Vaikora › Blog › Product Updates

AI action auditing: what each log record needs to prove, and what makes a record legally defensible

Product Updates · Nov 30, 2026 · 4 min read

Tamper-evident and legally defensible are not the same thing. A log that records every AI agent action but lets you delete or reorder entries fails both properties at once, and most audit implementations do exactly that.

This article covers what a defensible AI action audit record contains, how hash-chaining makes tampering detectable, and what gaps appear when you skip either one.

Why standard application logs do not work for AI agents

Application logs are append-only by convention, not by design. A developer or administrator with write access to the log store can delete a row, modify a field, or truncate a file without leaving a trace. For a human user clicking a button, that is an acceptable risk because other controls exist. For an AI agent firing thousands of actions per hour, the log is often the only control surface you have after the fact.

The second problem is context. A record that says `agent=customer-support action=send_email timestamp=14:32:07` is not useful for investigation. You need to know what the agent was given as input, what policy rule applied, what the policy decided, and what the agent was permitted to pass downstream. Without all four, you cannot reconstruct the action chain.

What belongs in each record

A minimal defensible record for one AI agent action contains:

That last field is the one most implementations omit. Without it, you have a pile of records, not an ordered, verifiable sequence.

How hash chaining works in practice

Every time an enforcement point writes a decision record, it computes a SHA-256 hash over that record's content plus the hash of the immediately preceding record. That hash is stored with the new record and becomes the input to the next one.

The result is a chain where any modification to any record (a changed timestamp, a swapped policy result, a deleted row) produces a different hash. That difference propagates forward through every subsequent record, making the break detectable at verification time.

Vaikora writes every policy decision into a SHA-256 hash-chained, tamper-evident audit log. At P50, the enforcement decision itself takes 8ms, and the log write is part of that cycle, so the latency cost of auditability is not a separate tax on throughput.

A concrete scenario where this matters

Consider an AI agent that has been granted access to a file-storage tool. At 09:14, it reads a customer contract. At 09:15, it calls a send-email tool. At 09:16, the policy engine receives a call to upload a file to an external endpoint and blocks it.

An investigator later asks: did the agent have access to the contract before it attempted the external upload? Without a hash-chained log, you can prove each event happened, but you cannot prove the ordering was not manipulated. With hash-chaining, the chain from the read record through the email record to the block record is verifiable. Any reordering breaks the chain.

That is the difference between a log that records what happened and one that proves what happened.

Where audit breaks down in multi-agent architectures

When one agent calls another (an orchestrator dispatching a subagent, for example), the audit question becomes: which policy enforcement point wrote the record for the downstream action?

If each agent passes its identity and the originating action reference downstream, the enforcement point for the subagent can include both the subagent's decision and the parent action's hash in its record. That creates a cross-agent chain you can trace. If the identity reference is dropped at the handoff, each agent's log is an island.

The enforcement point has to be designed to accept and propagate that context. It is a configuration requirement, not something that happens automatically.

What to verify in your current setup

Check four things before you rely on your AI action audit log in an investigation:

If any of those four are missing, the log can describe what happened but cannot prove it.

See Vaikora enforce policy on your AI

Open-core AI runtime control. Self-host the MIT gateway free, or run the hosted Control Plane.

Get a demo Self-host the gateway

More from the Vaikora blog