← Guides

This is general information, not legal advice. Verify current requirements and application dates with a qualified professional before making compliance decisions.

Guide

EU AI Act Article 12: logging requirements for AI agents

Article 12 is the record-keeping rule of the EU AI Act. It says high-risk AI systems must technically allow for the automatic recording of events, in other words logs, over the lifetime of the system. For an AI agent that calls tools, models and APIs on its own, this is the article that decides whether you can later show what the agent actually did.

What the logs have to make possible

Article 12 does not list a fixed set of fields. Instead it sets purposes the logging must serve. The logs must be capable of supporting:

Extra minimums for remote biometric identification

For the remote biometric identification systems listed in Annex III, Article 12 adds minimum logging content: the period of each use, the reference database the input was checked against, the input data that led to a match, and the identity of the people involved in verifying the results. Most AI agents are not in this category, but it shows the level of detail regulators have in mind.

How long logs must be kept

Retention sits in other articles. Providers must keep the logs their high-risk systems generate, to the extent those logs are under their control, and deployers must do the same for logs under their control. The baseline is at least six months, unless other EU or national law, data protection law in particular, requires something different. Check which period applies to your sector.

What this means for an AI agent

A chat transcript is not enough. To meet the purposes above, an agent's logs should capture, per event and with a timestamp:

Common gaps

From logs to documentation

Logs are only useful if you can organize them against the Act. The same events that satisfy Article 12 are the evidence behind several Annex IV sections, such as monitoring, human oversight and change history. If your agent already emits OpenTelemetry, LangSmith, AgentOps or MCP traces, you have most of the raw data. Attestly maps those traces to the Annex IV sections for you, and a person reviews the result before you rely on it. See why traces beat scans.

Not sure if your system is high-risk?

Run the free EU AI Act risk checker. No signup required.

Check now →