# EU AI Act Article 12: logging for AI agents

Article 12 of the EU AI Act, Regulation (EU) 2024/1689, is the record-keeping rule for high-risk AI systems. This guide says what it asks for in plain words, what a signed record of an agent's tool calls gives towards it, and what it does not.

Nothing here is legal advice. Whether a system is high-risk, and from when the rules apply to it, are questions for the Regulation itself (Article 6 and Annex III) and your own adviser.

## What the text asks for

Article 12(1) reads: "High-risk AI systems shall technically allow for the automatic recording of events (logs) over the lifetime of the system."

The rest, in plain words:

- **Article 12(2): traceability.** The logs must make the system's functioning traceable to a degree that fits its purpose. They must cover the events relevant to three things: spotting situations that may lead to the system presenting a risk or to a substantial modification, post-market monitoring by the provider, and the deployer's monitoring of the system in operation.
- **Article 12(3): remote biometric identification.** For these systems the logs must hold at least the period of each use, the reference database, the input data that led to a match and the people who verified the results.
- **Article 19(1): providers keep the logs.** Providers keep the automatically generated logs that are under their control for a period that fits the system's purpose, of at least six months unless other Union or national law says otherwise.
- **Article 26(6): deployers keep the logs.** Deployers do the same for the logs under their control.

Article 12 names no log format and no technology. It asks for events, recorded automatically, that let someone trace what the system did.

## What this means for an agent

An agent acts through its tools: it pays, sends, approves, deletes or changes something by calling one. The events that let a reader trace what an agent did are its tool calls: which tool, with what input, what came back, and when.

A log you write and keep yourself records those events. It cannot show an outsider that none was edited, left out or dated early: [Why your own logs are not evidence](/docs/guides/why-your-own-logs-are-not-evidence).

## What a record gives

- **Automatic recording.** Each tool call is written as a signed `decision` and `outcome` record as the agent runs, with no manual step: by wrapping the tools, through the gateway, or from the traces the agent already has.
- **Traceability.** Each agent's records form one chain in order. An edited record breaks its signature, and a removed one leaves a gap. The signed tool list shows which tools are recorded: [Tool coverage](/docs/coverage).
- **Kept for the period.** The content of each record stays on your systems, and keeping it for the period is your task. The witness keeps the hash of every record with no time limit, so content you kept can be checked against it later.
- **A check that does not rest on your word.** A witness co-signs the records and public time bounds fix when they existed. An auditor or an authority verifies an export offline with the open verifier: [Verify](/docs/verify).

## What it does not give

- **Not compliance, and not certification.** A record is evidence for the record-keeping requirement. Article 12 is one of several requirements for a high-risk system, and a record does not make a system compliant.
- **Only tool calls that go through it.** A call made around a wrapped tool or the gateway leaves no record, and other events your system must log need their own logging.
- **Not whether the decision was right.** A record proves who signed it, that it has not changed and when it existed.
- **From traces, the decision can come after the tool ran.** Records made from OpenTelemetry spans say whether the decision was written before or after, and a sampled-out span has no record: [Audit log from OpenTelemetry traces](/docs/frameworks/opentelemetry).

Audit packs that map the records to Articles 12, 19 and 26(6) are part of Enterprise: [Audit packs](/docs/audit-packs).

Next: start free, with the SDK alone and no account. [Quickstart](/docs/quickstart)
