All glossary terms
A Evidence Compliance

AI audit trail

An AI audit trail has to establish on whose authority an action was taken, not merely that it happened. The hardest requirement is not retention. It is attribution, and most enterprise deployments cannot name the human behind a given action.

Definition

An AI audit trail is a record of what an AI system did that is complete and defensible enough for a third party to reconstruct a specific decision months later and establish on whose authority it was taken. Its defining requirement is not the volume of logging but attribution: linking each action to the human, the policy, and the permission behind it.

What is an AI audit trail?

An AI audit trail records what an AI system did in a form somebody outside your team can rely on. The distinguishing requirement is not how much you log. It is whether the record can establish who is answerable for a given action.

That framing separates it from the trace store most teams already have. Operational telemetry is built for engineers debugging their own system, and the properties that make an audit trail defensible are different ones; that distinction is drawn in full at AI agent observability. This page assumes it and covers what the record actually has to contain.

The regulatory anchor in Europe is Article 12 of the EU AI Act, which requires that high-risk systems technically allow automatic recording of events over the system's lifetime, with retention of at least six months under the record-keeping obligations that follow. Enforcement timing for Annex III high-risk systems moved to 2 December 2027 under the Digital Omnibus amendments adopted in July 2026, which changes the deadline and not the requirement.

Satisfying the letter of a logging rule is not the same as evidencing oversight. Article 12 requires recording. Article 14 requires that a person could effectively oversee, intervene, and override. Recent work on evidentiary adequacy makes the sharp point that a record can meet the recording duty and still fail the oversight duty, because oversight that cannot answer what was actually determined does not demonstrate that oversight was possible. Build for the second requirement and the first comes free.

What has to be in the record?

Eight fields carry almost all the weight, and three of them are routinely missing. Most implementations capture the action, the timing, and the output well, and omit the principal, the authority, and the policy version in force at the moment the action was taken.

The list below is written as what an external reviewer would need rather than what a debugging session needs, which is why it differs from a typical trace schema.

Eight fields an AI audit record needs, what each captures, where implementations commonly fall short, and what fails without it
Field What it records The common gap What breaks without it
Action What was done, to which system and which record Usually present and usually adequate Nothing to investigate at all
Actor Which agent acted, at which version Agent identity recorded, version omitted You cannot tell whether the behaviour was current
Principal Which named human the agent acted on behalf of Missing. A service account appears instead Nobody is answerable. This is the biggest gap in practice
Authority The permission or approval the action relied on Usually absent entirely You can show what happened, not that it was allowed
Policy Which policy version was in force, and what it decided Absent. Current policy is assumed retroactively You judge an old action against a rule that did not exist
Inputs What the agent saw, including retrieved content Present but often sampled away The decision cannot be reconstructed, only described
Outcome What resulted, and whether a human intervened Outcome kept, intervention not distinguished No evidence that oversight actually operated
Reversal Whether the action was undone, by whom and when Rarely captured as a linked event Remediation cannot be demonstrated

The policy field deserves particular attention because it is the least intuitive. An audit record should capture not only what the agent did but what your governance layer decided about it, and under which version of the rules. Without that, a reviewer in 2028 assesses a 2026 action against a policy written in 2027, and any organization that has tightened its controls will look as though it was previously non-compliant rather than compliant with what applied at the time.

Why is attribution the hardest part?

Agents typically act under a service account, and a service account identifies a system rather than a person. The action gets recorded, but nothing in that record names the human who directed it. That's precisely what accountability regimes require, and it's exactly what goes missing.

This is the most common compliance gap in enterprise AI deployments, and it is structural rather than an oversight. The agent needs credentials to reach anything, the simplest credential to issue is a service identity, and once that identity is doing the work the human who initiated it drops out of the record.

A chain of five links running from an action back to accountability: the action, the agent that performed it at a stated version, the named human principal it acted for, the authority or approval relied on, and the policy version in force at the time. A break is marked at the third link where a service account replaces the named human, with a note that the chain fails there and everything downstream becomes unattributable.

Three regimes make this explicit, in different language.

  • HIPAA requires unique user identification. Every access to protected health information must be attributable to a specific identified individual rather than to an account or a system. An agent reading records under a shared credential does not satisfy that, however complete the rest of the log is.
  • GDPR's accountability principle requires demonstrable responsibility. Being able to show that processing occurred is not the same as being able to show who is responsible for it having occurred.
  • SOX audit trail requirements assume an identifiable actor. Controls testing asks who performed a control and who reviewed it. An answer naming a service principal is not an answer.

The practical fix is not complicated and it has to be designed in. Propagate the initiating human's identity through every hop, so the agent's call to a downstream system carries the principal it is acting for rather than only its own credential. Where an agent runs on a schedule with no human trigger, the principal is the owner who deployed it and approved that schedule, recorded at deployment rather than inferred afterwards.

What makes a record defensible rather than merely present?

Tamper-evidence and separation of duties. If a record can be silently altered and you cannot demonstrate otherwise, its evidentiary value is close to zero, however complete it is. The signing key has to live outside the trust boundary of the thing being recorded.

Article 12 does not use the word tamper-proof, which leads some teams to treat mutability as acceptable. That reads the requirement too narrowly: a record nobody can vouch for does not evidence anything, whatever the statute literally says.

An agent inside a trust boundary emits action receipts. The signing service and the key sit outside that boundary, so the agent cannot sign or alter its own record. Each receipt is hash-chained to the previous one, so altering any entry breaks the chain visibly. The record store also sits outside the agent's reach, and a separate note shows that the team operating the agent must not hold write access to the store.
  1. Sign each action with a key the agent does not hold

    If the thing being recorded can produce its own signatures, the signature proves nothing. The signing key belongs outside the agent's trust boundary, held by a service the agent can request a receipt from but cannot control.

  2. Chain each receipt to the one before it

    Hash-chaining means altering any single entry breaks the chain visibly at that point. You do not need to prove nothing was changed; you need to be able to detect that something was. That is a far more achievable and more useful property.

  3. Store the record where the agent cannot reach it

    An append-only store outside the agent's permission set. If an injected instruction could reach the audit store, the audit store is part of the attack surface rather than the evidence of it.

  4. Separate operating from recording

    The team that runs the agent should not hold write access to its audit record. This is ordinary separation of duties, routinely observed in financial systems and routinely skipped in AI deployments, where the same engineers own both the agent and the trace store it writes to.

  5. Log reads of the record as well as writes

    Who looked at the audit trail, and when, is itself audit-relevant, particularly where the record contains regulated data. An unlogged read of a sensitive record is a gap that inspection will find.

None of this requires exotic cryptography. The pattern matters more than the scheme: the key sits outside the boundary, every action produces a receipt, and the receipts form a chain somebody else can verify.

How do you reconcile retention with the right to erasure?

By separating the record of the decision from the personal data inside it. Retention rules require you to keep the evidence; data protection rules require you to delete personal data on request. Those obligations genuinely conflict, and the resolution is architectural rather than legal.

The tension is real and under-discussed: an audit log built to protect people contains the data it was built to protect. It is worth confronting during design, because retrofitting a separation into an existing store is considerably harder.

Minimum audit retention periods across four regimes, with what each additionally requires
Regime Minimum retention Also requires Practical note
EU AI Act At least six months for high-risk systems Automatic recording, and evidence that oversight was possible The floor, not a target. Most organizations need longer for other reasons
HIPAA Six years Unique identification of the individual accessing the data The attribution requirement is stricter than the retention one
SOX Operational logs beyond a year; work papers considerably longer An identifiable actor for every control performed and reviewed A service principal is not an acceptable answer to who performed it
PCI DSS v4.0 Twelve months, with the recent months immediately available Rapid retrieval, not merely possession Archive tiers satisfy retention and can fail availability

Two design decisions resolve most of the conflict.

  • Keep the decision, pseudonymise the subject. The audit record needs to establish that a decision was taken, by which agent, for which principal, under which policy. It rarely needs the data subject's identifying details inline. Reference them through a token that can be broken on an erasure request, leaving the decision record intact and the person no longer identifiable from it.
  • Separate the audit store from the operational store. Erasure requests apply to operational data. An audit record retained under a statutory obligation is generally a different matter, and keeping the two in one place forces you to argue that case about a store that also holds ordinary business data.

This is a legal question as much as a technical one, and it should be settled with counsel rather than resolved by an engineering preference. What engineering can do is make either answer implementable, which means building the separation before anyone asks.

What is the actual test?

Whether somebody outside your team can reconstruct a specific decision from the record alone, months after it happened, to a standard they would accept. Everything on this page is in service of that one question, and it is a question you can rehearse before it is asked.

The useful discipline is to run the exercise deliberately rather than discovering the answer during an inquiry. Four questions, on a real action from at least a quarter ago.

  1. 01
    What happened, precisely?Not a summary. The action, the target, the inputs the agent had, and the output it produced. Common failure: the run was sampled away, so a description exists and the reconstruction does not.
  2. 02
    On whose authority?The named human, the permission relied on, and the approval if one was required. Common failure: a service account, which answers the question with a system rather than a person.
  3. 03
    Against which rules?The policy version in force at the time, and what the governance layer decided. Common failure: only current policy exists, so an old action is judged against a rule written after it.
  4. 04
    Can you show it was not altered?Not that it definitely was not, but that alteration would be detectable. Common failure: the team that operates the agent also has write access to the record.

An organization that can answer all four is in a materially different position from one that can produce a large volume of logs. The volume is not the asset. The asset is a chain from an action to a person, intact and verifiable. For where the obligation comes from, see AI governance; for the operating practice that produces the record in the first place, see AgentOps.

Frequently asked questions about AI audit trails

If your question is not here, our team will answer it directly.


Talk to a Specialist →
What is an AI audit trail?

The distinction that matters is between a log and an evidentiary record. A log is something your team reads to understand what a system did. An audit trail is something a third party reads to establish who is answerable for what a system did. The second requires everything the first does, plus attribution, tamper-evidence, and a retention period set by somebody other than you. Most organizations have built the first and believe they have the second.

What does the EU AI Act require for AI logging?

Article 12 requires that high-risk systems technically allow automatic recording of events over the system's lifetime, covering events relevant to identifying risk, supporting post-market monitoring, and monitoring operation. The record-keeping obligations that follow set a minimum retention of six months for both providers and deployers. Enforcement timing for Annex III high-risk systems moved to 2 December 2027 under the Digital Omnibus amendments adopted in July 2026, which changes the deadline rather than the substance.

What fields should an AI audit record contain?

Eight carry most of the weight: the action taken and its target, the agent and its version, the named human principal it acted for, the authority or approval relied on, the policy version in force at the time, the inputs the agent saw including retrieved content, the outcome including whether a human intervened, and any subsequent reversal. Implementations reliably capture the action, the timing, and the output. The principal, the authority, and the policy version are the three routinely missing.

Why is attribution the hardest audit requirement?

Because agents act under service accounts, and a service account identifies a system rather than a person. The action gets recorded and nothing names the human who directed it. HIPAA requires unique identification of the individual accessing protected data, GDPR's accountability principle requires demonstrable responsibility, and SOX controls testing asks who performed a control. None of those is answered by a service principal. The fix is propagating the initiating human's identity through every hop, which has to be designed in rather than retrofitted.

Is an audit trail the same as observability?

No. Observability is sampled, mutable, short-lived and written for engineers; an audit trail is complete, tamper-evident, retained to a schedule and written for a third party. The two look identical while you are building them, because both capture what a system did and both live in a trace store. The difference surfaces when someone external asks about a specific action from months earlier, and the run in question was one of the ones sampled away.

Does an audit trail have to be immutable?

It has to be tamper-evident, which is a more achievable and more useful property. You do not need to prove nothing was changed; you need alteration to be detectable. The pattern is to sign each action with a key the agent does not hold, chain each receipt to the previous one so altering any entry breaks the chain visibly, and store the record where the agent cannot reach it. Article 12 does not use the word tamper-proof, and a record nobody can vouch for evidences very little regardless.

How long should you retain AI audit records?

Longer than the shortest applicable rule, and the rules differ considerably. The EU AI Act sets at least six months for high-risk systems. HIPAA requires six years. SOX pushes operational logs beyond a year and work papers considerably further. PCI DSS v4.0 requires twelve months with the recent months immediately available, which is a retrieval requirement rather than merely a possession one. Work out which regimes apply, take the longest, and check that availability rather than storage is what you have satisfied.

How do you handle the right to erasure against retention requirements?

By separating the record of the decision from the personal data inside it. The audit record needs to establish that a decision was taken, by which agent, for which principal, under which policy; it rarely needs the data subject's identifying details inline. Reference them through a token that can be broken on an erasure request, which leaves the decision record intact while the person is no longer identifiable from it. Keeping audit and operational stores separate helps too. Settle the legal position with counsel, and build so either answer is implementable.

Why record the policy version?

Because otherwise an old action gets judged against a rule that did not exist when it was taken. An audit record should capture what your governance layer decided and under which version of the rules, not only what the agent did. Without it, a reviewer assessing a 2026 decision applies your 2027 policy, and any organization that has since tightened its controls appears to have been non-compliant rather than compliant with what applied at the time. It is a cheap field that is almost never captured.

Who should own the AI audit trail?

Not the team that operates the agents, which is the point. Ordinary separation of duties says whoever performs an activity should not control its record, and that principle is observed carefully in financial systems and routinely skipped in AI deployments where the same engineers own both the agent and the trace store it writes to. Platform engineering can build and run the mechanism. Write access to the record, and the retention schedule, belong with risk, compliance, or internal audit.

Can you reconstruct an agent decision from an audit trail?

Only if you captured enough at the time, and reconstruction is a higher bar than description. An agent given the same input twice may take a different route, so replay depends on having stored the exact inputs, retrieved content, model version, and parameters as they were. Being able to say an action happened is not the same as being able to show why. If your record supports description but not reconstruction, it will satisfy a casual question and fail a serious one.

How do you test whether your audit trail is adequate?

Rehearse the inquiry. Take a real action from at least a quarter ago and, without asking the team who built the system, establish from the record alone what happened precisely, on whose authority, against which policy version, and whether alteration would be detectable. If any of the four needs somebody's memory, you have operational logging. Running this deliberately once a quarter is considerably cheaper than discovering the answer while a regulator or a customer is waiting.

A chain from an action to a person
Which named human was that action taken for?

CAMS records every model call and agent action with cost, tokens and actor attribution, inside your own perimeter, alongside the registry that holds an owner per agent and the promotion gates that establish what was approved before it ran.