Sub topic 10
Recording the Decision for Later Readers
This chapter assumes you have already worked through the earlier chapters. You can set out context, name constraints, list alternatives, state criteria, and write a short rationale. Here the question is where that reasoning lives after the meeting ends. You also need basic familiarity with pull requests, design documents, and meeting notes.
Why a decision needs a durable record
A decision explained aloud reaches the people in the room. Six months later, those people may have left, forgotten, or remember it differently. A new engineer sees the code and asks why it is built this way. Without a record, the likely answers are guesses, and the usual result is one of two mistakes:
- They undo the decision without knowing it was a deliberate trade-off.
- They treat it as untouchable because nobody can say why it exists.
A decision record fixes this by storing the reasoning next to the choice. It is written for a reader who was not present, has no memory of the discussion, and may be reading under pressure while debugging or planning a change.
The aim is not to document everything. The aim is to capture the part that cannot be recovered from the code: the context, the options, the criteria, the accepted costs, and the assumptions.
What a record must contain
A useful record answers the questions a later reader will ask. Map each question to a section.
| Reader's question | What to record |
|---|---|
| What was the situation? | Context and the problem |
| What did you decide? | The decision, in one or two sentences |
| What else could you have done? | Alternatives and why each was rejected |
| What did it cost? | Trade-offs and accepted downsides |
| What did you believe at the time? | Assumptions and evidence |
| Is this still current? | Status and date |
The widely used Context, Decision, Consequences format covers most of these. It is often called an architecture decision record (ADR). An ADR is a short document, usually one page, that captures one decision. Many teams add a Status line so readers know whether the record is current.
A worked example
This record follows the structure from the topic plan. Read it as a later reader would.
# 3. Use PostgreSQL for the orders service
## Status
Accepted
## Context
The orders service needs transactional updates across orders and payments. The team has two engineers with PostgreSQL experience and none with other databases. We must launch in eight weeks.
## Decision
We will use PostgreSQL as the primary data store for the orders service.
## Consequences
We get strong transactional guarantees and use skills the team already has. We accept that horizontal write scaling will need extra work if traffic grows far beyond current estimates. We rejected a document database because it would make cross-record transactions harder.Notice what each section does:
- Context contains the constraints that shaped the choice: the transactional need, the team's skills, and the eight-week deadline. A reader can judge whether those constraints still hold.
- Decision is stated in the active voice ("We will use...") and contains no justification. The reasoning lives elsewhere, so the decision stays easy to find.
- Consequences includes the benefit, the accepted cost, and the rejected option. The cost is named plainly: horizontal write scaling will need extra work.
One weakness remains. The record does not say what "far beyond current estimates" means, or what the estimates were. A stronger version would add the expected traffic figure. Later readers cannot tell when the assumption has failed unless the record gives a number.
Choosing the right home
The same reasoning can live in several places. Pick the place that a future reader will actually see at the moment the question arises.
| Location | Best for | Weakness |
|---|---|---|
| Decision record file in the repository | Significant, lasting design choices | Needs discipline to write and to find |
| Commit message | Local choices tied to one change | Hard to search; only seen with that line of code |
| Pull request description | Context for reviewers | Often lives outside the repository history |
| Design document | Large decisions with many options | Tends to go stale; may describe plans, not outcomes |
| Chat thread or meeting notes | Capturing discussion in the moment | Easily lost; rarely contains a clear conclusion |
A common practice is to keep the full record in the repository, beside the code it affects, and to link to it from the pull request. Chat and meetings are fine for discussing, but they are poor archives. If a decision was reached in chat, copy the conclusion and reasoning into a durable place.
The commit message as a small record
Not every decision needs a full document. A commit message can carry a compact record when the choice is local. A good one gives the problem, the choice, the accepted trade-off, and the rejected alternative in a few lines.
Cache user profiles for 60 seconds
Profile reads make up most of the load on the accounts database, and
profile changes are rare. A 60-second cache removes most of that load.
Users may see a change up to a minute late, which product accepted
because profile edits are not time-critical.
Considered invalidating the cache on every write. Rejected for now
because it needs a messaging dependency we do not have.Look at how it works:
- The subject line states the decision.
- The first paragraph gives the problem and the reasoning.
- It names the cost (a change can appear up to a minute late) and who accepted it (product).
- The last paragraph records the rejected alternative and the reason, with "for now" signalling that the choice is open to revisiting.
A reader running git blame on the cache line will find this message. That is the moment they most need it.
Before and after: adding the reasoning
Many records fail because they announce the outcome and omit the reasoning. Compare these two.
Before: We switched to weekly releases.
After: We switched to weekly releases because monthly releases bundled too many changes, which made failures hard to trace. The cost is more frequent release work, which we are reducing by automating the checklist.The "after" version adds three things: the reason, the cost, and the mitigation. It is only one sentence longer, but a reader can now judge whether the decision still makes sense. If the checklist is never automated, the reader can see the cost was not mitigated as promised.
Recording assumptions so they can be checked
The earlier chapter on evidence and assumptions separated what you know from what you believe. The record is where that separation pays off. An assumption stated in the record becomes a test that a later reader can run.
Compare two phrasings:
- Weak: "Traffic is expected to stay modest."
- Strong: "We assume fewer than 200 orders per minute through the end of next year, based on the current peak of 60 per minute and a planned 3x growth."
The strong version gives a number, a time horizon, and the source. When traffic reaches 150 orders per minute, someone can notice and reopen the decision. The weak version never fails visibly.
A simple habit helps: for each assumption, write what you would see if it were wrong. That observation is your trigger for revisiting.
Keeping records useful over time
A record is a snapshot. The world moves, and records need light maintenance to stay trustworthy.
Number and date them
Number each record in sequence and include a date, either in the file or from version control. Numbering gives stable references ("see decision 3"). Dates let readers judge how old the context is.
Use a status
A short status vocabulary prevents readers from following outdated advice. A typical set:
- Proposed: under discussion, not yet agreed.
- Accepted: agreed and in effect.
- Superseded by N: replaced by a later record.
- Deprecated: no longer relevant, with nothing replacing it.
Never rewrite history
When a decision changes, do not edit the old record to match the new reality. Write a new record that explains the change, and update the old record's status to "Superseded by" the new number. The old record then still shows what people believed and why, which is exactly what a reader needs to understand how the system got here.
Small corrections such as typos or broken links are fine. Changing the decision or the reasoning is not.
Keeping the effort proportional
Writing a record for every choice buries the important ones. Use a rough test. Write a record when at least one of these is true:
- The decision is expensive or slow to reverse.
- It affects several teams or many parts of the system.
- It involved real disagreement or a close call between options.
- A new team member would reasonably ask "why did we do it this way?"
For smaller choices, a good commit message or pull request description is enough. For trivial ones, nothing is needed.
Common mistakes in records
- Writing after the fact from memory. The reasoning drifts toward whatever justifies the outcome. Write the record while the discussion is fresh, and ideally as part of reaching the decision.
- Leaving out rejected options. Without them, a later reader will propose the same alternatives again and repeat the debate.
- Hiding the cost. A record that lists only benefits reads as advocacy, and readers will distrust it.
- Vague language. Phrases such as "for performance reasons" or "industry best practice" say nothing a reader can check. Name the metric, the constraint, or the source.
- Burying the decision. If the reader must read three paragraphs to find what was decided, restructure it so the decision is stated early and plainly.
- Storing it where nobody looks. A perfect record in a forgotten wiki page does not help. Place it near the code and link to it from where questions arise.
How the pieces fit together
The flow below shows how a decision moves from discussion to a record that later readers can find and trust.
Exercise
A teammate's commit message says: "Moved image processing to a background queue for performance reasons." Rewrite it so a reader a year from now could judge whether the decision still holds. Invent plausible details, and include the problem, the choice, an accepted cost, and a rejected alternative.
Show answer
One good answer: "Process uploaded images in a background queue. Resizing images inside the upload request took up to 8 seconds, and about 5% of uploads timed out. A queue returns the response immediately. The cost is that thumbnails appear up to 30 seconds after upload, which design accepted. Considered adding more web servers, which was rejected because it would not shorten the 8-second request and would raise hosting cost." The answer must replace "performance reasons" with a measurable problem, state the decision, name a cost and who accepted it, and record a rejected option with its reason.
Exercise
Six months after Decision 3 (PostgreSQL for the orders service), the team replaces PostgreSQL with a distributed database because traffic grew far past estimates. What should the team do with the old record, and what should the new record contain?
Show answer
Do not rewrite or delete Decision 3. Change its status to "Superseded by" the new record's number. Write a new record whose Context states what changed (the traffic figure and the assumption that failed), whose Decision names the new database, and whose Consequences list the new benefits, the accepted costs (such as migration effort and loss of skills the team already had), and the options rejected this time. The new record should link back to Decision 3.