How to document engineering decisions (without slowing the team down)
Which engineering decisions to write down, which format fits each (PR description, decision log, ADR, design doc), and a five-line record that takes 2 minutes.
The KnowWhyy team · · 8 min read
To document an engineering decision, write five things at the moment you decide: what you chose, why, what you rejected, who owns it, and what would make you revisit it. Put that record where the work already happens (the pull request, a decision log, or an ADR in the repository) and link it to the discussion that led to it. The format matters much less than writing it on the day.
Most teams know this and still don't do it. This guide covers which decisions deserve a record, which of four formats fits each one, and how to make recording a decision cost two minutes instead of an afternoon.
Why decisions go unrecorded
A decision usually ends with a sentence in a chat thread or a nod in a meeting. The change ships, the people who argued about it move on, and the reasoning stays in their heads.
The 2026 Stack Overflow Developer Survey asked developers what gets in the way of having the context they need. 60.9% said important context lives in people's heads, and 53.4% said information is spread across too many tools. When asked which kinds of context matter most, 44.0% named prior decisions and rationale. Only 9.6% said they usually have the context they need.
Three things cause the gap:
Writing feels like extra work. The decision is made, the code is waiting, and a document doesn't ship anything.
Nobody knows the format. "Should this be an ADR? A wiki page? A comment?" Uncertainty is enough to stop people.
The record has no home. If there's no obvious place for it, it ends up nowhere.
Each has a cheap fix, covered below.
Which decisions are worth recording
Get started
Ask your first question in minutes.
Create a workspace, connect a tool and choose what gets indexed. The free plan includes GitHub, Slack, Notion, Jira, Confluence and Google Drive.
Recording everything is how teams burn out on documentation after three weeks. Record a decision when any of these is true:
It's expensive to reverse. A database choice, a public API shape, a data model, an authentication approach.
It affects people outside the team that made it. Another team will build on it or be surprised by it.
Someone will ask why. If the choice looks odd without context ("why do we poll instead of using webhooks?"), a future reader will either ask you or undo it.
You rejected an obvious option. The reason you didn't pick the obvious thing is the most valuable part and the first to be forgotten.
It took more than one conversation to settle. If it needed a debate, it needs a record.
Decisions that shape the system and are hard to reverse
Half a page to one page
docs/decisions/ in the repository
15–30 minutes
Design doc or RFC
Decisions that need input before they're made
2–6 pages
Docs tool, reviewed like code
Hours
The first three record a decision that has been made. A design doc is different: it's how you make the decision. Once the design is agreed, the outcome still deserves a short record that links back to the doc.
Pull request description
The cheapest record there is, because you're writing one anyway. Add a "Why" line and a "Considered" line:
Why: provider rate-limits retries to 1 per 5s per card. Three fast
retries caused duplicate-charge tickets in March.
Considered: exponential backoff (rejected: adds a queue we don't
have); no retry (rejected: 2% of failures recover on the first retry).
A decision log is a single table with one row per decision. It suits decisions that aren't about architecture: which vendor, which library, how on-call rotates, what "done" means.
Date
Decision
Why
Rejected
Owner
Revisit if
Link
2026-03-14
Retry failed card charges once after 7 s
Provider rate limit; duplicates in March
Backoff queue; no retry
Maria
Failed-charge rate above 3%
PR #812, thread
2026-04-02
Use feature flags for every billing change
Two rollbacks in Q1
Long-lived branches
Dev
Flag count passes 40
Design doc
Keep it in one place and keep rows short. The moment an entry needs three paragraphs, it's an ADR.
Architecture decision record
Michael Nygard's 2011 post, Documenting Architecture Decisions, proposed a short text file per decision, kept in the repository, with a title, context, the decision, its status and its consequences. Thoughtworks later listed lightweight architecture decision records on its Technology Radar, and the format has changed little since.
ADRs are numbered, never deleted, and marked "superseded" when a later decision replaces them. That history is the point: a reader can see what was believed at the time. We cover the template and the habits that keep ADRs alive in architecture decision records that stick.
Design doc or RFC
Use one when the decision is big enough that you want objections before you commit. Malte Ubl describes how Google uses them in Design Docs at Google, and the Rust RFC process is a public example of the same idea. Our design doc template includes a section on when a design doc is too much and an ADR will do.
The five-line record
Whatever the format, the content is the same five lines:
DECISION: what we chose, in one sentence
WHY: the constraint or evidence that settled it
REJECTED: the options we didn't take, and why not
OWNER: who to ask, and the date
REVISIT IF: the condition that would reopen it
Then links: the pull request, the thread, the ticket, the doc.
Two lines do most of the work. Rejected stops the same debate from restarting when someone new suggests the option you already ruled out; we wrote about that in how to stop relitigating decisions. Revisit if tells a future reader when the decision should be questioned, which is more useful than pretending it's permanent.
Give each kind of decision one home
People skip documentation when they have to think about where it goes. Decide once:
Kind of decision
Record it in
One specific code change
The pull request description
System design, data model, infrastructure
An ADR in the repository
Product scope, vendor, tooling, process
The decision log
Anything that needs review first
A design doc, then a short ADR or log row linking to it
Then link, don't copy. The record points to the thread and the pull request. It doesn't try to reproduce them. Copies drift; links stay honest.
Attach it to work that already happens
A new process won't last. A small change to an existing one will.
Pull request template. Add "Why" and "Considered" headings. Reviewers ask for them when they're empty.
Closing a thread. Whoever drove the discussion posts a final reply starting with DECISION:. That one message saves every later reader from reconstructing the outcome from forty replies. See how to find old decisions in Slack for the habit in detail.
Meeting notes. End every meeting with a "Decisions" list, each with an owner. Paste those lines into the decision log before closing the doc.
Tickets. When a ticket is closed as "won't do", write why in the closing comment. A rejected idea with no reason gets proposed again next quarter.
Code review. If a review comment changes the approach, the author updates the pull request description to say so. The description should match what merged.
Common ways this fails
The template is too long. Twelve headings get filled in twice. Five lines get filled in every time.
It's written afterwards. A week later the rejected options are already forgotten. Write on the day.
Nothing links to it. A record nobody can reach from the code or the ticket won't be found.
Old decisions aren't marked. When a decision is replaced, mark the old record "superseded by" with a link. Don't edit history.
One person is the scribe. The person who made the call writes the record. Otherwise it stops when the scribe goes on holiday.
Rationale lives only next to the code. Comments explain a line. They rarely explain why the whole approach was chosen over another, and they vanish when the code is deleted.
The decisions you never wrote down
Every team has years of them. Don't backfill everything. Start with the questions people keep asking, find the pull request and the thread, and write a short retroactive record that says plainly what you could and couldn't find. "We couldn't locate the original discussion; the earliest reference is PR #201" is more useful than a confident story rebuilt from memory.
Where KnowWhyy fits
Records cover the decisions someone remembered to write down. The rest are still in your pull request reviews, Slack threads, Jira work items and docs. KnowWhyy reads those sources (GitHub, Slack, Notion, Jira and Confluence), and you ask it in plain language why something was decided. Each claim in the answer links to the pull request, thread, work item or page it came from, so you can check it and paste the links into a retroactive record. If the sources don't contain the answer, it says so. It doesn't index source code or Slack DMs, and it isn't a replacement for writing decisions down. It makes the unwritten ones findable. You can start free with two people.
Frequently asked questions
What is the difference between a decision log and an ADR?
A decision log is one table with a short row per decision, suited to product, process and smaller technical choices. An ADR is a separate half-page document for one architectural decision, kept in the repository and never deleted. Use the log by default and write an ADR when a row would need more than a few sentences.
Where should engineering decisions be documented?
As close to the work as possible. Decisions about a single change belong in the pull request. Architectural decisions belong in the repository as ADRs, so they're versioned with the code. Product and process decisions belong in a decision log in the team's docs tool.
Who should write the record?
The person who made or drove the decision, on the day it was made. Records written by someone else, or later, lose the rejected options first.
How long should a decision record be?
Five lines for a log entry. Half a page to a page for an ADR. If it's longer, it's probably a design doc, and the decision itself should still be summarized in a few lines at the top.
Should every decision be documented?
No. Record decisions that are expensive to reverse, affect other teams, rejected an obvious option, or will make someone ask why. The rest belongs in commit messages.
The short version
Write five lines on the day: decision, why, rejected, owner, revisit if.
Match the format to the decision: pull request description, decision log, ADR or design doc.
Give each kind of decision one home, and link to the discussion instead of copying it.
Attach the habit to pull requests, thread summaries, meeting notes and closed tickets.
For the decisions nobody wrote down, start with the questions people keep asking.