Writing
2026-10-01 · 12 min

Architecture Decision Records in AI projects

Architecture Decision Records were introduced by Michael Nygard in 2011 as a lightweight way to capture architecturally significant decisions, together with the context and consequences. In fifteen years they have become table stakes for serious engineering teams. In AI projects they matter more, because the choices are less reversible, the reasoning rots faster, and new team members cannot infer the intent from the code the way they can in a conventional service.

What an ADR is, and what it isn't

An ADR is a short Markdown document that records one decision. Nygard's original format is five sections — Title, Status, Context, Decision, Consequences — and after hundreds of them, I still find that is almost always the right structure. Add fields when you have a reason; don't add fields because a template told you to.

What an ADR is not:

  • A design doc. A design doc describes a plan. An ADR captures a choice. One design doc may yield several ADRs.
  • Documentation of how the system currently works. That is a different artefact. An ADR records why a decision was made, not what the system does today.
  • A ticket. Tickets expire; ADRs do not. A ticket's point is to close; an ADR's point is to persist.

Why ADRs matter more in AI projects

Decisions are less reversible

If you choose Postgres over MySQL for a service, migrating later is painful but routine. If you choose 512-token semantic chunks over clause-level chunks for a 400k-document corpus, reversing the choice means re-ingesting, re-embedding and re-indexing everything, plus re-running your evaluations. The cost of being wrong is higher, so the cost of not recording why you were right is higher.

Decisions compound invisibly

A chunking choice interacts with the embedding model, which interacts with the reranker, which interacts with the prompt's instruction set. By month four, nobody can remember which of the four is why answers to one class of question are poor. ADRs are where that compounding is made legible.

The code does not describe the reasoning

In a conventional service, a well-named function and a well-shaped type system carry most of the design intent. In an AI system, the behaviour is encoded in the prompt text, the chunk sizes, the top-k, the reranker thresholds and the model's own idiosyncrasies — none of which read as self-explanatory. A new team member cannot read the code and infer why you chose top-k=12.

The vendors move

A new model deprecates an old one. A new embedding model is released. A new reranker is two points better on your eval. Without ADRs, every one of these upgrades is a judgement call made from scratch. With ADRs, you have the baseline reasoning to compare against.

The format I actually use

Five sections, one page, numbered sequentially:

# ADR-0032: Use clause-level chunking for policy documents

## Status
Accepted — 2026-03-14

## Context
The policy corpus (approx. 400k documents, average 18 pages) is
queried with precise, clause-scoped questions. 512-token semantic
chunking (ADR-0014) tested well on general queries but under-performs
on clause citations: Recall@5 drops from 0.86 to 0.61 on the
clause-reference eval slice.

## Decision
Chunk policy documents at clause boundaries detected by the policy-
parser v2 (SemVer 2.1). Each chunk retains clause number, parent
section id and effective date in metadata. Non-policy documents
remain on 512-token semantic chunking.

## Consequences
Positive
- Recall@5 on clause-reference queries rises to 0.89 in regression
  evaluation.
- Citation accuracy becomes clause-exact.

Negative
- Re-ingestion of the policy sub-corpus (approx. 40 hours of
  pipeline time, planned for next sprint).
- Chunking logic is now source-type dependent; dispatcher required.
- Non-policy docs still use semantic chunking; this split is a
  future complexity cost we have accepted.

Open
- Policy-parser v2 does not handle amendments; ADR follow-up on
  amendment handling.

That's one page. It took about forty minutes to write, including the eval numbers. In six months when the next engineer wonders why policy docs are different, this is their answer.

AI decisions that deserve an ADR

Model choice

Which family (Azure OpenAI, Anthropic, open-weight), which specific deployment, which version pin, what the fallback is on deprecation. Include eval evidence.

Retrieval strategy

Dense-only, BM25-only, hybrid, which embedding model, which reranker, k values, score thresholds. Record the eval slices that drove each.

Chunking

Unit of retrieval, boundary strategy, overlap, metadata preserved. This is the one that teams miss most and regret most.

Agent topology

For agentic systems: orchestrator role, which specialists exist, what each specialist can and cannot do, how escalation to a human works, what's in-the-loop vs out-of-the- loop. Agent architectures are easy to drift; this ADR is the anchor.

Grounding sources

Which authoritative sources are indexed, which are not, what the freshness SLO is for each, who owns refresh. This also doubles as an audit document.

Evaluation set composition

Golden set size, slice composition, who curates, how it's versioned, what the pass thresholds are. Pin the eval set to a specific hash in the ADR.

Safety and policy

Content filter configuration, PII handling, refusal policy, prompt-injection defences. Record what you decided to detect, what to block, what to allow and warn, and the rationale.

Fallback and degradation behaviour

What happens when the model is down? Retrieval returns nothing? The validator rejects the output? Each of these needs an explicit choice, not implicit silence.

Where ADRs live, and who writes them

ADRs live in the repository, under docs/adr/, as sequentially numbered Markdown files. Not in Confluence. Not in a wiki. In the repo, so they diff like code and travel with the code.

Anyone can write one. The reviewer check is "does this record a decision we care about future-us remembering?" In practice I write them when:

  • I've made a choice that will outlast me on the project.
  • I've made a choice I expect to be challenged on later.
  • I've rejected a tempting alternative — and the reasoning will erode.
  • I've reversed an earlier ADR. The new ADR supersedes it; the old one stays, with its status updated.

Status flow

I use five states and no more:

  • Proposed — in review.
  • Accepted — the current decision.
  • Deprecated — we are moving away from this decision but have not yet replaced it.
  • Superseded by ADR-XXXX — this decision has been replaced.
  • Rejected — the proposal did not become policy; recorded anyway so the next person doesn't re-propose it blind.

Never delete an ADR. Supersede it. The record of a wrong decision is as valuable as the record of a right one.

Anti-patterns

  • Document everything, decide nothing. ADR count is a vanity metric. A project with 200 ADRs and no running system is worse than one with 20 and a shipped platform.
  • Fancy templates. Nygard's five sections. Resist the urge to add "Alternatives considered," "Risks," "Dependencies," "Owners," "Review date" unless you will fill them honestly. An empty section is worse than a missing one.
  • Writing ADRs after the fact. An ADR written three months after the decision is a documentation task, not a record. Capture at the moment of choice.
  • ADRs that only engineers can read. "Context" should include enough business framing that a product manager, a legal reviewer or a compliance team can read it and understand why. These are not internal engineering notes.
  • Treating an ADR as a design. If a decision needs a 30-page design to explain, write the design and link to it. The ADR records the outcome.

A short checklist before you merge an AI feature

  1. Which model choice ADR covers this feature? Is it current?
  2. Which retrieval ADR? Which chunking ADR?
  3. If this is agentic, which agent-topology ADR?
  4. Which evaluation ADR says this is good enough? Which pass thresholds?
  5. Which safety ADR says the content filters, refusal policy and PII handling in play?
  6. Which fallback ADR says what happens when it breaks?

If every line of that list points at a real document, the system can be reasoned about when things go wrong. If any line is a shrug, the system can only be hoped for. In production AI, that is the difference between an engineering practice and a demo.