Architectural Decision Records (ADRs)
Last updated . Sources are named and dated inline - how we source claims.
Every codebase is shaped by decisions that nobody wrote down. ADRs fix that by documenting the why behind architectural choices.
Why did we choose PostgreSQL over MySQL? Why is this service in Go instead of Java? When the people who made those decisions leave, the context leaves with them. ADRs are short, structured documents that preserve that context for everyone who comes after.

What is an ADR?
An Architectural Decision Record is a short document that captures a single architectural decision. Originally proposed by Michael Nygard, an ADR is typically one page or less and includes: a title, the date it was written, the current status (proposed, accepted, deprecated, or superseded), the context that motivated the decision, the decision itself, and the consequences -- both positive and negative.
ADRs are not design documents. They do not need to be comprehensive or cover every detail. They need to capture the why -- the reasoning, the tradeoffs considered, and the alternatives rejected. The goal is that someone reading the ADR six months or six years later can understand not just what was decided, but why it was the right call at the time.
The power of ADRs is in their simplicity. A decision that takes an hour to make should take fifteen minutes to document. If your ADR process takes longer than that, your template is too complex or you are trying to document too much in a single record.
ADR Template
This is the classic Nygard-style ADR template. Simple, effective, and battle-tested across thousands of teams. Copy it into your repository and start using it today.
# ADR-{NUMBER}: {TITLE}
**Date:** YYYY-MM-DD | **Status:** Proposed | Accepted | Deprecated | Superseded
## Context
What is the issue that we are seeing that is motivating this decision or change? Describe the forces at play including technical, political, social, and project constraints.
## Decision
What is the change that we are proposing and/or doing? State the decision in full sentences, with active voice. "We will use PostgreSQL for all new services."
## Consequences
What becomes easier or more difficult to do because of this change? List both positive and negative consequences. Be honest about the tradeoffs.
Tip: Store ADRs as numbered markdown files in your repository (e.g., docs/decisions/0001-use-postgresql.md). This keeps decisions versioned alongside the code they describe and makes them discoverable through code search.
A Worked ADR Example
A blank template is easy to copy and hard to fill in well. Here is the same template completed for an illustrative scenario - an invented team and system, written to show the level of detail that makes an architectural decision record useful. Notice how short it is, and how much of it is about the situation and the tradeoffs.
# ADR-0012: Publish order changes as events instead of direct service calls
**Date:** YYYY-MM-DD | **Status:** Accepted
## Context
Checkout, inventory and notifications call each other directly over HTTP. When notifications slow down, checkout requests queue behind them and customers see timeouts. The services are owned by separate teams with different release schedules, so most releases need cross-team coordination. We already run a message bus for the reporting pipeline and the platform team supports it.
## Decision
We will publish every order state change as an event on the message bus. Checkout will not call inventory or notifications directly to report a change. Direct calls remain allowed for reads that need an immediate answer, such as checking stock before payment.
## Alternatives Considered
Keep direct calls and add timeouts and retries: rejected, because it limits the stalls but leaves the release coupling in place. Merge the services into one deployable: rejected, because the owning teams release on different schedules and do not want to share one.
## Consequences
Easier: teams deploy independently, and a slow consumer no longer blocks checkout. Harder: following one order now means tracing an event across services, every consumer must cope with duplicate and out-of-order events, and the message bus becomes a critical dependency we have to monitor and staff.
The Context Names Forces
It does not say "the architecture was bad." It lists the specific pressures: a failure mode, a team structure and an asset that already exists. A reader can check each one against today's reality and see whether the decision still holds.
The Decision Is Testable
"Checkout will not call inventory directly" is a rule a reviewer can apply and an automated check can enforce. It also states its own boundary - the permitted read calls - so nobody has to guess where the rule stops.
The Costs Are Admitted
The harder list is longer than the easier list, and that is fine. Those lines are the debt this decision knowingly takes on. When someone later complains that tracing is painful, the record shows it was a known price and not an oversight.
Note: The classic template has no Alternatives Considered heading - the rejected options live in the context. Many teams add it as a separate section because it is the part readers look for first. Either placement works as long as the rejected options and the reasons are recorded somewhere.
When to Write ADRs
Not every decision needs an ADR. Focus on decisions that are hard to reverse, affect multiple teams, or will confuse future developers if left unexplained.
Technology Choices
Database selection, programming language choice, framework adoption, cloud provider selection, and third-party service decisions. These are expensive to reverse and affect the entire team's workflow and hiring strategy.
Architecture Patterns
Microservices vs monolith, event-driven vs request-response, caching strategy, and service boundaries. These decisions shape how your system grows and determine which future changes are easy and which are painful.
API Design Decisions
Versioning strategy, authentication method, error format, and pagination approach. API decisions are especially important to document because they create contracts with external consumers that are difficult to change.
Data Decisions
Schema design, data partitioning strategy, backup approach, retention policies, and data ownership boundaries. Data decisions are the hardest to reverse because they affect every query, every report, and every downstream system.
Build & Deploy
CI/CD tool choice, deployment strategy (blue-green, canary, rolling), testing approach (unit vs integration vs E2E balance), and branching model. These decisions affect every developer's daily workflow and deployment confidence.
Security & Compliance
Authentication mechanisms, authorization models, encryption standards, audit logging, and data classification rules. Security decisions are often made once and assumed forever -- documenting the reasoning helps teams evaluate when to revisit them.
Does This Decision Need an ADR?
The categories above tell you where ADR-worthy decisions tend to live. In the moment, three quick checks tell you whether the decision in front of you is one of them. One yes is enough.
Is It Hard to Reverse?
Ask what undoing it would take a year from now. If the answer is a data migration, a rewrite of many call sites, or a renegotiated contract, write the record. If the answer is "change one file," you probably do not need one.
Does It Cross Team Boundaries?
A decision that other teams must follow, integrate with or work around needs a place where they can read it without attending your meeting. Shared conventions that live only in one team's memory are the ones that get broken first.
Will It Confuse Someone Later?
If the choice looks odd without its backstory - the obvious option was rejected, or a constraint is invisible in the code - a future developer will "fix" it. The record is what stops a well-meaning cleanup from reopening a settled question.

ADR, Design Doc, RFC, or Code Comment?
Much of the friction around ADRs comes from using them for jobs that belong to another document. Each of these four answers a different question.
| Document | Question It Answers | Written When | After It Is Done |
|---|---|---|---|
| ADR | Why did we choose this, and what did we give up? | At the moment the decision is made | Frozen. It is superseded by a new record, never rewritten. |
| RFC or proposal | What should we do? Please comment. | Before the decision, while options are open | Closed. Its outcome is summarized in an ADR. |
| Design document | How will we build it? | After the decision, before or during the build | Updated as the design changes, or retired when it goes stale. |
| Code comment | Why is this particular line or function the way it is? | While writing the code | Changes with the code it sits next to. |
A healthy flow uses them together: a proposal gathers opinions, an ADR records the outcome, a design document covers the build, and comments explain the local details.
ADR Tooling
You do not need any tooling to start writing ADRs -- a folder of markdown files works. But tools can reduce friction and help your team adopt the practice more consistently.
adr-tools
A command-line tool for managing ADRs as numbered markdown files in your repository. Run "adr new Use PostgreSQL for user data" and it creates a new file with the right number, date, and template. Simple, Unix-philosophy, and widely adopted. Zero overhead once installed.
Best for: Teams that prefer CLI tools and want minimal overhead
Log4brains
Web-based ADR management with full-text search, visualization, and a static site generator. Browse your decisions in a web interface, see relationships between ADRs, and search across all records. More features than adr-tools but more setup required.
Best for: Teams that want a browsable knowledge base of decisions
Structurizr
Combines architecture diagrams (C4 model) with decision records. See your system structure and the decisions that shaped it in a single tool. Particularly good for visual teams and for onboarding new team members who need to understand both the system and the reasoning behind it.
Best for: Teams that want diagrams and decisions in one place
Repository-Based (No Tooling)
Just a /docs/decisions/ folder with numbered markdown files. Zero tooling overhead. Copy the template, fill it in, commit it. This approach works surprisingly well for small-to-medium teams. You lose search and visualization but gain simplicity. Start here and add tooling only when the folder gets too large to browse.
Best for: Teams that want zero setup cost and maximum simplicity
Common ADR Mistakes
ADRs are simple in concept but easy to get wrong in practice. These mistakes reduce their value and discourage adoption.
Writing Design Documents
ADRs are not design docs. If your ADR includes class diagrams, API specifications, or implementation details, you are writing the wrong document. ADRs capture the decision and its context -- not the full design. Link to design docs from the ADR if needed.
Writing Them After the Fact
Retroactive ADRs lose the context they are meant to preserve. If you write an ADR three months after the decision, you have already forgotten the alternatives you considered and the tradeoffs that influenced your choice. Write ADRs while the decision is fresh.
Hiding Them in Confluence
ADRs stored in a wiki die quietly. Nobody searches the wiki before writing code. Store ADRs in the code repository, in a /docs/decisions/ folder, so they are versioned alongside the code and discoverable through code search and pull request reviews.
Editing Accepted ADRs
Modifying an accepted ADR destroys the historical record. If a decision changes, create a new ADR that supersedes the old one. The old ADR should be marked as superseded with a link to its replacement -- never deleted or modified.
Skipping the Context
"We chose React" is not an ADR. Why did you choose React? What were the alternatives? What constraints influenced the decision? The context section is the most valuable part of an ADR -- it is what future developers need to evaluate whether the decision still makes sense.
Only Listing Positives
Every decision has tradeoffs. If your consequences section only lists benefits, you are not being honest about the decision. Future developers need to know what became harder, not just what became easier. Honest tradeoff documentation builds trust and helps teams make informed revisitation decisions.
The ADR Lifecycle: From Proposed to Superseded
The status line is the only part of an accepted ADR that is meant to change. Understanding what each status means - and what moves a record from one to the next - is what keeps a decision log trustworthy as it grows.

Proposed
The record is open as a pull request and the team is reviewing it. This is the only stage where the text should be edited freely. Some teams add a Rejected status for proposals that are declined, and keep those files so the same idea is not argued from scratch later.
Accepted
The pull request is merged and the decision is in force. From here on the record is history: typo fixes and added links are fine, changes to the reasoning are not. New code is expected to follow it, and reviewers can cite it by number.
Deprecated
The decision no longer applies and nothing replaces it - the feature was removed, or the constraint that drove it disappeared. Add a line saying why and when. Old code may still reflect it, but new work should not rely on it.
Superseded
A newer ADR reverses or refines the decision. The old record gets a status line pointing to its replacement, and the new record links back. Reading the chain in order shows how the team's thinking changed and why.
How do you supersede an ADR without losing history?
Do it in one pull request with two changes. First, add the new ADR with the next free number; its context section should say what changed since the original decision, because that change is the whole justification. Second, edit only the status line of the old record so it reads as superseded and names the new one. Leave the rest of the old text alone. Anyone who lands on the old file is redirected, and anyone reading the new one can trace where it came from.
What about decisions made before the team had ADRs?
Do not try to backfill everything. Pick the handful of decisions that new joiners ask about most, or that keep getting challenged in code review, and record those. Be honest in the text: say that the record was reconstructed, separate what is known from what is assumed, and name who was consulted. A reconstructed record with gaps clearly marked is far more useful than a confident one that invents its reasoning.
How do you know an ADR is due for a second look?
Reread its context section and ask whether each statement is still true. Team size, traffic patterns, vendor terms and available tooling all shift over time. If the forces that drove the decision are gone, the decision may still be right, but it is now right by coincidence and deserves a fresh review. Repeated requests for exceptions are the other signal: when many pull requests want out of the same rule, the rule is what needs examining.
Do AI coding agents read ADRs?
Only if the records are in the repository and the agent is pointed at them. An agent that never sees the decision will produce plausible code that ignores it, and enough of that turns into boilerplate bloat that contradicts your design. Keep ADRs next to the code, reference the folder from the instruction file your AI tool reads, and summarize the active rules there in a few lines. The page on AI architecture drift covers what happens when this step is skipped and how to detect it.
Detecting ADR Violations
An ADR is only useful if the team follows it. These enforcement mechanisms catch violations before they ship to production.
Architecture Fitness Functions
Automated tests that verify your system conforms to architectural decisions. If your ADR says "all services must communicate through the message bus," a fitness function can detect direct HTTP calls between services and fail the build. These run in CI alongside your unit tests and catch drift before it reaches production.
ArchUnit Tests
ArchUnit (Java/Kotlin), ArchUnitNET (.NET), and similar tools let you write unit tests for your architecture. Test that controllers do not access repositories directly, that certain packages only depend on specific other packages, or that classes in the domain layer have no framework imports. These tests enforce ADR decisions at the code level.
Dependency Rules in CI
Use dependency analysis tools in your CI pipeline to enforce module boundaries. If an ADR says "the billing module must not depend on the user interface module," your CI pipeline should catch any import that crosses that boundary. Tools like Dependency Cruiser (JavaScript), ArchUnit, or custom scripts can enforce these rules automatically.
Code Review Checklists
Add a checklist to your pull request template: "Does this change conform to existing ADRs?" and "Does this change require a new ADR?" This is the lowest-effort enforcement mechanism. It relies on humans rather than automation, but it raises awareness and catches violations that automated tools might miss -- like subtle architectural drift that is technically compliant but violates the spirit of a decision.
Regular Architecture Reviews
Schedule quarterly architecture reviews where the team walks through active ADRs and evaluates: Are we still following this? Should we still be following this? Has the context changed enough to warrant a new decision? This is where you catch slow architectural drift that accumulates through dozens of small, individually-reasonable changes.
Related Resources
Architecture Patterns
Common architecture patterns and how to document the decisions behind choosing one over another.
Governance Policy
How ADRs fit into a broader governance framework for managing technical decisions and standards across teams.
For Tech Leads
Practical guidance for tech leads on championing ADRs and building a culture of documented decision-making.
Frequently Asked Questions
Anyone who makes or proposes an architectural decision. In practice, this is usually senior engineers, tech leads, and architects. Make writing ADRs a natural part of the decision-making process, not a separate documentation task. If a decision comes up in a meeting, someone should own writing the ADR.
An ADR that is consistently violated indicates one of two things: the decision was wrong and should be superseded, or the team lacks enforcement mechanisms. Use architecture fitness functions and code review checklists to detect violations. If a decision is regularly bypassed, revisit it rather than ignoring the violations.
ADRs prevent debt by making the rationale for decisions explicit. When new team members understand why decisions were made, they are less likely to accidentally undermine them. When circumstances change, teams can evaluate whether the original reasoning still applies before making changes. They replace tribal knowledge with documented knowledge.
Start Documenting Your Decisions Today
The best time to start writing ADRs was when the first architectural decision was made. The second best time is right now. Create a docs/decisions/ folder and write your first ADR.