Keep AI agent logs that support your accounts and tax for as long as tax law requires those records, which is six years for UK companies and usually three years for US income tax, with longer periods in some cases. Keep logs that are only operational for as long as you need them, and no longer, because data protection law limits how long personal data can be kept.
Agent logs are business records
When an AI agent releases a payment, posts a journal or answers a customer, the record of that action is not just a technical log. It may be the evidence for an entry in your accounts, a refund, a tax claim or a complaint. That means two sets of rules pull in different directions: tax and company law tell you to keep records for a minimum period, while data protection law tells you not to keep personal data longer than you need it.
This article is general information, not legal or tax advice. Periods vary by country, business type and circumstance.
Minimum periods: what tax rules say
| Where | Rule (from official guidance) |
|---|---|
| UK limited companies | Keep records for 6 years from the end of the last company financial year they relate to, or longer in some cases, such as transactions spanning accounting periods, assets expected to last more than 6 years, or a late return or HMRC compliance check |
| UK self-employed | Keep records for at least 5 years after the 31 January submission deadline of the relevant tax year |
| US (IRS) | Generally 3 years from filing; 6 years if unreported income is more than 25% of the gross income shown on the return; 7 years for a claim for a loss from worthless securities or bad debt; employment tax records at least 4 years; indefinitely if no return was filed or a return was fraudulent |
In Canada and Nigeria, and for VAT, sales tax and payroll, check the official guidance for your situation; periods differ and some sectors have longer rules.
If an agent's log is the only evidence of why a payment was made or how a figure was reached, treat it as part of your accounting records for these periods.
Maximum periods: what data protection says
Article 5 of the UK GDPR sets the "storage limitation" principle: personal data must be kept in a form that identifies people for no longer than necessary for the purposes it is processed for. The EU GDPR and Nigeria's Data Protection Act 2023 contain similar principles. Agent logs often contain personal data: customer names, messages, account details, call transcripts.
That does not mean deleting financial records early. Keeping records to meet a legal obligation is a recognised purpose. It does mean you should not keep everything forever "just in case", and should separate what you must keep from what you merely collected.
A three-tier retention policy
- Financial evidence. Logs that support a payment, journal, invoice or tax position. Keep for the tax-law period, then delete or anonymise.
- Customer and dispute records. Conversations, refund decisions and complaints. Keep for as long as a claim or complaint could reasonably arise and any sector rule requires, then delete.
- Operational detail. Routine logs with no lasting value, such as routine reminders sent. Keep for a short period that supports monitoring and troubleshooting, for example months rather than years.
If you deploy a high-risk AI system under the EU AI Act, Article 26 requires you to keep the logs it generates, to the extent they are under your control, for at least six months unless other law says otherwise. That is a floor for those systems, not a reason to keep everything else longer.
Worked example (illustrative)
A London consultancy with a December year end sets its policy as follows. Payment and invoice logs from the finance agent for the year to December 2026 are kept until at least December 2032. Client support conversations are kept for two years after the case closes. Routine reminder logs are kept for six months. Each tier is tagged when the record is created, so deletion can be automatic, and the policy is reviewed each year with the company's accountant.
What a good log should contain
Retention only helps if the record is useful when you need it. For each action: what was done, when, by which agent, on whose authority or within which mandate, from which source, and what happened next. See audit trails for AI agents: what to record for the detail. Make sure you can export logs if you change provider; see what to put in a contract with an AI agent provider.
Common mistakes
- No policy at all, so logs are kept by default for as long as the provider stores them, which may be shorter or longer than you need.
- One period for everything, usually the longest, which keeps customer conversations for years without reason.
- Logs held only by the provider, with no export, so records disappear if you leave.
- Deleting the log but keeping the attachments, or the reverse, so the evidence no longer makes sense.
- Forgetting backups, which may keep data long after the live copy is deleted.
Where Pryme fits
In Pryme Business, every action an agent takes is recorded with its source, and every figure the Finance agent produces traces to a posted journal with a named source. The Compliance agent records refusals with the question and the gap that caused them. Your retention policy, and decisions about deletion, remain yours.
Questions people ask
Are AI agent logs part of my accounting records?
They can be. If a log is the evidence for a payment, journal or tax position, treat it as part of your records and keep it for the period tax law requires.
How long must a UK company keep records?
GOV.UK guidance says 6 years from the end of the last company financial year they relate to, or longer in some circumstances, such as an HMRC compliance check.
Can I keep agent logs forever to be safe?
Not if they contain personal data you no longer need. Data protection law requires personal data to be kept no longer than necessary for its purpose. Keep what you must, delete or anonymise the rest.
How long does the IRS expect records to be kept?
Generally 3 years from filing, with longer periods in some cases, such as 6 years where unreported income exceeds 25% of the gross income shown, 7 years for bad debt claims and at least 4 years for employment tax records.
Sources
- GOV.UK: Company and accounting records - how long to keep them · accessed Oct 2026
- GOV.UK: Business records if you're self-employed - how long to keep them · accessed Oct 2026
- IRS: How long should I keep records? · accessed Oct 2026
- UK GDPR Article 5: Principles (legislation.gov.uk) · accessed Oct 2026
- AI Act Service Desk: Article 26, Obligations of deployers · accessed Oct 2026
This article is general information, not financial, legal or tax advice. Products described are provided under the terms on this site and are subject to regulation and eligibility.