Skip to content
All insights

Deep dive

An AI Audit Trail for Inspection Readiness: capture, seal, replay

André Queiroz· Founder & CEO· dezotech· 8 min readLinkedIn ↗dev.to ↗

Published · Updated

AI governanceAudit trailComplianceRisk

Pick one decision your AI made three months ago — a credit limit, a fraud flag, a denied claim — and prove it. Not re-run it: prove it. The exact input, the model version that produced it, the data it drew on, the human who signed off. Without those records, an auditor, regulator, or legal reviewer may be unable to reconstruct the decision. By then the trail may have gone cold. The challenge is to preserve both the relevant model versions and the context of their use. A decision trail supports that work alongside model evaluation.

Tens of thousands

of parents and caregivers were falsely accused of fraud in the Dutch childcare-benefits scandal, according to Amnesty International (2021). Its investigation describes discriminatory scoring and inadequate oversight.

Amnesty International's 2021 investigation describes a Dutch childcare-benefits risk-scoring system introduced in 2013. Nationality was used as a risk factor, disproportionately affecting ethnic minorities. Civil servants reviewing flagged applications were not told why the system assigned a higher risk score. Discriminatory design and inadequate oversight both contributed to the harm; a decision record alone would not resolve those problems.

That's the lesson worth copying before you're the case study: a human in the loop without a trail is a blind signature. The reviewer signs, but can't see what they're signing — and neither can you, six months later, when it matters.

Evaluate the model and preserve the decision context

Models can be evaluated and audited. Retraining changes the state being evaluated: if an earlier version was not preserved, inspecting today's model may not explain a decision made with that earlier version. Versioning, test results, retained inputs, and decision records serve complementary purposes.

A governance review also asks who used what, on which data, who approved it, and which records support one specific case. A scoped assessment of sources, access, and controls can identify what is reconstructable and what is missing. The proposed approach has three parts: capture, seal, replay. It supports human review without guaranteeing that an inspection will be passed.

Capture: write down what you can't reconstruct later

An audit-trail entry isn't a log line. It's the minimum set of facts that lets you answer the auditor's question for one decision — captured at the moment the decision happens, because you cannot rebuild it afterward if you didn't record it then.

Every consequential AI decision should capture

  • The exact input the model received — the real payload, not a summary (redact or hash PII).
  • The model and version that produced it — a pinned identifier, not "latest".
  • The data sources and their version the decision drew on — provable lineage.
  • The output, plus any score or confidence behind it.
  • The named human who reviewed or approved it — a person, not a service account.
  • A timestamp and a correlation ID that ties the entry back to the request.

The Dutch example illustrates why a reviewer needs enough context to question a score, alongside a process for correcting decisions and evaluating discriminatory effects.

Seal: a trail you can edit is not evidence

Capturing the facts isn't enough if anyone can quietly change them afterward. Append-only controls and chained hashes can help detect changes when trusted reference records are preserved separately and checked. A chain that can be rewritten together with its reference does not establish integrity on its own; hashes also do not authenticate the author or timestamp. These controls need assessment in the actual storage and access environment.

The SEC adopted Rule 17a-4(f) in 1997, requiring US broker-dealers choosing electronic recordkeeping to use WORM format — write once, read many: non-rewritable, non-erasable. Its October 2022 amendments added an audit-trail alternative: a system that permits reconstruction of an original record if it is later modified or deleted. That phrase is the whole game. Regulated finance settled the "how do we trust the log" question decades ago, and AI governance is now inheriting the answer. You don't need to invent a new record-integrity mechanism. Assess how an existing standard applies to a new class of decision.

Replay: reconstruct one decision, on demand

The test of the whole system is the replay. Pick one real decision, months old, and walk it end to end — input, model version, data, the human who approved it, the checkpoint where someone could have said no. Measure how long that takes and record any gaps. Retrieval speed can support a review, but it does not determine whether the organization meets an inspection's requirements.

Build the trail so a replay is a query, not an archaeology project. That one design constraint — "could I replay this in front of an inspector tomorrow?" — quietly forces every other decision about what to capture and how to store it.

What records are available for a consequential AI decision?

Describe one workflow and the records your team is authorized to share. We can assess the available sources, access requirements, and scope for a diagnostic. Reconstruction and gap analysis depend on those inputs; neither coverage nor an inspection outcome is guaranteed.

Discuss a decision-trail assessment

The frameworks that give the trail a shape

You don't have to invent the controls from scratch. Three frameworks already define them, and they stack rather than compete — the trick is knowing which job each one does:

FrameworkWhat it gives youWhere it fits
NIST AI RMF (AI 100-1)The what & why of AI risk — four functions run iteratively: Govern, Map, Measure, Manage.Decide which decisions are consequential enough to need a trail.
ISO/IEC 42001:2023The how — the first certifiable AI management system, on a plan-do-check-act cycle.Turn the trail into an audited, repeatable process a third party can certify.
ISACA ITAF, 5th ed. (26 Feb 2026)The who checks it — IT-audit standards updated to fold in AI/ML audit guidance, automation and "digital trust" across planning, fieldwork and reporting.Know what an IT auditor will actually test and sample.

They reinforce each other: the risks you map and measure under NIST become the documented evidence ISO 42001 expects, and harmonizing the two keeps you from rebuilding compliance from zero in every jurisdiction. One caution worth saying out loud to a board — ISO 42001 is a voluntary certification you pursue for trust; the EU AI Act is state enforcement that can stop you operating. Passing one doesn't excuse the other.

Capture → Seal → Replay

The proposed sequence: record the facts needed for review at the moment of the decision; protect the records and preserve trusted references separately so changes can be detected; then test whether one decision can be reconstructed. The frameworks help define the scope. The trail supports review, without guaranteeing compliance or an inspection outcome.

The pushback you'll hear — and the answer

"Logging every decision is too expensive." You don't log every decision — you log the consequential ones, the calls with legal or financial weight. A hash and a handful of structured fields per decision is cheap. The expensive path is the other one: the morning a regulator asks about a decision and you have nothing to show but the model.

"We have explainability tools — isn't that the trail?" No, and conflating them is how teams get caught. Explainability tells you why a model tends to behave a certain way; the trail proves what happened in one specific case, with a name attached. An auditor doesn't want a feature-importance plot. They want the input, the version, and the approver for the decision in front of them.

"Our cloud provider already logs everything." Provider logs tell you a request happened — not which decision it produced, on whose authority, against which version of the data. Infrastructure logs are not a decision trail, and an inspector knows the difference on sight.

Why this is the work now

As of 18 October 2026, the Commission's implementation timeline sets different dates for different duties. Article 50 transparency rules have applied since 2 August 2026. Certain providers of systems placed on the market before that date have until 2 December 2026 for the Article 50(2) marking and detection duties; this is a limited transition, not a general extension of transparency obligations.

The AI Omnibus entered into force on 27 July 2026. High-risk rules for Annex III systems apply from 2 December 2027, while those for high-risk AI embedded in regulated products covered by Annex I apply from 2 August 2028. The relevant category and obligations need assessment for the particular system and role.

A decision trail is one part of that work. It supports reconstruction and human review; it does not establish that the underlying decision is accurate or fair, or replace the other requirements applicable to the system.

FAQ

What should an AI audit trail contain?
For each consequential decision: the exact input, the model and version that produced the output, the data sources and their version, the output and any score, the named human who approved it, and a timestamp tied to the request. Capture it at the moment of the decision — you can't reconstruct it later if you didn't record it then.
How can an AI audit trail be made tamper-evident?
Append-only storage and chained hashes can help detect changes when trusted reference records are preserved separately and checked. They do not make records tamper-proof or authenticate their author or time on their own. Regulated finance has required record-integrity controls for decades: the SEC's Rule 17a-4 mandated WORM (write once, read many) storage from 1997 and, since its October 2022 amendment, also accepts an audit-trail system that can recreate the original record if it's modified or deleted.
Can you audit an AI model directly?
Yes. Model evaluation can examine behavior, performance, and risks for a defined version and context. Reconstructing a past decision also requires the relevant version, inputs, outputs, and review records. If an earlier version was not retained, testing the current model may not explain that past decision. A governance trail complements model evaluation; it does not replace it.

One auditability question concerns a specific decision: who approved it, on what basis, and which records support it? Build the trail to support that review, while assessing gaps and the applicable requirements. This is the other half of the pre-audit playbook — its first checklist item is a tamper-evident trail; this article proposes how to assess one. And it's where the shadow-AI plan is heading the whole time: the reason to drag unsanctioned AI into the light is so it lands on a trail you can replay.

To connect these questions with a proposed project, explore our AI governance service scope, including deliverables, review criteria and dependencies.

Practical playbooks, straight to your inbox.

Automation, legacy modernization & safe AI adoption. Free: the AI-Adoption-Without-Audit-Failure checklist.