ADR anatomy, templates and the decision log
Take an architecture decision record apart, compare Nygard's format, MADR 4.0.0 and Y-statements, and keep a decision log with clear statuses, one decision per record and links from old records to the ones that replace them.
Contentsand lesson path
On this page
- Why it matters
- The five parts of Nygard's format
- MADR 4.0.0: the same idea, with explicit options
- Y-statements: one sentence for a small decision
- The decision log: statuses, numbers and links
- Check your understanding
- Apply it
- Review prompt
Lessons of Architecture Decision Records
- What makes a decision architectural: reversibility and blast radius Concept · 15 min
- Options analysis with weighted drivers Worked example · 25 min
- ADR anatomy, templates and the decision log Concept · 15 min
- Recording and later superseding a messaging decision Lab · 25 min
- Choosing technologies: criteria, spikes and exit costs Worked example · 25 min
- Decision quality check Knowledge check · 8 questions
What you will learn
- Write and maintain ADRs (context, decision, status, consequences) in version control, including superseding an earlier one.
01. Why it matters
An ADR is only useful if someone can find it, trust it and understand it years later, often after everyone who made the decision has moved on. That depends less on writing talent than on a few structural habits: a fixed set of sections, so readers know where to look; one decision per record; a status that says whether the decision still holds; and links that lead from an old decision to the one that replaced it.
This lesson takes one record apart, compares three common templates, and then looks at the whole collection of records, the decision log. The lab in the next lesson puts all of it into practice in a Git repository.
02. The five parts of Nygard's format
Michael Nygard's 2011 article proposed a format small enough that people would actually use it. Each record is a short text file, one or two pages long, numbered in sequence and kept in the project's repository. It has five parts:
- Title: a short noun phrase, such as "ADR 9: Store timestamps in UTC".
- Context: the forces at play, whether technical, political, social or specific to the project. Nygard asks for value-neutral language here: describe the situation, and do not argue for the answer yet.
- Decision: the response to those forces, in full sentences and the active voice: "We will…".
- Status: proposed or accepted, and later perhaps deprecated or superseded.
- Consequences: everything that becomes easier or harder once the decision is applied, the negative as well as the positive.
Two rules from the article matter most for the log as a whole. Numbers are never reused. And when a decision is reversed, the old record is kept and marked as superseded, with a reference to the record that replaced it. The log grows by adding records, and the past stays readable.
03. MADR 4.0.0: the same idea, with explicit options
Markdown Architectural Decision Records (MADR) is a template maintained by the ADR organisation on GitHub (adr.github.io). Version 4.0.0, released in September 2024, is still the current release in late 2026. It keeps Nygard's core and adds structure for the options analysis from lesson 2. The record below uses it for the timestamp decision from lesson 1.
---
status: "accepted"
date: 2026-09-14
decision-makers: Platform architecture group
consulted: Billing, Reporting and Orders teams
informed: Data analysts, Customer support
---
# Store all timestamps in UTC
## Context and Problem Statement
Orders, invoices and delivery slots store local time without a time zone. Around
the October daylight-saving change, an hour of orders was sorted in the wrong
order and two invoice totals were wrong. How should services store points in time?
## Decision Drivers
* correct ordering and arithmetic across time zones and clock changes (weight 5)
* effort to migrate four years of existing rows (weight 3)
* readability for support staff who query the database (weight 2)
## Considered Options
* Keep local time without a time zone (do nothing)
* Store UTC in a zone-aware column type (timestamptz in PostgreSQL)
* Store local time plus an explicit UTC offset in every row
## Decision Outcome
Chosen option: "Store UTC in a zone-aware column type", because it is the only
option that orders events correctly across clock changes without per-row logic.
### Consequences
* Good, because sorting and interval arithmetic are correct in every time zone.
* Bad, because four years of rows need a one-off migration, with an explicit rule
for the hour that occurs twice when the clocks go back.
* Bad, because support staff must convert to local time when they read raw rows.
### Confirmation
A schema lint rule rejects new columns of type timestamp without time zone, and
daily order counts are compared before and after the migration.
## More Information
Revisit if a regulator requires storing the customer's local time as entered.The parts map onto Nygard's format, with some additions:
- The front matter, between the
---lines, holds metadata. Tools readstatusanddate. The fieldsdecision-makers,consultedandinformedrecord who took part, borrowing the roles of a RACI chart. In version 4.0.0 the status names a successor by its identifier only, as insuperseded by ADR-0012, so a clickable link goes in the text instead. - Context and Problem Statement ends with the question the record answers. Writing it as a question keeps the context neutral.
- Decision Drivers and Considered Options hold the weighted analysis. List the options you rejected: they are the part future readers most often need.
- Decision Outcome names the chosen option and the reason. It holds Consequences, good and bad, and Confirmation: how you will check that the system follows the decision, for example with a test, a lint rule or a review step.
- More Information holds links, the revisit trigger and, later, the link to any record that supersedes this one.
MADR comes in four variants: the full template with explanations, a minimal one with only the required sections (title, context and problem statement, considered options, decision outcome), and "bare" versions of both without the explanations. Its documentation suggests keeping the files in docs/decisions, named like 0009-store-timestamps-in-utc.md. adr-tools defaults to doc/adr, and Log4brains examples use docs/adr. The folder matters less than choosing one and keeping it next to the code.
04. Y-statements: one sentence for a small decision
Not every recorded decision needs a page. Olaf Zimmermann's Y-statement fits a decision into one sentence with six parts: the context, the concern faced, the option chosen, the options neglected, the qualities to achieve, and the downside accepted. The timestamp decision becomes:
In the context of order, billing and delivery data,
facing wrong ordering and totals around daylight-saving changes,
we decided for storing UTC in a zone-aware column type
and neglected local time and per-row offsets,
to achieve correct ordering and arithmetic in every time zone,
accepting a one-off migration of four years of rows.A Y-statement works well as a summary at the top of a full record, or as the whole record for a decision that the triage in lesson 1 placed at the lower ADR level. Zimmermann says plainly that the template can be adapted. What matters is that the trade-off and the accepted downside are stated, which is exactly what an informal note in a chat thread tends to leave out.
05. The decision log: statuses, numbers and links
The decision log is the set of all records for a system. Its value comes from rules that hold across records, not from any single one of them.
A status says where a decision stands. A common set, based on Nygard's article and on MADR, is:
- proposed: written and open for review, usually as a pull request;
- accepted: agreed, and the system should follow it;
- rejected: reviewed and turned down; the record stays, so the same proposal is not argued again from scratch;
- deprecated: no longer applies and nothing replaces it, for example because the feature it served was removed;
- superseded by ADR-NNNN: replaced by a newer decision, which the status names.
Some teams use other words, such as draft, adopted and retired in Andrew Harmel-Law's advice process. Any set works if it is written down in the first record of the log and used consistently, because both people and scripts read it.
The log is append-only where it matters. Once a record is accepted, its context, decision and consequences are not rewritten: a change of mind is a new record that supersedes the old one, and the old record only gets its new status and a link forward. Small edits such as fixing a typo are fine. The rule protects the reasoning, which is what a future reader needs.
Keep one decision per record, and give each record a revisit trigger, a condition that would make you look at it again, such as a load level or a new kind of consumer. Tools can help with the mechanics. adr-tools 3.0.0 (2018) is a set of shell scripts that create numbered records in Nygard's format and can mark a record as superseded by a new one. Log4brains 1.1.0 (December 2024) uses MADR by default and publishes the log as a static website. A short script of your own, like the checker in the next lesson, is often enough.
Finally, an ADR is not the place for the whole discussion. When a decision needs wide input, many teams first circulate a longer proposal, called a request for comments (RFC) or a design document. The Rust project, for example, asks for an RFC for "substantial" changes and takes bug fixes as ordinary pull requests, which is the triage from lesson 1 in another form. The RFC holds the debate, and the ADR records the outcome on a page or two and links back to it.
06. Check your understanding
07. Apply it
Create docs/decisions, or the folder your team prefers, in a repository you work on. Add a first record that adopts MADR and lists the statuses you will use. Then write a record for the strongest candidate from your lesson 1 list, using the bare MADR template, the drivers and scores from lesson 2, and a revisit trigger. Open it as a pull request with status proposed, and ask one person who is affected by the decision to review it. This is the first of the four records that the practice project for this skill asks for.
08. Review prompt
Without looking back: name Nygard's five parts and the sections that MADR 4.0.0 adds. Explain where the link to a successor goes in MADR 4.0.0, and why. List the five statuses and when each applies, give two reasons to keep one decision per record, and describe how an RFC and an ADR divide the work.
References
Your progress
Reading state
Sign in to save that you finished reading this lesson.
Prove this skill
8 questions · about 6 minutes · scored automatically. Marking a lesson as read never demonstrates a skill.