# Decision Logs That Age Well by [kirupa](https://www.kirupa.com/me/index.htm) | filed under [Data & Decisions](https://www.kirupa.com/data_and_decisions/index.htm) **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: [![A team chat channel called pie-orders on November 2. Arlo asks: Can we keep pie orders open through Monday the 23rd? I want to send a last-chance newsletter on Sunday. Wren replies: I think there was a reason for the 22nd? Something about butter? Rosa's auto-reply says she's out until November 9.](https://www.kirupa.com/data_and_decisions/images/decision_logs_question.png)](https://www.kirupa.com/data_and_decisions/images/decision_logs_question.png?v=f2995ae576e4) 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: [![Four places the reason might be, each with a question mark. A chat thread from August 14, now about 2,400 messages back. Rosa's head, but she's out until November 9. Wren's memory, which only has something about butter. The code, which says ordersClose: Nov 22 with no comment.](https://www.kirupa.com/data_and_decisions/images/decision_logs_where.png)](https://www.kirupa.com/data_and_decisions/images/decision_logs_where.png?v=a493c5d1e329) 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: [![Arlo's request: keep pie orders open through Monday, Nov 23. The coding agent changes one line in pie-settings.js, ordersClose from Nov 22 to Nov 23, and all 214 tests pass. Nothing in the code or the tests mentions Odette's supplier.](https://www.kirupa.com/data_and_decisions/images/decision_logs_agent_diff.png)](https://www.kirupa.com/data_and_decisions/images/decision_logs_agent_diff.png?v=2a1fc44d1f33) 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: [![A cross-section of the ground, like an archaeology dig. The top layers hold recent chat messages: Holiday hours?, Who has the van keys?, New pie box labels!, and Oven guy comes Tue. Near the bottom, a fossil of a chat message from August 14 reads: Supplier needs final count Monday 9am. A pickaxe rests on the grass.](https://www.kirupa.com/data_and_decisions/images/decision_logs_dig.png)](https://www.kirupa.com/data_and_decisions/images/decision_logs_dig.png?v=bff4d1447469) 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](https://www.cognitect.com/blog/2011/11/15/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: [![Michael Nygard's two choices for someone who doesn't know why a decision was made. Blindly accept it: the 22nd stays forever, even after the supplier changes. Blindly change it: orders stay open Monday, and Odette can't bake those pies.](https://www.kirupa.com/data_and_decisions/images/decision_logs_choices.png)](https://www.kirupa.com/data_and_decisions/images/decision_logs_choices.png?v=5cb350521ecf) 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: [![A decision record is a short text file. Nygard's 2011 format has five parts: a title, a status, the context (the forces at play), the decision (We will...), and the consequences, good and bad. Two extra sections help a record age well: the options we rejected, and when to revisit it.](https://www.kirupa.com/data_and_decisions/images/decision_logs_anatomy.png)](https://www.kirupa.com/data_and_decisions/images/decision_logs_anatomy.png?v=8c7a7f07ba20) 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 decision record for the pie cutoff. Status: accepted Aug 14 by Wren, Rosa, and Odette. Context: Odette orders butter and apples first thing Monday, and Monday, Nov 23 is her supplier's last holiday delivery. Decision: close Biscuit's pie pre-orders at 11:59pm on Sunday, Nov 22. Options rejected: closing Monday, because the supplier order is due at 9am, and buying extra up front, because leftovers go to waste. Consequences: late customers go to walk-in pies, and last-chance emails go out by Friday, Nov 20. Revisit when the supplier changes its holiday delivery days.](https://www.kirupa.com/data_and_decisions/images/decision_logs_record.png)](https://www.kirupa.com/data_and_decisions/images/decision_logs_record.png?v=6f76d912e78b) 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 bakery website's repository. A docs/decisions folder holds five records: 0001 record decisions, 0002 keep the pie phone line, 0003 pie orders close Nov 22, 0004 twelve pies per slot, and 0005 Elm Street first. Beside it, AGENTS.md tells coding agents: Before you change how something works, read docs/decisions/. If a change conflicts with an accepted decision, stop and ask Wren.](https://www.kirupa.com/data_and_decisions/images/decision_logs_folder.png)](https://www.kirupa.com/data_and_decisions/images/decision_logs_folder.png?v=c1cc0dde2c17) 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](https://www.kirupa.com/ai_fundamentals/context_engineering.htm) 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: [![The same request with a decision record in place. Arlo asks the coding agent: Keep pie orders open through Monday, Nov 23. The agent replies: Heads up! Decision 0003 closes orders Sunday, Nov 22, because Odette's supplier needs the final count Monday at 9am. Changing it would break that. Two buttons follow: Keep Nov 22 and Draft a new decision.](https://www.kirupa.com/data_and_decisions/images/decision_logs_agent_reads.png)](https://www.kirupa.com/data_and_decisions/images/decision_logs_agent_reads.png?v=3d0d2c2f0d17) 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: [![Two decision records. Record 0003, pie orders close Sunday, Nov 22, is faded, and its status now reads Superseded by 0011. Record 0011, pie orders close Monday at 6am, is accepted, because the supplier now takes orders until Monday at noon. An arrow points from 0003 to 0011.](https://www.kirupa.com/data_and_decisions/images/decision_logs_superseded.png)](https://www.kirupa.com/data_and_decisions/images/decision_logs_superseded.png?v=600ba66c9519) 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: [![Two columns. Write a record for one-way doors, reasons nobody would guess, questions people will ask again, and choices between real options. Skip it for two-way doors we can just try, choices with an obvious reason, and things the code already explains.](https://www.kirupa.com/data_and_decisions/images/decision_logs_what_to_log.png)](https://www.kirupa.com/data_and_decisions/images/decision_logs_what_to_log.png?v=c39178434384) The [one-way doors](https://www.kirupa.com/data_and_decisions/one_way_and_two_way_doors.htm) 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: 1. Create a `docs/decisions/` folder next to your code, and name the file with a number and a short title. 2. Write the context, the decision ("We will..."), and the consequences, including the bad ones. 3. Add the options you rejected and what would make you revisit the decision. 4. 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: 1. Test your knowledge by taking the quiz below. 2. Read the next article in the series, [Premortems](https://www.kirupa.com/data_and_decisions/premortems.htm), or check out some related content: - [The One-Page Spec](https://www.kirupa.com/product_thinking/one_page_spec.htm). Write down what you’re building and why on a single page before you start. - [Changelogs and Release Notes People Actually Read](https://www.kirupa.com/product_thinking/changelogs.htm). Tell people what changed and why it matters to them. - [Context Engineering](https://www.kirupa.com/ai_fundamentals/context_engineering.htm). Decide what an AI agent gets to read, so it has the facts it needs. 3. Stuck on something, or curious about a detail we skipped? [Ask on the forums](https://forum.kirupa.com/), and we’ll help you out. ## Test your knowledge! [Take the Decision Logs That Age Well Quiz](https://www.kirupa.com/quizzes/decision_logs.htm). Practice with 6 multiple-choice questions and an explanation after every answer.