An AI audit trail doesn't need to know what your users actually said.

By DisclarionPublished Updated 4 min read

Say “audit trail” to a team that hasn't built one yet and most people picture the same thing: a growing database of every conversation their chatbot has ever had, sitting there indefinitely, because surely that's what “proving compliance later” requires. Article 50 does not prescribe such a transcript store, or a universal per-interaction log. Designing records to check your implementation is a separate engineering decision, and keeping everything by default can create unnecessary risk.

Some teams see that imagined scope, a permanent record of everything anyone ever told the bot, and quietly deprioritize the audit trail because it sounds like signing up for a second compliance problem on top of the first one. Others build it anyway and log the full conversation “to be safe,” which can create a GDPR question rather than settling the evidence question: now there's a growing store of user-submitted content, potentially personal, sitting in a table that exists for a completely different reason. Neither team is wrong to worry. Start with the purpose of the record and collect only what you need for that purpose.

I already wrote about what makes a log count as an audit trail using three engineering criteria: tamper resistance, coverage and exportability. Those are recommendations, not an Article 50 log specification. That post is about the shape of the record. This one is about what's actually inside it, and it's less than most teams assume before they check.

One purpose of a disclosure record is to help verify when a notice was shown or a label applied. A receipt can support that check without storing the whole conversation. It is not, by itself, proof that every relevant legal duty was met: roles, exceptions, accessibility and the adequacy of the notice still need assessment.

For that operational purpose, Disclarion records a narrow set of facts about each tracked interaction:

  • Which provider and model handled the interaction, so the record can say what generated the response, not what the response said.
  • A session identifier and timestamp, so the record ties to a specific moment without needing to reconstruct the conversation around it.
  • Whether disclosure was shown and whether the content was labeled, as operational flags to help check the implementation. These flags do not replace a review of the applicable Article 50 duties.
  • Jurisdiction and interaction type, so the record can be matched against whichever obligation applied to it, including the case where none did.

None of that is the message. There's no field in there for what the user typed or what the model replied, because none of it is needed for these implementation checks.

GDPR's data-minimisation and storage-limitation principles apply when a record contains personal data. Metadata and session identifiers can still be personal data, so a smaller record is not automatically exempt. Define the lawful purpose, access and retention period instead of keeping conversations indefinitely “just in case.”

This is, deliberately, how Disclarion's logging is scoped. The fields a dc.track() call sends, provider, model, session ID, jurisdiction, interaction type, and the disclosure/labeling flags, don't include the message or the response, because there's no field for it to go in. There's an optional raw_metadata field a caller can attach their own data to if they want, it defaults to empty and the SDK never populates it with conversation content on its own. Keep personal data and conversation content out of that optional field too; this metadata-only approach depends on what the caller supplies as well as the SDK defaults.

I'm obviously not a neutral party here, it's the product I work on. But the underlying check doesn't depend on which tool anyone uses for it: if your own audit trail has a column for the message itself, ask what it's actually being used to prove. If the honest answer is “nothing, we just weren't sure how little we could get away with,” that's worth revisiting before that column turns into the thing a data-protection review flags, instead of the audit trail it was supposed to be.

For the full checklist this fits into, including disclosure and content labeling, see our Article 50 compliance checklist.

Official sources

This is an AI-powered assistant.