When an auditor, a customer, or a regulator asks what your AI did last March, a vendor invoice and a usage chart will not answer. They need to see who asked what, which documents the answer drew on, which rule allowed it, and whether anything sensitive left the building. An AI audit trail exists to answer those questions with records rather than declarations.
Designing that trail means deciding what to record, how long to keep it, and how to prove nobody edited it, then checking what the EU AI Act actually requires after its 2026 amendments.
What is an AI audit trail?
An AI audit trail is a tamper-evident, time-ordered record of each AI interaction: who acted, via which agent and model, on what data, and the result.
Application logs tell you a service responded. An AI audit trail has to answer a harder question: was this interaction allowed, and by which rule? That means recording decisions as well as events. When a usage rule blocks a request, masks an IBAN, or blocks an answer, the trail must say so, with the rule that fired.
It also has to cover more than humans typing into a chat window. Agents call tools, query document stores, and hand tasks to other agents. Each of those steps can move data, so each belongs in the record.
What should an AI audit trail record?
At minimum: the actor, agent, model, data class touched, rule and decision, cost, and synchronized timestamps tied together by a trace ID.
| Field | What it answers | Example |
|---|---|---|
| Actor | Who triggered it, human or agent | Authenticated user ID, or the external agent’s identity |
| Agent | Which configured assistant handled it | “HR assistant”, version of its instructions |
| Model | Which model and provider produced the output | Model name and version, provider endpoint |
| Data class | What kind of data was involved | Personal data, payment data, internal-only document |
| Sources and tools | What the agent read or acted on | Documents retrieved, tool called, hand-off to another agent |
| Rule and decision | Whether it was allowed, and why | Rule ID, decision (allow, deny, withhold, flag), masking applied |
| Cost | What the interaction consumed | Tokens or spend per user, agent, and model |
| Timestamps and trace ID | When, in what order, part of which task | UTC time from a trusted clock, one ID per task |
| Administrative changes | Who changed the rules | Rule created, edited, or deleted, by whom, when |
The last row is the easiest to overlook. A trail that records every user request but not the edit that disabled a rule the day before an incident will not hold up in an investigation.
What should stay out of the log?
Logging full prompts and answers by default copies your most sensitive content into a second system. The OWASP Logging Cheat Sheet lists data that should usually be removed, masked, hashed, or encrypted before it reaches a log: access tokens, passwords, payment card data, sensitive personal data, commercially sensitive information. For AI, that argues for recording the data class and the decision, masking the sensitive values, and keeping the full text only where a documented purpose requires it.
What does the EU AI Act actually require for logging?
Articles 12, 19, and 26(6) cover high-risk AI only, from December 2, 2027 for Annex III. Article 50 transparency has applied since August 2, 2026.
The text of Regulation (EU) 2024/1689 sets three logging duties, all within Chapter III on high-risk systems:
- Article 12 (record-keeping): high-risk AI systems “shall technically allow for the automatic recording of events (logs) over the lifetime of the system”. This is a design requirement on the system, met by the provider.
- Article 19 (automatically generated logs): providers keep those logs, to the extent they control them, for a period appropriate to the intended purpose and of at least six months, unless Union or national law, in particular on personal data protection, provides otherwise.
- Article 26(6) (deployers): organizations that deploy a high-risk system keep the logs under their control on the same terms, at least six months.
The dates changed in 2026. Regulation (EU) 2026/1744, the Digital Omnibus on AI, entered into force on July 27, 2026. It moved the application of Chapter III, Sections 1 to 3, to December 2, 2027 for Annex III systems and August 2, 2028 for Annex I systems, as summarized in the European Parliament’s legislative train. Guides that still say Article 12 applied on August 2, 2026 are out of date.
| Provision | Who it binds | Applies to | Applies from |
|---|---|---|---|
| Art. 4, AI literacy | Providers and deployers | All AI systems | 2 Feb 2025 |
| Art. 12, automatic logging | High-risk system design (provider) | High-risk only | 2 Dec 2027 (Annex III), 2 Aug 2028 (Annex I) |
| Art. 19, log retention | Providers | High-risk only | Same as above |
| Art. 26(6), log retention | Deployers | High-risk only | Same as above |
| Art. 50, transparency | Providers and deployers | Systems interacting with people, generated content, deep fakes | 2 Aug 2026 (marking under 50(2): 2 Dec 2026 for systems already on the market) |
Is your internal assistant high-risk?
Usually not. An assistant that answers employee questions from company documents does not appear in Annex III. The classification changes with the use. Point 4 of Annex III covers AI systems used to recruit or select people, to make decisions affecting work relationships, promotion, or termination, to allocate tasks based on individual behavior, or to monitor and evaluate workers’ performance. Point those same agents at CV screening or performance reviews and the high-risk regime, including Articles 12, 19, and 26(6), can apply from December 2027.
Article 50 has no logging clause. Since August 2, 2026, providers must design systems that interact directly with people so those people know they are dealing with an AI, unless that is obvious from context, and deployers must disclose deep fakes and AI-generated text published to inform the public. For the full deployer checklist, see our AI Act compliance checklist for chatbots (in French).
Why keep AI logs if your assistant is not high-risk?
Because the GDPR already requires you to demonstrate compliance, record processing, and test security. AI logs are the evidence for all three.
Most internal assistants process personal data: names in questions, HR documents in the knowledge base, customer details in tickets. Three GDPR articles then apply today, with no 2027 deadline:
- Article 5(2), accountability: the controller “shall be responsible for, and be able to demonstrate compliance with” the processing principles. Without records, you can describe your controls but you cannot show them working.
- Article 30, records of processing: the record lists purposes, categories of data and recipients, transfers, erasure time limits, and a description of security measures. AI logs tell you whether the record matches reality, for instance which model providers actually received data.
- Article 32, security: measures must ensure “the ongoing confidentiality, integrity, availability and resilience of processing systems” and include “a process for regularly testing, assessing and evaluating” them. A log of denied and masked requests shows the controls fire in practice.
Logs also serve incident response. When an agent with tool access misbehaves, the trace shows which tool it called, with what arguments, under whose authority.
One caution on wording. An audit log is evidence of what happened. It does not make a system compliant, and no log format amounts to “AI Act proof”. Compliance still depends on your risk classification, documentation, human oversight, and the duties tied to your role.
How long should you keep AI audit logs, and who may read them?
Keep them long enough to investigate and to answer audits, usually six months to one year, and restrict reading to a small, logged group.
Retention pulls in two directions. High-risk deployers need at least six months under Article 26(6). The GDPR storage limitation principle in Article 5(1)(e) says personal data must not be kept longer than necessary, and logs that contain user identities are personal data. The French data protection authority’s recommendation on logging measures (CNIL, October 2021) gives a practical anchor: in general, six months to one year, with longer periods to be justified by a specific need.
Pick a period per purpose and write it in your record of processing. Security investigation, contractual audits, and sector regulation may each justify different periods for different fields. A common pattern keeps the decision metadata longer and the masked content for a shorter window.
Access matters as much as duration. The OWASP Logging Cheat Sheet recommends that read privileges be restricted and reviewed periodically, and that all access to logs be recorded and monitored. In practice:
- Separate the people who configure AI rules from the people who can read or export the log.
- Record every export and every verification of the log in the log itself.
- Give auditors a read-only export rather than console access.
How do you make an AI audit log tamper-evident?
Write entries append-only, chain each one to the previous by a hash, seal segments with a third-party timestamp, and let anyone re-run the check.
An audit log is only useful if an auditor can trust that nobody edited it after the fact, including your own administrators. Three layers build that trust:
- Append-only storage. Entries cannot be edited or deleted through the application. OWASP’s guidance asks for tamper detection at rest and for copying log data to read-only media as soon as possible.
- Hash chaining. Each entry includes a hash of the previous one. Changing or removing a line breaks every hash after it, and a verification pass detects the break.
- Sealing and external timestamps. At intervals, a segment of the chain is sealed and timestamped by an outside authority. That fixes the state of the log at a known date, independent of your servers’ clocks. The CNIL’s 2021 deliberation on logging also recommends timestamping and signing log entries at creation.
Whether a timestamp needs a specific legal status, for example a qualified timestamp under the EU eIDAS framework, depends on how the evidence will be used. Ask counsel before you assume it does or does not.
What GuardWeaver records
GuardWeaver applies your usage rules in real time with four decisions (allow, deny, withhold, flag) and writes each one to an append-only audit log that no one can edit afterward. The log records 14 actions: turns evaluated, queries blocked, document access, tool calls, and delegations denied, answers blocked, content masked, hidden text flagged, engine failures, rules created, updated, or deleted, chain verifications, and exports. With Premium and Enterprise, external agents that connect over MCP or A2A go through the same enforcement points, and their decisions are logged like the others.
What changes by plan, as listed on the pricing page:
| Plan | Audit log retention | Integrity | Export |
|---|---|---|---|
| Free | 3 days, lightweight version | Append-only | Not included |
| Premium | 1 year | Append-only, each entry chained, integrity check | Included |
| Enterprise | Unlimited, for the contract term | Chained, segments sealed and timestamped by a third-party authority | Sealed, timestamped export with integrity proof, verifiable offline |
Sealing and third-party timestamping come with Enterprise only. To compare governance platforms more broadly, see our AI governance platform buyer’s guide. Automatic masking of sensitive data before it reaches the model, and spending caps per user, agent, and model, come with Premium and Enterprise. The analytics page shows usage and spending, and the access log is described on the security page.
How do you set up an AI audit trail, step by step?
Start from the questions an auditor will ask, map them to fields, then fix retention, access, and integrity before you switch logging on.
- Inventory your AI uses and classify each against Annex III. Flag anything touching recruitment, worker evaluation, or task allocation.
- Write the audit questions you must be able to answer: who used which AI, on what data, under which rule, with what outcome.
- Map each question to a field from the table above. Drop fields that answer no question.
- Decide what is masked or hashed before it is written, following the data classes in your record of processing.
- Set retention per field and document it: at least six months for high-risk deployments, one year as a common default otherwise.
- Separate duties between rule administrators and log readers, and log every export.
- Turn on integrity: append-only storage, hash chaining, scheduled verification, external timestamps where the evidence must stand up outside your organization.
- Run a drill: pick an interaction from last quarter and reconstruct it from the log alone. If you cannot, fix the gap before an auditor finds it.
If your logs must stay on infrastructure you control, the on-premise option, with Enterprise, covers deployments up to air-gapped environments, and our GDPR checklist for knowledge base chatbots covers the rest of the data protection review.
To see the four decisions, the enforcement points, and the log on your own use cases, start with the governance page, then compare plans on the pricing page, where the Premium trial runs 15 days with no credit card.