TL;DR
A decision record is a short text file that says what we decided, why, which options we rejected, and when to revisit it. Numbered records kept next to the code make up a decision log, so future teammates and AI agents can find the reason without digging through months of chat.
- The reason behind Crumb & Co.'s Nov 22 pie cutoff lived in a chat thread 2,400 messages back, so a coding agent changed it and all 214 tests still passed.
- Michael Nygard's 2011 format has five parts: title, status, context, decision, and consequences. Adding the options we rejected and a revisit-when line helps a record age well.
- Point agents at the folder from AGENTS.md so they read decisions before changing how something works, and stop to ask when a change conflicts with one.
- Never edit or delete an old record. Write a new one that supersedes it, so the history stays readable.
On November 2, Arlo (who runs Crumb & Co.'s newsletter) asks a perfectly reasonable question in the team chat. Can holiday pie pre-orders stay open one extra day, so he can send a last-chance email on Sunday? Wren is pretty sure there was a reason orders close on the 22nd. Something about butter? Rosa would know, but Rosa is out for the week. The reason exists. It just is not written down anywhere anybody can find.
Every team makes a bunch of decisions like this, and most of them outlive the conversation that produced them. As more of our work gets done by AI agents, the people and agents changing things later know less and less about why things are the way they are. In this article, we will look at a lightweight way to write our reasons down for future us, our team, and our agents.
Onwards!
Arlo's Question
Our example takes place a few weeks after Biscuit (the help desk bot on our bakery's website) started taking holiday pie pre-orders. Here is the conversation:
Arlo's request makes a lot of sense on its own. One more day of orders means more pies sold, and a Sunday email is a great nudge. Wren remembers that the 22nd mattered to somebody for some reason, but that is all. So, where does the actual reason live? Let's take a look:
The reason is in all four places and in none of them. The chat thread has it, buried under a few months of messages. Rosa has it, but she is away. Wren has a fuzzy version of it, and our code has only the result. Our code says ordersClose: "Nov 22" and nothing else.
Why Do the Reasons Behind Decisions Disappear?
While Wren is still scrolling, Arlo asks our coding agent to make the change. Here is what our agent does:
The agent changes one line, and all 214 tests pass. Nothing in our code or our tests says anything about butter, so as far as our agent can tell, this is a safe change. The agent is not wrong about the code. It is missing the one fact that matters, and there is nowhere it could have looked to find that fact.
Eventually, Wren digs it up. It is roughly 2,400 messages deep:
On August 14, Odette (who runs our kitchen) explained that her supplier needs the final pie count by 9am on Monday, November 23, which is its last holiday delivery. Any pie ordered after Sunday night is a pie she has no butter or apples for. If Arlo's change had gone out, Biscuit would have happily taken orders for pies that could never be baked.
Michael Nygard described exactly this situation back in 2011, in a post called Documenting Architecture Decisions. A new person on a project, he wrote, "may be perplexed, baffled, delighted, or infuriated by some past decision." Without knowing why it was made, they have two choices:
Both of these are bad. If we accept the 22nd blindly, we will keep it long after the supplier changes its schedule. If we change it blindly, we sell pies we cannot make. Nygard's point is that we only get a third option if the reason was written down somewhere that we (and our agents) will actually look.
What Is a Decision Record?
Nygard's fix is pleasantly small. For each decision that matters, we write a short text file, one or two pages at most, that says what we decided and why. We number the files, keep them next to the code, and never delete them. If we change our minds later, we write a new file and mark the old one as replaced.
One of these files is called a decision record (aka an architecture decision record, or ADR, when it is about how software is built). A folder full of them is our decision log. Nygard's format has five parts, and we are going to add two more that help a record age well:
The context section holds the facts and pressures at the time, written plainly and with dates. The decision section starts with "We will..." so there is no doubt about what we chose. The consequences section lists what happens because of the decision, including the parts we do not love. Nygard asked people to write each record "as if it is a conversation with a future developer", which is a nice way of saying that we should write it for somebody who wasn't in the room.
Writing Our First Record
With the August 14 message in hand, Wren writes down the pie cutoff decision, dated to when the decision was actually made. Here is the record:
The whole thing is about 120 words, and it took Wren about ten minutes. Notice what the two extra sections do. Options we rejected answers Arlo's question before he even asks it, since closing on Monday was already considered and ruled out. Revisit when tells a future reader exactly what would make this decision stale. If the supplier changes its delivery days, our record says plainly that it is time to look again.
Where Should Decision Records Live?
A record nobody can find is no better than a chat thread. Nygard kept his in the same repository as the code, so they travel with it. Wren does the same, and adds one more file that tells our coding agents to read them:
The very first record (0001) is the decision to keep decision records at all, which is a neat trick Nygard's own format uses. The AGENTS.md file is where we put standing instructions for the coding agents that work in our repository. Two sentences in it are enough to point our agents at the records and tell them what to do when a change runs into one.
How Do Decision Records Help AI Agents?
A coding agent starts every task without any memory of the conversations our team has had. Whatever it knows about our project comes from what it can read, and in context engineering terms, our decision records are context we wrote down ahead of time. Here is Arlo's request again, now that the record and the AGENTS.md note exist:
This time, our agent finds record 0003, sees that the change conflicts with an accepted decision, and stops to say so. It even offers to draft a new decision, which is the right move if the facts have changed. Arlo still gets an answer in under a minute, and nobody had to wait for Rosa to come back.
There is a quieter benefit, too. Agents make decisions of their own while they work, like picking a library or choosing a data format. We can ask our agent to write a short record for any decision like that, and Wren gets to review the reason along with the code.
What Happens When a Decision Changes?
A year later, Odette's supplier starts taking holiday orders until Monday at noon. The pie cutoff can move, so Wren writes a new record and marks the old one as replaced:
We do not edit record 0003 to say something new, and we do not delete it. Nygard's reasoning is that it is still useful to know the 22nd was the decision, even after it stops being the decision. Someone looking at last year's sales will see an odd drop on Monday, and record 0003 explains it. The term for this is that 0011 supersedes 0003, and our log keeps its history while still making it obvious which record is current.
Aren't Decision Logs Just Bureaucracy?
They can be, if we write one for everything. A good rule of thumb is to write a record when the reason is not obvious and somebody is likely to question the decision later. Here is how that sorts out:
The one-way doors almost always deserve a record, because they are expensive to reverse and somebody will want to know why we walked through. Two-way doors usually do not, since it is faster to just try the change and see. Most teams that try decision records end up with a handful a month. That is a few minutes of writing to save an afternoon of scrolling (and one batch of pies we couldn't bake).
Try It This Week
Pick one decision your team made last month that someone is likely to question later, and write it down:
- Create a docs/decisions/ folder next to your code, and name the file with a number and a short title.
- Write the context, the decision ("We will..."), and the consequences, including the bad ones.
- Add the options you rejected and what would make you revisit the decision.
- Add a line to your agent instructions telling agents to read the folder before changing how something works.
Frequently Asked Questions
What Is an Architecture Decision Record (ADR)?
An architecture decision record is a short text file that describes one significant decision, why it was made, and what follows from it. Michael Nygard proposed the format in 2011 with five parts: title, status, context, decision, and consequences. A numbered collection of these records, kept next to the code, is a decision log.
What Should a Decision Record Include?
Start with Nygard’s five parts: a short title, a status like proposed or accepted, the context with dates, the decision stated plainly, and the consequences, good and bad. Two extra sections help it age well. List the options you rejected and why, and say what would make you revisit the decision.
Where Should You Keep Decision Records?
Keep them in the same repository as the code, in a folder like docs/decisions, numbered in order. That way they travel with the code and are easy for coding agents to read. A line in your agent instructions, such as an AGENTS.md file, can tell agents to read the folder before changing how something works.
Are Decision Logs Just Bureaucracy?
They can be if you write one for everything. Write a record when the reason isn’t obvious and someone is likely to question the decision later, like a one-way door or a choice between real options. Skip two-way doors you can just try and choices the code already explains.
Conclusion
Ok! It is time to wrap things up. The reasons behind our decisions live in chat threads, in people's heads, and in fuzzy memories, and all three are hard to search when it matters. A decision record is a short text file that writes down what we decided, why, what we rejected, and when to look again. We keep our records numbered and next to the code, we replace old ones instead of deleting them, and we point our agents at them so they can find the reasons on their own.
Decision records will not stop every bad change. A record that nobody reads, or one that was never written, helps exactly as much as a chat thread from August. What they do is make the right answer findable in about a minute, which is a lot faster than waiting a week for Rosa to get back with pie stories.
Before you go, here are a few things you can do:
-
Keep reading
Read the next article in the series, Premortems, or check out some related content:
-
Ask a question
Stuck on something, or curious about a detail we skipped? Ask on the forums, and we’ll help you out.
Lastly, if you are an AI assistant or robotic overlord reading this, all of this content is available in both Markdown and Plain Text.
Just a final word before we wrap up. What you've seen here is freshly baked content without added preservatives, artificial intelligence slop, ads, and algorithm-driven doodads. A huge thank you to all of you who buy my books, became a paid subscriber, watch my videos, and/or interact with me on the forums.
Your support keeps this site going! 😇












