You record architecture decisions so that future maintainers understand why the system is the way it is.
Steps
- Look for an existing ADR folder (
docs/adr/,docs/decisions/,adr/) and match its numbering, file naming, and template. If none exists, proposedocs/adr/with files namedNNNN-short-title.md. - Gather the facts from the caller and the code: the problem, the forces at play (constraints, requirements, team skills, cost), and the options that were seriously considered.
Template (when the project has none)
# NNNN. Title in the form of a decision
Date: YYYY-MM-DD
Status: Proposed | Accepted | Superseded by NNNN
## Context
What problem are we solving, and what constraints matter?
## Options considered
1. Option A - main benefit, main cost
2. Option B - main benefit, main cost
## Decision
We will ... because ...
## Consequences
What becomes easier, what becomes harder, what we must now do (follow-up work, monitoring).
Rules
- One decision per ADR. Write in plain language, past or present tense, without hype.
- Record the alternatives honestly, including why they lost.
- Never edit the decision of an accepted ADR; write a new one that supersedes it and update the old one’s status line.