Decision Records — Freeze the Why Before It Evaporates
A consequential choice got made. Capture it as one short, immutable, numbered ADR: the context that forced it, the real options weighed, the decision, and what it costs you both ways. Six months from now this file is the only thing standing between you and re-litigating the whole thing.
You own the durable single-decision artifact — an Architecture/Any Decision Record (ADR). Not a meeting recap, not a runbook, not a spec. One bounded choice, recorded so the reasoning survives the people who made it.
The one test: is this even ADR-worthy?
Write an ADR iff the choice is costly to reverse OR future-you will ask "why did we do it this way". Everything else is noise — an ADR for a trivial reversible tweak is just paperwork, and ADRs lose all their value the moment they become forced ceremony (this is the consistent message from Fowler and the AWS Architecture Blog).
| Worth an ADR | Skip it |
|---|---|
| Postgres vs DynamoDB for the primary store | Which lint rule to enable |
| Monolith vs microservices for v1 | Renaming a local variable |
| Build vs buy auth (Clerk vs roll-your-own) | Bumping a patch dependency |
| Dropping REST for tRPC across the API | Choosing a CSS color token |
| Picking Hetzner over AWS for hosting | A reversible feature flag default |
If you can rip it out in an afternoon and nobody will ever ask why, don't write an ADR. Decide, move on.
Decide home + naming once
Pick a storage convention before the first record, and never spawn a competing second log. Default to the project's existing convention if one exists.
| Naming school | Looks like | Use when |
|---|---|---|
| Numeric-prefix (adr-tools / MADR) | 0007-choose-postgres.md | You need stable IDs to cross-reference for supersession — the default |
| Imperative verb-noun | choose-database.md | Tiny log, no supersession expected, humans browse by topic |
Prefer numeric-prefix: NNNN-title-with-dashes.md. Stable IDs are what make "Superseded by ADR-0012" mean something.
Where to store (first match wins):
- The project's existing convention — never invent a parallel log.
- A code repo with no convention:
docs/adr/(also seen asdoc/adr/). - A harness workspace:
02-DOCS/wiki/decisions/, indexed in02-DOCS/wiki/index.md(the Knowledge map; rootCLAUDE.mdkeeps only a short pointer).
Bad: decision-final-v2-REAL.md # no ID, no order, will rot
Bad: notes/adr/db.md # buried, not in the log
Good: docs/adr/0007-choose-postgres.md # stable ID, sorts, cross-referencable
Seed the index the moment you create the first ADR — a README row or 0000-index.md listing id, title, status, date. An ADR that isn't in the index is an orphan nobody will find.
The record spine
Map every ADR to the MADR 4.0.0 template (released 2024-09-17 — the current version). MADR ships full and minimal variants; use minimal until a section earns its place.
Required spine, in order: Title → Status → Date → Context and Problem Statement → Decision Drivers → Considered Options → Decision Outcome → Consequences. The MADR-optional sections (Confirmation, Pros and Cons of the Options, More Information) you add only when they pull weight.
Minimal skeleton — this is enough for most decisions. When the ADR lives in a harness
workspace (02-DOCS/wiki/decisions/), it is part of an OKF v0.1 bundle, so it opens with YAML
frontmatter carrying a non-empty type: decision (plus the OKF-recommended title/tags/
timestamp). The body keeps the human-readable - Status:/- Date: lines verbatim — they are
the decision's domain record and scripts/verify.sh reads them, so the frontmatter is purely
additive. Cross-references use standard markdown links, never wikilinks. (In a plain code repo
under docs/adr/, the frontmatter is optional — OKF conformance only governs the wiki bundle.)
---
type: decision
title: "Choose Postgres over DynamoDB for the primary store"
tags: [adr, database, billing]
timestamp: 2026-06-02T00:00:00Z
---
# 7. Choose Postgres over DynamoDB for the primary store
- Status: accepted
- Date: 2026-06-02
- Deciders: @alice, @bob
## Context and Problem Statement
We need a primary datastore for the billing service. Relational
invoicing data, ~2k writes/min, team of 3 with deep SQL experience,
EU data-residency required. Which store do we adopt?
## Decision Drivers
- Strong relational integrity for invoices (foreign keys, transactions)
- Team SQL fluency; near-zero NoSQL operational experience
- EU residency + self-host option (constitution §data-residency)
## Considered Options
- Postgres (managed, EU region)
- DynamoDB
- MongoDB Atlas
## Decision Outcome
Chosen: **Postgres**, because it matches the relational shape of the
data and the team's existing fluency, with the lowest operational risk.
## Consequences
- Good: ACID transactions, mature tooling, team productive day one.
- Bad: we own connection-pool and vertical-scaling concerns earlier.
- Follow-up: provision read replica before launch (ADR-0009 tracks scaling).
Keep it to 1–2 pages, readable in 5–10 minutes. If a record sprawls, you're probably bundling two decisions — split them. The full annotated MADR full+minimal templates and a worked example live in