An AI audit trail is the record that lets someone reconstruct what an AI system did, with which data, and who checked it. For high-risk AI systems, the EU AI Act makes that record a legal requirement: Article 12 says the system must technically allow events to be logged automatically over its whole lifetime. AI agents make this harder, because a single answer can involve dozens of tool calls and data lookups. This guide sets out what Article 12 actually says, who must keep logs and for how long, the new timetable after the Digital Omnibus, whether your agent is high-risk at all, and what a useful agent log should contain.
1. What EU AI Act Article 12 Actually Says
The AI Act is Regulation (EU) 2024/1689, published in the Official Journal on 12 July 2024. Article 12, headed "Record-keeping", is short. Its first paragraph sets the principle: high-risk AI systems "shall technically allow for the automatic recording of events (logs) over the lifetime of the system", in the wording published by the European Commission's AI Act Service Desk. Two things follow. Logging must be automatic, built into the system rather than done by hand afterwards. And it covers the whole lifetime, not just a launch period.
The three purposes logs must serve
Article 12(2) says logging must ensure a level of traceability "appropriate to the intended purpose of the system", and must record events relevant for three things:
- (a) identifying situations that may result in the system presenting a risk under Article 79(1), or in a substantial modification;
- (b) facilitating post-market monitoring under Article 72;
- (c) monitoring the operation of the system by deployers under Article 26(5).
An extra minimum for remote biometric identification
Article 12(3) adds specific minimum fields only for remote biometric identification systems under Annex III, point 1(a): the start and end time of each use, the reference database checked, the input data that led to a match, and the people who verified the results. For every other high-risk system, the Act sets the purposes but not a field list.
What Article 12 does not say
Article 12 does not prescribe a log format, a schema, a storage technology or a list of fields for most systems. It defines outcomes. A draft international standard on AI system logging, ISO/IEC DIS 24970, which describes "common capabilities, requirements and a supporting information model for logging of events", went through public enquiry between 28 November 2025 and 25 January 2026, according to the Lithuanian Standards Board. Until standards are final, providers have to justify their own design against the three purposes above.
2. Who Keeps the Logs, and for How Long
Providers: Article 19
Article 19 requires providers of high-risk AI systems to keep the logs their systems generate automatically, to the extent the logs are under their control, "for a period appropriate to the intended purpose of the high-risk AI system, of at least six months", unless EU or national law, in particular data protection law, says otherwise (Article 19). Providers that are financial institutions keep these logs as part of the documentation they already maintain under EU financial services law on internal governance.
Deployers: Article 26
Deployers, the organisations that use a high-risk system under their own authority, have a mirror duty. Under Article 26(6) they must keep the automatically generated logs under their control for at least six months, unless other law provides otherwise. Article 26(5) also requires them to monitor the system's operation on the basis of the instructions for use, inform the provider or distributor and the market surveillance authority without undue delay if they consider the system presents a risk, and suspend its use.
| Duty | Provider | Deployer |
|---|---|---|
| Build automatic logging into the system | Art. 12 | Check it is switched on and used as instructed |
| Keep logs under its control | Art. 19: 6 months+ | Art. 26(6): 6 months+ |
| Use logs to monitor the system | Post-market monitoring (Art. 72) | Monitoring of operation (Art. 26(5)) |
| Act on a risk | Corrective action, information duties | Inform provider and authority, suspend use |
| Retention beyond 6 months | Where the intended purpose, sector rules or other law require it | |
Table 1. Article 12 logging duties split between providers and deployers. A company that builds and uses its own AI agent can be both.
3. The EU AI Act Timeline After the Digital Omnibus
The high-risk obligations, including Article 12, were originally due to apply to Annex III systems from 2 August 2026. That changed in 2026. The Digital Omnibus on AI, Regulation (EU) 2026/1744, was published in the Official Journal on 24 July 2026 and entered into force on 27 July 2026. It moved the application date for stand-alone high-risk systems in Annex III to 2 December 2027, and for high-risk AI embedded in regulated products under Annex I to 2 August 2028. Earlier in the year, Sidley Austin reported that Council and Parliament had reached a provisional agreement on 7 May 2026, which Parliament voted to adopt on 16 June 2026.
Use the extra time, don't spend it
About thirteen months is not long for logging. Logs only help with the purposes in Article 12(2) if they exist for the period you need to look back over, and retrofitting tamper-evident, retained, structured logs into a live agent is far harder than building them in. Teams that start now will have a year of real logs to test their monitoring against before the obligations apply.
4. Is Your AI Agent High-Risk?
The AI Act does not have a category for "agents". An agent is high-risk if its intended purpose falls into a high-risk category, most often one of the eight areas in Annex III: biometrics; critical infrastructure; education and vocational training; employment and workers' management; essential private and public services and benefits; law enforcement; migration, asylum and border control; and administration of justice and democratic processes. The wording of each point matters.
| Agent use case | Likely status | Why |
|---|---|---|
| Scores the creditworthiness of individuals | High-risk | Annex III, 5(b): creditworthiness or credit score of natural persons |
| Prices life or health insurance for individuals | High-risk | Annex III, 5(c): risk assessment and pricing of natural persons |
| Screens job applicants | High-risk | Annex III, area 4: employment and workers' management |
| Detects financial fraud | Excluded from 5(b) | Point 5(b) expressly excepts fraud detection; check other points |
| Verifies companies for KYB or B2B credit | Usually not Annex III | 5(b) refers to natural persons; assess sole traders and personal guarantors carefully |
| Answers analysts' questions about companies | Usually not high-risk | Not an Annex III purpose, unless its output feeds one |
Table 2. Indicative high-risk classification for common agent use cases. This is not legal advice; classification depends on the intended purpose and should be confirmed with counsel.
Company data is not the same as personal data
Point 5(b) covers AI used to evaluate the creditworthiness of natural persons. An agent that verifies a limited company, checks its filings or assesses a company's credit limit is generally outside that wording, though the line blurs where sole traders, partnerships or personal guarantees are involved. That is an important difference for KYB, procurement and B2B credit teams.
Why you should log anyway
Even outside Annex III, a good audit trail is the only way to answer the question every regulator, auditor and customer eventually asks: why did the system say that? AML rules already require firms to show how customer due diligence was done, and model risk and outsourcing rules in financial services ask for evidence of how decisions were reached. The engineering is the same whether the law requires it or not, so the sensible design treats Article 12 as the floor for any agent that touches regulated decisions.
5. What an AI Agent Should Log
Traditional AI logging records an input and an output. An agent's answer is the end of a chain: it interprets a request, plans steps, calls tools, retrieves records, calls a model, and may involve a human. An AI agent audit trail has to capture that chain, or it cannot serve Article 12's purposes. Agents are spreading fast: in McKinsey's State of AI 2025, 23% of respondents said their organisation was scaling an agentic AI system, and Gartner expects 15% of day-to-day work decisions to be made autonomously through agentic AI by 2028, as reported by Reuters.
| Article 12(2) purpose | What to log in an agent | Question it answers later |
|---|---|---|
| (a) Risks and substantial modifications | System, prompt and model versions; tool definitions; configuration changes; anomalies and refusals | Did the system change, and did behaviour change with it? |
| (b) Post-market monitoring | Every run's steps, tool calls, retrieved records, outputs, errors and latency | Is performance drifting across real use? |
| (c) Deployer monitoring | Who asked, what the agent answered, which sources it cited, what the reviewer decided | Was this specific answer reasonable, and who approved it? |
Table 3. Mapping Article 12's three purposes to concrete AI agent log content.
Log the retrieval, not just the prompt
Most errors in agent answers come from what was retrieved, or not retrieved, rather than from the final model call. Stanford researchers found that legal research tools built on retrieval-augmented generation still gave incorrect information on more than 17% to more than 34% of benchmark queries in their May 2024 study. If the log only holds the prompt and the answer, you cannot tell whether a wrong answer came from bad data, a bad match or the model. Log each tool call, its inputs, and what came back.
Provenance for every company fact
When an agent uses company data, the log should show which legal entity was resolved, which registry the fact came from, which filing, its date, and when it was retrieved. That turns "the agent said the company has four directors" into a claim anyone can check against the register. Our guide to company entity resolution explains why the resolved identifier matters, and our article on deterministic vs. adaptive retrieval sets out the evidence contract an agent answer should carry.
Human oversight events
Article 14 requires human oversight of high-risk systems, and Article 12(3)(d) names the people who verify results as a required field for remote biometric identification. Whatever the system, log when a human reviewed, approved, edited or overrode an agent's output, and who did it. Without that, you cannot show that oversight happened.
6. Making Logs Trustworthy
Tamper evidence
A log an agent can edit is weak evidence. Write logs to an append-only store the agent cannot modify, chain each entry to the previous one with a hash, and sign entries with a key held outside the agent's runtime. Then a gap or an edit is detectable, not just unlikely.
Personal data and minimisation
Agent logs often contain personal data: names in prompts, officers in retrieved records, reviewers' identities. Article 19 itself says retention applies unless EU or national law, in particular on personal data protection, provides otherwise. Log what the three purposes need, pseudonymise users where you can, store hashes of large inputs instead of copies, set retention by purpose, and document why.
Retention and retrieval
Six months is a minimum. Financial institutions keep logs as part of their existing governance records under Article 19(2), and sector rules may require longer. Whatever the period, logs must be retrievable by run, by user, by entity and by date, or they will not help when a regulator or customer asks about a specific decision.
7. AI Agent Observability vs. an AI Audit Trail
Observability tools and audit trails often share data, but they are built for different readers. Engineers need observability to debug; auditors need an audit trail to reconstruct and prove.
| Observability | Audit trail | |
|---|---|---|
| Main user | Engineers | Compliance, auditors, regulators |
| Question | Why is it slow or failing? | What happened, on what evidence, approved by whom? |
| Retention | Days to weeks, sampled | At least six months for high-risk systems, complete |
| Integrity | Best effort | Append-only, tamper-evident |
| Content | Traces, metrics, errors | Decisions, sources, versions, oversight |
Table 4. LLM and agent observability compared with an audit trail.
One pipeline, two outputs
The efficient design emits structured events once and routes them twice: a sampled, short-lived stream to observability tooling, and a complete, signed, retained stream to the audit store. That avoids two sets of instrumentation drifting apart.
8. EU AI Act Penalties
Article 99 sets three tiers of maximum fines, each the higher of a fixed amount or a share of worldwide annual turnover, as summarised by Austria's regulator RTR. Breaches of the obligations for providers and deployers of high-risk systems, which include record-keeping, fall in the middle tier.
9. Implementation Checklist
- Classify each agent by intended purpose against Annex III, and record the reasoning, including why company-focused agents are or are not in scope.
- Decide your role for each system: provider, deployer or both.
- Define events for the three Article 12(2) purposes: versions and changes, runs and tool calls, outputs and oversight.
- Capture provenance for every external fact an agent uses, with resolved entity, source, reference, date and retrieval time.
- Make logs tamper-evident: append-only storage, hash chaining, signing keys outside the agent.
- Set retention of at least six months, longer where purpose or sector rules require, with a documented data protection assessment.
- Make logs usable: searchable by run, user, entity and date; tested by reconstructing real decisions.
- Document it in the technical documentation and the instructions for use, so deployers can collect and interpret the logs.
An audit trail is only as good as the evidence it records. Global Database provides company data from 400+ official registries in 200+ countries with provenance on every field: the registry it came from, the filing reference, and the moment it was retrieved. Agents connect through the MCP server or the REST API, so each company fact an agent uses arrives with the fields an Article 12-style log needs, and Regis AI answers plain-language questions with citations to official sources. See company data for AI agents.
10. Frequently Asked Questions
What does Article 12 of the EU AI Act require?
Article 12 requires high-risk AI systems to technically allow the automatic recording of events (logs) over the lifetime of the system. The logs must support three purposes: identifying risks or substantial modifications (Article 79), post-market monitoring by providers (Article 72), and monitoring of operation by deployers (Article 26(5)).
What is an AI audit trail?
An AI audit trail is a complete, retained and tamper-evident record of what an AI system did: the request, the data and tools it used, the model and version, the output, and any human review. It lets an organisation reconstruct and justify a specific decision after the fact.
How long must AI logs be kept under the EU AI Act?
At least six months. Article 19 sets this minimum for providers and Article 26(6) for deployers, for logs under their control, unless other EU or national law, in particular data protection law, provides otherwise. The period must be appropriate to the system's intended purpose, so it can be longer.
When do the high-risk obligations, including Article 12, apply?
After the Digital Omnibus on AI (Regulation (EU) 2026/1744, published 24 July 2026), the obligations for stand-alone high-risk systems in Annex III apply from 2 December 2027, instead of 2 August 2026. For high-risk AI embedded in products covered by Annex I, they apply from 2 August 2028.
Are AI agents high-risk under the EU AI Act?
Not automatically. The Act has no separate agent category. An agent is high-risk if its intended purpose falls into a high-risk category, such as the Annex III areas, for example evaluating the creditworthiness of natural persons, screening job applicants, or pricing life and health insurance for individuals.
Is an AI agent used for KYB or company credit checks high-risk?
Usually not under Annex III. Point 5(b) covers creditworthiness evaluation of natural persons and expressly excludes fraud detection, so an agent that verifies limited companies is generally outside it. Sole traders, partnerships and personal guarantees need careful assessment, and classification should be confirmed with legal counsel.
Does Article 12 specify a log format?
No. Except for minimum fields for remote biometric identification systems, Article 12 sets purposes, not a schema. A draft standard on AI system logging, ISO/IEC DIS 24970, went through public enquiry from November 2025 to January 2026. Until standards are final, providers must justify their own design.
What should an AI agent log?
Each run's request and user, the plan and every tool call with its inputs and results, the source and retrieval time of every external fact, the model and system versions, the final output, and any human review or override, with timestamps and integrity protection such as hash chaining.
What are the penalties for breaching EU AI Act logging rules?
Breaches of the obligations for providers and deployers of high-risk systems, which include record-keeping, can be fined up to 15 million euros or 3% of worldwide annual turnover, whichever is higher, under Article 99. Prohibited practices carry up to 35 million euros or 7%.
What is the difference between AI observability and an audit trail?
Observability helps engineers debug performance and errors, usually with sampled, short-lived data. An audit trail helps compliance teams and regulators reconstruct and prove decisions, so it must be complete, tamper-evident and retained for at least six months for high-risk systems. The same event stream can feed both.