← Blog Regulation & Compliance
compliancegovernanceaudit

How Long to Keep AI Agent Logs, and What the EU AI Act Requires

A retention table for AI agent logs: the EU AI Act's six-month minimum, the US rules that run longer, what each entry must hold and when to delete.

MightyBot ·

AI governance guide

How Long to Keep AI Agent Logs, and What the EU AI Act Requires

A retention table for AI agent logs: the EU AI Act's six-month minimum, the US rules that run longer, what each entry must hold and when to delete.

A long shelf of blank white record boxes split by glass dividers, one box at the front glowing amber beside an hourglass shape.

Summary: The EU AI Act sets a floor of six months for the logs of a high-risk AI system, and for financial institutions it folds those logs into the records that financial services law already requires. In practice the longer periods come from elsewhere: 25 months under Regulation B, five years under the Bank Secrecy Act and New York’s cybersecurity rule, six years for broker-dealers, and three years under Colorado’s new law. The useful output is a table with one period per record class, a list of what each entry must hold, and a deletion date.

Logs and documentation are different records

The EU AI Act treats two things separately, and mixing them up produces the wrong number.

Logs are the automatic record of what the system did. Article 12 requires that “high-risk AI systems shall technically allow for the automatic recording of events (logs) over the lifetime of the system.”

Documentation is the description of the system: technical documentation, the quality management system and related records. Article 18 says “the provider shall, for a period ending 10 years after the high-risk AI system has been placed on the market or put into service, keep at the disposal of the national competent authorities” that set of documents.

The 10 years belongs to documentation. Logs have their own rule.

What the EU AI Act requires for logs

For providers, Article 19: “the logs shall be kept 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.”

For deployers, which is the position of a bank or lender using a system someone else built, 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.”

Financial institutions get a specific instruction: deployers that are financial institutions “shall maintain the logs as part of the documentation kept pursuant to the relevant Union financial service law.” So for a bank the answer to “how long” is the retention period of the financial services record the log belongs to, with six months as the minimum.

Three points follow from the wording.

  1. Six months is a minimum. The period must be “appropriate to the intended purpose.” A system that supports a 25-year mortgage decision has a different purpose from one that sorts incoming mail.
  2. Control matters. The deployer’s duty covers logs “under their control.” If the vendor holds the logs, the contract has to say who keeps them and for how long.
  3. Logs serve the explanation right. Under Article 86, an affected person has “the right to obtain from the deployer clear and meaningful explanations of the role of the AI system in the decision-making procedure and the main elements of the decision taken.” A deployer that has deleted the log cannot give that explanation.

When these obligations start

The original text of Article 113 says the regulation “shall apply from 2 August 2026.” That is no longer the date for high-risk systems. Regulation (EU) 2026/1744, published in the Official Journal on 24 July 2026, amended the article so that the high-risk requirements 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.” Creditworthiness evaluation sits in Annex III. We track the dates in The EU AI Act Clock Banks Are Using Is Already Wrong.

The US rules that set longer periods

No US federal rule sets a retention period for AI logs as such. The periods come from the rules that govern the activity the agent takes part in.

Credit decisions. Regulation B requires a creditor to retain records “for 25 months (12 months for business credit, except as provided in paragraph (b)(5) of this section or otherwise provided for in subpart B of this part) after the date that a creditor notifies an applicant of action taken on an application or of incompleteness.” The scope is wide. It includes “any other written or recorded information used in evaluating the application and not returned to the applicant at the applicant’s request.” If an agent’s extraction or calculation was used in evaluating the application, its record falls inside that sentence.

Anti-money laundering. The Bank Secrecy Act regulations say: “All records that are required to be retained by this chapter shall be retained for a period of five years.”

Broker-dealers. SEC Rule 17a-4 requires certain records to be preserved “for a period of not less than 6 years, the first two years in an easily accessible place.” FINRA Rule 4511 adds a default: members “shall preserve for a period of at least six years those FINRA books and records for which there is no specified period under the FINRA rules or applicable Exchange Act rules.”

New York cybersecurity. For entities regulated by the New York Department of Financial Services, 23 NYCRR 500.6 requires systems that “include audit trails designed to detect and respond to Cybersecurity Events,” and the copy of the rule we read says “each Covered Entity shall maintain records required by this section for not fewer than five years.” Check the department’s current text for the period that applies to each category of record.

Colorado. Colorado replaced its 2024 AI law in 2026. The legislature’s summary of SB 26-189 says “both developers and deployers are required to retain records necessary to demonstrate compliance with the act for at least 3 years,” with developer duties “starting January 1, 2027.”

Model risk guidance. A lender might expect the banking agencies’ model risk guidance to settle this. It does not. The guidance was replaced on April 17, 2026, and the OCC’s announcement says “generative AI and agentic AI models are novel and rapidly evolving. As such, they are not within the scope of this guidance.”

A retention table to start from

RecordRuleMinimum periodRuns from
Logs of a high-risk AI system, EUAI Act Art. 19 and 26(6)6 months, or the financial services record period if longerCreation of the log
Provider documentation of a high-risk system, EUAI Act Art. 1810 yearsPlacing on the market or into service
Records used in evaluating a consumer credit application, US12 CFR 1002.1225 monthsNotice of action taken
Records used in evaluating a business credit application, US12 CFR 1002.1212 months, with a shorter rule for larger businessesNotice of action taken
Records required under the Bank Secrecy Act regulations31 CFR 1010.4305 yearsAs each rule specifies
Broker-dealer records under Rule 17a-4(a)17 CFR 240.17a-46 yearsAs the rule specifies
Cybersecurity audit trails, NYDFS entities23 NYCRR 500.65 years in the text we readCreation
Records showing compliance with Colorado SB 26-189SB 26-1893 yearsFrom January 1, 2027

Where two rows cover the same log entry, the longer period applies. A log of an agent that helped decide a consumer loan application in New York is covered by at least Regulation B and, if it is part of the audit trail for the system, the NYDFS rule.

What each log entry needs to hold

A retention period is useless if the entry does not contain what the rule is for. Working back from the purposes above:

  • For explanation: the inputs the agent used, where each came from, the rule or policy it applied and the result. Article 86 asks for “the main elements of the decision taken.”
  • For credit records: everything “used in evaluating the application,” which means the extracted values and calculations, not only the final outcome.
  • For human oversight: who reviewed, what they saw and what they decided. Where the GDPR applies to a solely automated decision, the person has “at least the right to obtain human intervention on the part of the controller, to express his or her point of view and to contest the decision.”
  • For reconstruction: the version of the policy and of the system in force at the time.

NIST’s AI Risk Management Framework gives the general reason: “Documentation can enhance transparency, improve human review processes, and bolster accountability in AI system teams.” Our post on AI agent audit trails lists the fields in detail.

Keeping logs trustworthy

A log that can be quietly edited proves little. NIST’s log management guide states the requirement in one line: “Log management also involves protecting the confidentiality, integrity, and availability of logs.”

The most specific US text is the SEC’s rule for broker-dealers. It accepts electronic records kept in a way that “maintains a complete time-stamped audit trail” including “the date and time of actions that create, modify, or delete the record” and any other information needed to “permit re-creation of the original record if it is modified or deleted.” The rule offers that audit-trail method as an alternative to write-once storage. For firms outside its scope it is still a clear description of what tamper-evident means: every change is itself recorded, and the original can be recovered.

When to delete

Retention standards usually state a minimum and stop. Under the GDPR that is half an answer. Personal data must be “kept in a form which permits identification of data subjects for no longer than is necessary for the purposes for which the personal data are processed.” The AI Act’s own log rule defers to this, since its six months applies “unless provided otherwise” in data protection law.

Agent logs often contain personal data: names, account numbers, document contents. So each record class needs an end date. One exception has to be built in. NIST distinguishes routine retention from preservation, which is “keeping logs that normally would be discarded, because they contain records of activity of particular interest.” Litigation, a complaint or an examination puts a hold on deletion for the records involved.

Writing the standard in six steps

  1. List what each agent does and which regulated activity it touches.
  2. For each activity, list the record retention rules that apply and take the longest.
  3. Define the log entry: inputs with sources, policy version, result, reviewer and decision.
  4. Decide who holds the logs. If a vendor does, put the period, the format and the return of logs at exit in the contract.
  5. Set the integrity control: an audit trail of changes, or write-once storage.
  6. Set the deletion date and the hold procedure, and test both.

How the automated version works

MightyBot is an AI agent platform for lending and finance. Each agent run records the policy applied, the inputs with a reference to the page or record each came from, the result, and any human approval. The record is what a reviewer sees when they check a finding, and what an auditor sees later.

What an audit trail should contain for extracted loan data is covered in a separate explainer. The platform controls are described on the compliance page, and a comparison of tools is in best AI agent audit trail platforms.

FAQ

Frequently Asked Questions

How long does the EU AI Act require AI logs to be kept?

At least six months. Article 19 requires providers of high-risk AI systems to keep automatically generated logs for a period appropriate to the system's intended purpose, of at least six months, unless other Union or national law provides otherwise. Article 26(6) sets the same minimum for deployers, for logs under their control. Financial institutions keep them as part of the documentation required by financial services law, which usually runs longer.

When do the EU AI Act's logging obligations for high-risk systems apply?

Regulation (EU) 2026/1744, published in the Official Journal on 24 July 2026, moved the date. The requirements for high-risk systems listed in Annex III, which include creditworthiness evaluation, apply from 2 December 2027. Those for systems covered through Annex I apply from 2 August 2028.

How long should a US lender keep logs of an AI-assisted credit decision?

Regulation B sets the floor at 25 months after the applicant is notified, or 12 months for business credit, and it covers any written or recorded information used in evaluating the application. A lender's Bank Secrecy Act records run five years. Most lenders therefore set one period per record class and apply the longest rule that covers it.

Is the 10-year period in the EU AI Act a log retention period?

No. Article 18 requires the provider to keep technical documentation, quality management documentation and related records at the disposal of authorities for 10 years after the system is placed on the market or put into service. Logs are governed by Article 19, with the six-month minimum.

Do AI agent logs have to be stored in a write-once format?

Not necessarily. For broker-dealers, SEC Rule 17a-4 allows electronic records to be kept either in a non-rewriteable, non-erasable format or in a system that maintains a complete time-stamped audit trail, including the date and time of actions that create, modify or delete the record. Other regimes ask for integrity without naming a technology.

When must AI agent logs be deleted?

When no retention rule or legal hold still covers them, if they contain personal data subject to the GDPR. Its storage limitation principle says personal data may be kept in identifiable form for no longer than is necessary for the purposes for which it is processed. A retention standard needs an end date as well as a minimum.