Architecture Decision Records and Reviews

Write down why, not only what. Then ask hard questions while change is still cheap.

BeginnerIntermediateExpert · 12 min read · Last updated:

In short

An architecture decision record is a short document capturing one significant choice: its context, the decision and its consequences. A design review checks a proposed solution before it is built; an architecture review checks that the system as a whole still meets its requirements. For agents, record evidence, assumptions about models and tools, and the condition that would make you reconsider.

What you will learn: what deserves a record, a template, three worked examples, comparing options, automated checks, two review checklists and running reviews that help.
Prerequisites: Reliability, Non-Functional Requirements and Migration or any experience designing software.

Beginner Decision records

What deserves a record?

Record choices that are costly to reverse, affect several people or will be questioned later.

Record itUsually not
Single agent or severalA variable name
Where task state livesA small refactoring
Which actions need approvalFixing a typo in a prompt
Model provider and hostingA routine library patch
Adopting a framework or protocolDashboard colors
Data allowed to leave a boundaryReordering files in a folder

Writing the context

The context section is where most value lies. A reader a year from now should understand why the choice was sensible with what was known. State facts and constraints without arguing for the answer: expected volume, data classes, team skills, deadlines, existing systems and what you tested. Separate measurements from assumptions and label estimates. "The framework does not meet our needs" helps nobody; "tasks wait up to two days and the prototype loses state on restart" does.

A practical template

A widely used format, described by Michael Nygard, has a title, status, context, decision and consequences. The extra fields below are useful for agent work; keep only what you will maintain.

FieldWrite
TitleNumber and the choice in a few words
StatusProposed, accepted, deprecated or superseded
Date and decidersWhen and who
ContextThe problem, constraints and forces, factually
OptionsReal alternatives, including doing nothing
Decision"We will ..." in plain words
ConsequencesBenefits, costs, new risks, follow-up work
EvidenceEvaluation results, versions, test dates
Review triggerWhat change would reopen this

Keep records short, number them and store them with the code. Do not rewrite an accepted decision; write a new record and mark the old one superseded.

Agent-specific facts to capture

  • Model name and version used in the evaluation, with the date.
  • Evaluation set version, sample size and results by case type.
  • Tools and permissions assumed.
  • Data that crosses a trust boundary.
  • Expected cost per task and how it was estimated.
  • How the choice can be reversed and what that would cost.

Three examples

The following are invented to show the style. Their figures are not measurements.

Illustrative ADR 7: use one agent with a router

Status: accepted.
Context: Tool selection errors rose when billing and technical tools were offered together. The two kinds of work need different data.
Decision: We will route requests to two single agents, with unclear cases going to a person.
Consequences: Smaller tool lists and narrower permissions. Routing must be measured and two instruction sets maintained.
Review trigger: More than an agreed share of requests need rerouting.

Illustrative ADR 12: keep task state in the relational database

Status: accepted.
Context: Tasks wait up to two days. The team already operates the database; volume is modest.
Decision: We will use task tables, a version column and a scheduled worker instead of adding a workflow engine.
Consequences: Little new infrastructure. We must build timers, leases and recovery tests ourselves.
Review trigger: Compensation or timer logic becomes a frequent source of faults.

Illustrative ADR 15: require approval for outbound email

Status: accepted.
Context: The agent reads external documents that could contain hostile instructions, and sent mail cannot be recalled reliably.
Decision: The mail tool will send only after a person approves the exact recipients and content.
Consequences: Added delay and reviewer work; lower exposure to data leakage and wrong recipients.
Review trigger: A narrow, internal, template-only message type could be sampled instead.

Record lifecycle

Proposedopen for comment
Acceptedwork follows it
Superseded or deprecatedkept for history
↺ A review trigger starts a new proposed record
History stays readable, and the current answer is easy to find.

Review proposals in the same way as code changes, so that discussion is attached to the text. Set a date to decide; a proposal left open for months means people are already acting on their own assumptions. Rejected proposals can be worth keeping when the question will return.

Intermediate Compare and check

Comparing options honestly

A weighted table makes priorities visible, and testing the weights shows whether it decides anything.

"""A weighted comparison, plus a test of how fragile the winner is."""

WEIGHTS = {"task success": 5, "cost": 3, "operability": 3, "latency": 2}
OPTIONS = {                       # scores 1 (poor) to 5 (good)
    "fixed workflow": {"task success": 3, "cost": 5,
                       "operability": 5, "latency": 5},
    "single agent":   {"task success": 5, "cost": 3,
                       "operability": 4, "latency": 4},
    "multi-agent":    {"task success": 5, "cost": 1,
                       "operability": 2, "latency": 2},
}

def ranking(weights):
    totals = {name: sum(weights[c] * s[c] for c in weights)
              for name, s in OPTIONS.items()}
    return sorted(totals.items(), key=lambda kv: -kv[1])

base = ranking(WEIGHTS)
for name, total in base:
    print(f"{name:<15}{total}")
winner = base[0][0]
print("winner:", winner)
for criterion, weight in WEIGHTS.items():
    for new in (weight - 1, weight + 1, weight - 2, weight + 2):
        changed = ranking({**WEIGHTS, criterion: new})
        top = changed[0][1]
        leaders = [n for n, t in changed if t == top]
        if new >= 0 and leaders != [winner]:
            print(f"fragile: '{criterion}' weight {weight} -> {new} "
                  f"gives {' / '.join(leaders)}")
            break

Output:

fixed workflow 55
single agent   54
multi-agent    38
winner: fixed workflow
fragile: 'task success' weight 5 -> 6 gives single agent
fragile: 'cost' weight 3 -> 2 gives single agent
fragile: 'operability' weight 3 -> 2 gives fixed workflow / single agent
fragile: 'latency' weight 2 -> 1 gives fixed workflow / single agent

The fixed workflow wins by one point, and small changes to any single weight create a tie or a different winner. That result is a signal to gather evidence, such as an evaluation of task success, instead of presenting the total as proof. Scores are judgments; record who gave them and why. Treat hard requirements as pass or fail before scoring, so that a cheap option cannot buy its way past a safety rule.

Check records automatically

"""Check decision records for missing parts and broken supersession."""
import re

REQUIRED = ["Status", "Context", "Decision", "Consequences"]
STATUS = re.compile(r"proposed|accepted|deprecated|superseded by (\d+)")

def sections(text):
    parts = re.split(r"^## (.+)$", text, flags=re.M)[1:]
    return {k.strip(): v.strip() for k, v in zip(parts[::2], parts[1::2])}

def lint(number, records):
    found, body = [], sections(records[number])
    found += [f"missing {n}" for n in REQUIRED if not body.get(n)]
    status = body.get("Status", "").lower()
    match = STATUS.fullmatch(status)
    if status and not match:
        found.append(f"unknown status '{status}'")
    if match and match[1] and int(match[1]) not in records:
        found.append(f"points to missing record {match[1]}")
    return found

records = {
    1: """## Status
superseded by 3
## Context
One agent handles all requests.
## Decision
Use a single agent.
## Consequences
Simple to run. Tool list will grow.""",
    2: """## Status
agreed
## Context
We need to keep task state.
## Decision
Store it in the relational database.""",
    3: """## Status
accepted
## Context
Tool selection errors rose as tools were added.
## Decision
Add a router in front of two specialized agents.
## Consequences
Routing must be measured. Two prompts to maintain.""",
    4: """## Status
superseded by 9
## Context
Old caching choice.
## Decision
Cache answers for a day.
## Consequences
Stale answers possible.""",
}
for number in records:
    print(f"ADR {number}:", lint(number, records) or "ok")

Output:

ADR 1: ok
ADR 2: ['missing Consequences', "unknown status 'agreed'"]
ADR 3: ok
ADR 4: ['points to missing record 9']

The check finds a missing consequences section, an invented status and a pointer to a record that does not exist. It cannot judge whether the reasoning is sound; people do that. Run it with your tests so that records stay usable.

Expert Reviews

Two kinds of review

AspectDesign reviewArchitecture review
SubjectOne agent or changeThe system and its neighbors
TimingBefore buildingBefore launch, after major change and periodically
FocusTask, behavior, tools, testsBoundaries, qualities, operations, risk
PeopleTeam and a challengerAdd platform, security, data and operations

Design review checklist

  • The user, task and measurable success are stated.
  • A simpler non-agent solution was tried or rejected with reasons.
  • Out-of-scope requests and handover are defined.
  • Each tool has a contract, risk level and owner.
  • Permissions are enforced outside the model.
  • Untrusted content sources and their possible effects are identified.
  • Step, time and cost budgets exist.
  • Failure of each dependency has a response.
  • Evaluation cases cover normal, edge, refusal and hostile inputs.
  • Users can see what the agent did and stop it.

Architecture review checklist

  • A current diagram shows components, data flows and trust boundaries.
  • Identity is carried and checked on every call.
  • Data classes, locations, retention and deletion are decided.
  • Non-functional targets have evidence.
  • State, concurrency and recovery are designed and tested.
  • Logging supports audit without exposing secrets.
  • Releases of models, instructions and tools can be rolled back.
  • A stop control exists and has been exercised.
  • Costs and capacity are estimated for peak and failure.
  • Legal and policy duties have named owners.
  • Open risks are accepted by someone with authority.

What to send reviewers

Send the material a few days ahead: a one-page summary of purpose and success, a diagram with trust boundaries, the tool list with risk levels, relevant decision records, targets, evaluation results and the open questions you want help with. Say what decision you need. If the material cannot be prepared, the design is probably not ready, and finding that out early is a useful outcome. Reviewers should note questions in writing before the meeting so that quieter concerns are not lost.

Evidence to ask for

ClaimEvidence
"It is accurate enough"Evaluation results by case type, with sample sizes
"It cannot do that"A test that attempts it and is blocked
"It recovers"A restart or restore exercise
"Cost is acceptable"Measured tokens and calls per task at expected volume
"Data stays here"Data flow diagram checked against network logs and contracts
"People can intervene"A demonstration of pause, cancel and handover

Run a useful review

Prepareshort document, records, results
Readreviewers comment first
Challengewalk through failure scenarios
Decideapprove, conditions or revise
Follow upowners and dates
A review ends with a decision and named actions.
  • Scale depth to risk; a read-only helper needs less than a payment agent.
  • Ask for evidence instead of assurances.
  • Separate blocking findings from suggestions.
  • Record disagreements and who decided.
  • Avoid redesigning the system inside the meeting.

Scenarios worth walking through

ScenarioQuestion
A document instructs the agent to leak dataWhich control stops it?
A write times outHow is a duplicate prevented?
The model changes behavior after an updateHow is it noticed and reversed?
An approver is away for a weekWhat happens to waiting tasks?
Spend triples overnightWhat limits it and who is told?
A user asks for deletion of their dataWhere are all the copies?

Writing findings

A useful finding states the observation, the consequence, the severity, a suggested direction, an owner and a date. "Security needs work" cannot be closed. "The ticket tool accepts any user identifier, so one user could read another's tickets; take identity from the session; blocking" can. Agree severity levels before the review, so that arguments are about facts. When a risk is accepted rather than fixed, record who accepted it, on what conditions and until when.

Keep decisions alive

Revisit records when their triggers occur: a model is retired, prices or laws change, volume grows or incidents show an assumption was wrong. Agent technology moves quickly, so date any claim about a product's abilities and recheck it before relying on it. Link records from code and runbooks so that people find them when they need them.

Starting from nothing

Do not try to reconstruct every past choice. Write one record for the next significant decision, then a few short ones for existing choices that people keep asking about, marking them as written after the fact. Put a template and a numbered folder in the repository, add the structure check to your tests and spend ten minutes on open proposals in a regular team meeting. Run the design checklist on one upcoming change and remove questions that never produce useful answers. Add questions after incidents.

Is the practice helping?

Look back twice a year. Did incidents come from areas the review covered or missed? Are findings closed by their dates? Can a new colleague explain the main choices after reading the records? How long do teams wait for a review? If reviews are slow and find little, lighten them for low-risk changes. If surprises keep coming from one area, such as retrieval permissions or unfinished tasks during releases, add a specific question and a test for it. Keep the practice small enough that people choose to use it.

A one-hour version

When time is short, spend ten minutes on the task and success measure, twenty on the worst thing each tool could do, twenty on failure and recovery scenarios and ten agreeing actions. Write the result as one record with its follow-ups.

Whatever the length, end by reading the actions aloud with their owners, so that nobody leaves with a different idea of what was agreed. File the notes beside the records, and open the next review by checking which of those actions were completed and which risks remain.

Common mistakes

  • Writing records long after the choice, to justify it.
  • Listing only the chosen option.
  • Consequences with no costs.
  • Editing history instead of superseding.
  • Treating a score as evidence.
  • Reviewing only at the end.
  • Findings without owners.

Checklist

  • Significant decisions have short, numbered records.
  • Records state options, consequences and a review trigger.
  • Hard requirements are checked before scoring.
  • Record structure is validated automatically.
  • Design and architecture reviews happen at defined points.
  • Review depth follows risk.
  • Findings are tracked to closure.

Frequently asked questions

How long should a record be?

Often one page. Link to evaluation results and diagrams instead of copying them in.

Who approves a decision?

The person or group accountable for its consequences. Name them in the record and consult those affected.

Can an AI assistant write records?

It can draft them from notes. People must verify the facts, alternatives and reasoning, and own the decision.

Do small projects need reviews?

A short check by one other person is usually worthwhile, especially for any action that changes data or spends money.

References and further reading

Next steps