AI Agent Logging and the EU AI Act: Article 12 Requirements

07/17/2026 07:49 · 15 min read
AI Agent Logging and the EU AI Act: Article 12 Requirements

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.

6 months
Minimum log retention for providers and deployers (Art. 19, 26(6))
2 Dec 2027
New application date for Annex III high-risk rules (Digital Omnibus, 2026)
15M / 3%
Maximum fine for breaching high-risk obligations (Art. 99)
23%
Of organisations already scaling an agentic AI system (McKinsey, 2025)

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:

  1. (a) identifying situations that may result in the system presenting a risk under Article 79(1), or in a substantial modification;
  2. (b) facilitating post-market monitoring under Article 72;
  3. (c) monitoring the operation of the system by deployers under Article 26(5).
How Article 12 connects to the rest of the Act
The logging duty points at three other obligations, and two retention rules
Diagram of EU AI Act Article 12: automatic logs over the system lifetime feed Article 79 risk identification and substantial modification, Article 72 post-market monitoring by providers, and Article 26(5) monitoring by deployers; Article 19 and Article 26(6) require providers and deployers to keep logs for at least six months ARTICLE 12(1) Automatic logs over the lifetime of the high-risk system 12(2)(a) to ARTICLE 79(1) Identify risks andsubstantial modifications 12(2)(b) to ARTICLE 72 Provider's post-marketmonitoring 12(2)(c) to ARTICLE 26(5) Deployer's monitoringof operation ARTICLE 19 - PROVIDERS Keep logs under theircontrol, 6 months or more ARTICLE 26(6) - DEPLOYERS Keep logs under theircontrol, 6 months or more
Source: Regulation (EU) 2024/1689, Articles 12, 19 and 26, as published by the European Commission's AI Act Service Desk. Retention periods are minimums, subject to other EU or national law.

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.

DutyProviderDeployer
Build automatic logging into the systemArt. 12Check it is switched on and used as instructed
Keep logs under its controlArt. 19: 6 months+Art. 26(6): 6 months+
Use logs to monitor the systemPost-market monitoring (Art. 72)Monitoring of operation (Art. 26(5))
Act on a riskCorrective action, information dutiesInform provider and authority, suspend use
Retention beyond 6 monthsWhere 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.

EU AI Act high-risk timeline, before and after the Omnibus
Key dates for Article 12 and the other high-risk obligations
Timeline: AI Act published 12 July 2024; ISO/IEC DIS 24970 AI logging draft public enquiry November 2025 to January 2026; original Annex III date of 2 August 2026, now superseded; Digital Omnibus published 24 July 2026 and in force 27 July 2026; Annex III high-risk obligations apply from 2 December 2027; Annex I product-embedded systems from 2 August 2028 20242025202620272028 12 Jul 2024AI Act published(EU) 2024/1689 2 Aug 2026Original Annex III date,superseded 2 Dec 2027Annex III high-riskobligations apply Nov 2025 to Jan 2026ISO/IEC DIS 24970 (AI systemlogging) public enquiry 24 / 27 Jul 2026Digital Omnibus published/ enters into force 2 Aug 2028Annex I (product-embedded) systems
Sources: Regulation (EU) 2024/1689 (OJ, 12 July 2024); Lithuanian Standards Board listing for ISO/IEC DIS 24970; Mondaq on Regulation (EU) 2026/1744 (August 2026); Sidley Austin (June 2026). Positions on the axis are approximate.

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 caseLikely statusWhy
Scores the creditworthiness of individualsHigh-riskAnnex III, 5(b): creditworthiness or credit score of natural persons
Prices life or health insurance for individualsHigh-riskAnnex III, 5(c): risk assessment and pricing of natural persons
Screens job applicantsHigh-riskAnnex III, area 4: employment and workers' management
Detects financial fraudExcluded from 5(b)Point 5(b) expressly excepts fraud detection; check other points
Verifies companies for KYB or B2B creditUsually not Annex III5(b) refers to natural persons; assess sole traders and personal guarantors carefully
Answers analysts' questions about companiesUsually not high-riskNot 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.

Anatomy of one agent log event
Illustrative structure for a tool call that retrieves a company record
Illustrative AI agent log event with four groups of fields: context (run ID, step number, timestamp, user and system version), action (tool name, input parameters hash), evidence (resolved entity, source registry, filing reference, filing date, retrieved at), and integrity (previous event hash, event hash, signer) { "context": { "run_id": "7f3c", "step": 4, "ts": "2026-11-04T09:14:03.011Z", "actor": "analyst_17", "system_version": "agent 2.3.1 / model pinned" }, "action": { "tool": "registry.officers", "input_hash": "sha256:91ab" }, "evidence": { "entity": "GB:0884xxxx", "source_registry": "Companies House", "filing_ref": "CS01", "filing_date": "2026-03-11", "retrieved_at": "2026-11-04T09:14:03.290Z", "result": "4 officers" }, "oversight": { "review_required": true, "reviewer": null }, "integrity": { "prev_hash": "3be0", "hash": "c47d", "signer": "log-service-key-2" } } Fictitious identifiers. Field names are an example, not a format required by the AI Act.
Illustrative log event. Article 12 sets purposes, not a schema; these fields are one way to make a tool call traceable back to its source and its reviewer.
Article 12(2) purposeWhat to log in an agentQuestion it answers later
(a) Risks and substantial modificationsSystem, prompt and model versions; tool definitions; configuration changes; anomalies and refusalsDid the system change, and did behaviour change with it?
(b) Post-market monitoringEvery run's steps, tool calls, retrieved records, outputs, errors and latencyIs performance drifting across real use?
(c) Deployer monitoringWho asked, what the agent answered, which sources it cited, what the reviewer decidedWas 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.

ObservabilityAudit trail
Main userEngineersCompliance, auditors, regulators
QuestionWhy is it slow or failing?What happened, on what evidence, approved by whom?
RetentionDays to weeks, sampledAt least six months for high-risk systems, complete
IntegrityBest effortAppend-only, tamper-evident
ContentTraces, metrics, errorsDecisions, 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.

EU AI Act maximum fines by tier
Whichever is higher: fixed amount or share of previous year's worldwide turnover
Bar chart of EU AI Act maximum fines: prohibited practices up to 35 million euros or 7% of worldwide turnover; other obligations including high-risk provider and deployer duties up to 15 million euros or 3%; incorrect or misleading information to authorities up to 7.5 million euros or 1% Prohibited AI practicesOther obligations, incl. high-riskIncorrect information to authorities Art. 5providers & deployers - Art. 12, 19, 26to notified bodies or authorities 35M EUR or 7%15M EUR or 3%7.5M EUR or 1% Bar length proportional to the fixed amount.
Source: Regulation (EU) 2024/1689, Article 99, as summarised by RTR, Austria's AI Service Desk. National authorities set actual fines, considering factors such as the size, turnover and market share of the operator.

9. Implementation Checklist

  1. Classify each agent by intended purpose against Annex III, and record the reasoning, including why company-focused agents are or are not in scope.
  2. Decide your role for each system: provider, deployer or both.
  3. Define events for the three Article 12(2) purposes: versions and changes, runs and tool calls, outputs and oversight.
  4. Capture provenance for every external fact an agent uses, with resolved entity, source, reference, date and retrieval time.
  5. Make logs tamper-evident: append-only storage, hash chaining, signing keys outside the agent.
  6. Set retention of at least six months, longer where purpose or sector rules require, with a documented data protection assessment.
  7. Make logs usable: searchable by run, user, entity and date; tested by reconstructing real decisions.
  8. Document it in the technical documentation and the instructions for use, so deployers can collect and interpret the logs.
How Global Database supports auditable AI agents

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.