EU AI Act Article 12: record-keeping and automatic logs for high-risk AI and AI agents
Informational only, not professional or legal advice. Facts are linked to the source we checked; statuses can change after the date above.
Why this page: “audit trail” shows up in almost every pitch for high-risk AI and AI agents. The AI Act’s version is narrower and more specific: Article 12 says what the system must be able to record, and Articles 19 and 26(6) say who keeps the logs and for how long. This page quotes the Commission’s AI Act Service Desk, which reproduces the consolidated version of the AI Act as at 27 July 2026 (Regulation (EU) 2024/1689 as amended). It applies only to systems that are high-risk under Article 6 and in scope. It is not legal advice; see the EU AI Act explainer.
When it applies
Article 12 sits in Chapter III, Section 2, and the deployer and provider log duties in Section 3. After the Digital Omnibus, Article 113 says those sections apply from 2 December 2027 as regards AI systems classified as high-risk pursuant to Article 6(2) and Annex III and from 2 August 2028 as regards AI systems classified as high-risk pursuant to Article 6(1) and Annex I. The full set of dates is in EU AI Act timeline after the Omnibus.
Logging is a design property, so providers need it in the architecture well before those dates. Retrofitting event capture into a system that is already deployed is usually harder than building it in.
What Article 12 requires: the provider’s design duty
Article 12(1) is one sentence: High-risk AI systems shall technically allow for the automatic recording of events (logs) over the lifetime of the system.
Article 12(2) sets the purpose. Logging must provide a level of traceability of the functioning of a high-risk AI system that is appropriate to the intended purpose of the system, and must enable the recording of events relevant for:
- identifying situations that may result in the high-risk AI system presenting a risk within the meaning of Article 79(1) or in a substantial modification;
- facilitating the post-market monitoring referred to in Article 72;
- monitoring the operation of high-risk AI systems referred to in Article 26(5), the deployer’s monitoring duty.
For most high-risk systems, Article 12 does not list fields. It ties log content to those three purposes and to the intended purpose. The one exception is remote biometric identification under Annex III point 1(a). For those systems, logging must provide, at a minimum:
- recording of the period of each use of the system (start date and time and end date and time of each use);
- the reference database against which input data has been checked by the system;
- the input data for which the search has led to a match;
- the identification of the natural persons involved in the verification of the results, as referred to in Article 14(5).
Recital 71 gives the reasoning. Information on how a system performs throughout its lifetime is essential to enable traceability of those systems, verify compliance with the requirements under this Regulation, as well as monitoring of their operations and post market monitoring.
The provider must also tell the deployer how logging works. Article 13(3)(f) requires the instructions for use to include, where relevant, a description of the mechanisms included within the high-risk AI system that allows deployers to properly collect, store and interpret the logs in accordance with Article 12.
Who keeps the logs, and for how long
Both providers and deployers keep logs, each for the logs under its control.
- Providers, Article 19(1): keep the automatically generated logs to the extent such 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 provided otherwise in the applicable Union or national law, in particular in Union law on the protection of personal data.
- Deployers, Article 26(6): Deployers of high-risk AI systems shall keep the logs automatically generated by that high-risk AI system to the extent such logs are under their control, for a period appropriate to the intended purpose of the high-risk AI system, of at least six months, with the same carve-out for other Union or national law.
- Financial institutions: both articles route log retention into the documentation already kept under Union financial services law.
Six months is a floor, not a target. The period has to be appropriate to the intended purpose, and personal data law can shorten or shape it. Neither article fixes a maximum.
Providers must also hand logs over on request. Under Article 21(2), on a reasoned request a provider shall give the competent authority access to the automatically generated logs of the high-risk AI system referred to in Article 12(1), to the extent such logs are under their control.
Logs also support the deployer’s monitoring duty. Under Article 26(5), deployers shall monitor the operation of the high-risk AI system on the basis of the instructions for use and, if they identify a serious incident, shall also immediately inform first the provider. See AI incident reporting under Article 73 and human oversight under Articles 14 and 26.
AI agents (editorial judgment)
This section is the site’s judgment, not the Commission’s. The AI Act does not use the word “agent” in Articles 12, 19 or 26. An agentic system is covered by these articles only if it is, or is part of, a high-risk AI system. If it is, Article 12’s purposes translate into practical questions:
- Can you reconstruct a run? An agent’s output depends on a chain of model calls, tool calls and intermediate results. A log that keeps only the final answer will rarely let anyone identify a risk situation or a substantial modification after the fact.
- Which tool calls changed something? Record which tools the agent called, with what parameters, under which identity, and what came back. Actions with external effects (writing records, sending messages, triggering equipment) matter most.
- What version was running? Model, prompt or policy configuration and tool versions belong in each record. Without them, post-market monitoring cannot tell a drift from a change.
- Where did a human step in? Approvals, overrides and stops connect the log to the oversight measures in Article 14.
- Who controls which logs? Agents often span a provider’s platform, a deployer’s tenancy and third-party tool servers. Articles 19 and 26(6) attach retention to logs “under their control”, so map control per log source in the contract and the instructions for use.
For an example of logging and identity rules in agent protocols, see CMMC Level 2 and MCP.
Checklist
Our working list, built from the articles above. It is not an official checklist.
Providers
- Logging is on by default, automatic, and covers the system’s lifetime (Art. 12(1)).
- A written rationale maps logged events to the three Art. 12(2) purposes and the intended purpose.
- Annex III point 1(a) systems capture the four minimum fields in Art. 12(3).
- The instructions for use describe how deployers collect, store and interpret logs (Art. 13(3)(f)).
- Retention for provider-controlled logs is set to at least six months and justified against the intended purpose and data protection law (Art. 19(1)).
- Logs feed the post-market monitoring plan (Art. 72) and can be exported for a competent authority (Art. 21(2)).
- Logs are protected against tampering and loss; an integrity gap undermines traceability.
Deployers
- Know which logs are under your control and where they are stored.
- Retention is at least six months, set for the intended purpose, and reconciled with your data protection assessment (Art. 26(6)).
- Monitoring under Art. 26(5) actually reviews the logs, with named owners and escalation paths for risks and serious incidents.
- Log access is restricted to people with a role in oversight, monitoring or investigation.
Agentic systems (editorial)
- Each run has a trace ID linking model calls, tool calls, results and human interventions.
- Model, configuration and tool versions are recorded per run.
- Control of each log source is assigned in the contract.
Questions
Is six months the required retention period?
It is the minimum. Both Article 19(1) and Article 26(6) require a period appropriate to the intended purpose of the high-risk AI system, of at least six months, unless other Union or national law, especially data protection law, provides otherwise.
Does Article 12 list what every log must contain?
Only for remote biometric identification systems under Annex III point 1(a). For other high-risk systems it defines the purposes the logs must serve, and the provider decides the content.
When do these duties apply?
From 2 December 2027 for Annex III high-risk systems and 2 August 2028 for AI in Annex I products, per Article 113 as amended.
Sources
- Article 12: Record-keeping | AI Act Service Desk - European Commission, AI Act Service Desk
- Article 13: Transparency and provision of information to deployers | AI Act Service Desk - European Commission, AI Act Service Desk
- Article 19: Automatically generated logs | AI Act Service Desk - European Commission, AI Act Service Desk
- Article 21: Cooperation with competent authorities | AI Act Service Desk - European Commission, AI Act Service Desk
- Article 26: Obligations of deployers of high-risk AI systems | AI Act Service Desk - European Commission, AI Act Service Desk
- Article 113: Entry into force and application | AI Act Service Desk - European Commission, AI Act Service Desk
- Recital 71 | AI Act Service Desk - European Commission, AI Act Service Desk
Check where your program stands
The free readiness self-check asks 10 yes / no / not-sure questions, plus optional industry questions. Each one cites an official page. Your score and gap list show in the browser, with no email needed.
Free weekly brief
What changed this week in AI assurance
One short email on Fridays: the dated changes on the official pages we cite. Standards moving status, regulator guidance, and vendors changing what they claim. Each line links to its source.