# Normal Accidents by [kirupa](https://www.kirupa.com/me/index.htm) | filed under [AI Fundamentals](https://www.kirupa.com/ai_fundamentals/index.htm) **TL;DR:** Some failures happen even when every part works: small, reasonable decisions combine in ways nobody planned and spread faster than anyone can react. Charles Perrow called these normal accidents, and they show up in systems with lots of surprise connections and very little slack. We can't predict every combination, but we can add gaps that stop one early. - One Saturday, a new Pinwheel status met an old sync default, and Rye texted 31 customers that orders still waiting for a manager's OK were ready. No single part was broken. - Interactive complexity is surprise connections between parts. Tight coupling is steps that fire right away, in a fixed order, with no way to pause. Together, they make accidents normal. - Hunting for one root cause misses the point. Richard Cook called post-accident attribution to a root cause fundamentally wrong. - Loosen the coupling with gaps: fail closed on unknown data, wait and recheck before acting, pause bulk actions for a person, and make dashboards show what's true. One Saturday morning in March, 31 of our customers got a cheerful text telling them their big orders were ready to pick up. None of those orders were ready. Most of them hadn't even been started, and by 8:15 that morning, Rolling Pin's shops had people holding their phones up at the counter. The strange part came afterward. When we went looking for the broken part, we couldn't find one. Every piece of our system had done exactly what it was built to do. In this article, we are going to figure out how a system made of working parts can still fail, and what we can change so that a bad combination of small things stays small. Onwards! ## The Morning Everything Worked Since Crumb & Co. bought Rolling Pin Bakeries, our two shops and Rolling Pin's six share one order database. Rolling Pin's counters still take orders in Pinwheel, their 15-year-old ordering system, so Wren, our web developer, wrote a sync job that reads Pinwheel's database every 5 minutes and copies its orders into ours. Rye, our back-office agent, texts a customer the moment their order is marked ready, and Biscuit, our help desk bot, answers ***Is my order ready?*** from that same database. Here is how that Saturday morning unfolded: ![A timeline of Saturday morning. At 7:05, the sync copies 31 held orders as ready. From 7:05 to 7:20, Rye texts all 31 customers that their order is ready. At 7:30, Biscuit confirms Yes, it's ready to customers who double-check. At 8:15, customers start arriving, and their orders are still waiting for a manager's OK.](https://www.kirupa.com/ai_fundamentals/images/normal_accidents_pickup_morning.png) Fifteen minutes after our sync ran, every one of those 31 customers had a text. By the time Gus, who runs Rolling Pin's shops, heard about the lines, there was nothing left to stop. The texts were out, Biscuit had backed them up, and people were already in their cars. Our first instinct was to find the part that broke. As it turned out, there wasn't one: ![Five parts of the order system, each with a green check: Pinwheel held the big orders, the sync copied every order, Rye texted every ready order, Biscuit answered from the database, and the dashboard reported that the sync ran.](https://www.kirupa.com/ai_fundamentals/images/normal_accidents_all_green.png) Pinwheel held the big orders, the way Yara, who leads Rolling Pin's two-person ordering team, wanted. Our sync copied every order. Rye texted ready orders. Biscuit answered from our database. Our dashboard said the sync ran, and it did. So where did 31 wrong texts come from? ## Hunting for the Culprit Our postmortem (the meeting where a team walks back through an incident) turned up four small things. Each one was easy to defend on its own: ![Four suspects lined up as cards. Yara's new status: on Friday, Pinwheel got a status 5 for big orders that wait for a manager's OK. Wren's default: last summer, the sync learned to treat any status it doesn't recognize as ready. Rye's speed: Rye texts within seconds of an order turning ready. The dashboard: it showed Sync OK, 312 orders copied.](https://www.kirupa.com/ai_fundamentals/images/normal_accidents_suspects.png) On Friday, Yara's team added a new status to Pinwheel, **5**, for big orders that wait for a manager's OK before the kitchen starts on them. (Gus wanted a manager to look at any order of 20 items or more.) Last summer, Wren had told our sync to treat any status it didn't recognize as ***ready***, because the only odd statuses it had ever seen belonged to old, finished orders. Those two decisions had never met before Saturday morning, when the first held orders came due. Rye was built to be fast, because fast texts are what customers like. Odette, who runs our kitchen and approves what Rye does, had agreed that a single ready text did not need her sign-off. Our dashboard reported on the sync, and the sync was fine. Every person in our meeting had a good argument for why the problem was in somebody else's part, and by the end, the board in our meeting room looked like this: ![A gag. A cork board covered in sticky notes for status 5, the default to ready, Rye's texts, and the green dashboard, all connected by tangled red string, like Charlie Kelly's mail room conspiracy board from It's Always Sunny in Philadelphia. A handwritten note says it's ALL connected!](https://www.kirupa.com/ai_fundamentals/images/normal_accidents_red_string.png) That is Charlie Kelly's conspiracy board from *It's Always Sunny in Philadelphia*, more or less, and it is a lot closer to the truth than it looks. The sociologist Charles Perrow opened his 1984 book, [Normal Accidents](https://press.princeton.edu/books/paperback/9780691004129/normal-accidents), with a story built around this exact problem. In his story, a person's morning falls apart on the way to a job interview: ![Charles Perrow's morning, as a chain of small failures. The coffee pot boils dry, and in the rush the car keys get locked inside the apartment. The spare key was loaned to a friend. The neighbor's car has a broken generator. A bus strike means every taxi is taken. The interview gets missed.](https://www.kirupa.com/ai_fundamentals/images/normal_accidents_perrow_morning.png) Perrow then asks the reader to pick the primary cause: human error, the broken generator, the bus strike, or the design of a door that locks itself. His answer is none of the above. Each failure was small, and each one had a backup. The morning went wrong because of the way the failures combined. Richard Cook, a doctor who studied how hospitals and other complex systems fail, put it even more bluntly in [How Complex Systems Fail](https://how.complexsystems.fail/): ***"Post-accident attribution to a 'root cause' is fundamentally wrong."*** ## Two Dials: Complexity and Coupling Perrow didn't stop at "things combine." He looked at which systems tend to fail this way, and he found two properties that matter. The first one is about how the parts connect. In some systems, each part hands off to the next part in a straight line, and we can see every connection. In other systems, parts connect in ways nobody planned and nobody can see all at once. Yara's status and Wren's default are a good example: ![Two decisions made by two people at two different times. Last summer, Wren tells the sync that unknown statuses mean ready. On Friday, Yara's team adds status 5 to Pinwheel. The two decisions meet for the first time inside the sync at 7:05 on Saturday.](https://www.kirupa.com/ai_fundamentals/images/normal_accidents_hidden_meeting.png) Yara's team knew our sync existed, but nobody on that team knew what it did with a status it had never seen, and nobody told Wren about status 5. Their two reasonable decisions met for the first time inside our sync at 7:05 on Saturday. Perrow called surprise connections like this **complex interactions**, and a system with lots of them has high **interactive complexity**. The second property is about how much room there is between the parts. Look at what happened once an order was marked ready: ![The order chain with its timing. Pinwheel's status changes, the sync copies it within 5 minutes, Rye texts within seconds, and customers start driving within minutes. Under every link: no wait, no check, nobody can stop it.](https://www.kirupa.com/ai_fundamentals/images/normal_accidents_tight_chain.png) Each step fires the next one right away, in a fixed order, with no slack anywhere in the chain. Nobody gets a chance to look before the texts go out. Perrow called this **tight coupling**, and a few signs give it away: - The next step starts the moment the last one finishes, so there is no time to look. - The steps always happen in the same order, and there is only one way to get the job done. - There is no spare room, like a buffer, a backup, or a person who can say "hold on." A loosely coupled system is the opposite. Its steps can wait, happen in a different order, or get stopped by someone who thinks something looks off. When we plot both properties as dials, we get the chart Perrow became famous for. Here is a version of it, with a few of his examples in gray and our bakery's systems on top: ![A two-by-two chart. Across: linear to complex interactions. Up: loose to tight coupling. Perrow's examples in gray: most manufacturing (linear, loose), dams (linear, tight), universities and R&D labs (complex, loose), and nuclear power plants (complex, tight). The bakery's systems on top: Rosa phoning customers sits in linear and loose, the overnight sourdough proof sits in linear and tight, and the new automated texts sit in complex and tight, with an arrow showing how automation moved our order texts from Rosa's corner to that one.](https://www.kirupa.com/ai_fundamentals/images/normal_accidents_two_dials.png) Perrow's argument was that the top-right corner is special. When a system is both complex and tightly coupled, small failures will eventually line up in a way nobody predicted, and they will spread faster than anybody can react. He called the result a **normal accident**. The word ***normal*** confuses a lot of people, so here is what Perrow meant by it: > It is normal not in the sense of being frequent or being expected—indeed, neither is true, which is why we were so baffled by what went wrong. It is normal in the sense that it is an inherent property of the system to occasionally experience this interaction. > > [Charles Perrow, Normal Accidents](https://press.princeton.edu/books/paperback/9780691004129/normal-accidents) Our old way of telling customers about their orders sat in a much calmer corner. Rosa looked at the ready rack and phoned people, and if something looked weird, she just didn't call. When we automated that job, we moved it straight into the corner Perrow warned us about. ## Green Lights and Stuck Valves Perrow's book grew out of the 1979 accident at the Three Mile Island nuclear plant. According to the [Nuclear Regulatory Commission](https://www.nrc.gov/regulations-legislation/fact-sheets-brochures/backgrounder-on-the-three-mile-island-accident), a relief valve stuck open while instruments in the control room told the operators it was closed. A combination of equipment problems, design problems, and human errors followed from there. Our dashboard had a much, much smaller version of the same problem: ![On the left, our dashboard shows a green Sync OK with 312 orders copied. On the right, what was actually true: 31 orders marked ready, and 3 orders sitting on the ready rack. A handwritten note says reports what ran, not what's true!](https://www.kirupa.com/ai_fundamentals/images/normal_accidents_dashboard.png) Our dashboard told us that the sync ran. It did not tell us whether the orders our sync marked ready were actually sitting on the ready rack. When an indicator reports what a system did instead of what is true in the world, the people watching that indicator will be confidently wrong at the worst possible moment. (We will dig into failures that make no noise at all in [Silent Failures](https://www.kirupa.com/ai_fundamentals/silent_failures.htm).) ## Agents Raise Both Dials AI agents push our systems toward the top-right corner from both directions. An agent like Rye decides its next step while it runs. It reads text from all over the place, and it calls tools in orders we never drew on a whiteboard, so we can't map all of its connections ahead of time. That is more complexity. An agent also acts in seconds, chains one tool call into the next, and often has nobody standing between its decision and the outside world. That is tighter coupling. Fully automated systems were tightly coupled long before agents showed up, and one of the most expensive examples is from 2012. According to the [SEC's order](https://www.sec.gov/files/litigation/admin/2013/34-70694.pdf) about the incident, the trading firm Knight Capital lost more than $460 million in about 45 minutes. Here are the small things that lined up that morning: ![Knight Capital's chain of small things. In 2003, Knight stops using its old Power Peg code but leaves it in. In 2005, a change breaks Power Peg without anyone retesting it. In 2012, new code reuses Power Peg's old flag, and the deploy skips 1 of 8 servers. On August 1, 97 warning emails go unread before the market opens. In 45 minutes, the eighth server sends millions of orders, and the attempted fix, removing the new code from the other seven servers, makes it worse. Result: more than $460 million lost.](https://www.kirupa.com/ai_fundamentals/images/normal_accidents_knight.png) Old code that nobody used, a flag that got a new job, one missed server, and emails that weren't designed as alerts all came together in a system that trades in fractions of a second. Even the attempted fix made things worse. Rolling back the new code on the seven healthy servers meant those servers started running the old Power Peg code too. Nobody had time to understand what the system was doing before the system finished doing its damage. ## Spacing the Dominoes We can't predict every combination of small failures, because the whole point of complex interactions is that nobody saw them coming. What we can do is change how far a failure travels once it starts. The easiest way to picture this is with dominoes: ![Two rows of dominoes. In the top row, labeled tightly coupled, the dominoes stand close together and the first one falling knocks over the entire row. In the bottom row, labeled loosely coupled, the dominoes have gaps between them, so the first one falls and the rest stay standing.](https://www.kirupa.com/ai_fundamentals/images/normal_accidents_dominoes.png) Packed dominoes don't need a big push. One small tip at the front is enough to take down the whole row. Spaced dominoes can lose one or two pieces and keep standing, because each gap gives a falling piece somewhere to land. Loosening the coupling means putting gaps back into our chain. Here is our order chain after the fixes we made the following week: ![The order chain again, now with four gaps. Between Pinwheel and the sync: unknown statuses become needs a look instead of ready. Between the sync and Rye: Rye waits 10 minutes and rechecks before texting. Inside Rye: more than 20 texts in 10 minutes pauses and asks Odette. On the dashboard: orders marked ready are compared with the ready rack.](https://www.kirupa.com/ai_fundamentals/images/normal_accidents_loosened.png) Each gap targets a different link. Our sync now fails closed, so a status it doesn't recognize turns into ***needs a look*** instead of ***ready***. Rye waits **10** minutes and checks the order again before texting, which gives a person a window to notice. If Rye is about to send more than **20** texts in 10 minutes, it stops and asks Odette first, because a burst like that is almost always either a holiday or a bug. Our dashboard now compares what the sync marked ready with what is actually on the ready rack. We also took out one hidden connection. Pinwheel and our sync now read their list of statuses from one shared file, so the next time Yara's team adds a status, Wren's tests will fail that same day instead of customers finding out at the counter. Here is what that Saturday would have looked like with all of this in place: ![Saturday replayed with the gaps in place. The 31 held orders arrive with status 5. The sync marks them needs a look, so Rye sends no texts. Yara sees 31 orders waiting for a look on the dashboard at 7:10 and gets them to a manager before anyone drives anywhere.](https://www.kirupa.com/ai_fundamentals/images/normal_accidents_replay.png) None of these gaps is free. Customers now get their texts 10 minutes later, and Odette will occasionally have to approve a burst of texts on a busy morning. That's the trade we are making. A little speed goes into the gaps, and in exchange, the next bad combination of small things will stop at the first gap instead of in our shops. ## Try It This Week Let's find the packed dominoes in one of our own pipelines: 1. Draw one automated flow in your product as boxes and arrows, from the first trigger to the last thing a customer sees. 2. For each arrow, ask three questions: Can this step wait? Does anything check the handoff? Can a person stop it? 3. Circle every arrow where all three answers are no. Those are your tightly coupled links. 4. Pick one circled arrow and add a gap this week: a check, a short delay, or a pause that asks a person when something unusual happens. ## Frequently Asked Questions **What Is a Normal Accident?** A normal accident is a failure caused by several small, individually harmless failures combining in a way nobody predicted. Charles Perrow named the idea in his 1984 book Normal Accidents. He called them normal because they are an inherent property of complex, tightly coupled systems, not because they happen often. **What Are Interactive Complexity and Tight Coupling?** Interactive complexity means parts connect in ways nobody planned and nobody can see all at once. Tight coupling means each step triggers the next right away, in a fixed order, with no slack and no chance to stop it. Systems that have both are where normal accidents happen. **Does a Normal Accident Have a Root Cause?** Not a single one. A normal accident needs several contributing failures, and only their combination causes the accident. Richard Cook wrote that post-accident attribution to a root cause is fundamentally wrong, so it’s more useful to ask how far the failure traveled and why nothing slowed it down. **How Do You Reduce Normal Accidents in Software?** Loosen the coupling by adding gaps: fail closed on data you don’t recognize, wait and recheck before acting, and pause unusual bulk actions for a person. Make dashboards show what is true, not just what ran. Remove hidden connections, like two systems that each keep their own copy of the same list. ## Conclusion Ok, let's wrap things up. Our bad Saturday morning wasn't caused by a broken part. A new status, an old default, a fast agent, and an honest but unhelpful dashboard each did their jobs, and the way they combined sent 31 people to pick up orders that weren't ready. Charles Perrow called this kind of failure a normal accident. It is normal because a system with lots of surprise connections and very little slack will eventually produce one, even when every individual part works. That is also why hunting for a single root cause leaves us disappointed. The more useful questions are how far a failure got to travel and why nothing slowed it down. Agents make our systems more complex and more tightly coupled at the same time, so the gaps we design in will matter more and more. Our dominoes have some room between them now...and every one of those 31 orders, I'm happy to report, went out the door before lunch. 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, [Silent Failures](https://www.kirupa.com/ai_fundamentals/silent_failures.htm), or check out some related content: - [Human Approval for Risky Actions](https://www.kirupa.com/ai_fundamentals/human_approval_for_risky_actions.htm). Sort agent tools by risk and pause for a person on the risky ones. - [Timeouts, Retries, and Circuit Breakers](https://www.kirupa.com/ai_fundamentals/timeouts_retries_circuit_breakers.htm). How long to wait for a model, when to retry, and when to stop. - [Graceful Degradation](https://www.kirupa.com/ai_fundamentals/graceful_degradation.htm). Keep a feature useful when its model is slow, down, or over budget. 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 Normal Accidents Quiz](https://www.kirupa.com/quizzes/normal_accidents.htm). Practice with 6 multiple-choice questions and an explanation after every answer.