AI Agent Audit Trails and the Six-Month Log Rule
An AI agent audit trail records which agent took which action, when, with which tool, under which version of its rules, and who approved it. Under the EU AI Act, deployers of high-risk systems keep the logs under their control for at least six months.
Last reviewed: 18 November 2026.
1. Decide what to record
- The action, not just the chat. Agent, tool, time, outcome (succeeded, failed, started but never finished). A chat transcript alone does not show what an agent changed.
- The rules it ran under. The version of the agent’s instructions and tool list at that moment, so you can tell whether it broke its rules or the rules changed.
- The human decisions. Who approved, rejected or escalated, and when. (Art. 12 asks logs to support monitoring how the system is operated.)
- Calls outside the agent’s list. A tool call the agent was not granted is the clearest drift signal you have.
2. Keep it long enough, and no longer
- Six months minimum. Deployers keep logs for at least six months, unless other EU or national law, such as data protection law, says otherwise. (Art. 26(6); Art. 19(1) for providers)
- Check your defaults. Look up the retention setting of every store your agents’ logs land in. Set 183 days or more for agents in scope.
- Minimise personal data. Record metadata (which tool, when, outcome) rather than full arguments where you can. It keeps the trail useful and limits what GDPR applies to.
- Make it tamper-evident. Append-only storage or a hash chain shows that nobody edited the record after the fact.
3. Use it
- Reconstruct incidents. When something goes wrong, the trail should answer: which agent, which action, under which approval.
- Watch for drift. Compare what agents did against what they are allowed to do, on a schedule. (Art. 26(5); NIST AI RMF MANAGE 4.1)
- Hand it over. Give customers and auditors the record itself, not a policy describing it. (ISO/IEC 42001 A.6.2.8, event logs)
Note: logging duties under Art. 12 and 26(6) apply to high-risk (Annex III) uses from 2 December 2027. Retention must also respect GDPR. This page is not legal advice.
Check your own agents
The free Charter Diagnostic for LibreChat includes observe-only hooks that record which agent called which tool, with no argument values or conversation content. It flags retention under six months as a gap against Art. 26(6). Back to AI agent governance best practices →
Frequently asked questions
Are chat logs enough?
Rarely. They show what was said, not which tool ran, under which rules, or who approved it.
Six months from when?
The Act sets a minimum period for keeping logs; count from when each event was recorded.
Can we keep logs longer?
Yes, if you have a lawful basis for it. Data protection law may require you to delete personal data sooner, so record your reasoning.
Sources
Start with the agents you already run.
Run the free Charter Diagnostic on your LibreChat agents, or talk to us about writing each agent’s charter: owner, limits and escalation path.