The Architecture Decision Record for a Claude System: Context, Options, Decision, Consequences and the Evidence You Will Need
A claims team decides to retrieve policy clauses before answering. One page records the context and the audit team's constraint, three options with the two rejected ones kept, the decision and why, the residual risk sized honestly, and the evidence the build must later produce. A small checker finds six problems in the draft.
What you will learn
- Write a one-page ADR with context and constraint, options, decision and why, consequences and evidence
- Keep rejected options and size the residual risk without overstating model certainty
- Turn each claim in the record into an evidence line with a way to measure it
- Check a draft ADR with a small script that flags hollow sections
Before you start
- Full context or retrieval: size, cost and freshness
- Documenting an AI architecture for handoff
Picture a design review that ends well. Everyone agrees, and the meeting closes. What stays behind is a short record: an ADR, an architecture decision record. Months later, a new joiner asks why you chose this design. The record is what answers them.
This lesson opens a three-part capstone. Here we write the ADR for one scenario. In the build, we produce the evidence the ADR asks for. In the readout, we present that evidence to the people who decide.
There's no model call in this lesson. The project is a Markdown ADR, a hollow draft, and a check written in plain Python over the text.
A decision without its reasons
A claims team has decided to retrieve policy clauses first and answer from them. The decision was made in a design review. The reasons live in a call, a slide deck and someone's memory. Then a new joiner asks: why not paste every policy into the prompt? The team argues it again, the decision is reopened, and no evidence is on file. The decision survived. The reasons didn't.
Think of a trail guide at a fork. They leave a note: we took the left path; the right bridge was out; look again after the thaw, when the water drops. The note holds the choice, the reason, and what would make you look again. It saves the next walker the whole argument.
The record: ADR.md
Here's the finished record from the project. It's one page.
# ADR-001: Answers from policy documents
## Context
Policies change often, and a wrong answer costs money.
- Constraint, audit team: every answer must name its clause.
## Options
- A. Answer from the model alone.
- B. Paste every policy into each prompt.
- C. Retrieve the matching clauses, answer from them.
## Decision
We choose C. Every answer cites the clauses it uses.
Why: the audit team can check each answer against its clause.
## Consequences
- Gains: each answer cites its clause.
- Costs: we build and keep an index.
- Risks: retrieval can miss the right clause.
- Residual risk: a miss can still happen, but we expect few.
## Evidence we will need
- Right clause is found | measured by: eval set
- Answers stay in the clause | measured by: eval set
- Each stage fits the SLA | measured by: traces
- Cost per answer fits budget | measured by: traces
Three ways, one choice
For the same context there were three options. A answers from the model alone, and there's no way to check the source. B pastes every policy into each prompt, and cost and answer time grow with every policy. C retrieves the matching clauses first: each answer cites a clause, and you build an index. (The general size, cost and freshness trade-off behind A, B and C is in full context or retrieval.)
A and B are rejected, and they stay on the page with their reasons. The rejected options answer tomorrow's question. The decision names C in one sentence and gives the why: the audit team can check each answer against its clause. That ties the decision straight back to the stakeholder constraint in the context.
Gains, costs, risks and what remains
The consequences come in four lines. Gains: each answer cites its clause, so a handler can check it. Costs: you build and keep an index, and someone must own it. Risks: retrieval can miss the right clause, so you must watch for it. Residual risk: what remains after you've done your best. A miss can still happen, but you expect few.
Say "we expect", not "it will". Don't overstate model certainty. A reader trusts a record that says what the choice costs and what remains.
The evidence you will need
Each evidence line starts from a claim the record made. "Right clause is found" comes from the risk of a missed clause. "Answers stay in the clause" comes from the gain of cited answers. Both are measured on an eval set. "Each stage fits the SLA" comes from running a larger system, and "cost per answer fits budget" comes from keeping an index; both are measured in OpenTelemetry traces.
Every line gets a target, set with the sponsor. No results exist yet; this is what the build must prove. If the evidence fails, the record reopens the decision. The build that produces this evidence is in the RAG, eval harness and tracing build.
A check for hollow records: check_adr.py
A record can look finished and still be hollow. This small check reads the Markdown and lists what's missing:
"""Check one decision record: every part filled in, nothing untested."""
import re
def sections(text):
parts = re.split(r"^## (.+)$", text, flags=re.M)
pairs = zip(parts[1::2], parts[2::2])
return {name: body.strip() for name, body in pairs}
def bullets(body):
lines = body.splitlines()
return [x[2:] for x in lines if x.startswith("- ")]
def names(decision, options):
pick = re.search(r"We choose (\w)\b", decision)
return bool(pick) and any(o.startswith(pick[1] + ".") for o in options)
def asked(found):
pattern = r"^- Constraint, (.+?):"
return re.findall(pattern, found.get("Context", ""), re.M)
def untested(tests):
if not tests:
return ["evidence: nothing to measure"]
return [f'evidence: "{t}" has no test' for t in tests
if "measured by:" not in t]
def check(text):
found = sections(text)
options = bullets(found.get("Options", ""))
decision = found.get("Decision", "")
gaps = found.get("Consequences", "")
tests = bullets(found.get("Evidence we will need", ""))
bad = []
if len(options) < 2:
bad.append("options: need at least two")
if not names(decision, options):
bad.append("decision: name one of the options")
if "Why:" not in decision:
bad.append("decision: no reason given")
for who in asked(found):
if who not in decision + gaps:
bad.append(f"constraint: {who} is not addressed")
for kind in ("gains", "costs", "risks", "residual risk"):
if f"- {kind.capitalize()}:" not in gaps:
bad.append(f"consequences: no {kind} listed")
if re.search(r"\b(always|never)\b", gaps, re.I):
bad.append("consequences: overstates certainty")
return bad + untested(tests)
Fewer than two options means nothing was really chosen. The decision must name an option by its letter and say why; a decision with no reason is only an order. Every stakeholder constraint in the context must appear in the decision or the consequences. All four consequence lines must be there, and "always" or "never" is flagged. An evidence line with no test is a problem, because nobody can check it.
run_all.py checks four records: the draft, the finished record, the record with its evidence cut off, and a copy that claims certainty.
ADR-draft.md -> 6 problems
options: need at least two
decision: name one of the options
decision: no reason given
constraint: audit team is not addressed
consequences: no residual risk listed
evidence: "Answers are good" has no test
ADR.md -> 0 problems
ADR.md without its evidence -> 1 problem
evidence: nothing to measure
ADR.md claiming certainty -> 1 problem
consequences: overstates certainty
The draft has six problems, including the audit team's constraint, which it never answers. The finished record has zero. Cut the evidence and it has one. Claim that retrieval always finds the clause and it has one. A record with a hole doesn't pass, and neither does one that overstates.
The decision rule: constraint, trade-off, honest risk
When you evaluate a draft ADR, look for three things. First, the constraint: a stakeholder need the draft never answers. Second, the trade-off: the revision must say what you give up, in plain words. Third, the residual risk: the revision must say what remains, and keep the certainty honest. The right revision does all three.
Try it on a judgment call. A draft chooses B, paste every policy, and says answers will always come from current policies. Finance has a constraint: cost per answer must fit the budget, and the draft never mentions it. Four revisions:
- "Cost is fine, the model is accurate." Claims certainty with no test.
- Send finance an email. Then the record doesn't hold the constraint.
- Name the constraint, write the rising cost as the trade-off and as a risk, and measure it in traces. This is the one.
- Drop options A and C. That erases what was rejected, and why.
The trap: the certainty stamp
The record says "Residual risk: none. Retrieval always finds the clause." Nobody can promise that about a model, and the check flags it. The honest version keeps the risk and sizes it: a miss can still happen, but we expect few, and the eval set from the evidence list watches for it. Honest risk beats a confident stamp. For more ADR gaps found in review, see artifact review drills, and for where the ADR sits in a handoff package, documenting the architecture for handoff.
Try it yourself
Add a second stakeholder constraint to the context of ADR.md, for example "Constraint, finance: cost per answer must fit the budget." Run the check. Which line fails, and what's the smallest honest edit that makes it pass? The project files for this lesson are in the community, free to join.
Recap
| Section | What it holds | What the check flags |
|---|---|---|
| Context | The situation and each stakeholder constraint | A constraint not addressed later |
| Options | Every option, rejected ones included | Fewer than two |
| Decision | One option by letter, and why | No option named, no reason |
| Consequences | Gains, costs, risks, residual risk | A missing line, or "always" / "never" |
| Evidence | Each claim and how it is measured | Nothing to measure, or a line with no test |
Record the call, and what would change it.
Related course on Udemy
Claude Certified Architect - Professional (CCAR-P) Exam Prep
Architecting with Claude: design, models, context, integration, evals, governance and stakeholders.View on Udemy ↗: Claude Certified Architect - Professional (CCAR-P) Exam Prep (paid course, opens in a new tab)Related posts
Reading a Business Requirement Like an Architect: Function, Quality, Constraints and Assumptions
One sentence from an insurer's claims director becomes four buckets (function, quality, constraints, assumptions), two testable targets and five questions back to the business, before any design starts.
Discovery for an AI Project: Running the First Conversation, Five Question Groups and Three Red Flags
An insurance company says 'we would like an AI assistant'. That one sentence could be three different projects. Five question groups, asked to the right people, turn it into a one-page problem statement, and three red flags show what still blocks the design.
Communicating AI Decisions, Trade-offs and Risk to Executives: The Decision Card, the Risk Matrix and One Ask
A week before launch the CEO asks: is it safe to launch? Answer with a decision card that says what each option costs, a risk matrix where controls move a risk but never erase it, a one-page brief that ends with one ask, and an honest answer to 'can you guarantee it?'.
Feedback Loops, Expectations and SLAs for an AI Service: Find the Promise the Architecture Can't Keep
Two weeks after launch, the head of claims says 'I thought it never makes mistakes'. A weekly feedback loop, expectation gaps closed in writing, and a review of the draft SLA find the one clause nothing can measure before anyone signs it.
