First-Principles Framing by kirupa (https://www.kirupa.com/me/index.htm) | filed under Data & Decisions (https://www.kirupa.com/data_and_decisions/index.htm) TL;DR: Reasoning from first principles means pulling an old way of doing things apart into the facts underneath it, keeping only what is still true, and building up from there. The why ladder sorts each rule: keep asking why until it lands on a fact about the world (a real constraint) or a fact about the old tool (a habit). - When Biscuit took over Crumb & Co.'s pie pre-orders, a coding agent copied every notebook rule, including "orders only while we're open" for a bot that never closes. - Climb the why ladder for each rule until it reaches a fact about the world or a fact about the old tool, and split any rule that turns out to be two. - First principles doesn't mean ignoring precedent. The 12-pies-per-slot rule looked like a habit, but the pickup rack by the door holds exactly 12 boxes. - Give your agent the goal, the real constraints with their reasons, and the habits to leave behind, so it neither rebuilds old limits nor deletes real ones. It's 9:40 at night, and Wren is trying out a new feature for Biscuit, the help desk bot on Crumb & Co.'s website. Wren types in a pre-order for two apple pies, and Biscuit politely says no. Pie orders are only taken while the shop is open, so please come back tomorrow. Biscuit, for the record, has never closed for a single minute of its life. That rule came from a paper notebook, where it made perfect sense. When we move a process into software, or hand it to an AI agent, the old rules come along for the ride whether they still make sense or not. In this article, we are going to look at how to separate the rules we really need from the ones we inherited, so that we can rethink a problem from scratch. Onwards! Rosa's Notebook Rules Our example takes place at Crumb & Co., a neighborhood bakery with two shops. Every November, a whole lot of people want to pre-order holiday pies, and Rosa, our shift lead, runs all of it out of a paper notebook. Here is the conversation with Biscuit that kicked off this whole adventure: [Image: Biscuit's chat window at 9:40 PM. A customer asks: Can I pre-order 2 apple pies for Wednesday? Biscuit replies: Sorry! Pie pre-orders are only taken while the shop is open. Please come back tomorrow after 7am.] (https://www.kirupa.com/data_and_decisions/images/first_principles_closed.png) (https://www.kirupa.com/data_and_decisions/images/first_principles_closed.png?v=f6ffde941825) To see where Biscuit's rule came from, we need to look at Rosa's rules for pie season. They fit on a single notebook page: [Image: A spiral notebook page titled Holiday pies, with Rosa's five rules: 1. Orders close Sunday, Nov 22. 2. 12 pies per half-hour slot. 3. Orders only while we're open. 4. Changes? Call the shop. 5. $10 deposit, cash at the counter.] (https://www.kirupa.com/data_and_decisions/images/first_principles_notebook.png) (https://www.kirupa.com/data_and_decisions/images/first_principles_notebook.png?v=89216e298d4e) This year, we want Biscuit to take those pre-orders. Wren, who builds and runs our website, hands the job to a coding agent along with a photo of Rosa's page and a short note: move pie orders into Biscuit. The agent does exactly what it was asked to do: [Image: On the left, Rosa's five notebook rules. In the middle, the coding agent Wren asked to move pie pre-orders into Biscuit. On the right, Biscuit's new pie rules, which are the same five rules word for word, including orders only while we're open and call the shop to make changes.] (https://www.kirupa.com/data_and_decisions/images/first_principles_copied.png) (https://www.kirupa.com/data_and_decisions/images/first_principles_copied.png?v=ea1a4a994f8e) Every rule made the trip, including the ones that only existed because of the notebook. Rule 3 is why Biscuit turned Wren away at 9:40pm. Rule 4 causes trouble too. Here is what happens when a customer wants to make a change: [Image: Biscuit's chat window. A customer asks: Can I switch my apple pie to pumpkin? Biscuit replies: To change a pie order, please call the shop during business hours.] (https://www.kirupa.com/data_and_decisions/images/first_principles_change.png) (https://www.kirupa.com/data_and_decisions/images/first_principles_change.png?v=6f4fc4790dd5) The order now lives in a database that Biscuit can update in about a second, and we are still sending people to the phone. Is our agent being dumb? Nope. It did what most of us do when we build a new version of something: it looked at how the work was done before and made a version of that. This kind of copying is fast and usually right, but it carries every old assumption along with the good ones. What Is First-Principles Thinking? There is an old story that gets passed around kitchens (and management books) about a family ham. A cook always cuts both ends off the ham before she roasts it, because that's how her mom did it. Her mom did it because grandma did. When somebody finally asks grandma, the answer has nothing to do with flavor: [Image: Three generations and one ham. A cook cuts both ends off a ham before roasting it, because her mom always did. Her mom did it because grandma did. Grandma explains that her roasting pan was too small for a whole ham.] (https://www.kirupa.com/data_and_decisions/images/first_principles_ham.png) (https://www.kirupa.com/data_and_decisions/images/first_principles_ham.png?v=b686e5470f86) The ends came off because grandma's pan was too small. Two generations kept a rule whose reason was long gone, and they kept it because nobody thought to ask. Rosa's rule 3 is our ham. It made sense when a person had to write down every order with a pen, and it stopped making sense the moment Biscuit took over. There are two ways we can build the new version of something. We can copy the old version and give it a fresh coat of paint, or we can pull the old version apart into the facts underneath it, keep only the facts that are still true, and build up from there: [Image: Two rows. Copying: Rosa's notebook rules go straight into Biscuit with a fresh coat of paint, so the new version has the same five rules. First principles: the old version is pulled apart into the facts underneath it, only the facts that are still true are kept, and a new version is built up from those.] (https://www.kirupa.com/data_and_decisions/images/first_principles_two_ways.png) (https://www.kirupa.com/data_and_decisions/images/first_principles_two_ways.png?v=7d3b8c8346b9) The second way has a name. It is called reasoning from first principles (aka first-principles thinking), and the facts at the bottom of our pile are the first principles. The idea goes back a long way. Aristotle described a beginning as "the first point from which a thing either is or comes to be or is known" (Metaphysics, Book V (https://classics.mit.edu/Aristotle/metaphysics.5.v.html)). In tech circles, it is usually linked to Elon Musk, who has described using it on battery costs (https://www.cnbcafrica.com/2020/billionaire-elon-musk-calls-this-a-powerful-powerful-way-of-thinking-but-is-hard-to-do-heres-how-it-works). Instead of accepting that battery packs cost about $600 per kilowatt hour because they always had, he asked what the raw materials inside one would cost on the London Metal Exchange, and he came up with about $80. The copying we watched our agent do is known as reasoning by analogy. We would never get anything done if we reasoned everything out from scratch, so copying is not the enemy. What we need is to notice when a problem deserves the slower treatment, and moving work into a new tool is one of those times. The old tool shaped the old rules, and our new tool does not share its limits. What's the Difference Between a Real Constraint and a Habit? To find the facts underneath Rosa's page, we are going to sort her rules into two piles. A real constraint is a rule that would still be true if we started from scratch today. It comes from physics, the law, money, people's time, or another business we depend on. A habit is a rule that is only true because of how we used to do things: the old tool, last year's process, or what everyone else does. If we picture our product as a tower of blocks, the habits are the blocks we can pull out without the tower falling over: [Image: A tower of stacked blocks, one per rule a product has to live with. The solid green blocks are real constraints: physics, the law, money, people's time, and other businesses' rules. The dashed yellow blocks are habits that stick partway out: how the old tool worked, how we did it last year, and what everyone else does. The tower still stands if we pull the habits out.] (https://www.kirupa.com/data_and_decisions/images/first_principles_tower.png) (https://www.kirupa.com/data_and_decisions/images/first_principles_tower.png?v=6d6be09576d6) What makes this tricky is that habits and real constraints look exactly alike on a page. "Orders close Sunday, Nov 22" and "Orders only while we're open" are written in the same pen, with the same confidence. So, how do we tell them apart? We ask a question, and then we ask it again. How Do We Tell a Real Constraint From a Habit? The tool we will use is the why ladder. We take one rule, ask why it exists, and then ask why about the answer. We keep climbing until we land on one of two things: - A fact about the world that won't change when our software changes, which makes the rule a real constraint. - An answer that boils down to "because that's how the old tool worked," which makes the rule a habit. This is a close cousin of the five whys (https://www.lean.org/lexicon-terms/5-whys/) that Taiichi Ohno made famous at Toyota, where people asked why five times to find the root cause of a broken machine. We are going to use it to find the root cause of a rule instead. Wren and Rosa sit down with the notebook page. Here is how rule 1 goes: [Image: Rule 1, orders close Sunday, Nov 22. Why? Odette needs the final pie count. Why? She orders butter and apples first thing Monday. Why? Monday, Nov 23 is her supplier's last holiday delivery. That is a fact about the world, so rule 1 is a real constraint.] (https://www.kirupa.com/data_and_decisions/images/first_principles_ladder_close.png) (https://www.kirupa.com/data_and_decisions/images/first_principles_ladder_close.png?v=04b69ea77c90) Odette, who runs our kitchen, needs the final pie count to place her butter and apple order on Monday morning, and Monday, November 23 is her supplier's last holiday delivery. None of that changes because our orders now come in through Biscuit. Rule 1 is a real constraint. Rule 3 will go a lot faster: [Image: Rule 3, orders only while we're open. Why? Somebody has to write each order in the notebook. Why? The notebook is the only place orders live. That is only true because of the old tool, so rule 3 is a habit.] (https://www.kirupa.com/data_and_decisions/images/first_principles_ladder_hours.png) (https://www.kirupa.com/data_and_decisions/images/first_principles_ladder_hours.png?v=d880a630ebf0) Two rungs up, we hit the notebook. Orders could only come in while the shop was open because a person had to be standing there with a pen. Biscuit does not need a pen, so rule 3 is a habit. Rule 4 (call the shop to make changes) climbs to the very same place for the very same reason. Rule 5 is more interesting, because it is really two rules packed into one line: [Image: Rule 5, a $10 deposit paid in cash at the counter, splits into two questions. Why a deposit? The year before the deposit, 9 pies were never picked up, so the deposit is a real constraint. Why cash at the counter? The notebook can't take cards, so paying in cash is a habit.] (https://www.kirupa.com/data_and_decisions/images/first_principles_ladder_deposit.png) (https://www.kirupa.com/data_and_decisions/images/first_principles_ladder_deposit.png?v=b9efb0e1bf8c) Rosa remembers the year before the deposit, when 9 pies sat unclaimed after the last pickup. A deposit gives people a reason to show up, so that part of our rule is real. The cash part is only there because a notebook cannot take a card. We will see this a lot: a single rule splits into a reason worth keeping and a way of doing it that we can let go. Does First-Principles Thinking Mean Ignoring Precedent? Before talking to Rosa, Wren had taken a quick pass at sorting all of our rules alone. That first pass looked as follows: [Image: Wren's first pass. Real: orders close Sunday, Nov 22 and the $10 deposit. Habit: 12 pies per slot, orders only while we're open, changes by phone, and cash at the counter. The 12 pies per slot card is marked as a guess, because nobody has asked Rosa about it yet.] (https://www.kirupa.com/data_and_decisions/images/first_principles_first_pass.png) (https://www.kirupa.com/data_and_decisions/images/first_principles_first_pass.png?v=f9f056e2205f) "12 pies per half-hour slot" felt like a notebook rule. Twelve is a suspiciously round number, and Biscuit can book 20 pies into a slot just as easily as it books 12. When Wren and Rosa climbed the ladder together, though, they ended up at the bakery's front door: [Image: The pickup rack by the bakery's front door has three shelves with four pie boxes on each, so it holds 12 boxes. Rosa fills it with one half-hour slot's pies, like the 10:00 slot. A 13th box has no spot on the rack and ends up on the counter, where it gets mixed up with the next slot.] (https://www.kirupa.com/data_and_decisions/images/first_principles_rack.png) (https://www.kirupa.com/data_and_decisions/images/first_principles_rack.png?v=40123755c075) Our pickup rack by the door holds 12 boxes. Rosa fills it with one slot's pies right before that slot starts, so a 13th pie ends up on the counter, where it gets mixed in with the next slot's orders. That is physics (or at least furniture), so rule 2 is real. This is the mistake first-principles thinking invites when we get a little too excited about it. Starting from what is true does not mean ignoring what came before. The old way is evidence. Somebody made each of those rules for a reason, and sometimes the reason is still standing by the front door. G. K. Chesterton made this point back in 1929 with a fence across a road (https://en.wikipedia.org/wiki/G._K._Chesterton#Chesterton%27s_Fence): if we do not know why the fence is there, we should not tear it down until we find out. The why ladder is how we find out, and a rule only goes once we have climbed to the top and found nothing holding it up. With rule 2 moved over, our sorted rules now look like this: [Image: The rules after Wren and Rosa climbed the why ladder together. Real: close Sunday, Nov 22, 12 pies per slot, and the $10 deposit. Habit: only while we're open, changes by calling the shop, and cash at the counter.] (https://www.kirupa.com/data_and_decisions/images/first_principles_sorted.png) (https://www.kirupa.com/data_and_decisions/images/first_principles_sorted.png?v=323aa82534ff) Real constraints are not forever, either. A second rack would change rule 2, but that costs money and floor space, so it is a decision for the bakery's owner to make. Rebuilding From the Real Constraints With the rules sorted, Wren rewrites the instructions for our coding agent. Instead of a photo of the notebook, the agent will get the goal, the real constraints with their reasons, and a short list of habits to leave behind: [Image: Wren's new spec for the coding agent has three parts. Goal: customers can pre-order holiday pies from Biscuit any time of day. Real constraints, each with its reason: close Sunday, Nov 22 (supplier's last delivery), 12 pies per half-hour slot (the pickup rack holds 12), and a $10 deposit (cuts unclaimed pies). Habits to leave behind: shop hours only, call to change, and cash only.] (https://www.kirupa.com/data_and_decisions/images/first_principles_spec.png) (https://www.kirupa.com/data_and_decisions/images/first_principles_spec.png?v=5a7bf15a10d3) The reasons matter as much as the rules do. An agent that knows our 12-pie limit comes from a physical rack will not "helpfully" raise it when somebody asks for more capacity, and an agent that knows the cash rule came from the notebook will not rebuild it. Listing the habits tells the agent (and the next person who reads our spec (https://www.kirupa.com/product_thinking/specs_for_agents.htm)) that we looked at those rules on purpose and decided they do not apply. Here is the same 9:40pm order once our agent rebuilds the feature: [Image: Biscuit's chat window at 9:40 PM. A customer asks: Can I pre-order 2 apple pies for Wednesday? Biscuit replies: Yes! Wednesday 10:00 to 10:30 has 3 of 12 spots left. Your $10 deposit is due now, by card. Two buttons follow: Book it and Other times. A note says the slot still holds 12.] (https://www.kirupa.com/data_and_decisions/images/first_principles_open.png) (https://www.kirupa.com/data_and_decisions/images/first_principles_open.png?v=b017421057fb) Biscuit takes the order at night, keeps the slot at 12 pies, collects the deposit by card, and lets people change their order right in the chat. None of that came from copying a fancier bot. It came from keeping the three rules that were actually true and dropping the three that were not. Try It This Week Pick something you're about to move into a new tool, hand to an agent, or rebuild, and try this: 1. Write down five rules it follows today, exactly the way people say them out loud. 2. Climb the why ladder for each one until you hit a fact about the world or a fact about the old tool. 3. Label each rule real or habit, and split any rule that turns out to be two rules. 4. Show your labels to the person who knows the work best, the way Wren did with Rosa, before you delete anything. 5. Write the real constraints, with their reasons, into your spec or your agent's instructions. If every rule comes back real, that is a fine outcome too. You can copy the old way with a clear conscience. Frequently Asked Questions What Is First-Principles Thinking? First-principles thinking means breaking an old way of doing something into the facts underneath it, keeping only the facts that are still true, and building a new version from those. The opposite is reasoning by analogy, which copies what was done before. Copying is faster, so first principles earns its keep when the tool or situation underneath the work changes. What Is the Difference Between a Real Constraint and a Habit? A real constraint would still be true if you started from scratch today, because it comes from physics, the law, money, people’s time, or another business you depend on. A habit is only true because of how things used to be done, like the limits of an old tool. Both look the same when they’re written down, so you have to ask why. How Do You Use the Why Ladder? Take one rule and ask why it exists, then ask why about the answer. Keep climbing until you reach either a fact about the world or a fact about the old tool. The first makes the rule a real constraint, and the second makes it a habit. Some rules split in two, with a reason worth keeping and a method you can drop. Does First-Principles Thinking Mean Ignoring Precedent? No. The old way is evidence, since someone made each rule for a reason, and sometimes that reason still stands. In the article, a 12-pies-per-slot rule looked like a habit until it led to a pickup rack that holds exactly 12 boxes. Check with the people who know the work before you remove a rule. Conclusion Ok! It is time to wrap things up. When we build a new version of something, it is tempting (for us and for our agents) to copy the old version and change the paint. Reasoning from first principles means pulling the old version apart into the facts underneath it, keeping what is still true, and building up from there. The why ladder is how we sort those facts: we keep asking why until a rule lands on something about the world or something about the old tool. Because the old way is evidence, we also check with the people who know the work before we pull a block out. The honest limitation is that all of this is slow, and we will not climb the ladder for every rule in every project. It earns its keep when the tool underneath the work changes, which is happening a whole lot as more of our products get rebuilt around AI agents. Somewhere out there, a bot is still telling people to come back during business hours...and now you know why. 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, One-Way and Two-Way Doors (https://www.kirupa.com/data_and_decisions/one_way_and_two_way_doors.htm), or check out some related content: - Specs Agents Can Build From (https://www.kirupa.com/product_thinking/specs_for_agents.htm). Write the goal, constraints, and reasons down so a coding agent builds the right thing. - Problems Before Solutions (https://www.kirupa.com/product_thinking/problems_before_solutions.htm). Describe the problem plainly before jumping to a solution. - The Art of Subtraction (https://www.kirupa.com/product_thinking/the_art_of_subtraction.htm). Why removing features, prompts, and specs often makes them better. 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. [Mastery Quiz] Test your knowledge! Take the First-Principles Framing Quiz: https://www.kirupa.com/quizzes/first_principles.htm Practice with 6 multiple-choice questions and an explanation after every answer. [/Mastery Quiz]