Architecture Decision Records (ADRs)
Capture significant decisions with context, options, rationale, and consequences, and manage them over time.
Introduction
Months later, someone asks: Why is the data stored this way? Why did we not use a message broker? Why is tenant isolation implemented like this? If the answer is “nobody remembers”, the team will either repeat the analysis, reverse a good decision without knowing why it was made, or avoid changing something because they are afraid to.
An Architecture Decision Record (ADR) is a short document capturing one significant decision, its context, the alternatives, and the consequences. A collection of ADRs is the memory of the architecture.
Learning Objectives
- Decide which decisions deserve an ADR.
- Write a clear ADR with context, decision, alternatives, and consequences.
- Manage ADR status and supersession over time.
- Store ADRs as code alongside the system.
- Use AI to draft and review ADRs without fabricating the rationale.
1. What Deserves an ADR?
Write an ADR when a decision is:
- Architecturally significant (affects structure, quality attributes, or many components).
- Costly to reverse.
- Likely to be questioned later.
- A choice among serious alternatives.
- A deliberate exception to a principle or standard.
Do not write ADRs for routine choices. Too many records bury the important ones. A useful test: Would a new team member need this explained?
2. ADR Structure
A compact, widely used format:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# ADR-0003: Use a modular monolith with a background worker
- Status: Accepted
- Date: 2026-12-18
- Deciders: Tech lead, product owner, operations engineer
- Related: ADR-0001, NFR-AVL-001, NFR-PER-002
## Context
The forces at play: requirements, constraints, team size, scale
assumptions, and the problem that needs a decision.
## Decision
We will structure the system as a single deployable web application
with explicit module boundaries, plus a separately runnable worker
process for imports and summaries.
## Alternatives considered
1. Microservices: independent scaling, but operational cost too high
for a four-person team at the expected scale.
2. Serverless functions: low operations, but long-running imports and
local development are awkward.
## Consequences
Positive: simple deployment, one transaction boundary, low cost.
Negative: module boundaries must be enforced by tooling; search and
web traffic share resources until separated.
Risks and follow-ups: revisit if p95 latency exceeds target for 7 days
or a second team needs independent releases.
## Evidence
Load model (docs/architecture/load-model.md); spike results
(docs/architecture/spikes/search-50k.md).
The essential elements are context, decision, alternatives, and consequences. The consequences, including the negative ones, are what make an ADR honest and useful.
3. Writing Guidelines
- One decision per record. Link related ones.
- Write in the present, plain language. Aim for one page.
- State forces and constraints, not a story of the meeting.
- Name real alternatives, including “do nothing”, and say why they were not chosen.
- State the revisit conditions: what evidence or change would trigger a reconsideration.
- Link evidence: requirements, scenarios, spikes, measurements.
- Record who decided and when.
Avoid justification written after the fact that pretends the decision was obvious. If it was a close call, say so.
4. Lifecycle and Status
| Status | Meaning |
|---|---|
| Proposed | Under discussion |
| Accepted | Agreed and in force |
| Rejected | Considered and declined (keep for history) |
| Deprecated | No longer relevant |
| Superseded by ADR-NNNN | Replaced by a newer decision |
Never edit the substance of an accepted ADR to change history. Instead, write a new ADR that supersedes it and links both ways. The sequence of ADRs then shows how and why the architecture evolved. Small corrections (typos, broken links) are fine.
5. Where ADRs Live
Keep ADRs in the repository next to the code, as Markdown files:
1
2
3
4
5
6
7
8
docs/
+-- architecture/
+-- adr/
+-- 0001-record-architecture-decisions.md
+-- 0002-choose-relational-database-as-system-of-record.md
+-- 0003-modular-monolith-with-background-worker.md
+-- 0004-shared-tables-with-row-level-security.md
+-- README.md (index of ADRs and statuses)
Reasons: they are versioned with the code, reviewed through pull requests (the review is the discussion), discoverable by developers, and can be linked from code and documentation. Number records sequentially and never reuse numbers. Maintain an index.
6. ADRs in the Process
- Propose an ADR as a pull request or draft; discuss; update.
- Decide within a reasonable time; undecided decisions block progress.
- For significant decisions, include the people affected and those who will operate the system.
- Review periodically: are accepted decisions still valid? Update status or supersede.
- Reference ADRs in design documents and, where useful, in code comments or pull requests.
ADRs are lightweight on purpose. A ten-minute record written when the decision is fresh is worth more than an elaborate document written never.
7. Using AI With ADRs
AI can structure and polish an ADR, propose missing alternatives, and check consistency. It must not invent the rationale, evidence, or participants.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Act as an architecture scribe.
Here are my raw notes on a decision, including the context, options
discussed, the evidence we have, and what we decided:
[Paste notes.]
Draft an ADR in this format: Title, Status, Date, Deciders, Related,
Context, Decision, Alternatives considered, Consequences (positive,
negative, risks and follow-ups), Evidence.
Rules:
- Use only the information in my notes.
- If something is missing (for example no negative consequences
were stated), do not invent it; list it under "Questions to
resolve before accepting".
- Keep it under one page.
Then a review prompt:
1
2
3
4
Review this ADR as a skeptical colleague. Identify: unstated
assumptions, missing alternatives, consequences not acknowledged,
claims without evidence, and conditions that should trigger a
revisit. Do not rewrite it.
Read the draft carefully; the people who made the decision must confirm that it states what they decided and why.
You can also ask AI to check a new ADR against existing ones for conflicts or duplication, given the index and the text.
8. Common Mistakes
| Mistake | Fix |
|---|---|
| Recording only the decision, not alternatives | Add real alternatives and reasons |
| No negative consequences | Every decision has costs; find them |
| Writing ADRs after the system is built, from memory | Write them when deciding |
| Editing old ADRs to “clean up” history | Supersede instead |
| ADRs as a gate that slows everything | Keep them short; reserve for significant decisions |
| Nobody reads them | Link from README, onboarding, code reviews |
9. Practical Exercise
For SignalDesk:
- Create the ADR folder with a template, an index, and ADR-0001: “Record architecture decisions”.
- Write at least seven ADRs from the decisions in this course, for example architectural style, system-of-record database, tenancy model, search approach, API style and versioning, asynchronous import design, resilience approach for external dependencies.
- Make each ADR contain at least two alternatives, one negative consequence, a revisit condition, and links to requirement IDs and evidence.
- Practice supersession: write an ADR changing one earlier decision, mark the old one superseded, and link them.
- Run the AI review prompt on three ADRs and triage the findings.
Verification
You are ready to continue when:
- Each ADR has context, decision, alternatives, consequences, and evidence.
- Negative consequences and revisit conditions are stated.
- Statuses are accurate and supersession is demonstrated.
- The ADR index is complete and linked from the architecture documentation.
- No AI-generated rationale was accepted without confirmation.
Key Takeaways
- ADRs preserve the why behind decisions and make change safer.
- Write them for significant decisions, briefly, at the time of deciding.
- Supersede, do not rewrite; keep them as code, next to the system.
- AI structures and reviews ADRs; the deciders own the reasoning.
What’s Next?
In the capstone, you assemble everything into a coherent Architecture Documentation package, review it against the drivers, and prepare the handoff to project planning.