Recently, I was in an interview for head of development position for a fintech startup. They asked a very specific AI-governance question, the result of which is this whole series, starting with - AI traceability.
The question was, “few months ago, we made a change to the architecture of a module in our system and Claude and Codex were fairly used. Now, our engineers are fixing few edge cases and none of them remembered why and how they were missed in the first place. As a head of engineering, how and what framework would you build to avoid these in future”.
Well, I didn’t have the answer back then, but I think now I can and it’s called AI traceability.
Where traditional traceability breaks down!
In a pre-AI engineering workflow, traceability was just a documentation problem. While major decisions were always documented, the engineers also had major context in their mind, since most design decisions were made in the room. The documentation standards were imperfect but the reasoning wasn’t passing, it lived in the people who made the decision.
Then came the AI and changes everything.
The reasoning behind the output is black box because once the chat session ended, the context is lost if not saved or logged.
Since the context is short-lived, the exact state of the conversation, the codebase, and the constraints supplied during the AI-session is also gone.
And most importantly, now the decision itself is hybrid, with part human, and part model.
Traditional traceability assumed a single chain of authors for each decision, while AI-assisted decisions don’t have that anymore.
Defining AI-traceability!
The concept behind the AI traceability is not a log, or a prompt history, but a summarized, preserved state of the decision flow between engineer and the model. The intent is clear, AI-assisted decision should have enough traceability to identify what information influenced it, which model produced it, what alternatives were considered, who approved the direction, and why the outcome that reached production was chosen over the ones that didn’t.
When AI participates in an engineering decision, the decision itself, not just the code, must become traceable.
From concept to capability
Now coming back to the interview story, if it would have happened last week, I had the concept ready. Of course, I didn’t get the second chance, but for this article, I kept my pretend ‘Head of Engineering’ hat on; and realised concept isn’t enough to build a framework.
I also need to understand the current state of the system, may be we’re already preserving something, just not officially. And that’s how, the diagnostic below was formed.
It is a practical way to test whether the current engineering workflow preserves enough information to reconstruct AI-assisted decisions.
AI-traceability diagnostic
So, how it works is - we take the last three significant architectural decisions where AI tooling was available and likely used, and for each one, work through the following by phase.
Pre: before the model was invoked
What problem or design question was posed to the model? What was the engineer actually trying to solve?
What context was supplied, the codebase state, existing patterns, constraints, or the ticket?
Which model and version was used? Not the product name, the specific version, as the model behaviour changes between versions.
Was Retrieval-Augmented Generation used? If so, against which knowledge sources, and were those sources current?
In-flight: during the AI-assisted session
What alternatives did the model propose? Not what was implemented, but what was surfaced and set aside.
What did the engineer reject, and at which iteration? If they ran four prompts before accepting a direction, what changed?
What was the human rationale for the direction chosen over the alternatives, at the moment of choosing, not reconstructed later?
Was there a peer or architecture review of the AI-assisted design before it moved to implementation?
Post: after the decision reached code
What is the delta between the AI output and the final committed implementation? What did the engineer modify, add, or discard?
Which elements of the final implementation are AI-originated versus human-authored, with enough precision to isolate them if a problem surfaces?
Why was this implementation chosen, in terms that would survive a post-incident review six months later?
Has the decision outcome been validated against the original rationale since deployment?
Count how many of those questions your team can answer for each decision. That number is your traceability baseline, and the questions you can’t answer are the gap.
Introducing the AI decision record (AI-DR)
I’m going to be honest here, the first concrete idea that came out of this research surprised me, ADRs weren’t the part that was missing, but they were missing AI-context, and that’s where the AI Decision Record came from.
AI-decisions record, a dedicated artifact that sits alongside the ADR, not as a replacement, but a companion for decisions where AI was a participant.
After several iterations of what this artifact should include, I came to one conclusion that every missing piece fell into one of four buckets.
AI Participation Record to capture the pre-phase: model and version, prompt intent, context supplied, RAG usage and sources. This is the provenance layer that establishes what the model knew and what it was asked.
Alternatives Log to capture the in-flight phase: options the model surfaced, options the engineer rejected, and the rationale for each rejection at the point of rejection; recorded at real time.
Implementation Delta to capture the post-phase: the difference between the AI output and the final committed code, what the engineer accepted, modified, and discarded before opening the PR.
Sign-off Record to capture accountability: who reviewed the AI-assisted decision, at what stage, and with what outcome.
For most teams starting, the lightest viable option is a structured markdown file committed alongside the code, a companion to the ADR that covers the AI participation dimensions. PR templates can enforce the capture above a defined significance threshold. For teams at scale, this feeds into a searchable decision log, Confluence, Notion, or a structured directory in Git, that makes past decisions reconstructible across the organisation, not just within the team that made them.
The goal isn’t a comprehensive database, but a consistent practice for AI-assisted engineering.
Where do engineering leaders start
Traceability is an engineering capability, that needs to be built like one.
If I were introducing this in an engineering organisation tomorrow, I'd do only three things initially.
First, define the significance threshold, the level above which AI participation in a decision requires an AI Decision Record. Not every agent autocomplete needs the same treatment as an AI-assisted settlement architecture design.
Second, create the capture practice before you build the tooling. A structured markdown template, a PR field, an agreed protocol, start with the lightest thing that works and build from there.
Third, make the AI Decision Record a first-class artifact alongside the ADR.
AI-traceability is more than a compliance feature because it is not just built for external auditors, but because the team understand the operational integrity required for AI-assisted engineering.
The engineering practices around AI-assisted software delivery are still evolving, and traceability belongs at their foundation.
Building the framework
Looking back, I believe that interview ended up shaping this entire series.
AI traceability is only one capability in a broader AI-engineering governance framework. In the articles that follow, I'll build out the connected capabilities:
AI Decision Records in depth: what each component contains, what good looks like versus thin, and how to design the capture protocol for your team.
AI auditability: whether what you reconstruct can withstand structured review.
Accountability layers: who owns an AI-assisted decision when something goes wrong.
Evidence chains: how these capabilities combine into a governance framework that holds up under pressure.
And more.
