Step 8 of 35 · Technical direction
Decision records
A dated note of what you decided, why and what you gave up stops the team re-arguing a decision or silently undoing it.
Six months from now someone will ask why the system works this way. Without a record, the answer depends on who remembers, and people remember conclusions, not constraints. The team then re-argues the decision or reverses it without knowing what it protected.
A decision record is a short file kept with the code: the context, the decision, the options you turned down and the consequences you accepted. One page, dated, and never edited afterwards. When you change course, write a new record that replaces the old one.
Record only decisions that are costly to reverse. The usual failure is a burst of records in the first month and none after. Make writing one the last step of any design discussion that ends in a decision.
Try this week
- Write decision records for the two most recent decisions the team still argues about.
- Add a decisions folder to the main repository with a short template and one real example.
Signs you've got it
- When someone asks why something is built a certain way, the answer is a link.
- Engineers other than you write decision records without being asked.
Resources
- articleDocumenting Architecture Decisions (opens in a new tab)Michael Nygard
- articleArchitecture Decision Record (opens in a new tab)Martin Fowler
- guideArchitectural Decision Records (ADRs) (opens in a new tab)ADR GitHub organization
- guideArchitecture decision record (ADR) examples and templates (opens in a new tab)Joel Parker Henderson
Talks to watch
- 28 minArchitecture Decision Records in Action (SATURN 2017) (YouTube, opens in a new tab)Michael Keeling, Joe Runde
- 30 minCommunicating and Documenting Architectural Decisions (LeadDev New York) (YouTube, opens in a new tab)David Ayers