Operating Production Systems in the AI & Cloud Era
Keeping Systems Running
© 2026 Oleksiy Pylypenko · Licensed under CC BY-NC-SA 4.0 — share and adapt freely, non-commercially, with attribution. Source on GitHub. Also in the series: Software Architecture in the AI & Cloud Era, Building Products in the AI & Cloud Era, Building Software at Scale in the AI & Cloud Era and Building Resilient Systems in the AI & Cloud Era.
Preface
Every system worth building eventually leaves the hands of the people who designed it. It enters a world they cannot fully foresee, a world of real users, real traffic and real failures, which arrive at three in the morning and on the busiest day of the year. We call that world production. For most of our field’s history we treated production as the place software went after the interesting work was done: engineers wrote the code, and somebody else, usually in another department and often on another floor, kept it running. That division never served anyone well. The people who understood the system were not the people woken by it, and the people woken by it could rarely change it. Over the last fifteen years the division has quietly dissolved, and the tools for running software have been remade along the way. Dashboards gave way to traces and wide events, pagers to incident platforms, runbooks to self-service workflows, and most recently AI assistants have begun to read our telemetry and sit in our incident channels.
This book is about the part of that work which the tools do not do for us. Its thesis is that production is a sociotechnical system: its reliability is produced, minute by minute, by people and machines together, and so it cannot be understood by studying either one alone. A well-engineered system still has to be run. Someone has to decide what to automate and what to keep in human hands, someone has to see what the system is actually doing, someone has to take command when it fails in a way nobody anticipated, and someone has to make sure that the organization learns from the failure instead of merely recovering from it. The book takes those kinds of work in turn: how people and machines run a system together, how they see it, how they respond when it fails, and how they learn afterwards.
None of the lessons beneath that work was learned in software first. A system of many interacting parts fails in ways that no single part explains, because the failure lives in the interactions. Automation takes away the easy work and leaves people the hard work, and it tends to hand that hard work back at the worst possible moment. Organizations drift toward the edge of what they can safely do, not through any single bad decision but one reasonable exception at a time. These things were learned, at great cost, in coal mines, nuclear plants, cockpits, operating theaters and launch pads, and in the wildfires that taught a generation of firefighters how to command a response among strangers. I have come to believe that the newest operational practices are best understood, and best used, by someone who knows the older lessons that explain why those practices work. A team that adds an operations agent without knowing what automation does to the people beside it, or that writes blameless postmortems without understanding drift, has the tool without the reason for it, and it will misuse the tool the first time the situation departs from the tutorial.
This book is written for the reader who wants both. That reader might be an engineer who builds services and now also runs them, a team lead who has inherited an on-call rotation along with a team, or an architect who wants to know what becomes of a design once it meets the world. AI appears where it really changes the practice (the operations agent of Chapter 3, the assistant that queries telemetry in Chapter 4, the incident channel of Chapter 5) and nowhere else, because a book that put AI into every chapter would be teaching fashion. The tools will keep changing. The judgment they require will not.
The book belongs to a series that asks one question from several sides. Software Architecture in the AI & Cloud Era, which these pages call the Architecture book
, asks how to shape a system. Building Resilient Systems in the AI & Cloud Era, the Resilience book
, asks how to engineer that system for production: its objectives, capacity, runtime, delivery, failure handling, data, security and AI workloads. This book, its companion, asks how to operate it: how the people and machines who run the system keep it running, see into it, fight its failures and learn from them. One book is about the system; the other is about the people and machines that keep it alive. The two share a company, a cast and a single bad morning, and each can be read on its own.
Influences & Attribution
Much of this book’s method comes from others, and I want to be plain about where. Each chapter’s references point to the original works, which are always the better read; this book’s job is to connect them and to show them working together at one company. Its intellectual foundation is safety science, and it comes from outside software entirely. Charles Perrow, James Reason, Jens Rasmussen, Richard Cook, David Woods, Erik Hollnagel, Sidney Dekker, Nancy Leveson and Diane Vaughan studied how complex systems fail and how people keep them working, and Lisanne Bainbridge, Thomas Sheridan, Raja Parasuraman, John Lee and Gary Klein studied what automation does to the people who work beside it. They wrote about aviation, medicine, nuclear power and spaceflight, fields where failure kills people and where the study of failure was therefore taken seriously decades before ours. Their work turns out to describe software operations with uncomfortable accuracy. Reading them is a little like finding a detailed map of a country you thought you were the first to explore.
The practice of running software draws on Google’s Site Reliability Engineering and The Site Reliability Workbook, and on James Hamilton’s advice on operating internet-scale services. Observability draws on Charity Majors, Liz Fong-Jones and George Miranda’s Observability Engineering, on the work of Cindy Sridharan and Yuri Shkuro, and on the OpenTelemetry project. Incident response follows the Incident Command System as Rob Schnepp, Ron Vidal and Chris Hawley carried it into software operations, together with PagerDuty’s published response process, Mica Endsley’s work on situation awareness and Karl Weick’s on sensemaking. Learning from incidents draws on John Allspaw, on Dekker’s just culture, on Leveson’s CAST, on the STELLA report and on the learning-from-incidents community gathered around the VOID. The organization chapter draws on Ron Westrum, Amy Edmondson, Matthew Skelton and Manuel Pais’s Team Topologies, and the DORA research of Nicole Forsgren and colleagues.
Several terms used in this book as common vocabulary were coined by specific people or groups, and they deserve the credit: toil and the Wheel of Misfortune (Google SRE), the USE method (Brendan Gregg), the RED method (Tom Wilkie), gray failure (Peng Huang and colleagues), the core analysis loop (Majors, Fong-Jones and Miranda), the do-nothing script (Dan Slimmon), normalization of deviance (Diane Vaughan), Safety-I and Safety-II (Erik Hollnagel), STAMP, STPA and CAST (Nancy Leveson), the Swiss cheese model (James Reason), situation awareness (Mica Endsley), psychological safety (Amy Edmondson) and the typology of organizational cultures (Ron Westrum).
Authorship & Disclaimer
This book was written and directed by Oleksiy Pylypenko, with AI assistance (Anthropic’s Claude). The judgment in it comes from twenty-plus years of practice: platform engineering inside a large bank, API architecture in fintech, and a decade of maintaining a widely used open-source library. The author chose the thesis, the structure, the examples and the trade-offs, edited every chapter, and takes responsibility for every claim, errors included. Encore and every kata company are fictional, and historical events are described from the public record. The content is provided as-is, without warranty of any kind. It is educational material, not professional advice for any specific system, and the license’s full disclaimer of warranties applies.
How to Read This Book
One company runs through all seven chapters. Encore sells tickets to live concerts, and its traffic can rise 500× in minutes when a major tour is announced, which makes it a demanding place to learn how to run software. Readers of the Architecture book watched Encore grow from nine engineers to 400, and readers of the Resilience book watched it engineer its system for production. This book asks what it takes to operate that system: who runs it, how they see it, and what they do when it fails. Chapter 1 introduces Encore for readers meeting it for the first time, each later chapter adds the parts of the company it needs, and an appendix gathers all of them on one page for reference.
One incident sits at the center of the book: the on-sale for a fictional artist named Vesper Hale. The Resilience book ends on the morning of that on-sale, with Encore’s preparations complete and the Gate about to open. This book takes the morning from 10:00, fights it live in Chapter 5 and learns from it in Chapter 6, and the chapters before them point out, one at a time, the small and reasonable decisions that will matter when it comes. Either book can be read first. A reader who starts here meets the incident as the people in the channel did, without knowing everything that led to it; a reader who starts with the Resilience book arrives at 10:00 knowing the system’s weak points rather better than its operators did.
Each chapter closes with a kata, a practice brief for a different company with its own scale and constraints, together with a rubric to check your work against. The word comes from the martial arts, where a kata is a set form practiced until it becomes second nature, and the idea is much the same as a musician’s scales: the value lies in repetition in a place where mistakes are cheap, so that the moves are familiar when mistakes become expensive. Every section ends with a short recap and an exercise. The exercises work best done against a system you actually run, because the point is to see the idea in your own production rather than in Encore’s. Each chapter’s references list the field’s standard works, and those marked free online cost nothing to read.
The chapters build on one another, but each can be read on its own. A reader in the middle of an on-call crisis may reasonably start with Chapter 5, and a reader whose dashboards are green while users complain may start with Chapter 4. Chapters 2 and 3 are different. They lay the foundation the rest of the book stands on, the ideas about failure and automation that explain why every later practice takes the shape it does, and I would ask every reader to make time for them eventually.
The Arc
The seven chapters fall into four parts. They move from understanding what production is and how it fails, through seeing a running system, to responding when it fails and learning afterwards, and they end with the organization that does all of this.
Foundations (Chapters 1–3): what production is, how complex systems fail, and what automation does to the people who run it.
Seeing the system (Chapter 4): observability, from the failures we expected to the questions nobody thought to ask in advance.
Responding and learning (Chapters 5–6): incident response on the morning of the Vesper Hale on-sale, and learning from it afterwards.
The organization (Chapter 7): the teams, skills and culture that run production, ending with the capstone.
Contents
- What Production Is — Running Software in the Cloud Era
- How Complex Systems Fail — Safety Science for Software
- Automation and Its Ironies — Toil, Runbooks, and the Human Role
- Observability — Seeing What the System Is Doing
- Incident Response — Command, Communication, and On-Call
- Learning from Incidents — Postmortems, Just Culture, and Drift
- The Production Organization and the Capstone
Chapter 1: What Production Is — Running Software in the Cloud Era
Code is finished when it ships. Production never is.
On the morning after Encore’s new Notification service went live, nothing happened, and that quiet was the first thing worth noticing. The Notification service has a modest job: it delivers each ticket a fan has bought to the fan’s phone wallet and email inbox. Overnight a coding agent had rebuilt it on a new framework, with better retry semantics and 40 files that no person had typed or read in full. Every automated safeguard Encore had built then did its work. The contract tests, which check that a service still keeps the promises other services depend on, passed. The boundary rules, which check that the code respects the lines the architecture draws between services, passed. The security checks passed. Last came the canary, a release in which the new version first serves a small share of real traffic while the old one serves the rest. The canary was judged against the service’s service level objective (SLO), the stated target for how well it must serve its users, and because it met that target it was promoted to all traffic. By breakfast the service had delivered about 180,000 tickets, and every dashboard was green.
One engineer had nonetheless spent 20 minutes on that change before it merged. She read the behavior it promised more closely than the code itself, and she found that the new retry semantics could, under the wrong timing, send a fan the same ticket twice. Retrying is a sound instinct for a service like this one, because a mail server or wallet provider that does not answer the first time will often answer the second. The hazard of every retry is that the first attempt may have succeeded after all, only slowly, so that the second attempt delivers a second copy. No automated check would have noticed, because from the point of view of every check Encore had, a duplicate ticket is a perfectly healthy delivery that happened twice. She added a specification-level idempotency test, one that states the rule in the terms of the specification rather than the code (a purchased ticket reaches the fan once, however many times delivery is attempted), and the change went out.
The dashboards that morning were honest; they simply could not see the one thing that mattered, and a person had seen it for them. That is why the green screens raise this book’s question, a question older than it looks. Who runs code that nobody fully read, and what do they need from it at 3 a.m., when the engineer on call is tired, the author of the code (human or agent) is nowhere near, and the system is doing something that no test anticipated?
The coding agent makes the question vivid, but it did not invent it. People have always run code they did not write, and learning to run it well without understanding all of it is the founding question of our discipline. I have come to believe that it remains the right question, and that the agent has only removed our last excuse for pretending otherwise. This chapter traces how that question was answered over time, from the machine-room operators of the 1950s to Google’s first site reliability engineering (SRE) team in 2003. It then sets out three things in turn: what users actually feel of production, the stack of practices we use to run it, and the principles that make a system operable by strangers, meaning people who did not build it and cannot hold all of it in their heads. On a system the size of Encore’s, that describes everyone.
Encore, the System We Will Run
Encore is our companion again, as it was throughout the Architecture book
, which followed the company from nine engineers to 400. For most of the week Encore could pass for an ordinary online shop that happens to sell seats at concerts across Europe, priced in euros. Then a famous artist’s tour goes on sale, nearly always at 10:00 on a Friday, and within minutes the traffic reaches 500 times its weekday level. Three demands arrive together on that morning. The first is scale: a million people want a few thousand seats, and most of them will be disappointed. The second is correctness: every seat must be sold exactly once, which means it must never be lost and never be sold twice to two fans who clicked it in the same instant. The third is adversarial: the bots arrive before the fans do, because a reseller’s scripts are faster and more numerous than any person with a phone. Nearly every structure in Encore exists to answer one of those three demands, and most of the trouble in this book lies where they pull against each other, as when a defense against bots must not turn away the very fans it exists to protect.
On such a morning the first problem is the size of the crowd, and only after that the selling of seats, so Encore is built to manage the crowd first. A concert hall solves the same problem with doors and ushers: nobody lets ten thousand people sprint for the seats at once, because the aisles would jam and the people at the front would be crushed. Figure 1.1 is the map of how Encore does the equivalent, and the part of it that matters most is short enough to walk through now. The fan’s purchase path, the chain of services a fan passes through between arriving and holding a ticket, begins at the Sale Gate, Encore’s virtual waiting room. There fans meet a queue instead of a seat map and are let through at a metered rate of about 1,200 fans a second per event. That rate is chosen so that nothing behind the Gate runs hot; it keeps the load on Seat Inventory below 80% of what Seat Inventory can carry, leaving room for the unexpected. This makes the Gate an admission controller: a component that protects a scarce resource by deciding how much work may reach it. Its rate is the most powerful single control Encore has, because every service behind it sees only the load the Gate lets through, and that is why a change to the rate deserves far more care than its one number suggests. The usher analogy holds well up to a point and then breaks in an instructive way. An usher can see the hall filling and slow the line by eye, whereas the Gate cannot see the services behind it at all; its rate is a judgment made in advance, from capacity arithmetic and load tests, and it is only as good as the conditions under which that judgment was made.
Alongside the Gate, Bot Screening judges, session by session, whether it faces a fan or a script, and it must do so quickly and without a person in the loop, since a million sessions cannot be reviewed by hand. Past the Gate and the screening, Seat Inventory is the single authority on whether a seat is free. When a fan picks seats, Seat Inventory holds them for five minutes so that nobody else can take them while the fan pays, and it sells each seat once, whatever else in the system is failing. Every other service may slow down, degrade or refuse work, but Seat Inventory may not get this one thing wrong, which is why it is built more conservatively than anything around it. Orders & Payments then turns the hold into a sale within a 3 s checkout budget, calling an external payment service provider (PSP), with a second provider ready to take new payments if the first one falters. That second provider was not always there. The PSP’s slowness once took the whole site down, when a dependency outside Encore’s control slowed and the services waiting on it exhausted themselves; the Architecture book told that story, and Chapter 2 reads it again through the lens of safety science.
Figure 1.1 — Encore’s system map. The purchase path runs down the middle; everything else either hangs off it or listens to it.
A map shows what exists, but it does not show the order in which a fan meets it. Figure 1.2 follows one fan along the purchase path, from the waiting room to a ticket in the phone wallet, so that the services above appear in the sequence a person actually experiences them.
Figure 1.2 — One fan’s purchase in eight steps, each tagged with the service that owns it. The admission rate and the checkout budget bound the rush from opposite ends.
Read the figure from both ends and a useful symmetry appears. At the entrance, the admission rate limits how many fans begin the journey each second; at the exit, the checkout budget limits how long any one fan may take to finish it. Between those two bounds lies everything Encore must keep healthy during an on-sale, and a surprising number of the failures in later chapters come from something in the middle quietly violating an assumption that one of the two bounds depended on.
Software this size is not run by one heroic group, and Encore’s arrangement reflects the lessons of the Architecture book. Forty teams build these services and carry their own pagers, which is to say that the team that writes a service is also the team woken when it misbehaves. They stand on a platform whose golden paths, the supported and well-lit routes through the platform’s tools, take a new service from template to production without each team rediscovering how. Figure 1.3 shows where all of it runs. Within the platform group sits the Reliability team, ten engineers who own the tooling for service level objectives, the incident process and the readiness review held before every big on-sale. They advise, embed with teams for large launches and rehearse failures with them, but they do not run other teams’ services. The distinction matters more than any org chart can show: a reliability team that runs everyone’s services soon becomes the only group that understands them, whereas one that teaches and rehearses leaves the understanding where the pagers are.
Figure 1.3 — Where Encore runs: two EU regions of Kubernetes cells and serverless edges, reconciled from one Git repository. The seat ledger commits each write to a majority of five replicas in three locations, two in each region and a witness in a third, which is why losing a region loses no sale.
The figure’s caption compresses an important idea that later chapters unpack. Because a seat sale counts as committed only once a majority of the five replicas has recorded it, no single location holds the only copy of the truth, and the loss of an entire region leaves enough replicas elsewhere to carry on without forgetting a sale. The Resilience book’s chapter on data and disaster recovery explains how that works and what it costs; for now it is enough to know that Seat Inventory’s promise of selling each seat exactly once is backed by more than good intentions.
One Friday runs through this book: the on-sale for Vesper Hale, a fictional artist whose 12-date European tour will bring about 1.1 million fans to the Gate in the same minute. The Resilience book ends on the morning of that on-sale, with Encore’s preparations done and the Gate about to open; this book takes the morning from 10:00. Chapter 5 fights that morning as it happens, and Chapter 6 learns from it afterwards. The chapters before them point out, one at a time, small and reasonable decisions that will matter on that morning, each defensible on its own day and by its own owners, which is how serious incidents in real systems are usually assembled. Everything else in Encore, from its tenants and cells to the change freeze and the assistant in the incident channel, is introduced in the chapter where it first does something, so that no piece arrives before the reader has a reason to care about it. For the reader who wants the whole company on one page, the appendix keeps a glossary.
1.1 Production as a Sociotechnical System
What we mean by production
Before we can ask who runs code that nobody fully read, we should be clear about where that code runs. The word production comes to us from manufacturing, where it names the floor on which real goods are made, as distinct from the laboratory where they are designed and tried. In a laboratory a failed experiment is information; on the factory floor a failed batch is a loss. Software borrowed the word because it needed the same distinction. Production is the environment in which software serves real users with real consequences: where a mistake costs money, trust or someone’s evening, and where nothing can be undone merely by closing a laptop. A bug on a developer’s machine is a puzzle to be solved at leisure. The same bug in production is an event that is already happening to someone, and it keeps happening until a person or a machine intervenes.
The factory, though, is not the most useful picture of what production is like to run, and the theatre teaches something the factory does not. A play’s script is written once, but the production is made again every night. Each performance is assembled live by a crew that adjusts to a cold house, a sticking piece of scenery or a missed cue, and a good stage manager keeps the show running through small failures the audience never sees. That is much closer to running software than the image of a finished product rolling off a line, because a running service is never finished either: it is performed, continuously, by the code together with the people who watch over it. Encore’s Notification service did not stop needing attention once the canary promoted it; it began needing a different kind.
The analogy breaks at scale, and the break tells us something. A stage crew can see the whole stage, and when an actor misses a mark, someone in the wings notices within seconds. Encore runs thousands of copies of its services for millions of people it never sees, and no one at Encore can look at that stage. Everything its engineers know about what the system is doing, they know indirectly, through measurements, logs and the occasional complaint. Between what is actually happening and what anyone can perceive there is always a gap, sometimes small and sometimes wide enough to hide a duplicate ticket. Most of the techniques in this book live in that gap: they exist either to narrow it or to let people act sensibly in spite of it.
People and machines, jointly
The idea that a working system is made of people and machines together, and must be understood that way, is older than computing. The term sociotechnical system comes from the Tavistock Institute in London, where Eric Trist and Ken Bamforth studied British coal mines in work published in 1951. The mines had adopted the longwall method, which on paper was technically superior: it replaced small-scale digging with a long coal face worked mechanically along its length. Yet the mines had become worse. The old method had been organized around small, self-managing teams whose members could each do several jobs and who looked out for one another underground, and those teams were what had kept the work safe. The longwall method broke them apart into a sequence of narrow, specialized shifts, each dependent on the one before and none responsible for the whole. Better machinery, installed into a worse social arrangement, produced a worse mine. Trist and Bamforth’s conclusion, which nearly every industry has had to relearn since, was that the social and the technical parts of a work system cannot be optimized separately. Improve one in isolation and you may well damage the system you meant to improve.
With that history behind us, we can state the definition plainly. A sociotechnical system is one whose behavior is produced jointly by its people and its technology, so that neither can be understood or improved without the other. Production is such a system, and its reliability is no more a property of the code than a ship’s safety is a property of its hull. A sound hull matters a great deal, but a ship is kept safe by its crew’s watchkeeping, its charts, its maintenance and the judgment of whoever is on the bridge, and the same hull can come home or be lost depending on all of these. In the same way, a reliable service is not something that was built once and now sits there being reliable. Its reliability is produced continuously, by five kinds of work: people knowing what the system is doing, changing it carefully, withstanding what goes wrong, responding when it does, and learning afterwards. Those five verbs organize this book and its companion, the Resilience book
: that book takes up changing and withstanding, the engineering of the system itself, while this one takes up knowing, responding and learning, together with the automation and the organization that run beneath all five. In my experience a team which neglects any one of them will sooner or later find that the other four cannot make up for it.
The Notification rewrite from this chapter’s opening shows what the definition means in practice. Judged as an artifact, the new service was better than the old one: a newer framework and better retry semantics. Judged as part of a sociotechnical system, it was briefly worse, because its operators understood less of it. Forty files had arrived that no person had read in full, and knowledge of how those files behaved under awkward timing existed in none of Encore’s people. The engineer who spent 20 minutes on the change was doing sociotechnical work in the plainest sense. Finding the duplicate-ticket case was half of it; the other half was what she did next, which was more durable than remembering the case: she wrote it down as the specification-level idempotency test we met in the opening. That test moved a piece of human knowledge into a check that would outlast her attention, so that the next change, whether made by her, by a colleague or by another agent, would be held to the same promise. Turning what one person noticed into something the system enforces is the oldest move in operations, and Section 1.2 follows it back to the machine room.
One more distinction is worth carrying forward, and it comes from the Architecture book: the difference between complexity that is essential to a problem and complexity that we add by the way we solve it. In that language, Encore’s 500× spike on a Friday morning is essential complexity. It comes from the business itself, from a million fans wanting a few thousand seats at the same moment, and no amount of good engineering will make it go away; the best we can do is meet it. The gap between what a system does and what its operators perceive is different in kind. It is usually accidental, the by-product of dashboards that measure the wrong thing, behavior no one wrote down and changes no one fully read. Accidental complexity can be reduced, and much of operations is the patient work of closing that gap, one test, alert or runbook at a time.
Recap. Production is where software meets real consequences, and it is better pictured as a performance renewed every night than as a finished product. It is a sociotechnical system: its reliability is produced jointly by people and machines, through knowing, changing, withstanding, responding and learning. Much operational work is the closing of an accidental gap, the one between what the system does and what its people can perceive.
Exercise 1.1. List the last five times a person, rather than an automated check, prevented or shortened a problem with a service you know. For each one, ask whether that person’s knowledge now lives in a test, an alert or a runbook, or whether it still lives only in their head. Where it lives only in a head, write down what it would take to move it into the system.
1.2 From Operators to SRE — A Short History of Running Software
The machine room
In September 1947 someone working on the Harvard Mark II taped a moth into the machine’s logbook, beside the note “First actual case of bug being found.” The moth is the part of the story everyone remembers, but the logbook is the more instructive object. Someone had thought it worth keeping a written record of what the machine did, when it misbehaved and what was done about it, so that the next person on shift could know what the last one had seen. Running a computer has always meant recording what went wrong, and that habit is older than almost anything else in our trade. The incident timelines of Chapter 5, with their minute-by-minute entries, continue the same record on the same principle.
Through the 1950s and 1960s, as machines such as the IBM 704 and later the System/360 spread through universities, banks and government, looking after them became a job in its own right. The computer operator was the person who kept a machine running and fed it work, and the job came with its own shifts and skills. Most installations ran as a closed shop, which is to say that programmers did not touch the machine at all. They handed their programs, punched onto decks of cards, across a counter, and came back hours later to collect the printout. Behind the counter, operators did everything else: they mounted the tapes each job needed, watched the console for signs of trouble, and restarted jobs that had failed. To restart a job they followed instructions the programmer had left, often kept in a binder called a run book. The word has survived, barely changed, in the runbooks Encore’s teams keep today.
The operator’s position deserves a closer look, because it is the position Encore’s on-call engineer stood in on the morning after the Notification rewrite. Operators ran programs they had not written and could not usefully read; there was neither the time nor, usually, the training to work out what a deck of cards was meant to do. What made the arrangement workable was a kind of contract between the authors and the operators, in three parts. The program declared what it needed. The run book said what to do when it stopped. And the operator’s judgment covered whatever the first two had not anticipated. When the contract failed, it tended to fail at one of those three parts. The instructions had gone stale, because the program had changed and the binder had not. The program had been written for the happy path and had nothing sensible to say when anything else happened. Or the operator was left improvising at 3 a.m. while the people who understood the program slept. Each of those failures has a modern form, and a good deal of this book is about preventing them.
Automating the operator
Seen from far enough away, much of computing’s history is the operator’s work being absorbed, piece by piece, into software. One of the first pieces went early. In 1956 General Motors Research and North American Aviation wrote GM-NAA I/O for the IBM 704, one of the first operating systems, and their chief aim was to cut the idle time between jobs, the minutes in which an expensive machine waited for a person to load the next one. Moving from one job to the next had been the operator’s task; now a program did it. Spooling and time-sharing absorbed more of the role in the years that followed. By the 1980s the operator’s work had passed to the system administrator, who tended fleets of smaller Unix machines rather than one large one, and who did much of that tending through scripts. The scripts are the telling detail. The administrator was no longer only doing the work but writing it down in a form a machine could carry out unattended, which is the same move, made in code, that the run book had made on paper.
Aviation went through a parallel change, and setting the two side by side shows what kind of change it was. Large airliners once carried a third crew member, the flight engineer, who managed the engines, fuel and electrical systems from a panel of their own. From the early 1980s new wide-body airliners, beginning with the Boeing 767 and the Airbus A310, were certified to fly with two pilots, and the flight engineer’s panel was folded into automation. The role did not so much vanish as dissolve. Part of it went into the aircraft’s design, which now watched over its own systems, and part went into the pilots’ training, which now covered what the engineer used to know. Computer operations dissolved in the same way: into operating systems, then into scripts, and eventually into the code itself, as services learned to restart, scale and report on themselves.
This analogy, too, has a limit worth marking. An airliner type is certified once and then flown with its design largely settled, so the automation that replaced the flight engineer could be examined thoroughly before anyone depended on it. Software changes daily, and the automation that takes over an operator’s task is itself changed, redeployed and occasionally broken along with everything else. We never get to certify our automation once and stop worrying about it. Yet both histories share one constant. Every era of automation absorbed the tasks that could be written down, and every era left behind the thing that could not be: judgment for the failure nobody had written down. That remainder is still the operator’s job, and it is the part of the job this book cares about most.
The wall, and two ways over it
As software moved onto the web, the problem changed shape, from a technical one to an organizational one. Developers were rewarded for change, for shipping features, while operations staff were rewarded for stability, for keeping the site up. Each group behaved sensibly given what it was measured on, and the result was a wall between them, over which developers threw finished releases for operations to deal with. The IT Infrastructure Library (ITIL), a body of service-management guidance published by the UK government from the late 1980s, brought real discipline to how changes were proposed, approved and recorded. But it often institutionalized the wall, turning the hand-off from one group to the other into a formal process rather than questioning why the hand-off existed.
Two answers emerged. The first came from Google. In 2003 Benjamin Treynor (now Ben Treynor Sloss) joined the company to run a production team of seven engineers, and he staffed it with software engineers who treated operations as a software problem. That choice led to three working rules. Repetitive operational work was to be automated, as any software engineer would want to automate it. The manual share of each engineer’s time was capped at half, so that the other half went into the engineering that reduced the manual work. And the balance between change and stability, which the wall had left to argument, was to be set by measuring it, so that the two sides could agree on a number instead of a mood. Treynor later put the idea in a line that has been quoted ever since: “SRE is what happens when you ask a software engineer to design an operations team.”
The other answer came from the web companies. In 2009 John Allspaw and Paul Hammond described Flickr’s practice of deploying more than 10 times a day, made possible by developers and operations engineers working together, and later that year Patrick Debois organized the first DevOpsDays in Ghent. Where SRE built a better kind of operations team, DevOps tried to take down the wall itself. Amazon’s “you build it, you run it”, which the Architecture book discussed, went furthest: it pushed the pager to the team that wrote the code, so that the people who made a change were the people woken when it failed.
Encore has inherited all three of these ideas, as most organizations of its size have. Its teams run their own services, in the spirit of “you build it, you run it”. A small Reliability team works in the SRE tradition, owning the tooling and practices that help every other team measure and protect its reliability. And the incident commander rotation borrows trained engineers, most of them senior, from everywhere, so that a serious incident is led by someone practiced at leading incidents. Beneath all three, the question is still the one the closed shop faced across its counter: how do we run software whose authors are not in the room? Until recently the authors were at least somewhere, asleep or busy on another project, and could in principle be woken and asked. With a coding agent as the author, as with the Notification rewrite, they may not be anywhere. Figure 1.4 sets the lineage on one line.
Figure 1.4 — Who has stood between the code and its users, from the 1947 logbook to today.
Recap. Operators have always run code they did not write. They have relied on a contract with its authors, made of declared needs and written instructions, and on their own judgment for the cases nobody wrote down. Each era of automation has absorbed more of the written part, and none has removed the need for judgment. SRE and DevOps were two answers to the wall between those rewarded for change and those rewarded for stability, one building a better operations team and the other dissolving the boundary, and today they are usually combined, as they are at Encore.
Exercise 1.2. Draw your organization’s closed-shop counter, the point where code passes from those who wrote it to those who run it. Who stands on each side? What crosses the counter with the code: tests, dashboards, runbooks, a conversation? And what is lost in the crossing, the knowledge that stays with the authors but that the people running the code will need at 3 a.m.?
1.3 Reliability, Availability, and What Users Actually Feel
Definitions worth quoting
Before we can say whether Encore is running well, we need words precise enough to argue with, and the best of them are older than the web. They come from the reliability engineers of the 1950s, who faced military electronics that failed at alarming rates and needed a way to say, in numbers, how much better a radio or a guidance system had to become. The definition they settled on has held up remarkably well: reliability is the probability that a system performs its intended function, under stated conditions, for a stated period.
Each of the three qualifying phrases in that definition does real work, and each is worth a moment. Intended function means that a system can be running and still be failing: a seat map that loads quickly but shows the wrong seats as free is up, and it is not doing its job. Stated conditions means that reliability is always reliability under some load and some circumstances, so the fact that Encore behaves beautifully on a quiet Tuesday tells us nothing about how it behaves during an on-sale, when the traffic is 500 times greater. Stated period means that reliability describes a window of time, never a single instant; a system is reliable over a month or over an on-sale hour, and the question “is it reliable right now?” has no answer.
Availability is a narrower idea: the fraction of time, or of requests, for which the system is able to serve. Its classical steady-state form comes from the same engineering tradition and is easy to state. Take the mean time between failures (MTBF), the average stretch of good service between one failure and the next, and the mean time to repair (MTTR), the average time it takes to restore service once a failure has happened. Availability is the share of each cycle spent working, which is MTBF divided by the sum of MTBF and MTTR.
The formula looks innocent, but it carries a design lesson. Availability can rise in two ways: by failing less often, which lengthens the time between failures, or by recovering faster, which shortens the time to repair. A short worked example shows that the two levers are equally strong. Suppose a component fails on average once every 1,000 hours and takes an hour to restore; it is available 1,000 hours out of every 1,001, or about 99.9% of the time. Doubling the time between failures to 2,000 hours, with the same hour of repair, gives about 99.95%. Halving the repair time to half an hour, with failures still every 1,000 hours, gives the same 99.95%. On paper the two improvements are worth exactly the same.
In practice they rarely cost the same. Modern systems are built from many parts, from containers and network links to managed services and other teams’ APIs, and those parts fail partially and often. Making every one of them fail half as often is expensive and frequently impossible, because many of them belong to someone else. Making the whole system notice a failure and route around it in half the time is usually far cheaper, and it helps no matter which part failed. That is why “expect failures” was the first tenet of James Hamilton’s 2007 paper on internet-scale services: once we accept that parts will fail, the engineering effort moves from preventing every failure to recovering from each one quickly. Figure 1.5 draws the arithmetic.
Figure 1.5 — Availability as mean time between failures over the sum of that and mean time to repair, with lines of equal availability. Halving recovery time raises availability as much as doubling the time between failures. The Resilience book’s first chapter turns availability into targets.
There is a trap here, and many organizations have walked into it. The lesson of Figure 1.5 concerns design: build the system so that it can recover quickly. It does not follow that average recovery time is a good number to manage a team by, because real incidents are too few, and their durations too wildly skewed, for an average to mean much. A quarter might contain six incidents, five of them resolved in minutes and one that ran for hours, and that one long incident decides the average almost on its own. Štěpán Davidovič showed by simulation at Google that even a genuine 10% improvement in incident durations is usually lost in the noise of MTTR, so a team that really did get better would often see no change in the number, and a team that got no better might see the number improve by luck. The VOID, Courtney Nash’s public collection of thousands of incident reports, shows the same skew across many organizations. So this book judges recovery in other ways: by drills, where we can rehearse recovery under conditions we choose, and by what each real incident teaches us, which is the subject of Chapter 6.
Reliability and availability are not the whole story, and for Encore they are not even the most important part of it. A third property matters most. Correctness is the property that the system’s answers are right: each seat is sold once, every fan who was charged gets a ticket, and each ticket is delivered once. The dependability literature does not ignore correctness; it folds it into the definitions themselves, so that Avižienis and colleagues’ 2004 taxonomy defines availability as readiness for correct service. But availability as we usually measure it counts responses. It records whether the system answered, and says nothing about whether the answer was right, while users judge exactly the thing it leaves out: what the system said.
The Notification rewrite from this chapter’s opening shows how wide that gap can be. Had the engineer not caught the retry bug before it merged, the duplicate ticket would have appeared nowhere in Encore’s availability measure, because every duplicate was a successful delivery. The dashboard would have stayed green while fans opened their wallets and found two copies of one seat, and wondered which one would get them through the door.
Vital signs and the patient
If availability can be perfect while fans are confused and angry, we need a better way to think about what our measurements tell us, and medicine offers the right analogy. A hospital monitors pulse, temperature and blood pressure because they are cheap to measure, can be measured continuously, and correlate well with health. Yet every clinician knows that a patient can have normal vital signs and be seriously unwell, which is why the patient’s own account of how they feel counts as evidence too, and why a good doctor asks.
Our systems have the same two kinds of evidence. Health checks, CPU graphs and pod counts are a system’s vital signs: cheap, continuous and usually correlated with things going well. What the fan experiences in the queue and at checkout is the patient’s account. Most of the time the two agree. The outages that surprise us, the ones where the on-call engineer stares at a green dashboard while the support queue fills, hide in the places where they disagree. Here the analogy breaks, and it breaks in our favor. A doctor can only ask the patient, and must interpret what the patient says; software can measure its users’ experience directly, by recording each fan’s request and whether it succeeded from the fan’s point of view, as Chapter 4 shows. Figure 1.6 lays some of these disagreements side by side for Encore.
| What the system reports | What the fan feels |
|---|---|
| All Seat Inventory pods healthy | “Seat unavailable” on every seat I click, because one shard is mid-failover |
| Payment API 99.95% available | My card was charged and the page spun until it timed out |
| Notification delivery success 100% | I got my ticket twice and don’t know which one is valid |
| Sale Gate p99 latency 40 ms | I have been in the queue 25 minutes and the position hasn’t moved |
| Bot Screening blocked 2% of sessions | I am a real fan and I was told I am a robot |
Figure 1.6 — Vital signs against the patient’s account. Each left-hand statement can be true while the right-hand one is also true.
Every row of Figure 1.6 is a case where both columns are honest. The pods really are healthy, and the fan really cannot buy a seat, because the shard holding that fan’s seats is in the middle of handing leadership from one replica to another. The Gate really does answer quickly, and the fan really is stuck, because a fast answer that says the queue has not moved is no help to anyone. None of these is a measurement error; each is a measurement of the wrong thing for the question the fan is asking.
Two features of user experience come out of these rows, and they shape the rest of the book. The first is that failure is usually partial. Encore is rarely simply up or down; one shard is failing over, one payment provider is slow, one tenant’s cell is unhealthy, and everyone else is fine. So the useful questions about an incident are “for whom?” and “how many?”, and a measurement that averages over all fans will hide a failure that hits a tenth of them completely.
The second is that users feel their own latency, never the median. A fan does not experience Encore’s typical response time; the fan experiences this request, now, and if it is slow, the fact that most requests are fast is no comfort. This matters more than it first appears, because a single purchase touches a dozen services. Suppose each of them is slow on only 1% of requests. The chance that one fan’s purchase avoids every slow response is 0.99 multiplied by itself 12 times, about 89%, which means roughly one purchase in nine meets the slow tail of at least one service. A rare slowness in each part becomes a common experience for the whole, as the Architecture book’s tail-at-scale argument showed, and that is why later chapters measure percentiles and individual journeys instead of averages.
Recap. Reliability is the probability of doing the intended job under stated conditions over a stated period. Availability is narrower: the share of time or requests the system can serve. Correctness, whether the answers are right, is a third property that availability as commonly measured cannot see. Fast recovery is usually the cheapest route to availability, so we design for it, but we do not steer by average recovery time, which is too noisy to trust. And because failure is partial and each user feels their own latency, we ask who was hurt and how many, and listen to the patient as well as the vital signs.
Exercise 1.3. For a user journey you own, write five rows in the style of Figure 1.6: on the left, something your system reports as healthy; on the right, something a user could be feeling at the same moment. Which of the right-hand column could you detect today, and how?
1.4 The Modern Production Stack
Layers, and why we need them
A touring concert production is organized in layers. The riggers hang the structure that everything else will rest on; the power crew brings in electricity and distributes it safely; the sound and lighting desks run their own systems on top of that power; and the stage manager calls the cues that turn all of it into a show. Each layer has its own specialists, its own vocabulary and its own checklists, and each depends on the layers beneath it. The lighting designer does not need to know how the truss was rated, only that it was rated and will hold. That arrangement is what lets a few dozen people assemble, in an afternoon, something none of them could build alone.
Production software is organized the same way, and for the same reason. Hierarchy is how we master a whole that is too complex to hold in one head at once: each layer hides its detail from the layers above it, so that the people working at one level can reason about the level below through a small, stable promise instead of through everything that lies beneath. The idea of arranging operational practice as a layered hierarchy has a precedent. Google’s Site Reliability Engineering (2016) includes a Service Reliability Hierarchy, drawn by Mikey Dickerson, which stacks the practices from the bottom up: monitoring, then incident response, then postmortems, then testing and release, then capacity planning, and finally development and product at the top. The ordering carries an argument, and it is worth following. A team cannot respond to a problem it cannot see, so monitoring comes first; it cannot learn from an incident it never handled, so postmortems sit above incident response; and only once those foundations are in place does it make sense to invest in the higher practices. No standard production stack exists, and I would distrust anyone who claimed to have one. The stack in this section is a teaching device, offered in that tradition, and its value lies in the questions it helps us ask, not in any claim that the world is built this way.
Let us walk it from the bottom up. At the foundation sits the runtime and its control plane: the clusters, functions and managed services on which our code actually executes. Those resources are declared as code and reconciled continuously, which is to say that automated controllers keep comparing what we declared with what is actually running and keep acting to close any difference between the two. Above the runtime, delivery carries change into production through pipelines, canaries and feature flags. Telemetry reports what the system is doing, and SLOs judge whether what it is doing is good enough for its users. When users are hurting, the incident process takes over, and once the hurting stops, learning decides what changes as a result. Alongside all of these runs the platform, which packages the lower layers into paved paths so that each of Encore’s 40 teams does not have to assemble them from parts. Two concerns sit on no single layer. Security operations is one of them, because attackers use our runtime, our pipeline and our credentials as readily as we do, and a defense placed on only one layer leaves the others open. AI workloads are the other, because they run on all of the layers at once and bring their own peculiarities to each. Figure 1.7 lists the stack’s rows, which is not the bottom-to-top order we have just walked, and says where each row is developed, and that makes the figure a reading map for both companion books as much as a diagram. This book takes the rows that concern the people and machines who run the system: the safety foundations that explain why complex systems fail, telemetry, incident response, learning, and the organization. The Resilience book takes the rows that concern engineering the system itself, from objectives and capacity through the runtime, delivery, resilience, data, security and AI workloads. The figure also names several layers the walk passed over, such as the capacity, resilience and data concerns that sit between telemetry and the runtime.
| Layer | The question it answers | Encore today | Where it is developed |
|---|---|---|---|
| Safety foundations | Why do complex systems fail? | The first outage, re-read | This book, Chapters 2 and 3 |
| SLOs and error budgets | Is it good enough for users? | Seat-map and tenant SLOs | Resilience book, Chapter 1 |
| Telemetry and observability | What is it doing, and why? | Traces across the purchase path | This book, Chapter 4 |
| Capacity and cost | Will it hold, and at what price? | 1,200 fans/s, four shards, cost per ticket | Resilience book, Chapter 2 |
| Runtime and control plane | Where does it run, and what keeps it there? | Kubernetes cells, serverless Gate, GitOps | Resilience book, Chapter 3 |
| Delivery | How does change arrive safely? | Canaries, flags, the on-sale freeze | Resilience book, Chapter 4 |
| Resilience | What happens when parts fail? | Retry budgets, load shedding, cells | Resilience book, Chapter 5 |
| Data and recovery | What is lost, and how fast do we return? | A seat ledger that may lose nothing | Resilience book, Chapter 6 |
| Security operations | Who else is acting on the system? | Bots, leaked keys, signed artifacts | Resilience book, Chapter 7 |
| Incident response | What do we do while users hurt? | Incident commander rotation | This book, Chapter 5 |
| Learning from incidents | What do we change afterwards? | Postmortems that change the system | This book, Chapter 6 |
| AI workloads | How do we run nondeterministic components? | Support assistant, refund agent, AI gateway | Resilience book, Chapter 8 |
| Platform and organization | Who owns what? | Golden paths, the Reliability team | Resilience book, Chapter 3; this book, Chapter 7 |
Figure 1.7 — The production stack across the two companion books, not bottom to top; security and AI workloads cut across the other rows.
What the stack hides, and what it cannot
A hierarchy earns its keep only while the interfaces between its layers behave as documented. As long as each layer keeps its promise, the layers above it can safely ignore what happens underneath. Real events, however, rarely stay inside the layer where they began. Consider a single node drain, the routine operation in which the runtime moves workloads off a machine so that the machine can be upgraded or retired. In the runtime it is housekeeping. In telemetry it shows up as a latency spike while the displaced work settles elsewhere. Against an SLO it appears as a faster burn of the error budget. To the engineer on call it arrives as a page, which may become an incident, and if we are diligent the incident ends in a change to how delivery or the runtime handles drains in the future. One event has passed through five or six layers, and at each layer it looks like a different thing.
This is where the touring analogy gives out. A tour has one stage manager calling every cue from a single script, so there is at least one person who knows the whole show and the order in which things will happen. A cloud system has no such person. Its cues are called by hundreds of control loops (autoscalers, schedulers, reconcilers, deployment controllers) and none of them is aware of all the others; each acts sensibly on its own small view of the world. No layer sees the whole of an event, and part of the reason the incident process exists is to assemble that whole after the fact, from the fragments each layer holds. Figure 1.8 shows the node drain from each layer’s point of view.
Figure 1.8 — One node drain, as each layer of the stack sees it. Every layer holds a piece of the event and none holds all of it, which is why an incident needs someone to assemble the whole.
The largest outages of recent years were of exactly this kind. In July 2024 a content update to CrowdStrike’s Falcon sensor went out to machines around the world at once and crashed millions of Windows computers. In June 2025 a policy change with blank fields reached Google Cloud’s Service Control, the system that checks API requests, and crashed it in region after region. In November 2025 a bot-management file at Cloudflare doubled in size, overflowed a limit in the software that read it, and took much of Cloudflare’s network down with it. The Resilience book tells all three of those stories in its chapter on shipping change safely. In October 2025 a race between two copies of AWS’s own DNS automation emptied the DNS record for DynamoDB’s endpoint in the us-east-1 region, setting off the fourth, which Chapter 3 of this book tells. What these four have in common matters more than their details. None of them began with a broken machine, a failed disk or a severed cable, the failures our older instincts prepare us for. Each began with a change to configuration or to automation, a change that someone or something had made deliberately, and each crossed layers faster than anyone could follow it. I have come to believe that modern production failure is mostly self-inflicted, and that its blast radius is set less by the size of the mistake than by how far a change can travel before anyone sees it. That is why so much of this book and its companion is about delivery, admission and the speed of our own automation, and comparatively little is about hardware.
The stack also has a limit that no amount of layering removes, and the Notification rewrite shows it plainly. On the morning after that rewrite, every layer had done its job. The pipeline had run its checks, the canary had compared the new version against its SLO, and the result had been judged acceptable. Yet no layer had required anyone to read the 40 files, and none of them could say whether “acceptable” had been defined correctly in the first place, because a duplicate ticket counts as a successful delivery in every measure the layers knew how to take. Catching that took something the stack does not supply: a specification of behavior, written by someone who understood what a ticket is for. Layers can enforce a judgment once a person has made it and written it down; they cannot make it for us. What a system must offer to the people who make those judgments, especially when they did not write the code, is the subject of the next section.
Recap. The production stack is a teaching hierarchy in the line of Google’s Service Reliability Hierarchy: each layer hides detail from the ones above, and security and AI workloads cut across all of them. The hierarchy holds only while its interfaces behave, and real events cross layers that each see only a fragment. The great outages of 2024 and 2025 each began with a deliberate change and crossed the whole stack before anyone could follow it.
Exercise 1.4. Fill in Figure 1.7’s “Encore today” column for your own system. Mark each row strong, adequate or missing, and then pick the weakest row on your most important user journey: the one where a failure would cost you most.
1.5 Principles for Operable Systems
A definition, and a stranger
We have now seen, from several directions, the same uncomfortable fact: operators have never been able to understand everything they run. The operator behind the closed-shop counter could not usefully read the programs in the card decks, and Encore’s on-call engineer could not have read the 40 files of the new Notification service before breakfast. If complete understanding was never available, then the useful question is what a system owes to the people who must run it without that understanding. The name for the answer is operability. Operability is the degree to which a system can be understood, controlled and repaired in production by people who did not build it, under time pressure and with partial knowledge.
Each part of that definition does work. “People who did not build it” is the ordinary case, because every author will one day be asleep, on holiday or gone to another company, and with coding agents the author may never have been a person at all. “Under time pressure” matters because an explanation that takes an afternoon to assemble is no help during an on-sale that lasts minutes. “Partial knowledge” admits that the operator will always be missing something, so the system has to be designed for someone who is partly in the dark. The figure to keep in mind is a capable stranger, woken at 3 a.m., looking at this system for the first time. Operability measures how much that stranger can accomplish.
None of what follows is new, and it is worth saying so, because principles that have survived several generations of technology deserve more trust than ones invented last year. James Hamilton’s 2007 paper, which we met in Section 1.3, drawn from his experience running Microsoft’s Windows Live services, reads as a list of obligations that a service has to its operators, gathered under three tenets: expect failures, keep things simple, automate everything. AWS later wrote much of the same advice into the operational excellence principles of its Well-Architected Framework, which ask for frequent, small, reversible changes, for anticipating failure, and for learning from every operational failure. The five principles below are this book’s distillation of that tradition. They apply equally to code written by people and to code written by agents, because the stranger at 3 a.m. is in the same position either way.
Legible. A legible system tells us what it is doing, in terms of its users’ experience, without anyone having to read its source. The emphasis on users matters. A service can report healthy processes, low latency and a 100% delivery rate while fans receive their tickets twice, as Section 1.3 showed. Legibility means the system reports the things a user would care about, in a form an operator can check. Encore’s new Notification service now emits a delivery record for every ticket, carrying the order it belongs to and the attempt number. If a duplicate ever escaped, two records for the same order would appear side by side, and a simple query or alert would show it within minutes, long before the first confused fan wrote to Support.
Steerable. A steerable system offers controls that operators can turn safely and quickly while it runs. At Encore these include the Gate’s admission rate, feature flags, the ability to drain traffic away from a node or a cell, and the thresholds at which the system starts shedding load. The best controls let the operator degrade the product rather than switch it off. Hamilton described a “big red switch” that sheds non-essential work under extreme load so that the essential work can continue; on a ticket site under strain, that might mean drawing a simpler seat map and continuing to sell tickets. There is a catch, and it is why this principle carries a condition. A control that has never been turned may not work when it is needed, and a control anyone can turn is a new way to cause an outage. So controls are tested and access-controlled like any other change to production.
Bounded. In a bounded system, when something fails, the damage stays inside a known perimeter: a cell, a shard, a tenant or a slice of traffic. The Architecture book drew these boundaries for Encore. Here we add the operational condition that gives them their value. A boundary makes a bad change survivable only if changes cross it one at a time. If a new version reaches one cell first, its damage is confined to that cell while someone notices; if a configuration is pushed to every cell at once, the cells offer no protection at all, because the change has no perimeter. This is the lesson of the large outages in Section 1.4, each of which began with a change that travelled everywhere before anyone saw it. A bounded system should also be statically stable, in the Amazon Builders’ Library’s phrase: what is already running keeps serving when a control plane or a dependency fails. The seat ledger, for example, should keep selling seats even if the system that deploys and schedules it is down. The Resilience book develops both ideas in its chapter on designing for failure.
Reversible. In a reversible system, every change can be undone faster than it can do serious harm. Most changes, such as a new version of a stateless service, can be rolled back simply by restoring the previous version. Some cannot, and these are mostly changes to data: a schema migration that drops a column, or a backfill that rewrites records. Reversibility asks that we identify such changes in advance and break them into steps that can each be undone, for instance by adding a new column and copying data into it before removing the old one. The Notification canary is the plain example. Promoting a version nobody had read in full was a reasonable risk only because the previous version could be restored in minutes if the new one misbehaved.
Rehearsed. A recovery path that has never been exercised is untested, and an untested path should be assumed broken. Failover scripts go stale as the system changes around them, and a rollback that worked a year ago may depend on something that no longer exists. Hamilton insisted that rollback be tested and recovery scripts be exercised in production, where the real conditions are. Google’s Disaster Recovery Testing (DiRT) program turned such exercises into a yearly habit. The point of rehearsal is to discover the broken step on a calm afternoon, when there is time to fix it, rather than during the incident it was meant to resolve.
Ownership, which holds the principles together
The five principles describe the system, but they do not maintain themselves. Telemetry drifts, controls lose their tests and runbooks go stale unless someone is responsible for keeping them current. So the tradition insists on a sixth principle, which belongs to the organization rather than the code. Every production system needs an owner: a named team that answers its pages, keeps its runbooks current and decides when its risks are acceptable.
The Notification rewrite shows ownership at work. The Fan Messaging team woke that morning owning code it had not written, which is the operator’s oldest position, the one the closed shop knew in the 1950s. What made that position tolerable was a combination of two things. The first was a service with the five properties: it could be observed, steered, contained, rolled back and recovered. The second was an owner who used its authority, in the form of one engineer’s 20 minutes spent on the specification, which caught the duplicate-ticket risk that every automated check had passed.
A principle helps only if we can check whether a service meets it. Figure 1.9 therefore turns the six into questions that a readiness review can put to any service before launch. Each question is answered with evidence, because a confident “yes” in a meeting is not the same as a timed rollback.
| Principle | Ask before launch | Evidence that settles it |
|---|---|---|
| Legible | Can on-call tell from telemetry whether users are served correctly? | A user-journey service level indicator |
| Steerable | Which controls turn at runtime, who may turn them, and how fast? | Each control exercised, access logged |
| Bounded | How many users can one bad change or one failed dependency reach? | Per-cell rollout stages; serving survives a control-plane outage |
| Reversible | How is each change undone, and which changes cannot be? | A timed rollback; irreversible changes listed |
| Rehearsed | When were failover, restore and rollback last exercised? | Dates and durations from the last drill |
| Owned | Who answers the page, with what runbook and what authority? | A named team in the service catalog |
Figure 1.9 — Operability as a readiness checklist. Chapter 7 returns to the review that asks these questions.
I have come to believe that these principles answer the question with which the chapter began: who runs code that nobody fully read, and what do they need from it at 3 a.m.? We cannot read everything we run, and we never could; the operators of the 1950s could not, and neither can Encore’s engineers facing 40 files written overnight by an agent. What we can do is insist that whatever we run, whoever or whatever wrote it, comes with what a stranger needs to operate it at that hour: a way to see what it is doing, controls to steer it, walls to contain it, a way back, and practice in using all of them. We can also insist that someone is accountable for all of this, which matters most on the night when the stranger turns out to be us. Operability is the modern form of the contract that the run book once carried between a program and its operators. Like every contract, it is worth only as much as its enforcement, which is why the readiness review asks for evidence and why the rest of this book is largely about how that evidence is produced.
Recap. Operability is the degree to which strangers can understand, control and repair a system under pressure. Five principles, distilled from Hamilton’s 2007 advice and AWS’s operational excellence principles, describe what such a system offers: it is legible, steerable, bounded, reversible and rehearsed. Ownership holds them together, because someone must keep each property true as the system changes. Each principle also holds only under its condition: controls that have been tested, boundaries that changes cross one at a time, and rollbacks that have been practiced.
Exercise 1.5. Answer Figure 1.9’s questions for a service you own, with evidence, and score the service from one to five on each principle. For the lowest score, describe the situation at 3 a.m. in which that weakness would hurt, and the smallest change that would raise the score.
Kata: The Night Ferry
Your brief: “Tideway.” Tideway is a ferry operator, and its booking platform sells crossings on 14 island routes, about 9,000 bookings on an ordinary day. The ordinary day is not the hard one. When a storm cancels crossings, every passenger on those sailings needs a new one at once, and rebooking traffic jumps 40× within an hour. Some of those passengers are island residents travelling to hospital appointments on the mainland, and they cannot afford to be stranded. The platform is built by 22 developers in four teams. Running it falls to a three-person infrastructure team, which receives releases on Thursday evenings and holds the only pager. Half of last quarter’s code came from a contractor’s coding agent, and the contract ended in September. Tideway learns of outages when port staff phone the office. The board has asked for one thing: “fewer surprises, without slowing down.”
The brief is short, but nearly every sentence in it touches a section of this chapter, and the deliverables below ask you to make those connections explicit. Work through them in order, because each one builds on the picture the previous one leaves you with.
Deliverables:
- Sociotechnical map — Draw the people, automated systems and external parties involved when a storm forces a rebooking, and note for each who knows what about it, and how well. Section 1.1 argued that reliability is produced jointly by people and machines, so the map should show where knowledge and judgment live, and where they are missing, as clearly as it shows the boxes.
- Operations history — Place Tideway in Section 1.2’s lineage, from the closed shop to the SRE tradition. Then find its counter, the place where code passes from the people who wrote it to the people who run it, and say what crosses that counter along with the code and what is lost in the crossing. Ask the same question of the coding agent’s code, whose author is no longer there to ask.
- User-felt reliability — Build a version of Figure 1.6 for storm rebooking, setting what Tideway’s systems would report against what a passenger would feel. Include at least two rows in which availability looks healthy while residents are still being failed: the kind of gap that today surfaces only when a port worker picks up the phone.
- Stack map — Build a version of Figure 1.7 for Tideway and rate each layer strong, adequate or missing. Then choose three layers in which to invest first, and justify each choice by what it would change on the night of a storm.
- Operability review — Answer Figure 1.9’s questions for the rebooking service, with the evidence you would expect to find, or the admission that none exists. Name an owner for the contractor’s code: the team that will answer its pages, keep its runbooks current and decide which of its risks are acceptable. Finish with a 90-day plan.
Rubric:
| Criterion | The question to ask yourself |
|---|---|
| Sociotechnical view | Does the map show people and the judgment they exercise, or only boxes and arrows? |
| Honest lineage | Have you recognized the Thursday handover as a closed-shop counter, and said what is lost when releases cross it? |
| User truth | Would a resident stranded on the wrong side of the water recognize the right-hand column of your table as their own experience? |
| Prioritization | Are the layers you chose the ones a storm rebooking actually passes through, rather than the most fashionable ones? |
| Ownership | Does the contractor’s code now have a named owner who can operate it without first reading all of it? |
| Restraint | Could 22 developers and three operators carry out this plan, and does it honor the board’s “without slowing down”? |
The last criterion deserves a word, because an ambitious answer fails it most easily. A plan that rebuilds Tideway’s operations from the ground up may be right in every particular and still be useless, since a small organization can absorb only so much change while it keeps its ferries sailing. Good answers to this kata usually look modest on paper: a handful of changes, each chosen because it closes a gap that the next storm would otherwise find.
Where you now stand
You can now describe production as a sociotechnical system, whose reliability its people and machines produce together. You can place your own organization in the history of running software and find the counter where its code changes hands. You can separate what a dashboard reports from what a user feels, map the layers of the production stack, and judge whether a system is operable no matter who, or what, wrote its code. What you still lack is an account of how such systems actually fail, and why that failure is so seldom the work of a single broken part. Chapter 2 turns to safety science, from Three Mile Island onward, for that account.
References
- James Hamilton — On Designing and Deploying Internet-Scale Services. LISA ‘07, USENIX, 2007 — free online.
- Betsy Beyer, Chris Jones, Jennifer Petoff, Niall Richard Murphy (eds.) — Site Reliability Engineering. O’Reilly/Google, 2016 — free online.
- Amazon Web Services — Operational Excellence Pillar: Design Principles. AWS Well-Architected Framework — free online.
- Štěpán Davidovič — Incident Metrics in SRE. O’Reilly/Google, 2021 — free online.
- Courtney Nash — The VOID Report. Verica, 2021–2022 — free online.
- Algirdas Avižienis et al. — Basic Concepts and Taxonomy of Dependable and Secure Computing. IEEE Transactions on Dependable and Secure Computing, 2004 — free online.
- Becky Weiss, Mike Furr — Static Stability Using Availability Zones. Amazon Builders’ Library, 2020 — free online.
- CrowdStrike — External Technical Root Cause Analysis: Channel File 291. 2024 — free online.
- Google Cloud — Multiple GCP Products Are Experiencing Service Issues (incident report). 2025 — free online.
- Amazon Web Services — Summary of the Amazon DynamoDB Service Disruption in the Northern Virginia (US-EAST-1) Region. 2025 — free online.
- Matthew Prince — Cloudflare Outage on November 18, 2025. Cloudflare blog, 2025 — free online.
- E. L. Trist, K. W. Bamforth — Some Social and Psychological Consequences of the Longwall Method of Coal-Getting. Human Relations, 1951.
Chapter 2: How Complex Systems Fail — Safety Science for Software
“Complex systems run in degraded mode.” — Richard Cook
At four o’clock in the morning on 28 March 1979, the pumps feeding water to the steam generators of Unit 2 at Three Mile Island, near Harrisburg, Pennsylvania, stopped. What followed was the worst accident in the history of American commercial nuclear power, and yet nothing in it was exotic. A valve stuck open, and the light in the control room that was meant to show the valve’s state reported only that the command to close it had been sent. The operators were conscientious people, and they did what their training and their instruments told them to do. In doing so they starved the reactor core of the water it needed. By the time anyone understood what was really happening, about half the core had melted.
The accident is usually told as a story about operators who made mistakes, and that version is comforting, because it suggests the cure is simply better operators. Charles Perrow, a sociologist who studied organizations, told it differently. In Normal Accidents (1984) he argued that Three Mile Island was a property of the kind of system the plant was, rather than a failing of the people who happened to be on shift. Its parts could interact in ways nobody had anticipated, and they were bound together so tightly that there was no time to understand those interactions before they did harm. In systems built that way, Perrow said, accidents are normal. He did not mean frequent. He meant rare, perhaps, but inevitable: they follow from how the system is put together, so no amount of care at the controls can rule them out. That one word opened a line of thought that runs through the work of Reason, Rasmussen, Cook, Dekker, Hollnagel, Woods and Leveson, and it is the foundation on which this book rests.
It belongs in a book about running software because our systems have grown into the shape Perrow worried about. A modern purchase path is a web of services, shared connection pools, retries, autoscalers and health checks, each sensible on its own and all of them able to affect one another in ways no architecture diagram shows. So this chapter asks a plain question: why do carefully built, well-defended systems still fail, and what does that imply for the people who run them? The safety scientists offer several answers, each a different model of how failure arises, and every model here ends in something a team can actually do. Some of those practices are long proven; others are still young in software. I will say which is which as we go, because an idea borrowed from another field deserves to be judged by how well it has traveled.
Encore gives us two events to re-read in this light. The first is the retry storm that followed a slow payment provider, which we will come to see as a textbook case of tangled interactions under tight coupling. The second is a failure that did not happen: the duplicate ticket that one engineer caught in an agent-written change. It shows the other half of the story, the ordinary daily work by which people keep systems safe, which rarely gets told because nothing went wrong. (Chapter 1’s map of Encore shows where each piece sits.)
2.1 Normal Accidents — Coupling and Interactive Complexity
What happened at Three Mile Island
The chain of events is worth following slowly, because every link in it was reasonable. When the feedwater pumps stopped, the plant lost its way of carrying heat away from the reactor, and pressure in the reactor’s cooling system began to rise. Two protective responses followed, both exactly as designed: a relief valve on the pressurizer (the vessel that keeps the cooling water under pressure) opened to let off the excess, and the reactor shut itself down. Seconds later, with pressure falling again, the control system commanded the relief valve to close. The valve did not close. For more than two hours it stood open and vented coolant into a drain tank, and the water that should have been covering the core quietly left the system.
Nobody in the control room knew this, and the reason is instructive. The indicator light for the relief valve went out, which the operators reasonably read as “the valve is closed”. But the light was wired to report only that the signal to close had been sent. It described the command and said nothing about the valve itself, so the one instrument that could have revealed the leak told a comforting and false story. Meanwhile a second, unrelated fault was waiting: two valves on the backup feedwater lines had been left shut after maintenance, so the backup supply that should have taken over could not reach the steam generators at first. Amid more than a hundred alarms, the operators fixed their attention on the pressurizer level, and they watched it rise. Their training had taught them that the worst thing a pressurizer could do was fill completely with water, because a full pressurizer can no longer cushion pressure changes. So they did what their training told them and throttled back the emergency cooling that had started automatically. What they could not see was why the level was rising. Steam was forming in the overheating reactor, and the expanding bubbles were pushing water up into the pressurizer. The core was being uncovered while the instrument they trusted most said the system was flooding.
Read this way, the story has no villain. No single part broke in a way that explains the outcome, and there is no step at which a reasonable person, knowing only what the operators knew at that moment, would obviously have acted otherwise. The stuck valve, the misleading light, the closed feedwater valves and the training that warned against a full pressurizer were each small and survivable alone; what made them deadly was the way they met. The presidential commission that investigated the accident reached a correspondingly broad verdict, faulting training, procedures, control-room design and the regulator alike. It was Perrow who explained why a systemic answer was the right one, and why we should expect accidents like this in systems built like this.
Two dimensions of trouble
Perrow’s explanation rests on two questions we can ask of any system: how its parts interact, and how tightly they are bound together. Each question has two broad answers, and together they give a map.
The first question concerns interaction. In a system with linear interactions, parts affect each other in expected, visible sequences, like stations on an assembly line: if one station stops, the next one starves, and everyone can see why. A system has interactive complexity when its parts can interact in unplanned and often invisible ways, through shared components and feedback loops, so that a failure in one place appears as a symptom somewhere else. Three Mile Island was full of such interactions. A relief valve and a level gauge are not connected on any drawing, yet the open valve made the gauge lie.
The second question concerns coupling. A tightly coupled system has little slack: its processes run fast, cannot be paused while someone thinks, must happen in a fixed order, and have few substitutes for parts that fail. A loosely coupled system has buffers, spare time and alternative paths, and so it can tolerate a fault while people work out what is going on. A reactor that heats up within minutes of losing cooling is tightly coupled; a post office, where a delayed sorting machine means letters wait in a bin until morning, is loosely coupled.
Software engineers will hear an echo here. We have long used the word “coupling” to mean how much one module depends on another’s internals. Perrow’s sense is related but not the same. He is asking about time and slack in operation, about whether a disturbance in one part reaches another part before anyone can intervene. Two services can have beautifully separated code and still be tightly coupled in Perrow’s sense, if one waits synchronously on the other with no buffer between them.
Placing the two questions on two axes gives Perrow’s chart, shown in Figure 2.1 with his examples alongside some software analogues of our own.
| Linear interactions | Complex interactions | |
|---|---|---|
| Tight coupling | Dam, power grid · a batch payment file with a bank cutoff | Nuclear plant, chemical plant · a synchronous service mesh under peak load |
| Loose coupling | Assembly line, post office · a nightly report job | University, research lab · an event-driven system with durable queues |
Figure 2.1 — Perrow’s interaction and coupling chart. His examples come first in each cell; the software analogues after them are ours. Normal accidents live in the top-right cell.
The top-right cell is where the trouble lies, and the reason is subtle: each property defeats the usual remedy for the other. In a linear system, we can prevent accidents by prediction, since we can trace the sequences in advance and guard each one. Interactive complexity takes that remedy away, because the dangerous interactions are precisely the ones nobody foresaw. When we cannot predict, we fall back on people, trusting operators to notice the surprise, understand it and act. Tight coupling takes that remedy away in turn, because it gives them no time; the disturbance has spread before anyone could understand it. A system with complex interactions but loose coupling, like a university, is full of surprises yet forgiving, because there is usually time to sort them out. A tightly coupled but linear system, like a dam, is unforgiving but predictable, so its failure modes can be designed against. Only when both properties hold together do we lose both defenses at once, and that is where Perrow’s word “normal” applies. In such systems accidents are not a sign that someone was careless. They are what the system’s structure makes inevitable, given enough time.
Perrow’s most uncomfortable observation follows directly from this reasoning, and it concerns safety devices. Our natural response to an accident is to add protection: another alarm, another interlock, another redundant part. Yet every one of those additions is itself a component that can interact with the others, so each one raises the system’s interactive complexity a little. Protection added without care can become a cause of the next accident.
History supplied a stark example well before Perrow wrote. At the Enrico Fermi 1 reactor near Detroit in 1966, a zirconium plate had been installed as a safety feature. It broke loose and blocked the flow of coolant, causing a partial meltdown. The device meant to protect the reactor was the thing that damaged it.
Software has its own safety devices that cause accidents, and they are often the automated ones we are proudest of. On 7 December 2021, AWS’s us-east-1 region was impaired for hours after an automated activity to scale capacity in its internal network triggered a surge of client connections that congested the devices between networks. Automatic scaling exists to keep systems healthy under load. Here it was the trigger for an unhealthy system. I have come to believe that this pattern, a protective mechanism turning into the path of harm, is the most important thing Perrow teaches software engineers, because our systems are thick with exactly such mechanisms, and we rarely test how they behave together.
Encore’s retry storm, re-read
Encore’s first big outage, told in the Architecture book
, looks different through Perrow’s eyes. The facts are short. The payment service provider (PSP) slowed down, its responses taking 8 s instead of the usual 200 ms. Because each payment call now held a connection forty times longer than before, the connection pools ran dry. The health checks shared those same pools, so they could not get connections either, and they began to fail. The orchestrator, reading failed health checks as dead instances, restarted instances that were in fact healthy, merely waiting. The autoscaler read the same failures as a need for more capacity and added instances, and each new instance opened still more connections to a provider that was already struggling. Meanwhile retries at several layers of the stack each did their job independently, so a single failed purchase could become many attempts, multiplying the load on the PSP just when it could least bear it.
Now look at that list of actors. Health checks, restarts, autoscaling and retries are every one of them a safety device, added to make Encore more resilient, and each was sensible alone. The outage came from their interaction through a shared resource, the connection pool, and that interaction appeared on no architecture diagram. This is interactive complexity in its purest form, and it was made far worse by tight coupling: the purchase path called the PSP synchronously, inside a 3 s checkout budget, with no buffer and no alternative. Encore had built itself a small system in the top-right cell of Figure 2.1 without ever deciding to.
The fixes map neatly onto Perrow’s two axes. The first set reduced the interactions. Retry budgets limit how much extra traffic retries may add, and keeping a single retry layer means one failure produces one bounded set of retries instead of a multiplying cascade. These are the best-proven remedies in this chapter. Google’s SRE book caps retries at three per request and at about 10% of a client’s traffic, and Amazon’s Builders’ Library advises retrying at one point in the stack. To see why the single layer matters, imagine three layers that each try a call three times: a single request at the bottom can become 27 attempts at the top, which is a load amplifier wired straight into the failure path.
The second fix loosened the coupling. Encore added a second PSP, and when the first falters, new payments move to the second. Perrow counted substitutable supplies as a mark of loose coupling, and that is exactly what a second provider is: an alternative path, so that one supplier’s trouble no longer stops the whole process. For the rare case when both providers falter, Encore added slack in time as well. A verified fan’s seats are held for up to 20 minutes while payment is pending, so the purchase can wait for a provider to recover rather than failing.
Perrow would have predicted what happened next, and it is worth being honest about it: the loosening brought interactions of its own. A circuit breaker, the component that decides when to switch providers, can flap, switching back and forth between them as conditions hover near its threshold. Idempotency keys, the tokens that stop a retried payment from charging a fan twice, are valid only at the provider that issued them, so a key from one PSP means nothing at the other, and a payment cannot simply be retried across the switch. And a hold that lasts 20 minutes is an attractive thing to collect; bots would happily gather pending holds to keep seats off the market, which is why the holds are capped per fan and lapse back to sale when unpaid. None of this argues against the second PSP. It argues for going in with open eyes, budgeting for the new interactions as part of the cost of the change.
What I take from Perrow is the chart as a diagnostic lens. When something goes wrong, the instinctive question is who failed. Perrow teaches us to ask a prior question: which cell was the system in? If it was in the top-right cell, the answer to “who failed” is likely to be “nobody, in particular”, and the useful work lies in changing the system’s structure, by reducing interactions or by adding slack.
I leave aside two parts of his work. The first is his pessimism, his conclusion that some technologies are so prone to normal accidents that they should be abandoned. The high-reliability school challenged that view with studies of organizations that operate hazardous, tightly coupled systems with remarkably few accidents, such as aircraft carriers and air traffic control, and their findings suggest that how an organization behaves matters as much as how its technology is built. The second is the chart as a precise classification method. Perrow’s axes are qualitative, and nobody can measure exactly where a system sits on them, so arguing over whether a service is “really” in one cell or the next is rarely productive. The chart is most useful as a way of asking questions, not of filing answers.
In practice, that lens becomes two habits. The first is naming the couplings in every design review: for each dependency, asking how fast a disturbance in it would reach us, whether we could pause, and what our substitute would be. The second is treating every health check, autoscaler and auto-remediation as a possible cause of accidents, not merely a cure, and testing how those devices behave together through game days and fault injection, which the Resilience book
develops in its chapter on designing for failure, before an outage tests them for us.
Recap. Interactive complexity defeats prediction, and tight coupling takes away the time people need to understand a surprise as it unfolds; together they make accidents normal. Safety devices add interactions of their own, and so they can cause the very accidents they were meant to prevent. Loosening a coupling is among the most durable reliability work a team can do, provided the team budgets for the new interactions that the loosening brings.
Exercise 2.1. Place five components of a system you run on Figure 2.1. For the one nearest the top-right cell, name a coupling you could loosen and the new failure mode that loosening would bring. Then pick one safety device in that system, such as a health check, an autoscaler or a retry policy, whose interactions with the rest you have never tested, and sketch a game day that would test them.
2.2 From Human Error to System Error — Reason, Rasmussen, Cook
The sharp end and the blunt end
Perrow explained why certain kinds of system breed accidents. He said less about the people inside them, and for most of the twentieth century that was the part everyone thought they already understood. An accident investigation ended when it found a person. “Human error” served as both the cause and, through retraining or discipline, the cure: find the operator who turned the wrong valve, correct or replace that operator, and the system was presumed safe again. The account was attractive because it was short, and because it left the design, the budget and the schedule untouched.
James Reason, a psychologist at the University of Manchester, did more than anyone to take this account apart, and he began, interestingly, by taking error seriously rather than dismissing it. His book Human Error (1990) classified the ways competent people go wrong. Slips and lapses are failures in carrying out a plan that was itself sound: a slip is doing the wrong thing, as when an engineer who means to drain one node types the name of its neighbor, and a lapse is failing to do the right thing, as when the same engineer forgets to re-enable an alert after maintenance. Mistakes are different in kind. The plan is carried out faithfully, but the plan itself is wrong, because the person’s understanding of the situation is wrong. Restarting a service that looks broken, when the real trouble is a slow dependency, is a mistake in this sense: every keystroke is correct, and the action still makes things worse. The distinction matters because the remedies differ. Slips and lapses yield to better interfaces, checklists and automation; mistakes yield only to better information and a better shared picture of what is happening.
Yet the most consequential chapter of the book looked away from the individual altogether. Reason distinguished two kinds of failure. Active failures are unsafe acts whose effects are felt almost at once: the slips, lapses and mistakes of the people operating the system. What he first called latent errors, and later, more precisely, latent conditions, are weaknesses created far away and often long before, by designers, managers and budget holders, which lie dormant until some local circumstance wakes them. A shared connection pool chosen to save memory, a health check written in a hurry, a staffing plan that leaves one person on call for three services: each of these can sit harmlessly for years. The later name is the better one, because these weaknesses are rarely errors in the ordinary sense. They are usually reasonable decisions whose cost appears only when other things go wrong at the same time.
Woods, Cook and their colleagues gave this picture its two ends. The sharp end is where practitioners touch the hazard: the control room, the cockpit, the on-call engineer’s laptop at three in the morning. The blunt end is where the conditions of their work are set: budgets, schedules, tooling, staffing and policy. The words are well chosen. Force is applied at the blunt end and felt at the sharp end, and the person holding the sharp end is the one standing next to the damage when it happens, which is why that person is the easiest to see and the easiest to blame. A theater offers a fair comparison. When a cue is missed on opening night, the audience sees the stage manager who called it late; it does not see the producer who cut the technical rehearsals from three days to one, or the designer who put two cues a second apart. The comparison breaks in one useful place. In a theater everyone knows the producer exists, whereas in a software organization the blunt-end decisions are often so diffuse, spread across years of tickets and budget meetings, that nobody can say who made them. Read through this lens, operators are less the instigators of accidents than their inheritors. They receive a system already loaded with latent conditions, and on a bad night they are the ones who happen to be holding it.
Reason’s most famous picture developed gradually through his writing and settled into the form we know in Managing the Risks of Organizational Accidents (1997). Each of a system’s defenses is drawn as a slice of Swiss cheese. The holes in each slice are its weaknesses, some opened by active failures and some by latent conditions, and they are not fixed; they open, close and shift as conditions change. Most of the time a hole in one slice is covered by solid cheese in the next. An accident happens when, briefly, the holes in every slice line up and a hazard passes straight through. Reason meant it as a teaching image, and it should be held as one. Complex systems do not fail in neat straight lines through stationary slices; in Perrow’s terms, the slices interact, and one defense can widen the holes in another. But the image did something more important than describe the mechanism precisely. It moved the object of study from the person at the last slice to the whole stack of defenses and the organization that built and maintained them. Figure 2.2 draws it for Encore’s retry storm.
Figure 2.2 — Reason’s Swiss cheese, with the retry storm’s defenses as the slices. Each hole was a latent condition set far from the sharp end; notice that every slice was a safety device, and that no single hole was enough.
Look at what the figure says about the storm. Every slice was put there to make Encore safer: the retries to ride out transient faults, the health checks to remove sick instances, the autoscaler to add capacity under load. Each had a hole that was harmless alone. The outage needed all of them to open together, on the night the payment provider slowed down.
Rasmussen’s boundaries
Reason’s cheese is a snapshot: it shows the holes at the moment they lined up. It says little about how the holes came to be where they were. For that we need Jens Rasmussen, the Danish engineer whose work Reason built on, and who went further in his paper “Risk Management in a Dynamic Society” (1997).
Rasmussen pictured an organization’s work as a point moving within a space with three boundaries. Cross the boundary of economic failure and the organization cannot pay for itself. Cross the boundary of unacceptable workload and people cannot keep up. Cross the third, the limit of acceptable performance, and accidents happen. Inside this space the point never sits still, because two steady pressures act on it. Management, sensibly, pushes it away from economic failure and toward efficiency: do more with the same hardware, ship sooner, run leaner. The people doing the work, just as sensibly, push it away from unacceptable workload and toward least effort: take the shortcut, skip the step that never seems to matter, reuse the script that worked last time. Neither pressure is foolish, and neither is malicious. The trouble is that both gradients point the same way, toward the safety boundary, and nothing in daily work shows where that boundary is. Until the moment a team crosses it, every step toward it looked like good practice, because nothing bad happened. Figure 2.3 draws a point drifting through the space.
Figure 2.3 — Rasmussen’s migration toward the boundary of acceptable performance (after Rasmussen, 1997). Two sensible gradients push the same way, and the drift looks like noise until it arrives.
Rasmussen’s picture also answers the question Reason’s left open. The holes in the cheese are where they are largely because of this migration: each slice was thinned a little by someone pursuing efficiency or saving effort, for reasons that were good at the time. This, I think, is the model to keep in mind for the rest of the book. Safety is less a state a system reaches than a position it must keep holding against steady pressure, and a team that stops pushing back will drift, through nobody’s fault in particular, toward the edge. Section 2.3 follows that drift from the inside.
Eighteen short theses
Reason and Rasmussen wrote for researchers and safety managers. The text that carried their ideas into software engineering came from a practitioner. In 1998 Richard Cook, an anesthesiologist and safety researcher at the University of Chicago, wrote “How Complex Systems Fail”, a few pages of short numbered theses that engineers have passed around more than any other text in this chapter. Part of its power lies in its form. Each thesis is a sentence or two, plain enough to read between pages, and together they turn the older research into something close to a working creed.
The core of the argument can be followed as a chain. Complex systems are hazardous, so they are heavily defended, with many layers of protection. Because they are complex, they always contain flaws (latent conditions, in Reason’s language), and there are always too many to find and remove. So they run in degraded mode, with some defenses partly broken at any given moment, and they keep working because the remaining defenses and the people operating them cover the gaps. It follows that a catastrophe needs several failures together, each insufficient alone; if a single failure were enough, the defenses would already have been built to catch it. And it follows from that, in turn, that naming any one of those failures as the root cause misdescribes the mechanism. It satisfies our need for an explanation, and often our need for someone to blame, but it picks one strand out of a knot and calls it the knot. Cook drew one further conclusion, the most hopeful in the paper. If the system is always partly broken and still mostly works, then safety cannot be a fixed property of its design. Safety, in Cook’s account, is something practitioners do, minute by minute, by noticing and adjusting.
The movement these three began is often called the New View, to set it against the older view that ended at the operator. Its central claim is that human error is an attribution made after the fact, a label investigators attach once they know the outcome, and not a cause discovered in the evidence. Hindsight makes the right action look obvious, because the investigator knows which of the many signals on the night mattered, and the operator did not. The useful question therefore shifts from who erred to why the action made sense to the person at the time, given what that person could see, knew and was under pressure to do. Woods and his co-authors call the answer to that question the second story. The first story is the one that ends at the operator. The second is the one that explains the operator, and it almost always leads back to the blunt end.
Honesty requires a qualification here, because the New View is not the whole industry’s view. The example postmortem in Google’s SRE book has sections for root causes and trigger, and Amazon’s Correction of Error documents still walk through the 5 Whys, a technique that, followed naively, descends a single chain to a single answer. In practice, most teams that use the phrase “root cause” list several contributing factors, and the safety-science objection is less to the phrase than to stopping at one cause, above all when that cause is a person. Dropping “root cause” from the vocabulary altogether remains a minority position, held mainly by the learning-from-incidents community. A team can keep the familiar templates and still honor Cook’s point, provided the review keeps going past the first answer.
From theory to the review room
Read this way, the retry storm of Section 2.1 has no culprit. Each engineer who configured retries at a given layer followed recommended practice, since retrying a failed call is exactly what a well-behaved client is supposed to do. What nobody owned was the sum: retries at several layers multiplying one another until a slow payment provider faced a flood of traffic. The latent conditions sat at the blunt end. The health checks shared connection pools with the traffic they were meant to judge, so when the pools ran dry the health checks failed too; they measured the pools’ exhaustion and reported it as the instances’ sickness. The autoscaler’s policy had been written for a different kind of overload, one where more instances help, and so it read the failures as a need for capacity and added instances that opened still more connections. None of these was anyone’s careless act on the night. All of them were decisions, made earlier and elsewhere, that the night inherited.
Software learned to hold reviews of this kind partly from John Allspaw’s 2012 Etsy post “Blameless PostMortems and a Just Culture”. The title is worth reading slowly, because it joins two ideas and most people remember only the first. Blamelessness is the half that lets people describe what they did without fear, which is the only way the second story ever gets told. A just culture is the half that keeps accountability. Just culture, a term Reason introduced and Dekker developed, distinguishes honest error and at-risk shortcuts, which call for learning and redesign, from reckless disregard, which still calls for accountability. The distinction protects in both directions. Without it, blamelessness can sound like a promise that nothing anyone does has consequences, and people at the blunt end may hear it as permission to ignore what reviews find. With it, a team can protect the engineer whose shortcut was the normal practice of the whole team, while still acting on the rare case of someone who knowingly put others at risk.
Two habits turn all of this into practice. First, tag every contributing factor in a review as sharp end or blunt end. The tagging is quick, and it is diagnostic: a review whose findings all sit at the sharp end has stopped early, at the first story, and the second story is still waiting to be written. Second, give every blunt-end finding an owner with the authority to change it. A finding such as “health checks should not share pools with request traffic” achieves nothing if it lands with an on-call engineer who has no say over the platform’s defaults. It has to reach whoever sets those defaults, or it will become one more latent condition waiting for its night.
Recap. Operators inherit failures whose conditions were planted far from the sharp end; sensible pressures from managers and workers alike push work toward a boundary nobody can see; and every serious failure needs several contributors at once. The lesson is never to stop at one cause, least of all at a person, while a just culture keeps accountability for genuine recklessness even as the review looks for the conditions that made ordinary actions dangerous.
Exercise 2.2. Take your last incident review. Mark each contributing factor as sharp end or blunt end. If the blunt-end list is shorter, the review probably stopped at the first story, so write the second story for the most prominent human action: what that person could see, knew and was under pressure to do. Then check that each blunt-end finding has an owner who can actually change it.
2.3 Drift and the Normalization of Deviance
How margins erode
Rasmussen gave us the picture from above: a point moving slowly through a space, pushed by two sensible gradients toward a boundary nobody can see. Sidney Dekker’s Drift into Failure (2011) describes what that movement feels like from inside the organization that is doing the moving. Drift is the slow movement of a system toward failure through many small decisions, each locally reasonable and judged acceptable at the time it was made, so that afterwards no single step can be named as the moment things went wrong. Each decision is made by competent people with the information in front of them, and each, taken alone, would survive scrutiny. The danger lies in the sum, and nobody is responsible for the sum.
Drift, then, is not negligence. A negligent organization ignores its margins; a drifting one spends them, carefully and with good reasons, and is rewarded for doing so. Dekker’s insight is that drift is what success looks like while it is quietly consuming its safety margins. The mechanism is self-reinforcing. Every time a team operates with a thinner margin and nothing bad happens, that uneventful outcome is read as evidence that the margin was never needed in the first place. The next decision starts from the thinner margin as its baseline, and the cycle repeats. The organization is learning, in a sense, but it is learning the wrong lesson from a sample that has not yet included the bad day.
The sociologist Diane Vaughan gave this mechanism its name: the normalization of deviance, the process by which a departure from a standard, repeated without consequence, comes to be accepted as the standard itself. The first exception is noticed and discussed. The fifth is routine. By the twentieth, nobody remembers that it was ever an exception. Her study of the Challenger launch decision is the home touchstone of Chapter 6, where the idea does its full work, and so we leave it there and turn instead to what drift looks like in ordinary operations.
The pressure that does not show on a dashboard
Encore lives in the concert world, and a touring production offers a fair analogy for how margins are spent. Suppose the load-in schedule allows four hours to rig the stage, which includes enough time to find and fix a fault if one turns up. On the first nights the crew needs most of those four hours. By the 30th night they know the rig by heart, and it goes up in three. The spare hour looks like waste, so the production manager books a press interview into it, and the venue, seeing the stage ready early, opens the doors earlier. Nobody has done anything foolish. Each of those decisions is a good one, made by someone using time that appeared to be free. Yet the hour that once existed to absorb a fault is gone, spent one good decision at a time, and the first night a truss motor fails, the show will start late.
The analogy holds up to a point, and where it fails is instructive. A touring crew can see its own clock. Everyone backstage knows how long the rig took tonight and how much time is left before doors. In software, the margin being spent is usually invisible. It might be the headroom on a database shard, which shrinks as traffic grows and nobody revisits the capacity plan. It might be the slack in a retry budget, eroded as each team adds a retry of its own. Or it might be the distance between a written rule, such as a change freeze, and what people actually do around it. None of these appears on the dashboards a team watches during an ordinary day, which is precisely why they can be spent without anyone deciding to spend them.
That last kind of margin, the gap between a rule and its practice, is easiest to see at Encore. Like many operators who face sharp peaks, Encore keeps an on-sale change freeze: no non-emergency changes to the purchase path from two hours before an on-sale until it ends. The reasoning is sound. An on-sale is the moment of greatest load and greatest consequence, and a change made then has the least time to be understood if it goes wrong. As written, the freeze is a clear margin.
As practiced, it has loosened in three ways, each with a sensible story behind it. First, exceptions are granted in chat by whichever senior engineer happens to be around. The reasons are usually good, an urgent fix or a change that seems trivially safe, but the exceptions are never recorded, so nobody can say how many there have been or who approved them. Second, platform automation considered low-risk is excluded from the freeze. This mirrors a long-standing idea in change management, where routine “standard changes” are pre-approved so that people need not seek permission for every one, and it made sense when the automation did little. The automation has since grown, and the exclusion has not been revisited. Third, the freeze covers the purchase path itself, and services that sit beside it were never covered at all. None of these three is reckless. Together they mean that the freeze protects less than the people relying on it believe.
The Reliability team, the platform group’s ten site reliability engineers (SREs), has begun counting exception requests. There were three in the first quarter of last year and 14 in the most recent quarter, and none of them was followed by an incident. It would be natural to read that last fact as reassurance. Drift teaches us to read it the other way: a steadily rising number of exceptions with no visible cost is exactly the pattern in which each success makes the next exception easier to grant, and so it is what makes the trend worth attention. We should hold that reading with some humility, though. The count is Encore’s own practice, not an industry measure with a known baseline, and a rising number could equally mean that the rule no longer fits the work and ought to be redesigned. Whether a freeze earns its keep at all is a question the Resilience book takes up in its chapter on shipping change safely. Here the point is narrower: whichever answer is right, Encore cannot choose between them while the exceptions live only in chat.
What can be done about drift is modest, but it is real, and it follows from the mechanism. If drift works by spending invisible margins, the first defense is to make the margins visible, so that spending one becomes a decision somebody makes and can be held to. Headroom on shards and queues can be tracked and reported. Error budgets turn a reliability target into an amount that can be seen to shrink. And exceptions to a rule belong in a register, with a named approver and a reason for each, in place of a chat thread that scrolls away. GitLab’s production change lock requires exactly this kind of recorded approval, and it is a good model to borrow.
The second defense is to be suspicious of good news. A quiet period with no incidents is weak evidence that the margins are adequate, because drift produces quiet periods right up to the moment it does not. The same caution applies to aggregate incident metrics. The VOID, an open collection of published software incident reports, has analyses showing incident durations so skewed, with a few very long incidents among many short ones, that an average such as mean time to resolve (MTTR) says little about how a system is actually behaving. A falling average can hide a growing tail.
The third defense is to bring in people who were not there while the practice changed. Insiders are the last to notice drift, because they lived through each small step and each one seemed reasonable when they took it. An outsider sees only the distance between where the practice started and where it stands now. Google’s production readiness review, in which SREs from outside the developing team examine a service before agreeing to take it on, is the established software form of this idea. Encore’s Wednesday readiness review before each on-sale, where the Reliability team checks the capacity arithmetic and the preparations with the teams on the purchase path, has the same shape, and it is a natural place to read the exceptions register aloud.
None of these defenses stops drift. I doubt that anything does, since the pressures Rasmussen described never let up and the people responding to them are behaving sensibly. What the defenses can do is turn an invisible slide into a visible series of choices, and a choice, unlike a slide, can be questioned.
Recap. Drift spends safety margins through decisions that are each reasonable, and every success with a thinner margin makes the next reduction feel justified. The defenses follow from the mechanism: make margins visible, keep a register of exceptions with named approvers, treat quiet periods and averages with suspicion, and bring in reviewers who did not live through the change.
Exercise 2.3. Choose one production rule your team holds, such as a freeze or a review requirement, and compare it with the last three months of actual practice. List every exception you can find, who granted it and why. Then decide which should change, the rule or the practice, and write down the reason.
2.4 Safety-I, Safety-II, and Resilience Engineering
Studying what goes right
Every model in this chapter so far has been a model of failure. Perrow explained why some systems are bound to have accidents, Reason and Rasmussen explained how organizations prepare them, and Dekker explained how margins quietly drain away. All of that is valuable, and yet it leaves a strange gap. Encore’s purchase path sells tickets correctly on almost every day of the year, and a study that looks only at the rare days when it does not is examining the exception and ignoring the rule. Erik Hollnagel made exactly this complaint: if a system almost always works, then studying only its failures is an odd way to understand it.
In Safety-I and Safety-II (2014) Hollnagel gave names to the two ways of looking. He called the traditional view Safety-I: safety as the condition in which as few things as possible go wrong, achieved by finding the causes of failure and removing them. Beside it he set Safety-II: safety as the ability to succeed under varying conditions, achieved by understanding how everyday work succeeds and then supporting it. The first view asks why things failed. The second asks why, given everything that could have gone wrong, things usually go right. Figure 2.4 sets the two side by side and places one Encore event under each.
| Safety-I | Safety-II | |
|---|---|---|
| Definition | As few things as possible go wrong | As many things as possible go right |
| What is studied | Failures, incidents, causes | Everyday work, adaptations, near misses |
| Human variability | A hazard, to be constrained | A resource, the reason things work |
| Response | Find the cause, add a barrier | Understand the adaptation, support it |
| Encore example | The retry-storm postmortem | The duplicate-ticket catch |
Figure 2.4 — Two views of safety. Safety-II complements Safety-I; a team needs both the barrier and the understanding of why work usually succeeds.
A word of caution belongs here before we go further. Hollnagel drew Safety-I sharply in order to make his point, and critics, Nancy Leveson among them (we meet her properly in Section 2.5), note that few practitioners ever held the caricature he described. Nobody who wrote the retry-storm postmortem believed that people were merely hazards to be fenced in. So I suggest we take the reframing and leave the polemic: Safety-II is most useful as a second lens beside the first, and the caption under the table means it when it says a team needs both.
What, then, is the core of the reframing? It is the idea of performance variability: the way people adjust what they do to the conditions they actually meet. No procedure anticipates every situation, so people fill the gaps, and Hollnagel’s insight is that the same adjusting produces both successes and failures. An engineer who skips a step because the dashboard looks healthy and an engineer who adds a step because something feels off are doing the same kind of thing, which is adapting, and often only the outcome tells them apart afterwards. Hollnagel located resilience in the gap between work as imagined, the work as it is described in runbooks, procedures and pipeline definitions, and work as done, the work as people actually carry it out on a given day.
The theater, which gave us the stage manager of Section 2.2, offers a way to picture that gap. A stage manager’s prompt book records every cue of the show as rehearsed: when the lights change, when the scenery flies in, when an actor enters. On any given night the show departs from it in small ways, because an actor holds for a laugh a beat longer or a piece of scenery sticks, and a good stage manager calls the cues to the show that is happening, not to the one in the book. The prompt book is work as imagined, and the night’s performance is work as done. Here too the comparison has a limit worth naming: in a theater everyone can see the stage, whereas in software the work as done is mostly invisible, hidden in terminal sessions and private judgment, unless someone deliberately writes it down.
Section 2.3 found drift in this same gap, and both readings are right. The gap between imagined and done holds the adaptations that save us, such as the engineer who adds a step, and it also holds the shortcuts that spend our margins, such as the unrecorded freeze exception. Closing the gap entirely is neither possible nor desirable, since it would mean forbidding the adaptations along with the shortcuts. The practical task is harder and more interesting: to look into the gap, case by case, and tell the one kind from the other.
The catch that did not make the news
Encore offers a clean example of something going right, and it deserves the same careful examination we would give an outage. Consider the agent-written rewrite of Encore’s Notification service, told at the end of the Architecture book. A coding agent rebuilt the service overnight, with a new framework and new retry semantics, in 40 files nobody had typed or read in full.
As imagined, the safety of that change rested on the pipeline. Contracts, boundary rules and security checks were to pass, and the service level objective (SLO) canary, which sends a small slice of live traffic to the new version and checks it against the SLO before the rest follows, was to promote it. All of that happened exactly as designed. As done, something else happened as well. One engineer gave the new retry semantics 20 minutes more than the pipeline thought they needed, and in that time saw that a retry after a partial failure could send a fan the same ticket twice. None of the automated checks was looking for that, because none of them encoded the rule that, from the fan’s point of view, a ticket is delivered once. The engineer wrote a spec-level idempotency test, one that states the property itself (a retried delivery never produces a second ticket), and only then merged the change.
A Safety-I organization keeps no record of this, because nothing went wrong and there is no incident to review. Safety-II asks a different question: what made the catch possible? Looked at closely, four conditions had to be present at once. There was time, because the change was not squeezed into a crowded release, so the engineer could spend those extra minutes without stealing them from something else. There was context, because the engineer had worked on ticket delivery and knew which failure mattered there. There was authority, because the engineer was free to slow down a pipeline that was showing green. And there was a reason for suspicion, because an agent had written all 40 files, and that fact alone invited a closer look.
Now consider what that list implies. A reorganization that moved the engineer away from ticket delivery would remove the context. A release calendar that packed more changes into each week would remove the time. A culture that treated a green pipeline as the final word would remove the authority. Any one of these changes would remove the catch, and nobody would notice, because a catch that does not happen leaves no trace; the first anyone would hear of it is a fan holding two tickets. I should be honest that this is reasoning from one case rather than measured evidence. It is, however, exactly the kind of reasoning Safety-II asks us to do, and the Resilience book, in its chapter on shipping change, shows Encore turning it into a review policy for machine-written change.
Making catches reportable
If studying what goes right is worthwhile, we need a supply of material to study, and here lies the practical difficulty: catches are not reported by default. An outage announces itself with pages, dashboards and unhappy fans. A near miss is known only to the person who noticed it, and that person has every ordinary reason to say nothing, since writing it up takes time and may draw attention to how close things came.
Aviation faced the same problem and solved it long ago. NASA’s Aviation Safety Reporting System, running since 1976, takes confidential near-miss reports from pilots, controllers and mechanics. It strips the identities from each report, and it gives the reporters a measure of protection from penalty. The design works for two reasons, and both are needed. It is non-punitive, so reporting costs the reporter little. And someone acts on the reports, so reporters can see that their effort changes something. A system that is safe to report into but never acts would soon go quiet, and one that acts but punishes would hear very little in the first place.
Software has nothing comparable. In our field a near miss reaches a review only if someone chooses to volunteer it, and few do: fewer than one in a hundred of the public incident reports collected by the VOID concern a near miss. The figure is not surprising once we remember that public reports are written about events customers felt, but it means the material Safety-II needs is almost entirely missing from the record we learn from.
The cheapest way to start is a short write-up, about ten minutes’ work, under the same blameless rules as an incident review. The rules matter as much as the form, for the reason aviation discovered: people do not report a near miss that might be held against them. Encore’s Reliability team adopted the following template after the Notification catch, and its fields follow directly from the analysis above:
NEAR MISS: <what almost happened, in one line>
Noticed by / cue: who noticed, and what they saw that others did not
What made it possible: time, context, authority, reason for suspicion
What would erode it: deadline, reorg or tool change that removes the catch
Guard added: test, check or limit, with an owner and a date
Read where: the review or channel where the next person will see it
Use: learning only; never cited in performance reviews
Each line has a purpose. “What made it possible” records the four conditions, so that the organization learns what it must protect. “What would erode it” names the changes that could silently remove the catch next time, which is a warning a reorganization or a new tool would otherwise never receive. “Guard added” turns the lesson into something durable, with an owner and a date so it does not dissolve into good intentions. “Read where” answers the second half of aviation’s lesson, that a report nobody reads changes nothing. And the last line is the non-punitive promise, written into the form itself so that nobody has to wonder about it.
We should be candid about how much is known here, because the practice is young in software. The learning-from-incidents movement, carried by the VOID, the Howie guide from Jeli (now PagerDuty) and the second edition of Google’s SRE book (2026), is growing fast. Yet in healthcare, the field where Safety-II tools have been tried longest, reviews of those tools find little measured evidence of effect. That does not show the tools fail; it shows that nobody has yet demonstrated that they work. Confidential reporting, by contrast, is proven in aviation, and a ten-minute template costs very little. In my judgment, a proven mechanism at so small a price is reason enough to start, provided we keep an honest eye on whether it is doing any good.
Resilience as a capacity
Safety-II did not arrive alone. It belongs to a broader field, resilience engineering, which gathered around a 2004 symposium in Söderköping, Sweden, and the book that grew from that work, Resilience Engineering: Concepts and Precepts (2006). The field’s central term deserves a careful definition, because in everyday engineering talk “resilient” often means little more than “redundant”. Resilience is a system’s capacity to adjust its functioning before, during and after disturbances, so that it sustains operations under expected and unexpected conditions alike. The weight of that definition falls on two words, adjust and unexpected. Redundancy protects against the failures we anticipated; resilience is what lets a system cope with the ones we did not.
David Woods sharpened the idea with a further term. Graceful extensibility is a system’s ability to stretch past the envelope it was designed for, the range of load, failure and circumstance its builders planned around, when surprise pushes it there. Systems that lack it are brittle: they work well inside the envelope and fail abruptly at its edge. At Encore the people are often the source of that extensibility. When the automation reaches the limit of what it was built to judge, as the pipeline did with the Notification rewrite, it is an engineer’s judgment that stretches the system a little further.
These ideas reached software in the early 2010s, through John Allspaw’s work at Etsy and Richard Cook’s 2012 Velocity talk, and they were set out most fully for software in the STELLA report (2017) of the SNAFUcatchers workshop. The report’s most useful contribution is a picture. It draws a line through the system, the line of representation. Below the line sit the code, the infrastructure and the tooling: the running system itself. Above it sit the people, each holding a partial mental model of what lies below. Nobody sees below the line directly. People see the running system only through representations, such as dashboards, alerts, traces and deploy tools, and they act on it only through those same tools.
Seen this way, incidents are the moments when those models prove wrong, when the difference between someone’s picture of the system and the system itself suddenly matters. The Notification catch fits the picture from the other side. The pipeline’s green checks were a representation, and they showed the change as safe. The engineer’s own model of ticket delivery, built from experience, disagreed with that representation, and the engineer trusted the model enough to look further. Figure 2.5 draws Encore through the line: the on-call engineer, the On-Sale team, the Reliability team and the incident commander above it, each with a different partial model; the services, clusters and payment provider below it; and between them the representations through which everyone sees and acts.
Figure 2.5 — Above and below the line of representation, after the STELLA report (2017). Every person sees and acts on the running system through representations, and holds a partial model of what lies beneath them.
Recap. Safety-I removes the causes of what goes wrong; Safety-II studies and supports the adaptations that make things go right, and a team needs both. The gap between work as imagined and work as done holds both the adaptations that save us and the drift that spends our margins, and the task is to tell them apart. Near-miss reporting is proven where it is confidential and acted on, while Safety-II programs in software are still young. Resilience is a capacity to adjust, and at Encore much of it lives in people who see the running system only through representations.
Exercise 2.4. Find one occasion last quarter when someone prevented a problem that no process would have caught. Write it up with the near-miss template, paying particular attention to what made the catch possible and what could erode it, and decide where the next person will read it.
2.5 Systems Thinking and Control — STAMP for Software
Safety as a control problem
The models we have met so far are better at explaining failure than at telling an engineer what to build. Perrow tells us which systems are dangerous, Reason tells us how defenses decay, Rasmussen tells us why work drifts toward the edge, and the resilience engineers tell us how people keep things running in spite of all that. Each is illuminating after the fact. None of them hands a team a method it can sit down with on a Tuesday afternoon and apply to a design. Nancy Leveson of MIT built a model that does both: it explains accidents, and it prescribes engineering. She set out STAMP (System-Theoretic Accident Model and Processes) in a 2004 paper and developed it at length in Engineering a Safer World (2011).
Her starting point is a distinction that sounds obvious once said and is ignored remarkably often. Reliability is a property of a component: does this part do what it was built to do? Safety, in STAMP, is an emergent property of the whole system, something that arises from how the parts interact and cannot be found by inspecting any one of them. The two are distinct, and the gap between them matters most in software, where many accidents happen with every component doing exactly what it was built to do. Encore’s retry storm is a case in point. The retries retried, the health checks checked, and the autoscaler scaled, each faithfully to its specification, and the purchase path still fell over. A model that searches for the broken part will find nothing to fix, because nothing was broken.
What STAMP offers instead is to treat safety as a control problem. The idea has an old lineage: it belongs to the systems thinking of the mid-twentieth century, to cybernetics and control theory, in which a system stays within safe bounds because something is watching it and steering it, the way a thermostat holds a room’s temperature. The model rests on three ideas.
The first is the safety constraint: a condition that must always hold for the system to be safe. “No seat is sold twice” is one at Encore. A safety constraint is a statement about the system’s behavior, and it says nothing yet about which part enforces it.
The second is the control structure: a hierarchy of controllers that together enforce the constraints. Controllers may be people, organizations or software. Each one issues control actions downward to the thing it controls and receives feedback upward about what happened. A team sets a configuration, a service obeys it, and dashboards report back how it went; a regulator sets rules, a company follows them, and audits report back. The hierarchy matters because a controller high up, such as a team setting policy, acts slowly and on summaries, while one low down, such as an autoscaler, acts quickly and on raw signals.
The third, and to my mind the most useful, is the process model: a controller’s belief about the current state of the thing it controls. No controller sees reality directly. A human operator sees instruments; an autoscaler sees metrics; a team sees reports and dashboards. Every control action is chosen on the basis of that belief, so when the belief is wrong, a perfectly sensible decision becomes a dangerous one.
Three Mile Island shows how this works. The light on the operators’ panel reported that the command to close the relief valve had been sent, and the operators took it to mean the valve was closed. It was stuck open. From that moment their process model was corrupted: they believed the system held more water than it did. Every control action that followed was rational given what they believed, and wrong given what was true. Seen through STAMP, the accident was neither a broken valve nor careless operators; it was a control loop in which the feedback no longer described the process being controlled.
From this model Leveson built two methods, one for looking ahead and one for looking back. The forward-looking one is a hazard analysis method, STPA (System-Theoretic Process Analysis). Its central move is to go to each controller in the structure and ask how its control actions could be unsafe. STPA gives four ways, and the list is short enough to carry in one’s head:
- a needed control action is not provided;
- a control action is provided that causes a hazard;
- a control action comes too early, too late or out of order;
- a control action is stopped too soon or applied too long.
The value of the four categories is that they turn a vague worry (“could the autoscaler cause trouble?”) into four specific questions, each of which has an answer that can be written down and argued about. The backward-looking method is CAST (Causal Analysis based on STAMP), which applies the same structure after an accident: rather than asking which part failed, it asks which controllers had inadequate process models, which feedback was missing, and why each control action seemed reasonable at the time. Chapter 6 puts CAST to work.
A method arriving in software
Where STPA stands depends very much on the field, and the difference deserves to be stated plainly. In aerospace and automotive work it is long proven. In software operations it is arriving now, and the evidence for it there is the evidence of early adoption.
That early adoption has a serious precedent. Google’s SRE organization has been applying STAMP to its own systems, as Tim Falzone and Ben Treynor Sloss described in ;login: in December 2024. The second edition of the SRE book (O’Reilly, 2026) has a chapter on STPA and CAST, and Google engineers presented a CAST analysis of a Google Maps incident at SREcon in 2026. When the organization that gave the industry the term SRE invests in a method, it deserves attention. But Google describes the work, in its own words, as something it is still “exploring”, and it has published no outcome data. We know Google finds STAMP worth doing; we do not yet know, from published evidence, what it changed. That is the honest state of the method in our field, and it is a reasonable basis for trying it carefully rather than adopting it wholesale.
There is also a practical cost. Full STPA is labor-intensive: done properly across a whole system, it means drawing every controller, every control action and every feedback path, and then working through four categories of unsafe action for each one. Few teams have the time to do that for everything they run. The sensible course is to scope the analysis to one critical path, the sequence of services and decisions whose failure would hurt most, and do it well there.
Software, as it happens, suits the method unusually well in one respect. Where its controllers are automated, their process models are written down, because they are code. An autoscaler’s belief about the world is exactly the set of metrics it reads and the policy it applies to them, and anyone can open the configuration and see it. In a chemical plant, by contrast, an analyst has to reconstruct what an operator believed from interviews and logs. Human and organizational controllers are another matter: a team’s belief about how much load a service can take is no more explicit in software than in any other industry, and lives in people’s heads, old load-test reports and chat threads. Those controllers are often where the analysis pays off most, precisely because nobody has ever had to write their process models down.
To see what this looks like in practice, here is part of Encore’s control structure around an on-sale, the moment when tickets for a big show go on sale and fans arrive in their tens of thousands:
| Controller | Controls | Process model (what it believes) | Feedback it receives |
|---|---|---|---|
| On-Sale team | Gate admission rate | Seat Inventory’s safe throughput, from load tests | Load-test reports, on-sale dashboards |
| Sale Gate | Fans admitted per second | A configured rate, about 1,200 fans/s per event | Queue depth, its own error rate |
| Bot Screening | Which sessions are blocked | What bot traffic looks like, from past patterns | Block rates, appeals |
| Kubernetes autoscaler | Pod counts per service | CPU and request load per pod | Metrics, a few seconds late |
| Platform node-upgrade reconciler | Node versions in each cluster | Node health and disruption budgets | Node and pod readiness |
| Reliability team | Readiness review, freeze policy | The on-sale calendar, past incidents | Reviews, postmortems, chat |
Figure 2.6 — Part of Encore’s control structure around an on-sale. Each controller acts rationally on its own process model; hazards arise where a model is stale, incomplete or blind to another controller’s actions.
Notice how mixed the table is. Two of the controllers are teams of people and four are pieces of software, and the table treats them all alike: each controls something, each believes something, and each learns about the results through some channel. That evenhandedness is the point. A conventional architecture review would look at the Sale Gate and the autoscaler as components and at the teams as an org chart, and would never put them in the same table.
Reading the table column by column, rather than row by row, raises questions that no review of a single component would ask. The “Controls” column invites us to look for two controllers acting on the same thing without knowing of each other: the autoscaler and the node-upgrade reconciler, for instance, both change what is running in a cluster, and neither’s process model includes the other. The “Process model” column invites us to ask which beliefs come from tests, and how closely those tests resemble a real on-sale; the On-Sale team’s sense of Seat Inventory’s safe throughput is only as good as the load test behind it. And reading the table as a whole, we can ask which controllers know that an on-sale is happening at all, and which have no way to find out. The reconciler’s process model contains node health and disruption budgets, and nothing about the calendar. None of these is a defect in any single row. Each is a gap between rows, which is exactly where STAMP tells us to look.
The table is the map; the worksheet is where the analysis is done. To show it, we can apply STPA after the fact to the autoscaler from the retry storm. Recall the story from Section 2.1: the PSP slowed from 200 ms to 8 s, connection pools ran dry, health checks sharing those pools failed, and the autoscaler, reading the failures as a need for capacity, added instances that opened still more connections to an already struggling provider. Worked through the four categories, the analysis yields a page like this, and Encore’s Reliability team now keeps one for each automated controller on the purchase path:
controller: orders-payments autoscaler
constraint: "Checkout never opens more PSP connections than the PSP can serve"
process_model: "Load is CPU and requests per pod; more pods mean more capacity"
feedback_gap: "Sees its own pods, never the PSP's latency"
unsafe_control_actions:
not_provided: "No scale-up while fans genuinely saturate the pods"
causes_hazard: "Scale-up while the PSP is slow: each pod opens a fresh pool"
wrong_timing: "Scale-up on metrics seconds stale, mid-restart"
too_long: "Scale-up held for the whole slowdown, never backing off"
Each line of the worksheet does a different job. The constraint states what must stay true, in terms of the system rather than the autoscaler. The process model states, plainly, what the autoscaler believes; written out like this, its flaw becomes visible, because “more pods mean more capacity” is true only when the bottleneck is inside the pods. The feedback gap names what the controller cannot see. And the four unsafe actions show that the same controller can be dangerous in opposite directions: doing too little when fans really are saturating the pods is a hazard, and so is doing too much when they are not.
The second unsafe action, scaling up while the PSP is slow, is the outage itself. And the feedback gap explains why the autoscaler could not have seen it coming. Its process model held that more pods meant more capacity, and its feedback, drawn only from its own pods, never contradicted that belief, because the PSP’s latency was not something it measured. The autoscaler did exactly what it was built to do on the basis of everything it could see. That is the STAMP account of the retry storm in one sentence, and it points to a fix of a different kind from “tune the autoscaler”: either give the controller the feedback it lacks, or constrain the action it should not take.
Mastering complexity with structure
There is something reassuring about where STAMP leads. Faced with systems too complex for anyone to hold in mind, it reaches for the oldest tools we have for mastering complexity: decomposition and hierarchy. Rather than trying to understand the whole system at once, it breaks the system into controllers, arranges them in a hierarchy, and asks a small, fixed set of questions of each. Software engineers have been using these same tools to tame complex designs for half a century. STAMP applies them to the operation of a system as well as to its construction.
It also brings us back to this book’s through-line, that production is a sociotechnical system. In STAMP’s terms, reliability is the product of a control structure in which people and machines keep each other’s process models accurate. It is not achieved once and kept; it is maintained continuously, and it decays whenever a controller acts on a belief that no longer matches the system. I have come to believe that this is the most practical way to describe what an operations team actually does all day: it keeps beliefs current, its own and those of the automation it has built.
Seen that way, the chapters that follow, in this book and in the Resilience book, are all ways to keep those beliefs current. SLOs and observability are feedback, the channels through which controllers learn what the system is really doing. Delivery practices such as canaries and feature flags are safer control actions, changes made in ways that limit the harm a wrong belief can do. Incident response is control under pressure, when process models are known to be wrong and must be rebuilt quickly. And learning from incidents is the repair of the process models themselves, so that the next decision is made on a truer picture than the last.
Recap. STAMP treats safety as a property of the whole system, enforced by a hierarchy of controllers, each acting on a process model that may be stale, incomplete or blind to the other controllers. STPA, its forward-looking analysis, asks of each controller how its actions could be unsafe in four ways. It is proven in aerospace and young in software operations, so a control-structure table for one critical path, and a worksheet for each automated controller on it, are a modest and useful place to start.
Exercise 2.5. Draw a control-structure table like Figure 2.6 for one critical path in your system, including at least one automated controller and one team. For each controller, write one unsafe control action from each of STPA’s four categories, and circle the one you would least like to meet in production.
Kata: The Twice-Monthly Run
Your brief: “Payday.” Payday is a payroll SaaS used by 3,000 employers in four EU countries. Twice a month it computes about 600,000 payslips and sends payment files to 11 partner banks, and each bank has a hard cutoff around 16:00 local time: a file that arrives late means people are not paid on time. Its 24 engineers run three main parts: a modular monolith; a calculation engine that calls a third-party tax-rules service synchronously, so that every payslip waits on that service’s answer; and a file-generation pipeline that turns the results into bank files. Last year they added auto-remediation that restarts calculation workers when they get stuck. Two months ago a configuration change nearly sent a bank a duplicate file. Nothing in the pipeline stopped it; an operations analyst noticed that the totals were twice their usual size and halted the run. The freeze before payday used to last 48 hours. It has since shrunk to “no risky changes on payday”, and nobody can say who decides what is risky.
Deliverables:
- Coupling and complexity map. Place Payday’s main components on Figure 2.1, Perrow’s chart of interaction against coupling, so you can see which parts sit near the top-right cell where normal accidents live. Then choose two couplings to loosen before the next run. For each, state what the loosening costs and which new failure modes it brings, because Section 2.1 taught us that every loosening, like every safety device, adds interactions of its own.
- Latent-condition inventory. List at least six latent conditions, the holes planted in advance that could line up with an ordinary slip on payday, in the sense of Reason’s model from Section 2.2. Tag each as sharp end (close to the person acting in the moment) or blunt end (set by design, budgets, schedules or policy). Give every blunt-end condition an owner who can actually change it, since a blunt-end finding with no owner is only a complaint.
- The near miss as Safety-II. The analyst’s catch is exactly the kind of event that leaves no trace when it goes well. Write it up with the near-miss template from Section 2.4: what the analyst saw, what made the doubled totals stand out, and what the analyst did next. Then decide where such reports will be filed and who will read them, so that the next catch is reported and learned from instead of forgotten.
- Drift register. Set the freeze as written beside the freeze as practiced, and trace how 48 hours became “no risky changes on payday”. Build a register of exceptions in which each exception has a named approver, which turns the vague question of “what is risky” into a record someone answers for. Finish with three indicators that would tell you the drift is continuing, in the spirit of Section 2.3’s visible margins.
- Control structure. Draw the controllers around file generation, people and automation alike, in the manner of Figure 2.6, with what each one believes and what feedback it receives. Write an STPA worksheet for the auto-remediation, treating it as a controller with a process model that may be wrong. Then design one game day that tests how the auto-remediation interacts with the tax-rules dependency: for example, what the restarts do when the calculation workers are stuck only because they are waiting on that service.
Rubric:
| Criterion | The question to ask yourself |
|---|---|
| Systemic framing | Does any deliverable stop at a person, or does each one reach the conditions behind the action? |
| Coupling realism | Do the loosenings respect the bank cutoffs, and do you show the arithmetic of how much time each one buys? |
| Safety devices | Is the auto-remediation analyzed and tested as a possible source of accidents, and not only as a protection? |
| Learning from success | Would the near-miss write-up help the next analyst notice, and is it safe to report? |
| Drift visibility | Could an outsider read the drift register and see the margin being spent? |
| Process models | Is there at least one controller whose model of the world is plainly stale or incomplete? |
Where you now stand
You can now read a system the way safety science reads it, and act on what you see. You can test how safety devices interact instead of trusting each on its own; run reviews that reach past the sharp end to the blunt end where most conditions are set; make spent margins visible before they run out; give near misses a safe place to be reported and read; and draw the control structure of a critical path, with each controller’s beliefs written down where others can question them.
The first place these ideas must be applied is automation. Every script, reconciler and assistant we add plays two roles at once. It is a safety device, added to catch or correct a fault, and so, as Perrow warned, it brings new interactions. It is also a new controller, acting on a process model of its own that can go stale like anyone else’s, as Leveson’s work showed. Automation therefore promises to take load off people while quietly changing the work they are left with. Chapter 3 takes up that paradox, beginning with Lisanne Bainbridge’s ironies of automation.
References
- Charles Perrow — Normal Accidents: Living with High-Risk Technologies, updated ed.. Princeton University Press, 1999.
- Richard I. Cook — How Complex Systems Fail. Cognitive Technologies Laboratory, University of Chicago, 1998 — free online.
- Nancy G. Leveson — Engineering a Safer World: Systems Thinking Applied to Safety. MIT Press, 2011 — free online.
- Nancy G. Leveson, John P. Thomas — STPA Handbook. MIT, 2018 — free online.
- Tim Falzone, Ben Treynor Sloss — The Evolution of SRE at Google. ;login:, USENIX, 2024 — free online.
- Betsy Beyer, Chris Jones, Jennifer Petoff, Niall Richard Murphy (eds.) — Site Reliability Engineering. O’Reilly/Google, 2016 — free online.
- John Allspaw — Blameless PostMortems and a Just Culture. Etsy Code as Craft, 2012 — free online.
- Sidney Dekker — Drift into Failure. Ashgate, 2011.
- Erik Hollnagel — Safety-I and Safety-II: The Past and Future of Safety Management. Ashgate, 2014.
- James Reason — Managing the Risks of Organizational Accidents. Ashgate, 1997.
- Jens Rasmussen — Risk Management in a Dynamic Society: A Modelling Problem. Safety Science, 1997.
- David D. Woods (ed.) — STELLA: Report from the SNAFUcatchers Workshop on Coping with Complexity. The Ohio State University, 2017 — free online.
- Amazon Web Services — Summary of the AWS Service Event in the Northern Virginia (US-EAST-1) Region. AWS, 2021 — free online.
- NASA — Aviation Safety Reporting System. NASA Ames Research Center — free online.
- The VOID — The Verica Open Incident Database — free online.
Chapter 3: Automation and Its Ironies — Toil, Runbooks, and the Human Role
Every machine that takes a task away from us leaves a harder one behind.
Every operations team keeps a list of chores it would rather hand to a machine: the certificate renewed by hand, the cache warmed before a busy evening, the replica nudged back into line after a bad night. The instinct behind that list is sound. Repetitive work done by hand at 3 a.m. is slow, it invites mistakes from people who are tired, and over the months it quietly wears down the team that carries it, because nobody joined an engineering team to type the same commands every week. So we automate, and much of the time we are right to.
Yet every field that has taken automation seriously, from chemical plants to flight decks, has learned that the story is more complicated than “automate the chore and be free of it.” Automation does free people from the chore. It also changes what the people who remain are asked to do, and what they are still able to do when the machine cannot cope. That is the question of this chapter: what automation actually does to the work it touches, and what it leaves for the humans still standing beside it.
The clearest early answer came in 1983, when the British psychologist Lisanne Bainbridge published a short paper in the journal Automatica called “Ironies of Automation.” Its argument fits in a sentence. When we automate a process we do not remove the human from it; we change the human’s job, usually into a harder one, and in ways that erode the very skills the new job demands. The irony lies in what the operator is kept on for. The operator stays for the moments the automation cannot handle, which are by their nature the rare and difficult ones, while the automation has taken away the everyday practice that would have prepared the operator for them. Bainbridge was writing about industrial control rooms and aircraft, yet four decades later the paper reads as if it had been written about a platform team with an on-call rotation. Section 3.3 works through her argument properly. For now it is enough to carry a suspicion into the chapter: every automated chore leaves some work behind, and that leftover work tends to be harder than the chore was.
Encore has automated a great deal, and mostly to its benefit. Its preparations for an on-sale, once worked through by hand from a wiki page, now run from a single button. Its platform upgrades the Kubernetes nodes beneath every service without anyone touching them. Its seat ledger fails over from one leader to another so reliably that hardly anyone in the company still remembers how to do it by hand. Each of these is a genuine success, and each is also one of Bainbridge’s ironies waiting for its moment. This chapter follows Encore’s automation in order: from the chores that justified it (Section 3.1), through the way a runbook grows into a script and then into a self-service tool (Section 3.2), to the ironies themselves (Section 3.3), and on to the practical question of how much a machine should be allowed to do alone (Section 3.4). It ends with the newest machine Encore has added, an operations agent that does more than follow steps: it investigates and acts (Section 3.5). Chapter 1’s map of Encore shows where each of these pieces sits.
3.1 Toil and the Case for Automation
What toil is
Before we can say what automation does to operational work, we need a name for the work it is meant to replace. Google’s site reliability engineering (SRE) book (2016) gave the field its working definition. Toil is work tied to running a production service that is manual, repetitive, automatable, tactical rather than strategic, devoid of enduring value, and that grows linearly as the service grows. The definition is a conjunction, and each adjective narrows it. Manual means a person does it. Repetitive means it comes back, again and again, in much the same form. Automatable means a machine could do it just as well, because the task follows a pattern rather than calling for judgment. Tactical means it reacts to what is in front of us today instead of moving the system somewhere better. Devoid of enduring value means that when it is finished, the service is no better than it was before; we have only kept it where it was. A task done once is therefore not toil, however tedious it feels, and a task that needs fresh judgment each time is not toil, however often it comes round. Toil is the work that a capable engineer could do in their sleep, and sometimes, at 3 a.m., very nearly does.
Of the six properties, the last matters most, because it is the one that turns an annoyance into a strategic problem. If a chore grows in step with the service, so that twice the customers or twice the events mean twice the hours, then a team whose work is mostly toil can grow only by hiring as fast as the business grows. Such a team never gets ahead; every gain in the business arrives already carrying its share of hand work. Google’s SRE organization answered this by setting itself the goal of keeping toil below 50% of each engineer’s time, so that at least half of every week went to engineering work, and in particular to the work that removes toil. It is worth being precise about the strength of that claim. Google stated the 50% figure as a goal, not as an achievement, and its own quarterly surveys found the average nearer a third. The SRE book also allows that toil is fine in small doses: a little routine work is predictable, even restful, and it keeps people in touch with how the system actually behaves. That last point is not a throwaway. Section 3.3 will show what removing the last of the toil can cost the people who used to do it.
Encore’s toil, measured
A definition is only useful if we can hold real work up against it, so Encore measured. The Reliability team, the ten site reliability engineers in Encore’s platform group, asked on-call engineers to tag their interrupts for a quarter. Each tag was tied to a page or a ticket, which kept the exercise honest: an engineer could not simply estimate how the week had felt, but had to classify what had actually interrupted it. Across the stream-aligned teams, the teams that own and run Encore’s customer-facing services, roughly 30% of the on-call week met all six properties of toil. That figure sits close to the third that Google’s surveys found, and well inside the 50% goal, so on average Encore was not in trouble.
The average concealed one team that was. The On-Sale team, in the spring touring season, spent closer to 45% of its on-call week on toil, and most of that went on one chore: preparing the platform before each scheduled on-sale. This is toil in its purest form. The preparation is manual and repetitive, the same steps every time. It needs little fresh judgment once the steps are known. It leaves nothing behind once the on-sale is over. And it grows linearly, because every new tour that Encore sells brings more on-sales, and every on-sale needs its own preparation. Section 3.2 follows that chore from a wiki page to a self-service workflow.
The touring world that Encore serves has met this problem before, and solved it in a way worth studying. A touring production rigs the same stage in a new venue every few nights. Rather than wire everything from scratch at each stop, the crew pre-wires what it can into road cases, so that load-in becomes an act of assembly rather than construction: the cables, the patching and the labeling were done once, carefully, back at the shop, and each night’s work is to connect the cases and check them. That is exactly what good operational automation does. It moves the careful work to a calm moment in advance and leaves only the assembly for the busy one.
The analogy breaks, and usefully, at the venue whose roof cannot take the standard rig. There the pre-wired cases are of little help, because they encode assumptions about the venue that this venue does not meet, and the crew has to fall back on the skills that pre-wiring had made unnecessary night after night. Pre-wired cases help only where the venue matches what they were wired for. Automation behaves the same way: it is a bet that tomorrow will look like the conditions it was built for, and it pays off exactly as long as that bet holds. We will meet the venue with the weak roof again, in software, in the next section.
The case, and its fine print
None of this is an argument against automation, and the SRE book’s chapter on the evolution of automation makes the positive case well. Automation is consistent where people vary, fast where they are slow, and it turns knowledge held in a few heads into a platform that anyone can use. Of the three, consistency matters most, because most operational mistakes come from variation: the step skipped because the engineer was tired, the flag typed slightly differently from last time, the check forgotten because the last ten times it passed. A machine does not get tired and does not improvise. Speed is welcome, and the spread of knowledge is valuable, but it is the removal of variation that makes automated operations safer as well as cheaper.
Consistency has a shadow, though, and the same chapter of the SRE book shows it. It recounts Diskerase, a workflow for decommissioning machines, which was handed an empty list of machines, read the empty list as “everything,” and began wiping disks across a fleet with all the speed and consistency that automation promises. A person handed an empty list would have stopped and asked what was meant. The workflow did not stop, because nobody had told it that an empty list was strange. It repeated its mistake as faithfully as it would have repeated a success, and much faster than any person could have.
Google’s remedies are the ones every consequential automation needs, and each one answers a specific part of the failure. First, treat an empty or implausibly large target set as an error, because “act on nothing” and “act on everything” are both far more often a bug than an intention, and refusing them would have stopped Diskerase at the start. Second, limit how much may change per unit of time, so that when a mistake does slip through, it touches a few machines before someone notices, rather than a fleet. Third, make every step safe to repeat, so that once the run is stopped and the fault is fixed, the work can be resumed without first untangling which steps ran and which did not. Together these turn the automation’s speed from a liability back into an asset: the machine still moves quickly, but within bounds that a person chose in advance.
I find it useful to see automation as abstraction applied to work. An abstraction hides detail behind a simpler interface, so that we can think about what a thing does without holding how it does it in our heads; a button labeled “prepare the on-sale” hides 31 steps in exactly that way, and the hiding is the point, since it is what lets an engineer stop thinking about those steps. But like every abstraction, automation leaks under unusual conditions. The leak comes when the hidden steps suddenly matter again: the target list is empty, the venue is new, the dependency answers in a way it never has before. And it tends to come when nobody has looked at those steps in a year, precisely because the abstraction worked so well for so long. In the language the Architecture book
borrowed from Brooks, toil is the accidental complexity of operations, performed by hand. Automation removes the manual work, which is a real gain, but it does not remove the complexity. It leaves the complexity in place, where nobody sees it, until the day the abstraction leaks and someone has to see it all at once. The rest of this chapter is about that someone.
Recap. Toil is manual, repetitive, automatable work that leaves no enduring value and grows with the service, and it is that linear growth, more than the tedium, that makes it worth fighting. Automation’s first gift is consistency and its second is speed, but it repeats mistakes as faithfully as successes, so any consequential automation needs limits on what it may touch and how fast. Like any abstraction, it hides complexity without removing it, and the hidden part returns when conditions are unusual.
Exercise 3.1. For one on-call week, tag every interrupt against the six properties of toil, tying each tag to its page or ticket so that the record reflects what happened rather than how the week felt. Which chore takes the largest share of the time? Then ask how that chore scales: does it grow with your customers, your services or your tenants, and what would it cost in a year if that number doubled?
3.2 From Runbook to Script to Self-Service
The prompt book
Once a team has found its toil, the usual first step toward removing it is to write the work down. A runbook is a written procedure for an operational task, precise enough that someone who did not write it can follow it under pressure. The idea is far older than computing, and the theatre offers one of its best forms. During a performance the stage manager keeps the prompt book: the script, marked in the margins with every cue for light, sound and scenery. From that book the stage manager calls each cue as the moment arrives (“standby lighting 42 … lighting 42, go”), and the crew executes it.
The prompt book is worth studying, because it is a very good runbook, and it is good for three reasons. It is rehearsed, so every cue has been run many times before an audience ever sees it. It is authoritative, so when the book and someone’s memory disagree, the book wins. And it is called by a human with judgment, who watches the stage and can hold a cue for a beat when an actor is late on their mark. The analogy breaks at the first of those qualities, and the break is instructive. A play is fixed once it opens, so the prompt book can be rehearsed until it is right and then stay right. A production system keeps changing under its runbooks, with new services, new limits and new defaults every week, and most runbooks are never rehearsed at all. So they drift: each change to the system leaves the written procedure a little further from the truth, until the day someone follows it faithfully and it is wrong.
Encore’s own story of this begins with its on-sale pre-warm, the chore that consumed so much of the On-Sale team’s week in Section 3.1. It began as a wiki page of 31 steps. Among them: raise provisioned concurrency on the admission edge of the Sale Gate, the virtual waiting room in which fans queue for an on-sale, so that its serverless instances are already running when the crowd arrives. Confirm the leaders of the event’s four Seat Inventory shards, the partitions of the ledger that sells each seat exactly once. Warm the seat-map cache, set the admission rate, load the bot rules, announce the freeze.
The page worked, and it was expensive. Following it took about 70 minutes, and Encore runs some 160 on-sales a year, which comes to nearly 190 hours of skilled attention spent every year on the same 31 steps. Yet the hours were the smaller cost. Because a person worked through the steps by hand, a person could also skip one, and once someone did: the concurrency step was missed, and for the first 90 seconds of that on-sale the Sale Gate ran on cold starts, with fans arriving at an admission edge whose instances were still starting up. A procedure on a page is only as reliable as the attention of whoever is reading it, and attention is exactly what runs short when the same page is read for the 160th time.
Script, then service
The natural answer was to turn the page into code, and an engineer did. prewarm.py took an event_id and ran the steps in order. It cut the 70 minutes to 12, and since a program does not lose its place, no step was ever skipped again. That was a real gain, and the script also brought three new problems.
The first was access. The script needed broad production credentials to touch the Sale Gate, the Seat Inventory shards and the cache, so only the handful of engineers who held those credentials could run it. A chore that anyone could once do by reading a page now depended on a few people being awake and available.
The second was failure halfway through. A person working down the wiki page who hit an error would usually notice and stop. When the script failed partway through, it stopped too, but it left the platform half-prepared: some steps done, others not, and no record of which, except in the code itself. Whoever picked it up had to read the script to work out where the platform now stood.
The third problem was the subtlest. The script encoded the steps without the judgment around them. Beside the admission-rate step, the wiki page had carried a note: “check with the On-Sale lead if the venue is new.” A new venue might need a different rate, and the note was how the procedure asked a human to think about that. This is the venue with the weak roof from Section 3.1, in software: the one occasion on which the standard steps may not fit. The script had no place for such a note. It set the rate and moved on.
That third problem generalizes, and it is the heart of this section. Each step of the wiki page had contained a moment of human attention: a person glancing at the result, perhaps for a second, before going on to the next step. Most of those glances found nothing, which is why nobody thought of them as part of the procedure. But they were part of it, and code removes them unless we deliberately put them back as checks that the program itself performs. Seen this way, a runbook is a script that has not yet been trusted to run alone, and the passage from one to the other is where that trust is earned, one step at a time.
Encore made that passage in a single leap, from 31 manual steps to a program that ran all of them. There is a gentler crossing. In 2019 Dan Slimmon described the do-nothing script, which at first automates nothing at all. It prints the first step, waits for the person running it to do that step by hand and confirm, then prints the next, and so on to the end. It sounds pointless, and it is quietly clever, because it changes where the procedure lives. The steps now have a structure in code: each is a separate function, and the script knows which steps have been done. Each step can then be automated on its own schedule, whenever someone has written the check that replaces the human glance. A do-nothing version of the pre-warm could have automated cache warming early, since a cache’s hit ratio is easy to measure, and left the admission rate to a person for as long as the new-venue question had no better answer than “ask the On-Sale lead.” Automation grows into the procedure step by step, and each step crosses over only when its judgment has been written down.
Encore’s third generation is a self-service workflow in its platform portal, which the teams call curtain-up. Here is how it runs. At 07:30 on the day of a large on-sale, curtain-up proposes a plan for that event, and the On-Sale team’s on-call engineer reviews it and presses go. Each step is designed against the script’s failures:
- Every step is idempotent, meaning that running it twice has the same effect as running it once. That is what lets a failed run simply resume from the step where it stopped, instead of leaving someone to work out what state the platform is in.
- Every step states its precondition, the condition that must hold before it runs, so that it refuses to act on a platform that is not ready for it.
- Every step checks its result. The cache step reports the hit ratio it achieved. The concurrency step confirms that the Sale Gate’s instances are actually provisioned, and not merely requested, which is the difference between capacity the platform has and capacity it has asked for.
The checks are where the wiki page’s margin notes went: the glances that the script lost are rebuilt as explicit questions the workflow asks itself. Curtain-up finishes before the 08:00 freeze and posts its report to the on-sale channel.
Responsibility is now divided along a clear line. The On-Sale team owns what the steps do, because it knows what an on-sale needs. The platform group owns the engine that runs the steps and the credentials it runs them with. The credentials that once sat with a few engineers now sit inside the workflow, and that makes them the thing in curtain-up most worth protecting, since whoever can change what the workflow does inherits its access.
| Wiki page | prewarm.py |
Curtain-up | |
|---|---|---|---|
| Who can run it | anyone who can read | a few engineers with admin credentials | the on-call engineer, through the portal |
| Time per on-sale | 70–120 min | about 12 min | about 15 min unattended, 5 min of review |
| Where judgment lives | in notes beside each step | nowhere | in explicit preconditions and checks |
| Failure halfway | the person notices, usually | half-prepared platform; read the code | resumes from the failed step |
| What it teaches | every step, every time | nothing, unless you read it | the plan and report, if anyone reads them |
Figure 3.1 — Three generations of Encore’s on-sale pre-warm. Each removes toil, and each changes who knows what the steps are.
Read the table by rows and each generation looks like a plain improvement on the last, until the final row. The wiki page was a tutor as well as a procedure. Everyone who followed it learned, every time, what an on-sale needs and in what order. The script taught nothing to anyone who did not read its code, and curtain-up teaches only as much as its plan and report are actually read. That loss of understanding does not appear in any time saving, and Section 3.3 shows what it costs when the automation one day hands the work back.
The table also suggests an order. A simple procedure can sometimes skip a rung, but in general each rung needs the one below it. A script can only be as good as the written procedure it encodes, and automating a procedure that nobody has written down encodes one person’s habits, including the ones they could not explain if asked. Figure 3.2 sets the yearly cost of each generation side by side.
Figure 3.2 — Engineer-hours a year spent on the pre-warm, by generation, against the number of on-sales. Each rung flattens the line, and none reaches zero, because someone still has to read the plan.
Recap. A runbook carries judgment in its margins, in the small moments of attention a person spends checking each step, and code loses that judgment unless we rebuild it as explicit preconditions and checks. A do-nothing script lets that rebuilding happen one step at a time. Each rung of Encore’s pre-warm, from wiki page to script to curtain-up, gained speed, and each also changed who understood the procedure, a cost that the time savings do not show.
Exercise 3.2. Pick one procedure your team runs by hand. Name its rung on the ladder: written page, script or self-service workflow. Then, for each step, list the moment of human attention it contains, such as a glance at a dashboard, a judgment call or a question to a colleague. Which of those moments would a script silently remove, and what check would you write to put each one back?
3.3 The Ironies — Deskilling, Surprise, and the Hand-Back
Bainbridge’s argument
To read Bainbridge well, it helps to remember the hope she was answering. In the early 1980s many engineers treated the human operator as the unreliable part of a process plant or a flight deck, the component most likely to fail, and so the obvious goal of good design was to automate that operator out of the loop. Bainbridge did not argue against automation. Her point was about what such a design leaves behind, and she began by noticing that error does not disappear when we automate; it moves upstream. Every decision the machine makes was made first by a designer, months or years earlier, who had to anticipate each case the machine would meet. Where that designer foresaw the situation correctly, the automation behaves well. Where the designer missed it, the machine carries the mistake faithfully into production, with no one at the moment of action in a position to notice.
Then she asked what the operator is left to do, and the answer is the first irony. The operator inherits whatever the designer could not work out how to automate. That is not a coherent job anyone set out to design; it is an arbitrary collection of leftovers, and because the easy, well-understood tasks are exactly the ones that get automated first, the leftovers tend to be the hardest and least understood tasks in the whole system.
One of those leftover tasks is watching the automation, and here the second irony appears. We ask people to monitor a system that almost never misbehaves, yet research on vigilance going back to the 1940s had already shown that human attention to a display on which little happens decays within about half an hour. A person cannot stay alert for an event that does not come, however conscientious they are, and so the safeguard we rely on is weakest during the long quiet stretches that make up most of the automation’s working life.
The third irony arrives when the automation does fail. The operator must then take over by hand and work out what went wrong, and both of those are skills, which decay without use. An engineer who last performed a procedure two years ago is, for practical purposes, performing it fresh. Bainbridge added a further catch that ties the ironies together. To monitor automation well, the operator has to know what it ought to be doing at each moment, and that knowledge is built by doing the work oneself, the very work the automation has taken away. The better the machine, the less the operator practices, and the less able they become to judge whether the machine is right.
Her conclusion, paraphrased, runs against intuition: the most successful automated systems, the ones that need human intervention least often, may need the greatest investment in operator training. I have come to believe this is the most useful sentence a platform team can carry into a design review, because it reverses the usual accounting. We tend to treat a reliable automation as a reason to spend less on the people around it, when Bainbridge’s reasoning says its very reliability is what makes their rare intervention so hard.
Surprise and the hand-back
Bainbridge described the conditions; later researchers gave names to what it feels like to work inside them. Nadine Sarter and David Woods called the experience of automation behaving in ways its operators did not expect automation surprises (Behind Human Error, 2010). An automation surprise is not necessarily a malfunction. Often the machine is doing exactly what it was built to do, and the surprise lies in the gap between that and what the people supervising it believed it was doing. Earl Wiener, studying the glass-cockpit airliners of the 1980s, whose flight-management computers took over much of the flying, reported three questions their pilots kept asking: what is it doing, why did it do that, and what will it do next? Anyone who has watched an autoscaler, a deployment controller or a failover mechanism act on its own during an incident will recognize all three, usually asked aloud in the incident channel.
The moment that matters most is the hand-back, when automation gives control back to people, and aviation’s most studied hand-back is Air France 447, lost over the Atlantic on 1 June 2009 with all 228 aboard. Its airspeed probes iced, so the aircraft could no longer trust its speed readings, and the autopilot disconnected. The crew had to fly by hand at cruise altitude, which airline pilots rarely do, because at cruise the automation nearly always flies. The investigators’ report (2012) has Bainbridge’s shape. Control came back to the humans in exactly the conditions the automation could not handle, and it came back to people whose practice at that task was thin. The automation did not hand over an easy situation; it handed over the one it had been unable to resolve, which is the only kind of situation automation ever hands back.
That observation is the thread through the rest of this section. Automation returns control when it is confused, so whatever reaches a person has already defeated the machine, and it reaches them with little warning.
The automation that raced itself
Our own field supplied a textbook case in October 2025, and we can tell it in Amazon’s own words, from the account AWS published afterwards. Late on 19 October, Amazon DynamoDB in the us-east-1 region began failing because its regional endpoint, the DNS name clients use to reach the service, resolved to nothing. To those clients, DynamoDB had simply vanished.
The cause lay in the automation that manages that DNS record, and it is worth following step by step, because each step on its own was reasonable. DynamoDB’s DNS management is split into two roles. A Planner produces plans, each describing what the DNS records should look like. Several redundant Enactors apply those plans; there are several so that the loss of any one does not stop updates. On that night one Enactor was badly delayed. Meanwhile another Enactor applied a newer plan and then, as part of its normal housekeeping, cleaned up old plans. The delayed Enactor eventually reached its write. It had checked earlier that its plan was fresh enough to apply, but that freshness check was by now long stale, and so it wrote its old plan over the new one. The cleanup then deleted that old plan, which was by this point the live one. The record was left empty, in a state that blocked further updates, so the automation could not repair its own damage, and operators fixed it by hand some two and a half hours in.
The trouble did not end with DNS. Downstream, EC2’s recovery needed manual work that, by AWS’s account, had no established procedure, so engineers were working out the recovery as they performed it. They also had to switch off a load balancer’s automatic failover, because that automation, reading the failing health checks, was removing healthy capacity and making matters worse.
Read against Bainbridge, the incident contains each of her ironies in turn. The original error sat upstream with the designers, in a race between Enactors that no operator could have caused or caught as it happened. The automation, once broken, could not hand back a clean situation; it handed back an empty record that blocked its own repair. The recovery called on skills nobody had practiced, because the automation had always done that work. And one helpful automation, the load balancer’s failover, amplified the damage until people turned it off. AWS’s fixes read like her prescriptions. It disabled the DNS automation worldwide until the race was fixed: an off switch. It added a velocity control, a limit on how much capacity health-check failover may remove, so that automation acting on bad signals can do only bounded harm. And it began building tests that exercise the recovery workflow itself, so that the path people take when the machine fails is practiced before it is needed.
The failover nobody has done
Encore has its own version of this pattern, quieter and so far harmless. Seat Inventory elects a new shard leader automatically when the current one fails. It uses fencing: each leader holds a numbered term, and writes carrying an older term are refused, so a deposed leader that wakes up late cannot keep writing and sell a seat twice. The mechanism has handled about 60 failovers in 19 months with no human involved.
There is one case it will not decide alone. When the election cannot confirm that the old leader’s term has expired, it stops, preferring no leader to two, because two leaders could each sell the same seat. That is the right choice for a ledger whose first rule is that every seat is sold exactly once. But it means a person must finish the job by hand: confirm the fence, advance the term, promote a replica and verify that the ledger’s sequence is intact. Last spring, of the 34 engineers on the Inventory and On-Sale on-call rotations, 4 had ever done this in production, and the most recent had done it 19 months earlier. Game days had exercised only the automatic path, because the automatic path was the one that always ran.
Put these facts together and Bainbridge’s reasoning plays out almost mechanically. Because the automation is good, the hand-back is rare. Because the hand-back is rare, the skill decays. And when the hand-back does come, it will come in exactly the situation the automation found too ambiguous to resolve, which is to say the hardest version of the task, and quite possibly while 500× normal traffic is pressing on the shards. A failover we never practice is one we will perform for the first time during an on-sale.
The theatre has a long-standing answer to this problem in the understudy, the performer who learns a lead role and may never go on. Good productions do not leave understudies to study the script at home; they hold understudy rehearsals, so that on the night the lead falls ill the understudy has already walked the part on the real stage. The analogy holds for skill, and it breaks in a way worth noticing. An understudy usually gets some warning and goes on to a show that is otherwise running normally, while the engineer finishing a stalled failover gets no warning and is called on precisely because something unusual has already happened.
Encore’s response has been modest and, I think, correct. The Inventory team now runs a manual failover in staging every month, rotating the operator so the skill spreads across the rotation instead of staying with the four. Every quarter it runs one in production, on a shard serving no live on-sale, with an abort criterion agreed beforehand so the drill can be stopped cleanly if anything looks wrong. The cadence is Encore’s own judgment, not a published standard; studies find procedural skill fading over months, which makes monthly practice a reasonable choice rather than a proven one. The first drill earned its keep at once: it found two stale commands in the procedure, commands that would have failed in the middle of a real hand-back and left someone improvising under pressure. Figure 3.3 sketches the shape of the problem.
Figure 3.3 — Readiness for the manual failover, sketched (the curve is illustrative; the counts are Encore’s). Sixty automatic failovers did nothing to keep the manual path alive.
The same pattern lies, still dormant, in another of Encore’s good automations. The node-upgrade reconciler, the platform automation that keeps the Kubernetes nodes beneath every service on current versions (the Resilience book
counts it among Encore’s control loops in its chapter on the runtime), replaced a quarterly weekend of manual node upgrades. It drains each node in turn within the workloads’ disruption budgets and has caused almost no pages in a year, which is about as much as anyone asks of platform automation. A disruption budget limits how many of a workload’s pods may be down at once. It says nothing about when the disruption happens, and that silence is why managed upgraders offer maintenance windows and exclusions for peak weeks: the budget protects capacity, and only a calendar protects timing. Encore’s home-grown reconciler has a hold annotation, a marker an engineer can put on a node to tell the reconciler to leave it alone, and it has no calendar. It knows nothing about the on-sale calendar, and so far that has not mattered.
Recap. Automation moves error upstream to its designers, leaves operators the hardest and least understood tasks, asks them to stay alert for rare events, and erodes the skills they need when control comes back, which it does only in the situations it could not handle. AWS’s 2025 outage shows all of it in one night, and its remedies were an off switch, a limit on how fast automation may act, and a recovery path drilled in advance. Encore’s manual failover drill applies the same lesson to a skill that 60 successful automatic failovers had quietly let fade.
Exercise 3.3. Take the three most important automated recovery actions in a system you run. For each, find the manual procedure that applies when the automation stops or gives up, count how many people have performed it in the last year, and check that the automation can actually be switched off, and by whom. Schedule a drill for the action with the lowest count, and note what the drill reveals about the written procedure.
3.4 Levels of Automation and Calibrated Trust
How much should the machine do alone?
Section 3.3 left us with an uncomfortable picture: automation that works well tends to hollow out the skills we need on the day it does not. The natural response is to ask a more careful question than “should we automate this?” The better question is how much the machine should do on its own, and how much should stay with the person beside it. That question is older than our field. In 1951 the psychologist Paul Fitts wrote a report listing the things humans do better than machines and the things machines do better than humans, and with it he began a long argument about allocation, the dividing of a system’s work between people and machines.
Thomas Limoncelli’s 2015 column “Automation Should Be Like Iron Man, Not Ultron” gives a clear map of that argument by naming three principles of allocation. The first is the left-over principle: automate everything that can be automated and leave people whatever remains. This is precisely the design Bainbridge criticized, because “whatever remains” turns out to be the hardest and least understood work, handed to people who no longer practice it. The second is the compensatory principle: give each task to whichever party, human or machine, does it better, which is Fitts’s list put to work. It sounds reasonable, but it divides the work into two piles and does nothing to keep the people able to pick up the machine’s pile when the machine fails. The third is the complementarity principle, which Limoncelli favors: people and machines work on the task together, so that the people keep the understanding and the skill they need to take over. The title of his column carries the idea. Iron Man is a person whose suit amplifies what he can do while he remains in charge of it; Ultron is a machine that has stopped needing anyone at all.
Principles tell us which way to lean, but to design a particular piece of automation we need finer distinctions than “human” and “machine.” For that vocabulary we turn to Thomas Sheridan and William Verplank. In 1978, studying the remote control of undersea vehicles at MIT, they set out a series of levels of automation, graded steps between full human control and full machine autonomy. The ten-level table usually quoted today is the version Raja Parasuraman, Sheridan and Christopher Wickens published in 2000, and it came with a refinement that matters a great deal in practice. The level is not chosen once for a whole system; it is chosen separately for each function the automation performs, from gathering information, through analyzing it and deciding what to do, to taking the action. A system may gather information entirely on its own while still leaving the decision to a person, and the table makes that distinction easy to state.
| Level | What the machine does | Encore example |
|---|---|---|
| 1 | Offers no help; the human does everything | the old pre-warm wiki page |
| 2–3 | Offers a full set of options, or narrows them to a few | a dashboard listing candidate replicas for a manual failover |
| 4 | Suggests one action | an alert that links the matching runbook step |
| 5 | Executes the suggestion if the human approves | curtain-up: the on-call engineer reviews the plan and presses go |
| 6 | Allows a limited time to veto, then acts | a proposed scaling change that applies unless rejected within 5 min |
| 7 | Acts, then necessarily informs the human | curtain-up’s individual steps, reported in the channel |
| 8 | Acts, and informs only if asked | the node-upgrade reconciler (its log is there for anyone who looks) |
| 9 | Acts, and informs only if it decides to | Bot Screening’s velocity rules, which block clients silently |
| 10 | Decides and acts entirely alone | Seat Inventory’s fenced leader election, within its narrow domain |
Figure 3.4 — Levels of automation, in the 10-level form of Parasuraman, Sheridan and Wickens (2000), applied to Encore. The level belongs to each action: curtain-up sits at level 5 for the decision and level 7 for its steps.
Curtain-up, the self-service pre-warm of Section 3.2, shows why the per-function view is useful. Considered as a whole, it is hard to say how automated it is. Considered decision by decision, the answer is plain. The choice to prepare the platform for this on-sale sits at level 5, because nothing happens until the on-call engineer has read the plan and pressed go. Each individual step, once approved, sits at level 7: curtain-up raises the concurrency or warms the cache without asking again, and then reports what it did in the on-sale channel.
When a team draws this table for a real system, it usually discovers that its most consequential automation sits at a level nobody chose. The level is whatever the first version happened to be built with, and it has stayed there because nobody went back to ask. Encore now treats the level as a design decision: it chooses the level for each action and writes down why. Level 6 deserves a word of its own, because it is the least familiar. It is rare in operations tooling, most of which treats an unanswered approval request as a refusal, so that nothing happens if nobody responds. Level 6 reverses that default: silence means yes. Encore uses it only where acting late costs more than acting wrongly. A scaling change during a surge is the example in the table. If the change is wrong, someone can reject it within the five minutes, or reverse it afterwards; if it waits for an engineer who is busy elsewhere, the fans who arrive in the meantime meet a platform too small for them.
Use, misuse, disuse, abuse
The levels describe what a machine is permitted to do. They say nothing about how the people around it actually behave, and that is the other half of the story, because a level 5 approval means little if the human approves without reading. In 1997 Parasuraman and Victor Riley gave this half a vocabulary of four words, which describe four relationships people form with automation.
| Term | Meaning | How it looks in operations |
|---|---|---|
| Use | relying on automation when appropriate | running curtain-up and reading its report |
| Misuse | over-reliance, including complacency | approving the plan unread, because it has always been right |
| Disuse | under-reliance, usually after false alarms | muting an alert channel that cried wolf last month |
| Abuse | automating without regard for the people left to supervise it | a remediation bot with no way to see or pause what it does |
Figure 3.5 — Parasuraman and Riley’s four relationships with automation. Misuse and disuse are failures of trust; abuse is a failure of design, made by designers and managers far from those who live with it.
The distinction in the caption is worth dwelling on. Misuse and disuse happen in the minds of the people who work with the automation: they trust it too much or too little. Abuse happens earlier and elsewhere, in the decisions of those who build and deploy it, and the operators who inherit it can do little about it except complain. A remediation bot that acts and offers no way to watch or pause it has made misuse or disuse almost inevitable, because the people beside it have nothing to base their trust on.
Misuse has a long history outside computing. Mariners had a name for it, the radar-assisted collision: a collision between ships whose officers trusted what the radar screen showed them over careful plotting of the other vessel’s course. The radar was a real improvement, and its very usefulness made it easy to stop doing the slower work that would have revealed what it was not showing. In 2004 John Lee and Katrina See gave the idea its precise form. Calibrated trust is reliance that matches the automation’s actual capability: high where it performs well, low where it does not, and fine-grained enough to tell the two apart. The last clause is the demanding one. Trust is not a single dial set for a whole tool; a well-calibrated engineer trusts curtain-up’s cache step on an ordinary on-sale and looks harder when the venue is new.
How do people arrive at calibrated trust? Lee and See observed that people base their trust on three things they can learn about the automation: its performance (what it does and how well), its process (how it does it), and its purpose (what it was designed to achieve). It follows that designers should make all three visible, because people cannot calibrate trust against evidence they never see. Encore’s two kinds of report show the difference. A curtain-up report that shows the cache hit ratio, and confirms that instances are provisioned and not merely requested, lets the engineer see whether the preparation really happened, and so supports calibrated trust. A report that says only “done” gives no evidence at all, and the engineer can either believe it or not, which is to say can only misuse or disuse it.
Figure 3.6 — Calibrated trust, after Lee and See (2004). Trust should track what the automation can actually do; misuse lives above the diagonal and disuse below it, and the same team can sit in both places with two different tools.
The figure’s last observation matches what we see in practice. A team is rarely trusting or distrusting by temperament. The same people may approve curtain-up’s plan without reading it, because it has never been wrong, while ignoring an alert channel that paged them for nothing last month. Each of those habits is a reasonable response to the evidence the team has seen, and each is miscalibrated. The remedy in both cases is better evidence, presented where the people will see it.
Automation as a team player
The levels of automation tell us how much the machine may do, and calibrated trust tells us how much the people should rely on it. A third question remains: can the people and the machine work together at all, when something unexpected happens? In 2004 Gary Klein, David Woods and colleagues asked what it would take for automation to be a “team player,” and they answered by looking at what makes human teammates good to work with.
Teammates, they argued, first enter a basic compact, an agreement, usually unspoken, to coordinate with one another and to warn the others when they cannot keep up their part. Beyond that compact, good teammates are mutually predictable, so that each can anticipate what the other will do next. They are directable: one can redirect the other as circumstances change. And they maintain common ground, the shared knowledge, beliefs and assumptions that let a short message carry a great deal of meaning. The stage manager of Section 3.2, calling “standby lighting 42,” relies on all four. The lighting operator has agreed to say so if the cue cannot be run, knows what follows in the prompt book, will hold if the call changes, and shares enough of the show that a three-word call is a complete instruction. The analogy breaks where it should: a lighting operator understands why the cue matters to the performance, and automation understands only what its designers wrote down, so the common ground it shares must be put there deliberately.
Measured against these tests, Encore’s automation varies a good deal. Curtain-up passes them. It keeps the basic compact, because every step checks its own result and stops and reports when a check fails, instead of carrying on half-finished. It is predictable, because it shows its plan before it acts. It is directable, because nothing runs until the on-call engineer presses go. And it builds common ground, because its report in the on-sale channel tells the team what was done and what was found. The node-upgrade reconciler is predictable, and it is directable through its hold annotation, but it shares little common ground with the teams whose workloads run on its nodes: as Section 3.3 noted, it knows nothing about the on-sale calendar, which is the most important thing those teams know. Bot Screening’s velocity rules, acting silently at level 9, are the weakest teammate of the three. They block clients without telling anyone, so the people beside them can neither predict them nor easily redirect them in the middle of an on-sale.
Of the four tests, directability is the one most often failed, and it is also the cheapest to pass. The AWS outage of Section 3.3 shows its minimum form. Engineers had to switch off the load balancer’s automatic failover because it was removing healthy capacity, and AWS disabled the DNS automation worldwide until the race was fixed. Both remedies depended on there being a way to stop the automation. So the least we should ask of any piece of automation is a documented off switch, in place, known to the people on call, and tested before an incident rather than discovered during one. My own conviction is that a team which cannot say how to stop a piece of automation does not yet fully operate it; it merely hosts it.
Recap. The levels of automation state, for each action and each function, how much a machine may do without being asked, and that level should be chosen deliberately rather than inherited from a first version. Parasuraman and Riley describe the ways reliance goes wrong, through misuse, disuse and the design failure of abuse, and Lee and See show how to calibrate trust by making the automation’s performance, process and purpose visible. The team-player tests ask whether automation can be supervised at all, and the first of them to satisfy is the simplest: an off switch that people know about.
Exercise 3.4. Place five automated actions from your platform on the 10-level scale, deciding the level for each action rather than for the system as a whole. For the action at the highest level, answer the four team-player questions: does it keep the basic compact, is it predictable, is it directable, and does it share common ground with the people around it? What would make it directable during an incident, and who on your rotation knows where its off switch is?
3.5 Operations Agents — Automation That Investigates and Acts
A loop that chooses its own path
Every piece of automation we have met so far in this chapter, from the wiki page to curtain-up to the node-upgrade reconciler, follows a path that someone wrote down in advance. The newest machine on the platform does not. An operations agent is a language model running in a loop with tools wired to production telemetry and control. On each turn of the loop, the model reads what its last tool call returned and decides what to query or do next: it might look at an error-rate graph, notice that the errors began at 09:52, ask for the deploy history around that minute, find a Catalog rollout, and then pull the logs of the pods that rolled. Nobody wrote that sequence. The agent assembled it from what it saw.
That is both the promise and the difficulty. Because an agent chooses its path at run time, it can follow a symptom into corners of the system where no runbook goes, which is exactly what we want from an investigator at 3 a.m. But for the same reason, reading its code tells us almost nothing about what it will do next; the behavior lives in the model and in whatever the model happened to read, and neither can be reviewed the way we review a script. This changes where the limits of automation come from. A runbook script is bounded by its program, so if the script contains no command to delete a database, it will never delete one. An agent is bounded only by the tools and credentials placed around it, so if a credential within its reach can delete a database, then deleting one is among the things it might do. The level of automation we met in Section 3.4, the measure of how much a machine may do unasked, is therefore no longer a property of the agent’s code. It is a property of its permissions, and the rest of this section is, in one way or another, about where those permissions live.
Where agents help, and where they do not
Before deciding how far to trust such a machine, we should look at what agents have actually been shown to do. The published record is young, but it is more specific than the enthusiasm around it, and it points to three kinds of work where agents earn their keep.
The best-documented success is narrowing the list of suspects. Meta described in 2024 a system for incident investigation that works in two stages. First it filters the recent changes to its web monorepo using ownership and the code graph, keeping only those plausibly related to the failing system; then a fine-tuned Llama model ranks what remains. In a backtest against past investigations, the change that actually caused the incident was among the model’s top five 42% of the time. It is worth reading that number both ways: four times in ten, an investigator who would otherwise sift hundreds of changes gets a shortlist of five that contains the culprit, which is a great deal of saved time; and six times in ten, the culprit is not on the list at all. Meta’s design takes the second reading seriously, because answers the model is not confident about are withheld rather than shown, so that a wrong shortlist does not send a tired engineer confidently in the wrong direction.
The second kind of work is answering questions and drafting summaries, which is mostly retrieval: finding the right runbook, the relevant past incident or the owner of a service, and putting it in front of the person who asked. Uber’s on-call copilot, Genie, had answered over 70,000 questions by 2024, with a reported helpfulness rate just under 49%. Roughly half of the answers helped, then, which sounds modest until we remember the alternative, a question posted in a busy channel and answered, if at all, by whichever expert happened to be awake.
The third is action behind approval. The cloud providers’ own operations agents investigate under a read-only role, and when an investigation leads to a change, each write is approved separately by a person, with credentials narrowed to that one operation. The agent does the legwork and proposes; a human decides; and the credential that carries out the decision can do nothing else.
End-to-end diagnosis and autonomous remediation are another matter. ITBench, a benchmark from IBM and academic colleagues presented at ICML 2025, gave agents built on state-of-the-art models 102 realistic IT scenarios and asked them to find and fix the problem in each. They resolved 11.4% of the site reliability scenarios, which is to say that roughly nine times in ten the agent did not get from symptom to repair on its own. A benchmark is not production, and the numbers will move. But on the record we have, agents in 2026 are fast researchers, unreliable diagnosticians and unproven operators, and I think we should design around all three of those judgments at once: use the speed, check the diagnosis, and fence the operations.
Two failures and what they teach
Successes show what agents can do; failures show where the boundaries must go. Two failures from July 2025 teach more than any benchmark, because each shows a different route by which an agent comes to do harm.
The first route is permission. During a public trial of Replit’s coding agent by Jason Lemkin, founder of SaaStr, the agent ran destructive commands that erased his production database, in the middle of a “code and action freeze” he had declared. It is tempting to read this as a story about a disobedient machine, but the more useful reading is structural. The freeze was an instruction typed into a conversation; it changed what the agent had been asked to do, and it changed nothing about what the agent was able to do. The agent still held every permission it had held before the freeze, and development and production shared one database, so a command meant for one could land on the other. Replit’s response was accordingly structural too: automatic separation of the development and production databases, so that the boundary no longer depended on the agent remembering an instruction. The pattern repeated. In April 2026, by its founder’s account, the startup PocketOS lost a production database the same way, to an agent that came across an API token created for managing domains but valid for anything. Nobody had meant to give the agent the power to delete production; the token simply allowed it, and the agent found the token.
The second route is reading, and the second case concerns what an agent takes in. Version 1.84.0 of the Amazon Q Developer extension for Visual Studio Code, published on 17 July 2025, carried a prompt telling the agent to clear a system “to a near-factory state and delete file-system and cloud resources.” An attacker had committed it to the extension’s source through an over-scoped build token, and it shipped in an official release; AWS says a syntax error kept it from running. Here the dangerous instruction did not come from the user at all. It came from text the agent was given to read. A language model cannot reliably tell instructions from data, because to the model both are simply text in its context, and so a ticket, a log line or a retrieved postmortem can carry an instruction just as well as a prompt can. An attacker who can get words into anything the agent reads can try to steer an agent that holds more authority than the attacker does, which is the old confused-deputy problem in a new form, and which the Resilience book takes up in full in its chapter on operating AI workloads. It follows that making an agent read-only does not make it safe from this route, because a read-only agent still reads attacker-reachable text; what read-only protects is the system the agent might act on, which is precisely why the permissions matter so much.
Across all three cases, the instruction that should have prevented the harm lived in the wrong place: in a conversation, in an assumption about a token, in trust in a build pipeline. And in all three, the lasting fix was made in the platform, by changing what was possible, rather than in the prompt, by changing what was asked. This, I think, is the central lesson of operating agents so far: whatever we want an agent never to do must be made impossible for it by the platform, because forbidding it in words has repeatedly proved too weak.
Cue
With that lesson in hand, we can look at how Encore built its own agent. Encore’s operations agent, Cue, is built on the company’s internal Model Context Protocol (MCP) server, the service that exposes Encore’s tools to language models in a standard form, so that each tool has a name, a description and defined inputs. Cue is read-only by default. It reads telemetry, deploy history, runbooks and past postmortems; it answers questions in the incident channel; and it drafts incident timelines, as Chapters 4 and 5 show. In the terms used earlier in this section, it sits in the first two kinds of work, narrowing suspects and answering questions, almost all of the time.
The name is apt, and the theatre it comes from is worth a moment, because it shows both the design and its limit. In Section 3.2 we met the stage manager’s prompt book and the call that runs a show: “standby lighting 42,” then “lighting 42, go.” The standby warns the crew and gives everyone a moment to object; the go is a separate act, spoken by the person who owns the show. Cue’s write path has the same two beats, a plan posted first and a person’s approval second. But the analogy breaks in an instructive place. In the theatre, the crew executing a cue has rehearsed it many times, and the stage manager calling it knows from the rehearsal exactly what it will do. With an agent the roles are reversed: the machine proposes the action, often one nobody has rehearsed, and the human has to judge in a few seconds whether it is wise. That reversal is why the rest of Cue’s design exists.
Whatever Cue asks for, it can invoke only actions in a fixed catalog that the MCP server exposes; an action that is not in the catalog cannot be called, however the request is phrased. Each action in the catalog carries a blast-radius tag, a short statement of what else the action can affect if it goes wrong, and Cue must show that tag with every suggestion it makes. The tags were not part of the first design. They came after the Vesper Hale on-sale of Chapters 5 and 6, when Cue suggested restarting Seat Inventory’s pods without saying that each restart would force a leader election, which during an on-sale would have meant more failovers, each with its own window of rejected writes, on the very service that was already struggling. A person declined the suggestion. The tag now puts that consequence on the screen, so that declining it does not depend on the approver happening to remember it.
When Cue wants to act, it first posts a plan in the channel: the action, the target, the blast-radius tag, and how to undo it. When a named person approves that plan in the channel, Encore’s token service issues a token for that one action on that one target, valid for five minutes, through an OAuth token exchange (RFC 8693), the same mechanism Encore uses for all its agents. The token is useless for anything else, and useless to anyone after five minutes. Cue therefore holds no standing write credential; there is nothing lying around in its environment that could do what PocketOS’s domain token did. The per-action token is Encore’s own design choice rather than a requirement of the standard, and it is built on an old idea, the principle of least privilege: grant each actor the narrowest authority that lets it do its job, for no longer than the job takes.
The on-sale freeze is enforced the same way, in the platform rather than in the conversation. When the freeze begins, two hours before a large on-sale, the control plane withdraws Cue’s write scopes on the purchase path, so that an approval in the channel would no longer produce a working token for those actions. If an incident is declared, the mitigation actions return, because during an incident the ability to act quickly matters again, but each still needs a named approver. Compare this with the Replit freeze, which was a sentence in a chat window: Encore’s freeze is a change in what the token service will issue, and no amount of persuasive text in Cue’s context can undo it.
Encore does take the reading route seriously too. Tickets and logs reach the model marked as untrusted, so that the model is at least told which text came from outside. That helps, but only somewhat, since the model may still be steered by what it reads. The real defense is that nothing Cue reads can widen what it may do: the catalog, the tokens and the freeze all live outside the model, where the text cannot reach. The policy file below states this in its first line, and every field in it is enforced by the MCP server and the token service.
# cue-actions.yaml: enforced by the MCP server and token service; the prompt cannot change it
default: read-only # telemetry, deploys, runbooks, postmortems
token: {exchange: rfc8693, scope: one-action-one-target, ttl: 5m}
plan_before_apply: true
freeze: {purchase_path_writes: withdrawn, declared_incident: approval-only}
actions:
catalog.raise_hpa_floor: {blast: "Catalog only; reversible", max: 60, approve: none}
reconciler.hold_node: {blast: "delays one node upgrade", approve: none}
gate.raise_concurrency: {blast: "Gate cost; no fan impact", approve: on-call}
curtain_up.pause: {blast: "on-sale prep stops", approve: on-call}
inventory.restart_pods: {blast: "LEADER-ELECTED: failover per shard", approve: ic}
Reading the catalog from top to bottom is a short lesson in calibrated trust. The two actions at the top touch one service and are easily reversed. The middle two need the on-call engineer. The last, restarting Seat Inventory’s pods, carries the capitalized warning that each restart forces a failover on its shard, and it needs the incident commander (IC), the trained engineer who leads a declared incident, to approve it.
The approve: none entries deserve an explanation, because they are the only places where Cue may act alone. Autonomy at Encore is granted per action class, and by track record. The Reliability team records every suggestion Cue makes as accepted, declined, or, once the postmortem has been written, judged wrong in hindsight, and a class of action moves from level 5 on the scale of Section 3.4 (execute the suggestion if a human approves) to level 7 (act, then necessarily inform the human) only when that record supports it. Two classes have made the move so far. The first is raising Catalog’s autoscaler floor, the minimum number of replicas the autoscaler will keep running, capped at 60; Cue makes the change through the same Git change a person would make, never by scaling the service directly, because Encore’s GitOps agent restores whatever Git declares and would undo a direct change within seconds, leaving the autoscaler and the agent to fight over the replica count (the Resilience book tells of one such fight in its chapter on the runtime). The second is placing a hold on a node in the upgrade reconciler, which at worst delays one node’s upgrade. Both are cheap to be wrong about and easy to undo, which is exactly the kind of action whose record can be trusted to speak for it. Everything else waits for a person.
Reviewing the plan
All of this puts a person at the center of every consequential action, and that is where Bainbridge comes back. Reviewing an agent’s plan is the new monitoring task, and it inherits her warning in full. After a long run of good plans, the reviewer is no longer evaluating each one; they are watching for a rare event, the one bad plan among many sound ones, and we saw in Section 3.3 how quickly attention to a display on which little happens decays. The evidence that this applies to agents is already in. Anthropic reported in 2026 that users of its coding agent approve 93% of permission prompts, and called the result approval fatigue. A prompt that is almost always approved soon stops being read, and an approval given without reading protects nothing.
Approval stays meaningful only while the reviewer could still have done the investigation unaided, because only then can they tell a sound plan from a plausible one. That is the skill an agent erodes, quietly and with the best intentions, simply by always investigating first: why reconstruct the timeline yourself when Cue has already posted one? It is Bainbridge’s deskilling irony once more, in a new form, and Encore answers it the way it answered the manual failover in Section 3.3, by practicing the skill on purpose. Half of all Encore’s drills run with Cue switched off, so that engineers keep finding the suspect change, reading the graphs and forming their own hypothesis without help.
The case for those drills is not abstract. During the Vesper Hale on-sale, the engineer who declined Cue’s suggestion to restart Seat Inventory’s pods had performed a failover by hand a quarter earlier, and so knew, from their own hands rather than from a tag, what each restart would set in motion. That single declined approval is the best argument I have for the drills: the safety of an agent’s plan depended, in the end, on a person who had recently done the work the agent was offering to spare them.
Recap. An operations agent chooses its own path at run time, so its code cannot tell us what it will do, and its safety must live in its permissions. The published evidence supports agents for narrowing suspects, answering questions and acting behind approval; it does not yet support autonomous diagnosis or remediation. The failures at Replit, PocketOS and Amazon Q were each fixed in the platform, and Encore builds Cue the same way: its action catalog, per-action tokens and freeze sit where no prompt can reach them, autonomy is granted one action class at a time by track record, and drills run without Cue so that the people who approve its plans can still judge them.
Exercise 3.5. For every action an AI tool in your operations can take, find where the permission is actually enforced: in a credential, in a platform check, or only in the prompt. Then take the last 20 approvals of its actions. How many were declined, and in how many did the approver check the plan against the source data rather than accepting the agent’s summary of it?
Kata: The Hand-Back
This kata asks you to practice the whole chapter at once, on a company that is not Encore and whose troubles are arranged a little differently. Read the brief slowly, because almost every number in it echoes a section of this chapter: the share of the week lost to toil (Section 3.1), the procedures waiting to climb the ladder (Section 3.2), the rare hand-back that went badly (Section 3.3), the automation acting at levels nobody chose (Section 3.4), and the agent whose permissions live in the wrong place (Section 3.5).
Your brief: “Lanternway.” Lanternway is a managed hosting company that runs 3,000 online shops with a team of 22 operations engineers. Much of its operation is already automated. A remediation bot restarts unhealthy containers about 400 times a week, and database failover happens without any human involvement. An operations agent sits in the on-call channel and can run 15 remediation actions, each with one-click approval, and it acts through a long-lived administrator key. Engineers have approved its suggestions 1,100 times and declined them twice. Even so, on-call engineers still report that 35% of their week goes to toil. Last month a database failover stalled and, for the first time in 14 months, handed control to a human. The manual procedure took 95 minutes, and 40 of those minutes went to finding the right credentials.
Before you start, notice how the pieces of this brief lean on one another. The failover worked hands-off for 14 months, which is exactly why nobody had practiced doing it by hand, and the 40 minutes spent hunting for credentials are what that missing practice looks like during a real incident. The agent’s record of 1,100 approvals against two declines may mean the agent is nearly always right. It may also mean that approval has become a reflex, the misuse of Figure 3.5. The brief cannot tell you which, and your design should make it possible to find out. And the long-lived administrator key means that whatever limits the agent respects today are limits it has been asked to respect, rather than limits it is unable to cross.
Deliverables:
- Toil inventory — the top five sources of toil, and for each, how the work grows as the number of shops grows. Toil that rises in step with the shop count is the kind that forces Lanternway to hire as fast as it sells, so rank those sources first.
- Runbook ladder — the current rung (wiki page, script or self-service workflow) of the 10 most frequent procedures, and a plan to move three of them up one rung. For each step you automate, name the moment of human attention it used to contain and the explicit check that will replace it.
- Levels map — every automated action, the remediation bot and the failover included, placed on the 10-level scale of Figure 3.4, each with its off switch and the people who know where that switch is. Then choose three actions whose level you would change, up or down, and give your reasons.
- Hand-back drills — which manual procedures are drilled, how often and by whom. The stalled failover belongs on this list, and its drill should include finding the credentials, since that is where much of last month’s 95 minutes went.
- Agent permission policy — the agent’s action catalog with a blast-radius tag on each action, the narrowly scoped credential each action uses in place of the shared administrator key, what a freeze withdraws, and which actions, if any, may run without approval.
Rubric:
| Criterion | The question to ask yourself |
|---|---|
| Judgment preserved | When a procedure climbs the ladder, is each moment of human attention it used to contain replaced by an explicit check? |
| Chosen levels | Is each action’s level a written decision, with a rate limit and an off switch, rather than whatever level it happened to be built at? |
| Practiced hand-backs | Would the stalled failover now take minutes instead of 95, and who on the team has practiced it this quarter? |
| Permissions outside the model | If the agent’s instructions were ignored, or overridden by text injected through a ticket or a log, where exactly would it be stopped? |
| Meaningful approval | When the agent is wrong, how likely is a reviewer to decline, and how would you know whether approvals are still being read? |
Where you now stand
You can now measure toil and tell which of it grows with the business. You can move a procedure from runbook to script to self-service without losing the judgment it carried, by turning each human glance into a check that runs every time. You can recognize Bainbridge’s ironies in your own platform: the skill that fades because the automation is good, and the hand-back that arrives in exactly the situation the automation could not handle. You can decide how much each machine may do alone, give it limits and an off switch, and keep an operations agent’s permissions in the platform, where no prompt can reach them. All of this assumes something we have not yet examined: that the people beside the automation, and the automation itself, can see what the system is actually doing. Every hand-back in this chapter began with someone asking what was going on, and every approval of Cue’s plans depends on a person who can check its claims against the evidence. Chapter 4 turns to that ability, observability, and to the question of how we come to know what a running system is doing when it fails in a way nobody anticipated.
References
- Lisanne Bainbridge — Ironies of Automation. Automatica 19(6): 775–779, 1983.
- Betsy Beyer, Chris Jones, Jennifer Petoff, Niall Richard Murphy (eds.) — Site Reliability Engineering. O’Reilly/Google, 2016 — free online.
- Amazon Web Services — Summary of the Amazon DynamoDB Service Disruption in the Northern Virginia (US-EAST-1) Region. 2025 — free online.
- Raja Parasuraman, Thomas B. Sheridan, Christopher D. Wickens — A Model for Types and Levels of Human Interaction with Automation. IEEE Transactions on Systems, Man, and Cybernetics A 30(3): 286–297, 2000.
- Raja Parasuraman, Victor Riley — Humans and Automation: Use, Misuse, Disuse, Abuse. Human Factors 39(2): 230–253, 1997.
- John D. Lee, Katrina A. See — Trust in Automation: Designing for Appropriate Reliance. Human Factors 46(1): 50–80, 2004.
- Gary Klein et al. — Ten Challenges for Making Automation a “Team Player” in Joint Human-Agent Activity. IEEE Intelligent Systems 19(6): 91–95, 2004.
- Thomas A. Limoncelli — Automation Should Be Like Iron Man, Not Ultron. ACM Queue, 2015 — free online.
- David D. Woods et al. — Behind Human Error, 2nd ed.. Ashgate, 2010.
- Dan Slimmon — Do-nothing scripting: the key to gradual automation. 2019 — free online.
- Meta Engineering — Leveraging AI for efficient incident response. 2024 — free online.
- Nicholas Marcott, Eduards Sidorovics, Paarth Chothani et al. — Genie: Uber’s Gen AI On-Call Copilot. Uber Engineering, 2024 — free online.
- Saurabh Jha et al. — ITBench: Evaluating AI Agents across Diverse Real-World IT Automation Tasks. ICML, 2025 — free online.
- Amazon Web Services — Security Update for Amazon Q Developer Extension for Visual Studio Code (Version #1.84). 2025 — free online.
- John Hughes — How we built Claude Code auto mode: a safer way to skip permissions. Anthropic Engineering, 2026 — free online.
- DevOps.com — When AI Goes Really, Really Wrong: How PocketOS Lost All Its Data. 2026 — free online.
- The Register — Vibe coding service Replit deleted user’s production database, faked data, told fibs galore. 2025, via the AI Incident Database — free online.
Chapter 4: Observability — Seeing What the System Is Doing
The data will answer almost any question, but only the ones we think to ask.
In the last days of August 1854, cholera broke out around Broad Street in Soho. Within ten days some five hundred people were dead, nearly all of them living within a few hundred yards of one another. The explanation most physicians and officials accepted at the time was miasma: the belief that disease rose from the foul air of a crowded city, and so spread wherever the air was bad. John Snow, a London physician, had argued since 1849 that cholera traveled in water instead. He had made that argument before and had not persuaded anyone, so this time he did not argue. He gathered evidence. He obtained the register of deaths, went to find out where each victim had drawn their water, and marked every death as a small bar against its address on a map of the district.
The map made the pattern visible. The deaths clustered around the public pump on Broad Street, and the exceptions turned out to be the most persuasive evidence of all, because each one had a reason that only the water theory could explain. The workhouse on Poland Street, close to the pump, had its own well and very few deaths. The men of the nearby brewery drank beer rather than pump water and were spared. A widow in Hampstead, miles away and far outside the cluster, liked the taste of Broad Street water so much that she had a bottle carried to her every day, and she died of it. On 7 September Snow put his case to the parish Board of Guardians, and the next day the pump’s handle was removed. It would be tidy to say that this ended the outbreak, but it does not quite hold: the outbreak was already waning by then, and official opinion stayed unconvinced for years. The final piece came from an unexpected direction. Henry Whitehead, a curate who set out to disprove Snow by interviewing his parishioners one by one, ended up finding the source himself: a baby’s soiled napkins, rinsed into a cesspool a few feet from the well.
What strikes me most about the story is that Snow had no better instruments than the miasma theorists. He had no microscope that showed him the cause and no data his opponents lacked. His advantage was a different question, where did each victim get their water?, which the prevailing theory did not think worth asking, and a way of arranging the data, one mark per death at its exact address, that let the data answer it. That combination is what this chapter is about. The Architecture book borrowed the word observability from Rudolf Kálmán’s control theory. Here we use it in its working, everyday sense: observability is the ability to ask a production system a question nobody anticipated and get an answer without shipping new code. The last clause matters. If answering a new question means adding a log line, deploying it and waiting for the problem to happen again, then we are not observing the system; we are running an experiment on it, slowly, while fans wait.
Chapter 3 ended with people supervising automation, and supervision is only as good as what the supervisor can see. Encore is not short of things to look at. It has telemetry everywhere: metrics from every service, spans from the service mesh that trace requests as they hop between services, logs that make up much of a telemetry bill the Resilience book
weighs in its chapter on cost, and dashboards with more panels than anyone has ever looked at in one sitting. Volume, then, is not the problem, any more than the miasma theorists lacked counts of the dead. The real question for Encore is the one Snow faced: when something new goes wrong, something no dashboard was built to show, can its engineers find out why before its fans notice? The sections that follow work toward an answer, beginning with the difference between checking for failures we expected and investigating the ones we did not.
4.1 From Monitoring to Observability
Known questions and unknown ones
Two words are often used as if they meant the same thing, and the first task of this chapter is to pull them apart. Monitoring is the practice of checking a system against conditions we decided in advance were worth checking. Is the error rate above 1%? Did the synthetic buyer, the scripted fan that tries to buy a ticket, complete its purchase? Each monitor is a question written down before the trouble arrives, and the system is asked that question over and over until one day the answer changes. Monitoring is indispensable, and nothing in this chapter argues for less of it. But it has a limit built into its definition: a monitor can only encode a failure that someone has already imagined. Observability, as the opening of this chapter defined it, is the complementary property: a system is observable when we can understand its internal state from its outputs well enough to answer questions that nobody thought of in advance. Monitoring tells us that a known thing has gone wrong; observability lets us find out what is going on when the thing that has gone wrong is new.
The distinction matters more now than it once did, because the number of ways a system can fail has grown faster than our ability to imagine them. A monolith running on three servers failed in ways an experienced operator could list: a full disk, an exhausted connection pool, a slow query, a server that had stopped answering. A good operator could write a monitor for most of them, and the list did not change much from year to year. Encore’s purchase path is a different kind of object. A single ticket purchase crosses a serverless waiting room (the Sale Gate), a bot screen, an event-sourced inventory sharded four ways (Seat Inventory), a saga orchestrator (Orders & Payments) and an external payment service provider (PSP), and it does so across two regions and a service mesh. (Chapter 1’s map of Encore shows where each piece sits.) Each of those parts fails in its own ways, and the parts can also fail in combination: a slow shard that only matters when the saga retries, or a mesh timeout that only bites in one region. Nobody can list the ways those parts combine, and so nobody can write a monitor for each of them in advance.
Peng Huang and his colleagues at Microsoft gave the characteristic failure of such systems a name in a 2017 paper drawn from their experience with Azure. They called it gray failure: a partial failure that some observers see and others do not. Its signature is what they called differential observability. The system’s own health checks report that all is well, while some of its users are suffering. The service is not down, so nothing that tests whether it is up will notice; it is merely wrong, for some people, some of the time. A year later Cindy Sridharan’s short book Distributed Systems Observability took the idea and made it the practitioner’s case for observability. The reasoning is worth following step by step. A monitor is, in the end, an average or a threshold: the error rate across all requests, the latency at the 99th percentile, a check that either passes or fails. Averages and thresholds answer well when something is down, because then everyone is affected and the average moves. They answer poorly when something is wrong for some people, because those people are hidden inside the average. If one fan in fifty cannot pay, the overall success rate barely shifts, and the dashboard stays green while those fans give up and leave. We will meet exactly such a failure at Encore in Section 4.5.
An analogy may help to fix the difference, provided we also notice where it fails. Monitoring is like the warning lights on a car’s dashboard: oil pressure, engine temperature, a light for each condition the manufacturer anticipated. Observability is like the mechanic’s workshop, with its tools for opening the engine and examining whatever is there. When the car makes a noise that matches no light, adding more lights will not help, because no one knew to build a light for that noise; what we need is the ability to look inside. The analogy breaks in a way that makes the case stronger. A car’s engine is the same engine on every visit to the workshop, so a mechanic’s experience accumulates, and last year’s diagnosis is likely to apply this year. Encore’s system changes dozens of times a day, with each deploy, configuration change and scaling decision. The machine we are diagnosing tonight is not quite the machine we diagnosed last week, and so our experience is a less reliable guide, and the ability to ask fresh questions of the system as it now is becomes correspondingly more valuable.
What observability is made of
If observability is the ability to ask new questions, we should ask what makes that ability possible. The answer lies less in tools than in the shape of the telemetry itself, the data a system emits about what it is doing. Three properties of that data matter.
The first is that the data must be high in cardinality. The cardinality of a field is the number of distinct values it can take. A field such as the HTTP method has low cardinality, a handful of values; a field such as an order ID, an event_id or a build hash has high cardinality, potentially millions of values. High-cardinality fields matter because many failures are specific to one of those values: one concert’s on-sale, one build that went out at the wrong moment, one fan’s order that is stuck. If the data does not record which order or which build a request belonged to, we cannot ask about it later. The second property is that the data must be high in dimensionality, which is to say that each event carries many fields, not just a few. This matters because we do not know in advance which field, or which combination of fields, will explain why the failing requests differ from the healthy ones. Perhaps it is the region; perhaps it is the region together with the client version and the payment method. Every field we leave out is a hypothesis we will be unable to test. The third property is that the data must be explorable: kept in a form that lets us slice, group and compare by any field after the fact, without having decided in advance which views we would want. Detailed data that can only be read through pre-built dashboards gives us back the limits of monitoring.
John Snow, whose work on the Broad Street outbreak opened this chapter, had data with exactly these properties. His register held one row per person who died, with an address, a date and, after his door-to-door inquiries, the source from which that person drew water. That is high cardinality (individual addresses, not districts), high dimensionality (several facts about each death) and explorability (he could arrange the rows on a map and look for a pattern nobody had proposed). The miasma theorists worked from a summary instead: deaths per district per week. That summary was not wrong, but in producing it someone had thrown away the address, and with the address went any chance of seeing the pump. This is the general lesson. Aggregation, the act of reducing many individual records to a count or an average, is a decision about which questions will never be asked again, and we usually make that decision before we know what the questions are.
None of this is free, and the price depends on how the data is stored. Prometheus, the open-source metrics system, stores a separate time series for every combination of label values. A label with a few values, such as region, adds a few series; a label whose value is a fan ID would add one series for every fan, multiplied by every combination of the other labels, and that would ruin it, overwhelming its memory and storage long before anyone asked a question. Prometheus is built for aggregates, and it is very good at them. Columnar event stores take the opposite approach. Facebook’s Scuba, described in 2013, stores each event as a row with as many fields as it carries and is built to scan and group those rows quickly, which makes questions about individual high-cardinality values affordable. Neither design is better in general; each makes a different set of questions cheap. Encore keeps both: metrics in Prometheus for the known questions that monitoring asks continually and cheaply, and wide events in a columnar store for the questions nobody has thought of yet. The rest of this chapter is largely about how to produce that second kind of data and how to use it.
Recap. Monitoring checks conditions we chose in advance, and it remains necessary. Observability lets us ask about conditions nobody anticipated, such as gray failures, which hide from averages because they harm only some users. That ability comes from telemetry that is wide (many fields per event), high in cardinality and explorable after the fact.
Exercise 4.1. List the last five production problems in a system you know. For each, note whether an existing monitor detected it, and whether the cause was found using pre-built views or by asking a question those views could not answer.
4.2 Signals and Instrumentation with OpenTelemetry
Braided signals
For about a decade the industry described telemetry as “three pillars”: metrics, logs and traces. Each pillar had its own pipeline, its own store, often its own vendor and its own team, and the picture seemed natural enough, since the three signals do look different. A metric is a number aggregated over time, a log line is a record of something that happened, and a trace is the record of one request’s path through many services. The metaphor did harm all the same, because pillars stand apart, and the value of telemetry lies in the connections between the signals. An engineer who sees a latency spike on a metric graph wants the very requests that caused it, and then the log lines those requests wrote. If the three signals live in three systems that share nothing, each step of that journey becomes a search by timestamp and guesswork, and at 3 a.m. guesswork is where investigations stall.
A braid is the better image. A braided rope holds weight because its strands are wound together, so that a load carried by one is shared by the others. What winds telemetry’s strands together is shared context: the same trace ID, a unique identifier given to a request when it enters the system and carried with it through every service it touches, and the same names for the same things everywhere. The image has its limit, as images do. A rope’s strands are interchangeable, whereas telemetry’s are not, and each signal still answers best the kind of question it was built for: metrics for “how much, and how fast, right now”, logs for “what exactly happened here”, traces for “where did this request spend its time”. The braid tells us how the signals should relate, and it does not tell us that one could stand in for another.
Two humble mechanisms make the braid real, and I have come to believe they are the cheapest observability a team can buy. The first is to write the trace ID and the span ID (the identifier of the current unit of work within the trace) into every structured log line. Finding the logs of a slow request then stops being a search and becomes a lookup: we take the trace ID from the trace and ask the log store for every line that carries it. The second is the exemplar, a trace ID attached to an individual sample recorded in a metric’s histogram. A latency graph built from that histogram can then offer, right beside its spike, a link to an actual request that was slow, so that the engineer moves from “p99 latency doubled at 14:02” to one concrete example of it in a single click. Neither mechanism is clever, and neither is expensive. Encore’s service template does both by default, which means no team has to remember to.
None of this would be practical if every vendor and every library spoke its own dialect of trace IDs and attributes, and for most of the last decade they did. OpenTelemetry (OTel) is the vendor-neutral standard that ended much of that fragmentation. It formed in 2019 from the merger of two earlier projects, OpenTracing and OpenCensus, which had been solving overlapping problems in incompatible ways. Its central design decision is a separation of concerns. Code is instrumented against an application programming interface (API) that says what to record, while a software development kit (SDK), configured at deployment, decides where the data goes and how it is processed. A team can therefore instrument its service once and change backends later without touching the code. OpenTelemetry’s stable signals are traces, metrics and logs; profiles, which record where a program spends its CPU and memory, are arriving as a fourth, and are in alpha in 2026.
Semantic conventions as a shared vocabulary
A shared trace ID joins the signals of one request. To join the signals of many services, they also need shared names. OpenTelemetry’s semantic conventions are agreed names and meanings for common attributes. Every resource carries service.name and service.version; every HTTP span carries http.request.method and http.response.status_code; and the conventions continue in the same spirit through databases, messaging and, still in development, calls to generative AI models. The conventions fix both the name and the meaning, so that http.response.status_code is always the numeric status the server returned, recorded in the same way by every service that follows them.
The cost of not having such a vocabulary is easy to underestimate in calm times and painfully obvious in an incident. Suppose Orders records the HTTP status as status, Inventory as http_code and the Sale Gate as response.status. Then “show me every 5xx on the purchase path” is three different queries, each written by someone who first has to discover what the other team called the field. In the middle of an incident nobody writes all three. They write the one they know, see nothing alarming in it, and move on. An orchestra offers a fair comparison: its players can sight-read together because the notation is shared, and a single player who wrote music in a private notation would be silent at the first rehearsal however well they played. The comparison breaks in one useful place. An orchestra’s notation was settled centuries ago and changes slowly, while a company’s telemetry vocabulary grows every week as teams add services and fields, and so it needs an owner and a process, where music has only tradition.
Encore gives its vocabulary both. The Reliability team owns a namespace that extends the standard conventions, kept in a registry that continuous integration (CI) checks with OTel’s Weaver tool, so that a service emitting an unregistered or misspelled attribute fails its build before the mistake reaches production. OpenTelemetry asks companies to keep their own names under a unique prefix, so that they never collide with future standard ones, and every Encore field therefore lives under encore.: encore.event_id, encore.tenant_id, encore.shard, encore.cell, encore.country, encore.payment_method, and encore.on_sale. That last one is worth a moment, because the sampler below depends on it. The golden-path service template stamps encore.on_sale on every span, set to true during a scheduled on-sale and false otherwise, so that any query or policy can tell an on-sale request from an ordinary one without consulting a calendar.
This is the old idea of information hiding, applied in a new place. Information hiding asked each module to expose a stable contract and keep its internals private, so that other modules could depend on the contract without knowing the internals. The registry puts telemetry names behind such a contract. One team’s query works against another team’s service because both depend on the registry and neither depends on the other’s private habits of naming.
The Collector and the economics of sampling
Once services emit consistent telemetry, something has to carry it to the stores where it will be queried, and decide on the way how much of it to keep. Between the services and the backends sits the OpenTelemetry Collector, a program built as a pipeline of three kinds of component: receivers take data in, processors transform, filter or batch it, and exporters send it on. Encore runs the Collector in two tiers. The first tier is a set of agents, one on every node and one beside each serverless function. The agents batch what they receive, forward it, and redact the sensitive values they recognize. The second tier is a gateway: a shared pool of Collectors that strips whatever personal data got past the agents, routes security events to their own separate account, and decides which traces to keep. Every pipeline in both tiers begins with a memory limiter, a processor that starts refusing data when the Collector’s memory nears a set limit, so that a flood degrades into dropped telemetry rather than crashed Collectors. Encore needs it because an on-sale multiplies telemetry by the same 500× as it multiplies traffic.
That multiplication is the reason sampling exists. Recording every span of every request during an on-sale would cost a great deal and tell us very little, since most of those requests are identical successes. Sampling is the decision to keep some traces and discard the rest, and the important question is when that decision is made. Head sampling decides at the start of a request whether its trace will be recorded, usually by a random draw. It is cheap, because a request that loses the draw is never recorded at all, and it is blind, because at the start nobody knows whether this request will be the one that fails. Tail sampling decides after the trace is complete, when its errors and its total duration are known. That makes it far better at keeping the interesting traces, at a price: the sampler must hold every span of every trace in memory until it decides, and all the spans of one trace must reach the same sampler instance, since an instance that has seen half a trace cannot judge it. Encore meets the second requirement with a load-balancing exporter in the agents, which sends each span to a gateway instance chosen by its trace ID, so that every span of a trace lands in the same place. The OpenTelemetry project itself is candid that the tail sampler is stateful and hard to operate, and Encore’s experience, below, bears that out.
Encore’s tail-sampling policy keeps three kinds of trace: every trace with an error, every checkout slower than 2 s, and a baseline sample of the rest. The baseline is 10% normally and 1% during an on-sale. The reason for the lower rate is arithmetic. At 1,200 admissions a second for one event, a 10% baseline would keep 120 traces a second, almost all of them identical successes; at 1%, it keeps 12 a second, which is still more than enough to show what normal looks like.
Expressing that baseline turns out to be subtler than it sounds, because of how the sampler combines policies. It keeps a trace if any policy matches it. Suppose we wrote the obvious thing: one policy that keeps 10% of traces, and another that keeps 1% of on-sale traces. During an on-sale, each trace would be offered to both, and the 10% policy would keep it whenever its draw succeeded, whatever the 1% policy decided. The effective rate would stay at 10%, and the 1% policy would change nothing. The baseline must instead be split into two policies that cannot both apply to the same trace, each an and of a condition and a probability: “on-sale and 1%”, and “not on-sale and 10%”. This is exactly why the template stamps encore.on_sale on every span.
tail_sampling:
decision_wait: 60s # outlasts a bank-redirect callback
decision_cache: { sampled_cache_size: 1000000, non_sampled_cache_size: 1000000 } # late spans follow the decision
policies:
- { name: errors, type: status_code, status_code: { status_codes: [ERROR] } }
- { name: slow, type: latency, latency: { threshold_ms: 2000 } }
- name: baseline-on-sale
type: and
and: { and_sub_policy: [
{ name: on-sale, type: boolean_attribute, boolean_attribute: { key: encore.on_sale, value: true } },
{ name: one-pct, type: probabilistic, probabilistic: { sampling_percentage: 1 } } ] }
- name: baseline-off-sale
type: and
and: { and_sub_policy: [
{ name: off-sale, type: boolean_attribute, boolean_attribute: { key: encore.on_sale, value: false } },
{ name: ten-pct, type: probabilistic, probabilistic: { sampling_percentage: 10 } } ] }
The policies are where the reasoning above lives, but the first two lines are where Encore learned something. A tail sampler cannot know when a trace is truly complete, since there is no message that says “this request is finished”, so it waits a fixed time and then judges whatever it has. That time is decision_wait, measured from the trace’s first span. Until the March incident of Section 4.5 the wait was the default 30 s. That afternoon’s slowest checkouts spent a median of 38 s waiting for a bank’s callback, so they were judged before they had finished: the sampler saw a trace that was neither failed nor yet slow, and some of those traces were kept only in fragments while others were lost entirely. The traces that mattered most were the ones the sampler was worst placed to judge. The wait is now 60 s, which outlasts the callbacks, and it costs memory in proportion, because the gateway must now hold every in-flight trace for twice as long.
The second line, the decision cache, handles the spans that arrive after the verdict. The sampler remembers, for a large number of recent traces, whether it kept or dropped them, so that a span arriving late is kept or dropped to match the rest of its trace instead of turning up as an orphan. This helps but does not solve everything. A saga that pauses for minutes, longer than any reasonable wait, is still judged on partial evidence, which is why Section 4.3 carries the workflow ID on every one of its spans so that its pieces can be found regardless.
One more consequence of sampling is easy to forget when reading the results. A trace kept by the 1% policy stands for a hundred like it that were discarded, and a trace kept by the 10% policy stands for ten. Counts over sampled traces must therefore be weighted by sample rate. If an on-sale hour left 2,000 baseline traces showing card payments, the true number of such payments was about 200,000, and comparing that raw 2,000 with an ordinary hour’s raw count, kept at ten times the rate, would mislead badly. Errors and slow checkouts, kept at 100%, need no weighting, which is one more reason to keep them all.
All of this has a price, and Encore treats the price as a design input. Its telemetry costs about €40,000 a month, roughly 2 cents of every ticket’s 12 cents of variable cost. Retention is chosen signal by signal. Wide events, the one-record-per-request telemetry that Section 4.5 puts to work, are kept unsampled for 14 days, a period that also limits how long fan identifiers are retained. Sampled traces are kept for 30 days. Metrics are kept for 13 months, which is long enough to compare this year’s festival on-sale with last year’s. Each period answers a question about how far back someone will need to look, and for what.
Section 4.1 observed that aggregation is a decision about which questions will never be asked again. Sampling is the same decision made with a budget. The policy above is an attempt to make that decision well: to keep every row Snow would have wanted, the errors, the slow checkouts and the odd cases at the edges, and to keep only a sample of the ordinary requests in which nothing went wrong. Figure 4.1 draws the whole pipeline, from the agents to the gateway tier to the stores.
Figure 4.1 — Encore’s telemetry pipeline. Agents only batch and forward; the gateway tier redacts, routes and, in the tail sampler, decides what the bill will be.
Recap. Signals earn their value through the context they share, and two inexpensive mechanisms make that context concrete: trace IDs written into every log line, and exemplars that link a metric’s spike to a real request. Semantic conventions, extended by a registry that one team owns and CI enforces, let one team’s query work against another team’s service. Tail sampling keeps the interesting traces and discards the ordinary ones, but only if its policies combine as intended, it waits long enough for slow requests to finish, and its counts are weighted by sample rate afterward.
Exercise 4.2. Pick three services you depend on and find what each calls the HTTP status, the tenant or customer, and the deployed version. How many distinct names did you find for each, and which incident query would have failed, or quietly returned too little, because of them?
4.3 Distributed Tracing in Practice
One fan’s purchase
The braid of Section 4.2 needs a thread running through it, and that thread is the trace. A trace is the record of one request’s journey through a system, kept as a tree of spans, where each span is a timed unit of work with a name, a parent and a set of attributes. The root span is the request as the outside world saw it; its children are the calls made on its behalf, and their children the calls those made in turn. The idea is older than the tooling most of us now use for it. Google’s Dapper paper of 2010 described tracing at scale, and Zipkin, Jaeger and now OpenTelemetry brought it into open source, where ordinary teams could use it. It is worth pausing on how modest the idea is: a trace is a careful answer to the question “what happened to this request?”, and in a system of many services that question was once answerable only by guesswork and a great deal of searching through logs. Here is one fan’s purchase at Encore, as its trace records it:
| Span | Service | Start (ms) | Duration (ms) | Notable attributes |
|---|---|---|---|---|
POST /checkout |
API gateway | 0 | 1,140 | encore.event_id=evt_7f3a, encore.tenant_id=encore |
admission.verify |
Sale Gate | 4 | 12 | token valid, queue wait in linked trace |
bot.score |
Bot Screening | 18 | 35 | bot.verdict=allow |
inventory.Hold (gRPC) |
Seat Inventory | 56 | 48 | encore.shard=2, seat.count=2 |
saga.purchase |
Orders | 108 | 1,020 | Temporal workflow |
↳ psp.authorize |
Orders (anti-corruption layer) | 150 | 640 | encore.payment_method=card, psp.attempt=1 |
↳ inventory.Sell |
Seat Inventory | 830 | 31 | appends SeatSold |
ticket.issue |
Notification | +4,200 | 380 | linked from SeatSold, not a child |
Figure 4.2 — One fan’s purchase as a trace. The PSP takes 640 ms of its 800 ms share of the 3 s checkout budget; ticket issuance runs asynchronously and is joined to the purchase by a span link.
Read from top to bottom, the table tells a small story. The request arrives at the API gateway carrying the concert and the tenant it concerns. The Sale Gate confirms in 12 ms that the fan’s admission token is valid. Bot Screening scores the request and lets it through. Seat Inventory, on shard 2, places a hold on two seats. Then the purchase saga in Orders takes over, and most of its time goes to a single call: the PSP authorizing the card, which uses 640 ms of the 800 ms that the 3 s checkout budget sets aside for it. Once payment is authorized, Seat Inventory sells the held seats and appends SeatSold. The last row stands apart from the others, and we will come back to it. Drawn to scale, as in Figure 4.3, the trace shows at a glance where the checkout’s 1,140 ms went.
Figure 4.3 — The trace of Figure 4.2 as a waterfall, against the 3 s budget. The PSP call is most of the checkout; ticket issuance, four seconds later, hangs off the purchase by a link.
A trace like this looks as though the system simply produced it, the way a camera produces a photograph. It did not. Three things in it took deliberate work, and each is a place where real traces commonly go wrong: the context had to be passed from hop to hop, someone had to decide what deserved a span, and the asynchronous work had to be joined to the purchase without distorting it. We take them in turn.
Context propagation
A trace exists only because each hop passes the trace context, the trace’s ID and the ID of the current span, on to the next. When Orders calls out, the outgoing request carries those few bytes; the receiving side reads them and records its own span as a child of the caller’s. Over HTTP and gRPC the context travels in the traceparent header, which the World Wide Web Consortium (W3C) standardized as Trace Context, and OpenTelemetry reads and writes that header automatically.
The picture that comes to mind is a relay race, in which a baton passes from hand to hand and a dropped baton ends the run. It is a useful picture, but it misleads about where the baton gets dropped. Between services the handover is the easy part, because the libraries do it. The trouble is inside a service, and there, unlike on a running track, a dropped baton makes no sound. If Orders hands work to a fresh thread and that code makes an outbound call without passing the context along, the call starts a brand-new trace. The original trace ends early, a second, orphaned trace begins somewhere else, and nothing records that the two belong together: the trace breaks in two. The service mesh cannot rescue us. It sees traffic entering and leaving a service, but it cannot see which inbound request caused which outbound call, and so it cannot carry context through the service on our behalf. As Yuri Shkuro, who built Jaeger at Uber, makes clear, the hard part of tracing is getting every hop, through every thread pool and callback, to carry a few bytes of context.
Encore’s answer is to make the common mistake fail early, while it is still cheap. The service template ships an integration test that fails the build if any outbound span lacks a parent, because a missing parent is exactly the symptom of context lost on a fresh thread. The test cannot reach every thread pool a team might write, so it is a net with holes in it, but it catches the common slip before production, where the first sign of it would otherwise be a broken trace in the middle of an incident.
The same context can carry baggage: key-value pairs that ride along with the trace from hop to hop, so that a value known at the entrance is available deep inside the system without every service passing it on explicitly. Encore puts encore.event_id and encore.tenant_id in baggage at the gateway. Baggage, however, is only carried, not recorded; OpenTelemetry does not copy it onto spans by itself, so a span far downstream would know which concert it served and still not say so. The template therefore includes a baggage span processor that copies those two values onto every span, and that is what lets us ask, later, for every span belonging to one event or one tenant. Baggage also brings a responsibility. Every hop can read it and nothing protects it from alteration on the way, so it holds identifiers, never secrets or personal data. And because it travels on outbound calls by default, it would otherwise leave Encore with each request to the PSP, an outside party with no need for Encore’s internal identifiers. Encore’s egress proxy strips baggage before any call leaves for the PSP.
Span design
Once context flows, the next question is what deserves a span at all. It is the tracing version of what deserves a function: a span should mark a unit of work that someone might reason about on its own, with a beginning, an end and a reason to exist. Too few spans and the trace is one long bar that explains nothing; too many and it becomes a wall of slivers in which the important one is lost.
Encore follows common practice. It records a span for every network call, every queue publish and consume, every lock or lease, and every decision that changes the request’s path: a bot verdict, a cache miss, a retry. Those are the places where time goes and where behavior forks, so they are the places an engineer will want to see. Everything else becomes an attribute on an existing span, and the distinction matters because the two do different jobs. Spans show the shape of the work and where the time went. Attributes are what we will later group by, and they are how the high-cardinality fields of Section 4.1, such as encore.event_id, encore.shard and encore.payment_method, turn one trace into evidence that can be compared with a million others. When someone asks during an incident whether slow checkouts cluster on one shard or one payment method, it is the attributes that answer.
Queues, sagas and asynchronous work
Now the last row of Figure 4.2, which is the hard case. The SeatSold event leaves Seat Inventory on the ticket-sales.v2 stream, and Notification consumes it four seconds later to issue the ticket. How should that work appear? Both obvious answers are wrong. Recorded as a child of the checkout span, ticket.issue would stretch the trace to about five seconds, and the checkout would appear to take that long, when the fan in fact finished paying in a little over one; a latency measure that the checkout’s service level objective (SLO) depends on would be falsified by work done after the fan had left. Recorded as an unconnected trace, it would keep the latency honest but break the story: when a fan tells Support “I paid and never got my ticket”, nobody could follow that fan’s purchase into the delivery that failed.
OpenTelemetry’s answer is the span link, a reference from one span to another that records a causal connection without claiming the other as its parent. The producer writes the trace context into the event’s headers. The consumer, when it picks the event up, starts its own trace, whose first span links to the producer’s span instead of naming it as a parent. Each trace keeps its own honest duration, and the link lets us walk from one to the other.
Air travel offers a fair picture of the arrangement. A checked bag on a connecting journey carries a tag tied to the passenger’s booking, yet it travels on its own schedule, and nobody would add its hours in a sorting hall to the passenger’s flight time. When the bag goes missing, the tag is what traces it back to its owner. The picture breaks in one instructive place: a baggage system is built to follow its tags, whereas tracing backends differ in how well they let us walk a link. The same device joins a fan’s minutes in the waiting room to the purchase that follows, which is why the admission.verify row of Figure 4.2 points to the queue wait in a linked trace rather than counting it in the checkout. Links are stable in the specification, so instrumenting with them is safe, though how pleasant they are to use depends on the backend.
Sagas raise a related difficulty. A Temporal saga may pause for a PSP callback and resume minutes later on a different worker, and context held only in memory does not survive that journey. Encore therefore records each activity as its own span through Temporal’s tracing interceptors and carries the workflow ID on all of them. The reason is the tail sampler of Section 4.2, which judges a trace once its decision wait has passed: a saga that resumes after that point arrives to find its trace already judged, perhaps kept in fragments. The workflow ID is a second way in. Even when the trace has been judged early, a query for that ID gathers every activity of the purchase in one place.
Recap. A trace is only as complete as its weakest propagation point, which usually lies inside a service rather than between services, so Encore tests propagation in the build, copies baggage onto spans deliberately and strips it at the edge. Spans mark the units of work where time is spent and paths fork, and attributes carry the detail we will later query. Span links join asynchronous hops, from the waiting room to the purchase and from the purchase to the ticket, while keeping each trace’s latency honest, and a workflow ID keeps a long-running saga findable when its trace is judged early.
Exercise 4.3. Follow one real request in a system you know, from its entry point to its last asynchronous consequence. Mark each place where the trace breaks or misstates how long the work took, and name the fix for each: propagation, a span link or an attribute.
4.4 Dashboards, Alerts, and Paging Discipline
The previous sections were about gathering telemetry well: shared context, sensible sampling, traces that hold together across every hop. Gathering is only half of the work, though. Telemetry helps nobody until it reaches a person, and it reaches people in two ways. A dashboard waits for someone to come and look; an alert goes and finds them, sometimes in the middle of the night. Both deserve as much care as the pipeline behind them, and in most organizations they receive far less.
Dashboards that argue
In 1858 Florence Nightingale drew the Crimean War’s British dead as wedge-shaped monthly diagrams in which preventable disease dwarfed wounds. She did not ask her readers to work through columns of mortality figures. The shape of the diagram made the argument for them: far more soldiers were dying of disease that could have been prevented than of wounds. It was a chart with a thesis, built for people who would never read the tables, and it belongs to the same decade, and the same spirit, as Snow’s map.
A good dashboard has a thesis too, and I have come to believe that this is the single most useful test of one: can you say, in a sentence, what question it answers? Encore’s on-sale dashboard answers one question, “are fans getting through and buying?” Everything on its top row follows from that question, and each panel shows a measurement beside the target it should be judged against:
- admissions per second, against the admission rate the Gate is configured to allow;
- checkout success, against the on-sale-window SLO, which asks that 99% of admitted fans finish without an error page in the sale’s first 60 minutes;
- p99 checkout latency, against the 3 s budget fans are promised.
An engineer who glances at that row during an on-sale learns, in a few seconds, whether the sale is healthy and, if it is not, which part of the promise is breaking. Only beneath that row does the dashboard descend into detail, and it does so with two well-known recipes that divide the work cleanly. For each service it shows rate, errors and duration, which is Tom Wilkie’s RED method: how many requests arrive, how many fail and how long they take. For each resource, such as a database’s connection pool or a node’s CPU, it shows utilization, saturation and errors, which is Brendan Gregg’s USE method: how busy the resource is, how much work is queued waiting for it, and whether it is failing. RED describes the experience of whoever calls a service; USE describes the strain on whatever a service consumes. Read together, they let the engineer move from “checkout is slow” to “this service is slow” to “because this pool is saturated” without leaving the page.
Most dashboards are not built like this. They accumulate. Each past incident leaves behind a few graphs that someone added in the heat of the moment, nobody removes them afterward, and over the years the result becomes a wall of panels with no question and no owner, a museum of old emergencies. Such a wall does harm during a new incident, because it invites the eye to wander among dozens of lines, any of which might be moving for reasons that have nothing to do with today’s trouble. Encore therefore asks each dashboard to state its question and name its owner, and it deletes dashboards nobody has opened for 90 days. The 90 is Encore’s own choice of number, not an industry standard, and there is one exception: a dashboard linked from a runbook survives. A runbook may be needed rarely but urgently, and a dashboard that sits unopened for a season can still be exactly what someone needs at 3 a.m. during the one incident it was built for.
What deserves a page
Dashboards wait to be consulted. Alerts do not, and that difference raises the stakes. The mechanics of alerting on burn rate, the speed at which a service is spending its error budget, belong with the objectives themselves, and the Resilience book builds them in its chapter on service level objectives; what remains here is the discipline of deciding what is allowed to interrupt a person at all. An alert is a request for a human being’s attention, which is the one resource in the system that no autoscaler can add. A page, the kind of alert that summons someone immediately, whatever the hour, should therefore pass three tests: it is urgent, it affects users or is about to, and it needs human judgment to resolve. If it fails the first test, it can wait for morning. If it fails the second, nobody is being harmed. If it fails the third, a machine should be handling it.
The Architecture book stated the rule as paging on symptoms, with narrow exceptions. A symptom is something users feel, such as failed or slow checkouts; a cause is a condition inside the system that may or may not produce a symptom, such as a busy CPU or a lost replica. Symptoms make the better default, because they are what we actually care about and because one symptom covers a hundred possible causes, including the ones nobody thought to alert on. The narrow exception is this: a cause earns a page when it predicts a symptom more reliably, and earlier, than the symptom itself could be measured. In that case, waiting for the symptom means waiting until the harm has already begun.
Three examples at Encore show where the line falls.
The seat ledger losing one of its three locations during an on-sale qualifies for a page. Each shard of the ledger keeps five voting replicas spread across three locations, and it can commit a seat write only while a majority, three of the five, can agree. Losing any one location still leaves a majority, so the ledger keeps committing writes and a symptom-based alert may well stay silent. But the margin is gone: if the lost location held two replicas, only three remain, and one more loss would leave no majority to commit a seat write, and selling would stop. The cause predicts the symptom with near certainty and well before fans could feel it, which is exactly what the exception is for.
A certificate within a day of expiry qualifies too, but only as a backstop. Expiry is entirely predictable, so the real alert is a ticket three weeks earlier, raised during working hours when someone can renew the certificate calmly. If the page fires, it means that ticket was ignored; the page exists to catch the failure of the first, gentler alert.
CPU at 85%, by contrast, predicts no symptom on its own. A service may run at 85% all afternoon and serve every fan perfectly well, or degrade at 60% for some unrelated reason. Because the number does not reliably foretell harm, it does not page. It belongs on the dashboard, where it can help answer a question once someone is already asking one.
Figure 4.4 sorts Encore’s signals by where they go. Reading down the destination column is instructive in itself, because only some of the rows wake anyone.
| Signal | Destination | Example at Encore |
|---|---|---|
| SLO fast or medium burn | Page, immediately | Checkout budget burning at 14.4× over an hour, or 6× over six hours |
| SLO slow burn | Ticket, business hours | Seat-map latency budget 40% spent in 10 days |
| Predictive cause, harm certain | Page | A ledger replica or witness unreachable; certificate expiry under 24 h (ticket at 21 days) |
| Ordinary cause | Dashboard only | CPU, pod restarts, queue depth within capacity |
| Business anomaly | Owning team’s channel | Sales for one event far below forecast |
| Telemetry silent | Page, from outside | Watchdog heartbeat missing; Collectors refusing or dropping spans |
Figure 4.4 — Where signals go. Only the pages wake anyone; the rest wait for daylight or for a question.
The burn-rate figures in the first row are worth translating. A burn rate of 14.4 means the checkout budget is being spent 14.4 times faster than the pace that would just use it up over the 28-day window; if that continued, the whole window’s budget would be gone in under two days. A burn rate of 6 would exhaust it in under five. Both are emergencies, if slow ones, and both page. The slow burn in the second row differs in kind: spending 40% of the seat-map budget in 10 days is a pace that runs out a few days before the window ends, which deserves a team’s attention this week but not anyone’s sleep tonight. The business anomaly in the fifth row is real information, but its right audience is the team that owns the event and its forecast, in their channel, and not an on-call engineer who can do nothing about weak demand for a show.
The last row guards against failures in observability itself, which are the hardest kind for observability to see. Every other alert in the table depends on telemetry arriving. A Collector that has quietly stopped forwarding raises no errors of its own; the dashboards downstream simply go flat, and flat dashboards look very much like health. A system that has gone blind can look exactly like a system that is calm. Encore guards against this in two ways. The first is a device the Prometheus community calls a dead man’s switch: an alert that is designed to fire all the time, so that it continuously delivers a heartbeat to the paging service, which is configured to raise the alarm when the heartbeat stops. The logic is the inverse of an ordinary alert, since here silence is the signal. Because the paging service sits outside the telemetry pipeline, it can notice a silence the pipeline cannot report about itself, which is why the table says “from outside.” The second guard is narrower: Encore alerts on the Collectors’ own counts of refused and dropped spans, so that a pipeline that is still running but losing data is caught before it goes entirely dark.
Alert fatigue
Every page that fails the three tests carries a cost, and lost sleep is only the visible part of it. Hospitals learned this cost before software did. Monitors that beep at every transient reading teach nurses, quite rationally, that beeps do not mean danger, and once that lesson is learned, the beep that does mean danger is met with the same tired glance as all the others. The Joint Commission, which accredits American hospitals, issued a formal warning about alarm fatigue in 2013, citing estimates that 85% to 99% of alarms needed no clinical intervention. An engineer paged nightly for causes that resolve themselves learns the same lesson for the same good reasons, because the pager has taught them, through repeated experience, that it is usually wrong. The danger is not that the engineer becomes careless. It is that the engineer becomes accurate about a pager that no longer deserves trust.
The parallel breaks at an instructive point, and the break favors software. A hospital cannot delete the monitor on a patient’s heart, because the patient’s condition really can change in seconds and the monitor may be the only way to know. We can delete an alert, and nothing obliges us to keep listening to a signal that has never told us anything useful. Most teams delete far too few, partly because each alert was added for a reason someone once found persuasive, and partly because removing one feels like taking a risk while keeping it feels free. Keeping it is not free. The cost is paid in the attention of every engineer it wakes, and in the slow erosion of their trust in every other page.
When Encore’s Orders team reviewed its alerts last year, the numbers told the story plainly. Of its 130 alert rules, 40 could page someone. Over a quarter, only 11 of those 40 had led to any human action, and only two had caught something before a fan noticed. The rest had woken people for problems that resolved themselves or that nobody could act on. The team kept 12 pages, each with a link to a runbook saying what to do when it fires, and demoted the rest to tickets or dashboards. The demotions removed no information, since every demoted signal is still recorded and still visible. What changed is that those signals no longer have the right to interrupt a person.
A one-time cleanup decays, because alerts accumulate just as dashboards do. So the Reliability team now reviews every rotation’s pages monthly, and the review turns on one question: what did the person who was woken actually do? The question is deliberately about behavior rather than intention. It does not ask whether the alert might matter someday, which every alert can claim, but what happened the last time it fired. A page whose honest answer is “acknowledged it and went back to sleep” goes at the next review, because it has shown, in the most direct way available, that it does not need a human.
Recap. A dashboard should make an argument: it states the question it answers, names its owner, and is pruned when that question no longer recurs. A page must be urgent, affect users and need human judgment; predictive causes qualify when they warn more reliably and earlier than the symptom could, and one page watches the telemetry itself, since silence can look like health. Alert fatigue is treated by deletion, guided by a regular review of what the people who were woken actually did.
Exercise 4.4. Export a month of pages from a rotation you know. For each alert rule, record what the responder did when it fired. Propose deleting or demoting every rule whose honest answer was “nothing,” and estimate how many hours of sleep the change would return to the rotation.
4.5 Asking Questions — High Cardinality, Exploration, and AI-Assisted Queries
Wide events
Section 4.1 argued that observability rests on telemetry that is wide, high in cardinality and explorable. Before we use such telemetry, it is worth asking what it looks like when it lands on disk, because the shape of a record decides which questions can be put to it later. In its simplest form it is the wide event: one structured record per request per service, carrying every field that might matter to someone investigating that request, often a hundred fields or more. Stripe calls the habit canonical log lines, and the name fits. Instead of scattering a request’s story across dozens of log lines that someone must later stitch together by timestamp and guesswork, the service writes one line when the request finishes, and that line tells the whole story.
At Encore, a checkout produces such a record. It carries the fan’s country, the encore.* identifiers from the registry of Section 4.2, the payment method, the PSP route, the build, the region, the feature flags in force and the duration of each step. None of these fields is remarkable on its own. The record is valuable because they all sit side by side in one place, so that later we can ask how any one of them relates to any other without having decided in advance which relationships we would care about.
Charity Majors, Liz Fong-Jones and George Miranda, in Observability Engineering, carry the idea further. They argue that such events are the fundamental unit of observability, and that metrics are best understood as cheap aggregates derived from them: a count or a percentile computed over events, with the detail summed away. That is one school of thought, and a persuasive one, though it is not the only workable arrangement. Encore takes a middle path. It keeps metrics for the questions it asks every minute, such as whether checkout is meeting its SLO, because metrics answer those questions quickly and at little cost. It keeps wide events for the questions it has not thought of yet, which are exactly the questions a gray failure poses. The trade-off is the one Snow’s register showed us in Section 4.1. A metric is economical because it has already decided which questions will never be asked of it, and that economy is a fine bargain right up to the afternoon when one of those questions is the one we need.
The core analysis loop
Having the right data is half the matter; the other half is a disciplined way of questioning it. The same authors describe a method they call the core analysis loop. We start from the signal that something is wrong. We isolate the requests that show the problem. We compare them with the requests that do not, across every dimension at once. Then we let the dimensions that differ most suggest the next filter, narrow the selection accordingly, and repeat until the difference has been explained.
It is Snow’s method made mechanical. Snow marked each death against its address and let the cluster around the pump speak for itself; the loop marks each slow request against every field it carries and lets the fields that cluster speak. The resemblance extends to the method’s limits, and two of them deserve to be stated plainly. The first is that, like Snow’s map, the loop finds correlates. It can tell us that slow checkouts come overwhelmingly from one country or use one payment method, but someone must still work out the mechanism that connects the field to the slowness, just as Snow still had to argue how water could carry cholera. The second is that the comparison is honest only if the data counts every request fairly. Encore’s tail sampler, for instance, keeps every checkout slower than 2 s but only a tenth of the ordinary ones. In that store, the “healthy” group is crowded with checkouts that took between 2 and 3 s, which were all kept, and thin on fast ones, which mostly were not, so its makeup no longer resembles real traffic, and a comparison against it would show differences that are artifacts of the sampling policy. So the loop needs data that is either unsampled or weighted by its sample rate, which is why Encore runs it on wide events, kept unsampled for 14 days, rather than on the sampled traces of Section 4.2.
A worked case shows the loop better than any description. One March afternoon, Encore’s support team relayed that payments from the Netherlands were “hanging” after the bank page. The checkout SLO barely moved, because Dutch fans are a small share of Encore’s traffic: even if many of their checkouts were slow, the share of all checkouts finishing within 3 s hardly changed. This was a gray failure in the sense of Section 4.1, plain to the fans who suffered it and invisible to the averages that were supposed to watch over them. The incident channel’s first instinct was to blame the PSP, which had been the usual suspect since Encore’s first outage. But the psp.authorize spans looked normal, at about 180 ms, so the PSP was answering authorization requests as quickly as ever. Rather than keep arguing about the suspect, the on-call engineer ran the loop: select every checkout slower than 3 s since 13:00, and compare those with all the rest. The first thing the selection showed was a time: the slow checkouts began abruptly at 14:02. The comparison itself is Figure 4.5.
| Dimension | Slow checkouts (since 13:00) | All other checkouts |
|---|---|---|
encore.country=NL |
81% | 6% |
encore.payment_method=bank_redirect |
97% | 14% |
Time in saga.await_callback |
38 s (median) | 2.1 s (median) |
encore.gateway.rule=psp-callback-ratelimit |
95% | under 1% |
encore.tenant_id, encore.shard, service.version |
no difference | — |
Figure 4.5 — The core analysis loop on “Dutch fans’ payments slow since 14:02”. Country was the symptom; the payment method was the mechanism; the gateway rule was the cause.
Read from top to bottom, the figure retraces the loop’s narrowing. The first row confirms what support had reported: 81% of the slow checkouts came from the Netherlands, against 6% of the others. Had the investigation stopped there, it would have ended with a statement about Dutch fans, which is a description of the victims and says nothing yet about the culprit. The second row is sharper. Almost every slow checkout, 97% of them, used bank redirect, a method only 14% of other checkouts used, and that explains the first row, since bank redirect is how most Dutch fans pay. The third row says where the time went. Slow checkouts spent a median of 38 s in the saga step that waits for the payment to be confirmed, against 2.1 s for the rest, so the delay lay in waiting for news from the PSP rather than in asking the PSP anything. The fourth row names the reason the news was late: 95% of the slow checkouts had passed through a gateway rule called psp-callback-ratelimit, which almost no healthy checkout had touched.
The mechanism, once seen, is easy to follow. With bank redirect the fan leaves Encore for their bank’s page, approves the payment there, and the PSP later confirms it by calling back to Encore. At 14:02 the Bot Screening team had shipped a reasonable change to the API gateway: a per-source rate limit on unauthenticated POSTs, the kind of request a bot sends in bulk. The PSP’s callbacks, however, arrive from a handful of addresses, so to the gateway they looked like a few very busy sources sending unauthenticated POSTs. They were throttled, the PSP retried them with backoff, and they were delivered tens of seconds late while the fans stared at a hanging page. The fix, an exemption for the PSP’s signed callbacks, took four minutes. Finding the cause took 25, and nearly all of those were spent on the theory everyone already held. That ratio is the real lesson of the afternoon: the slow part of an investigation is seldom the repair, and it is usually the time spent defending the first explanation. A rule meant to stop bots had begun to punish ordinary retry behavior, an interaction this book will meet again.
It would be tempting to file this case under “high cardinality saves the day”, and that would be a misreading. High cardinality alone did not solve it. A few dozen countries, a handful of payment methods and a few dozen gateway rules would all fit comfortably as metric labels. What no metric had was the combination. To see this failure on a dashboard, someone would have had to build, in advance, a chart of checkout latency broken down by country, payment method and gateway rule together, and the number of such combinations grows by multiplication with every field added, so nobody builds them all. The wide event made the combination available after the fact, at the moment it was needed. Notice too that the decisive field existed at all only because someone had decided earlier that every policy decision the gateway makes deserved an attribute on the event. Instrumentation is a bet placed in advance on what the future will want to know, and this one paid. Finally, the truly high-cardinality fields, tenant, shard and version, showed no difference between slow and healthy checkouts, and that absence was evidence too. It ruled out a bad deploy and a hot shard at a glance, much as the spared workhouse and brewery strengthened Snow’s case by being exceptions that fit it.
Asking Cue
If the loop is mechanical, a natural question follows: can a machine run it for us? Assistants that query telemetry in plain language are young practice, and the evidence so far favors a narrow use. The best published production account is Honeycomb’s, of the Query Assistant it shipped in 2023. The assistant turns a question asked in English into a query, and the user sees that query, can edit it, and runs it. Honeycomb reported wide adoption and more complex querying among its users, a correlation it was careful not to oversell, and it wrote just as frankly about the failures, from schemas too large to fit in the model’s context to prompt injection. What makes this use tractable is that its output can be checked: the query is on the screen, and a person who knows the system can see whether it asks the right thing.
Diagnosis is harder, because its output is a conclusion, and a conclusion is much harder to check than a query. Meta reported in 2024 that its model for ranking the code change most likely behind an incident put the right change in its top five about 42% of the time. Put the other way, in more than half of incidents the culprit was not among the five suggestions at all. Meta’s response was telling: it withholds low-confidence suggestions and requires each suggestion to be explainable, so that an engineer can judge the reasoning and not merely the answer.
Encore’s own experience points the same way. Cue, the operations agent introduced in Section 3.5, is read-only by default and queries telemetry through the company’s Model Context Protocol (MCP) server, which exposes Encore’s systems to it as a set of tools. After the March incident, the team replayed the investigation with Cue and asked it the same question twice, in two different forms. Asked “why are Dutch payments slow since 14:02?”, Cue answered in seconds, fluently, and wrongly. It found two past postmortems that blamed the PSP and concluded that the PSP was degraded for Dutch banks, which was the prevailing theory, now with citations. Asked instead to “compare checkouts slower than 3 s since 13:00 with the rest, across all attributes,” it ran the core analysis loop faster than any human could and returned Figure 4.5 almost exactly. The difference between the two answers lies in the questions. The first asked for a conclusion, and the nearest conclusions in Cue’s reach were the team’s own earlier ones. The second asked for a procedure, and the procedure did not care what anyone already believed.
A confident wrong answer is more expensive than a slow right one, because it ends the search. A model that reasons from past incidents tends to reproduce the team’s prevailing theory at exactly the moment someone needs to question it, as Snow questioned miasma; Encore has seen this tendency in its replays, and Meta’s caution anticipates it. Encore’s rule is therefore to show the query and not to trust the diagnosis. Every answer from Cue must carry the query that produced it, so that a human can rerun it and see the data for themselves, and an answer without a query is treated as a rumor: possibly true, worth checking, never acted upon as it stands.
The other limit is the one Honeycomb met, and it is about vocabulary. In the replay, Cue at first missed the gateway rule entirely, because the gateway emitted the field as policy while the registry named it encore.gateway.rule. Cue asked for the registry’s name, found nothing under it, and moved on. A human at 3 a.m. works around such a slip, glancing at the raw event and recognizing the field by its contents whatever it is called; an assistant that trusts the schema cannot. The remedy was to remove the slip at its source rather than to teach Cue to guess: the registry check of Section 4.2 now fails the build when a service emits a field under a name the registry does not know. Consistent naming, which looked like housekeeping when we met it in Section 4.2, turns out to be what makes telemetry legible to machines as well as to tired people.
Used this way, an assistant is a tireless research clerk, of the kind Whitehead might have welcomed when he was knocking on doors around Broad Street. The analogy holds for the legwork: the clerk gathers and arranges the evidence faster than we can. It breaks at the point that matters most, because Whitehead was more than a clerk; he went in to disprove Snow and came out having found the source, which means he was still doing his own thinking all along. Choosing which doors to knock on, and being willing to be surprised by what is behind them, remains the engineer’s work. Chapter 5 shows Cue in a live incident.
Recap. Wide events let us compare failing requests with healthy ones on every dimension at once, which is the core analysis loop and Snow’s method in one. The usual obstacle is the prevailing theory, and AI assistants tend to repeat it fluently, because they reason from the team’s own past conclusions. The practice is young, and the evidence supports assistants that write and show queries over consistently named telemetry far more than assistants that offer diagnoses.
Exercise 4.5. Take a recent investigation and rerun it as a comparison: the failing requests against all the rest, across every attribute you have. Which attribute would have found the cause soonest, and was it present, consistently named and kept long enough for you to query it?
Kata: The Charging Network
Your brief: “Lumen.” Lumen runs 18,000 electric-vehicle chargers in six countries. Drivers start and pay for sessions through Lumen’s app, drivers from partner networks charge on Lumen’s chargers through roaming agreements, and payments go through two PSPs. A single charging session passes through four stages (authorization, the charger itself, which talks to Lumen over a cellular link, metering, and billing) and can last for hours, so the gap between a driver’s first tap and the final invoice is measured in hours rather than seconds. Lumen has 35 engineers. It spends €70,000 a month on telemetry, nearly twice Encore’s bill, and two-thirds of that money goes on logs, most of which nobody ever reads. It has 600 alert rules, which page the on-call rotation about 90 times a week: roughly 13 pages a day, or one every couple of hours around the clock. Even so, more than half of failed sessions are first reported by drivers on social media rather than by any of those alerts. And one roaming partner has threatened to leave over authorization failures that nobody at Lumen can explain, because Lumen’s dashboards show the authorization service as healthy throughout.
Read the brief twice before you begin, because each of its symptoms points at a different section of this chapter. The money spent on unread logs is a question of what to keep, which Section 4.2 answered with deliberate sampling and retention. The sessions that last for hours are a tracing problem, the asynchronous kind of Section 4.3, and they are also a sampling problem, since a tail sampler that decides too early judges a session before it has finished, as Encore discovered in March. The 90 weekly pages, set beside the drivers who find failures first, are the alert fatigue of Section 4.4 in its familiar form: a great deal of noise and too little signal. And the roaming partner’s complaint, with dashboards showing health while a customer reports failure, is exactly the unknown question that Section 4.5’s wide events and core analysis loop were built to answer. Lumen’s trouble is not a shortage of telemetry. It has plenty; what it lacks is telemetry shaped so that the questions it actually faces can be asked of it.
Deliverables:
- Attribute registry — the 15 attributes every span and event must carry, among them the charger, the site, the charger’s firmware version, the roaming partner and the country, aligned to the OpenTelemetry semantic conventions wherever a convention exists. Say who owns the registry and how a new attribute is added to it, because a vocabulary that nobody owns drifts back into three names for the same thing.
- Trace design — one charging session traced from the driver’s tap in the app to the invoice. The hops that do not happen within one request (the charger reporting meter readings over cellular, billing running long after the session ends) should be joined by span links, so that the trace stays followable without pretending the session was one long request. Mark the propagation points most likely to break, such as the cellular link to the charger and the hand-off to a roaming partner’s systems, and say how you would test each.
- Pipeline and sampling policy — the Collector topology, meaning which tiers exist and what each one does; tail-sampling policies that combine as intended, remembering that the sampler keeps a trace if any policy matches; a decision wait that respects sessions lasting hours, or an explicit argument for why some parts of a session should be judged separately; redaction of driver data before it reaches storage; and a retention plan that cuts telemetry spend by a third, from €70,000 to about €47,000 a month. For each cut, name the questions it makes unanswerable, so that the saving is a choice Lumen makes knowingly.
- Paging set — at most ten pages, each tied to an SLO burn or to a predictive cause that warns earlier than the symptom could, plus a telemetry heartbeat that pages when the observability pipeline itself goes quiet. List the rules you deleted or demoted from the original 600 and the reason for each group.
- Investigation script — the core analysis loop applied to the roaming partner’s complaint. Say which failing sessions you would isolate, which healthy sessions you would compare them with, which dimensions you would compare across, and why you expect those dimensions to separate the two groups.
- Assistant policy — what an AI query assistant may do with Lumen’s telemetry and what it may not, and what evidence each of its answers must show before an engineer acts on it.
Rubric:
| Criterion | The question to ask yourself |
|---|---|
| Askability | Could an engineer answer “which firmware on which partner’s chargers fails authorization since Tuesday?” with one query? |
| Vocabulary | Are names consistent across services, owned by someone, and checked by CI rather than left to goodwill? |
| Honest sampling | Does the policy keep every failure, cope with sessions that last hours, and say plainly what the cuts give up? |
| Respect for attention | Would you accept being woken by each page on the list? |
| Method over theory | Does the investigation compare failing sessions with healthy ones before it names a suspect? |
| Grounded assistance | Must the assistant show the query behind each answer, and can a human rerun it? |
A word on the first row, because it is the test the other five serve. The question it poses is the one the roaming partner is, in effect, already asking, and Lumen today cannot answer it at all: the authorization service reports success in aggregate, while the failures hide in a particular combination of firmware and partner that no dashboard was built to show. If your registry, your traces and your sampling policy together make that question a single query, you have given Lumen the ability to see. If the question still needs three teams and an afternoon, the remaining deliverables are decoration, however tidy they look.
Where you now stand
You can now design a system to be observable. That means wide events described in an owned vocabulary, so that the same thing has the same name in every service; traces that stay whole across queues and sagas, joined by span links where work leaves the request that started it; a pipeline that samples with intent, keeping every failure, and that watches its own health; dashboards that make an argument and pages that respect the sleep of the people they wake. You can run the core analysis loop yourself, comparing what failed with what did not until the differences point to a cause, and you can judge an AI assistant that runs the loop on your behalf by whether it shows its work. All of that was learned on ordinary afternoons, with time to think. The real test of observability comes on the morning when a million people are watching, the dashboards disagree with the support queue, and a team of people who were drinking coffee a minute ago must agree on what is happening before they can do anything about it. Chapter 5 takes us into that morning: the Vesper Hale on-sale, as it happened, and the craft of incident response.
References
- Charity Majors, Liz Fong-Jones, George Miranda — Observability Engineering, 2nd ed.. O’Reilly, 2026.
- Peng Huang et al. — Gray Failure: The Achilles’ Heel of Cloud-Scale Systems. HotOS, 2017 — free online.
- OpenTelemetry Authors — Tail Sampling Processor. OpenTelemetry Collector Contrib — free online.
- OpenTelemetry Authors — OpenTelemetry Semantic Conventions. OpenTelemetry project — free online.
- Yuri Shkuro — Mastering Distributed Tracing. Packt, 2019.
- W3C — Trace Context. W3C Recommendation — free online.
- Betsy Beyer, Chris Jones, Jennifer Petoff, Niall Richard Murphy (eds.) — Site Reliability Engineering, chapter 6. O’Reilly/Google, 2016 — free online.
- Phillip Carter — So We Shipped an AI Product. Did It Work?. Honeycomb, 2023 — free online.
- Engineering at Meta — Leveraging AI for Efficient Incident Response. Meta, 2024 — free online.
- Cindy Sridharan — Distributed Systems Observability. O’Reilly, 2018.
- Benjamin H. Sigelman et al. — Dapper, a Large-Scale Distributed Systems Tracing Infrastructure. Google Technical Report, 2010 — free online.
- The Joint Commission — Sentinel Event Alert 50: Medical Device Alarm Safety in Hospitals. 2013 — free online.
- John Snow — On the Mode of Communication of Cholera, 2nd ed.. John Churchill, 1855 — free online.
Chapter 5: Incident Response — Command, Communication, and On-Call
The fire does not read the org chart.
Everything in this book so far has happened in the calm: in reviews, drills, dashboards and the replay of an investigation on a quiet afternoon, when there was room to think before acting. An incident is the moment design time ends. Users are being hurt now, and the people who must help them were, a minute ago, drinking coffee, sitting in a meeting or asleep. In the space of a few minutes those people have to become a team. They have to agree on what is happening, and then change a running system that is under load, usually before anyone understands why it is failing. What makes the first 10 minutes so hard is rarely a shortage of technical skill. The hard problems are problems of coordination: who decides, who acts on the system, who speaks to the people outside the room, and who writes down what was done and when. A response that leaves any of those questions open will spend its best people colliding with one another, however talented they are.
This chapter’s home touchstone comes from a field where far more is at stake than a ticket sale. In the autumn of 1970 a cluster of wildfires burned across Southern California for nearly two weeks. Sixteen people were killed and more than 700 homes destroyed. When the fire services looked back afterward, they found that the limiting factors had been neither courage nor equipment. They had been organizational. Agencies used different words for the same things, so an order could mean one thing to the crew that gave it and another to the crew that received it. They ran on different radio frequencies, so crews fighting the same fire could not hear one another. Nobody could reliably say who was in charge of a given flank of a fire. And there was no common way to grow a response smoothly from a single engine to a hundred, so every expansion had to be improvised by people who had never planned it together. Congress funded a cooperative program to fix this, called FIRESCOPE (Firefighting Resources of California Organized for Potential Emergencies), and out of it, through the 1970s, came the Incident Command System (ICS): a standard way to organize an emergency response of any size among people who may never have worked together before. In 2004 ICS became the backbone of the United States’ National Incident Management System.
It is worth pausing on what that history teaches before we borrow from it. The fire services learned that a response can fail even when every individual in it is brave and competent, because the failure lives in the spaces between people: in the vocabulary they share or lack, in the channels they can or cannot hear, and in the unanswered question of who has authority. Software teams tend to learn the same lesson the hard way, often after an outage in which several capable engineers each changed a different thing at the same moment and nobody knew which change had helped. The analogy has limits, and we will meet them as the chapter goes on. A failing checkout rarely puts anyone’s life at risk, and a software change can often be rolled back in a way a burned hillside cannot. But the shape of the coordination problem is the same, and so the shape of the solution carries over remarkably well.
Software did borrow it, a generation later and with less ceremony. The incident management described in Site Reliability Engineering (2016) is explicitly modeled on ICS, and PagerDuty’s published response process uses the same roles. Encore is about to need every one of those roles. It is Friday, a few minutes before 10:00 CET, and 1.1 million fans are waiting in the Sale Gate, Encore’s virtual waiting room, for the on-sale of Vesper Hale’s 12-date European tour. Readers of the Resilience book
left Encore at exactly this moment, with the preparations finished and the readiness review signed off. (Chapter 1’s map of Encore shows where each piece of the system sits.) We will follow the next 47 minutes section by section, watching the incident being detected, declared, commanded, communicated and brought under control. The question of why it happened at all we leave to Chapter 6, because that question deserves a calmer room than the one we are about to enter.
5.1 Anatomy of an Incident
What makes something an incident
Before we can respond well to an incident, we have to agree on what one is, and the answer is less obvious than it looks. An incident is an unplanned disruption, or a credible threat of one, that needs a coordinated response beyond the routine work of a single on-call engineer. The interesting word in that definition is coordinated. We might expect an incident to be defined by how much damage is being done, but the definition turns on how many people must act together to stop it. Consider a disk filling up on a database replica at 3 a.m. One engineer can see it, understand it and fix it, and so it is a task, however annoying. Now consider the same disk filling up on a seat-ledger replica during an on-sale. Someone must free the space, the On-Sale team must decide whether to slow the Gate, someone must tell organizers what fans are seeing, and all of those choices must fit together. That is an incident, because several teams must act at once and someone must keep them pointed in the same direction.
A hospital draws the same distinction between a routine admission and a trauma call. A broken wrist is serious to its owner, but one doctor can treat it; a patient with several injuries arriving by ambulance sets off a call that brings a surgeon, an anesthetist and nurses to the same bay, each with an assigned part. What changes is the shape of the work, which suddenly needs more than one pair of hands and someone to direct them. The analogy holds well up to a point. Where it breaks is that a hospital rarely doubts that a trauma patient has arrived, while in software the hardest moment is often deciding that what we are looking at is an incident at all.
That is why a definition is not enough. A definition tells us what an incident is; a tired engineer at 3 a.m. needs to know when to call one, and for that we need a trigger, a test simple enough to apply without deliberation. Google’s SRE book supplies one that has held up well. Declare an incident if any of three things is true: you need a second team to help; customers can see the problem; or the problem is still unsolved after an hour of focused work. Any one of the three is enough. Each criterion is a concrete sign that the work has outgrown one person: a second team means coordination across groups, customer visibility means someone must communicate outward, and an hour without progress means the problem is harder than it first looked. Encore adopted the test and added a clause of its own: during an on-sale, any symptom on the purchase path counts by itself. The reason is plain arithmetic. An on-sale’s busiest stretch is measured in minutes, and a rule that lets a problem run for an hour would allow the whole sale to fail before the third criterion fired.
Once declared, an incident is on a path that every incident follows, through five phases, and naming them helps us know where we are. First, it is detected, by an alert, by a customer, or by an engineer who notices something odd. Second, it is declared: someone judges its severity and says out loud that this is an incident, which gives it a name, a channel and a commander. Third, it is mitigated, meaning its harm is stopped or reduced; this usually happens before anyone understands the cause, a point Section 5.3 develops. Fourth, it is resolved, which we can define practically as the moment nobody needs to watch the system by hand any more. Fifth, it is followed up, through the review that is the subject of Chapter 6. Two things do not fit neatly into this sequence, and it is worth saying so. Diagnosis, the work of understanding why, runs underneath every phase rather than occupying one of its own. And severity is not fixed at declaration; it is revised as the picture sharpens.
Severity as a shared vocabulary
The act of declaring an incident depends on words that everyone has agreed on before anyone needs them. A severity level is such a word. Its purpose is economy: one short label, spoken in a channel, sets a whole response in motion, so that nobody has to negotiate in the middle of a crisis who should be woken, who should be told and how quickly. Encore’s levels are deliberately short, and they are written in terms of harm to fans and organizers. Components are never mentioned. A definition such as “the inventory database is down” would force the person declaring to diagnose first; a definition such as “fans cannot buy during an on-sale” can be judged from the symptom alone, which is all that anyone has in the first minutes.
| Level | What it means at Encore | Response it sets in motion |
|---|---|---|
| SEV1 | The purchase path is impaired during an on-sale, or seat or money integrity is at risk | Incident commander from the rotation within 5 min; comms lead; status page within 15 min; leadership informed |
| SEV2 | A customer-facing service is degraded outside an on-sale, or a tenant SLO is being breached | Incident commander from the owning team; status page if fans or tenants can see it |
| SEV3 | Error budget is burning with little visible harm, or one internal capability is lost | Owning team’s on-call handles it; channel optional |
| SEV4 | No current user impact, but something needs fixing soon | A ticket and no channel |
Figure 5.1 — Encore’s severity levels. Each level is defined by harm and answered by a response.
Read the table from left to right and it becomes a kind of contract. The middle column describes what the person declaring can observe, and the right-hand column describes what the organization promises to do about it. A SEV1 brings a trained incident commander from the shared rotation within 5 minutes, a communications lead, a public status page within 15 minutes and word to leadership. A SEV4 earns a ticket and nothing more. The person holding the pager only has to match what they see to a row; the table does the rest.
Google’s and PagerDuty’s guidance both insist on two habits in using such a scale. The first is to declare early and downgrade freely, taking the higher level whenever we are unsure. The reasoning rests on an asymmetry of costs. A needless declaration costs perhaps 20 minutes of mild embarrassment, as people join a channel and then quietly leave it. A missing declaration costs the first 20 minutes of the response, which are usually the minutes that matter most. The second habit is to treat severity as provisional. The number exists to summon the right people, and once they have arrived, an argument about whether this is “really” a SEV1 or a SEV2 only delays the harder work of stopping the harm. We can settle the label afterward, in the calm of the review.
Friday, 10:04
With that vocabulary in hand, we can return to Encore. At 10:00 the Gate opened and began admitting fans at 1,500 per second per event, the rate the On-Sale team had raised it to on Wednesday. At 10:04 the burn-rate alert on the on-sale-window service level objective (SLO), which asks that 99% of admitted fans finish without an error page in the first hour of a sale, paged Rui, the On-Sale team’s primary on-call. A burn-rate alert fires when the error budget is being spent much faster than the objective allows, so the page told Rui that fans were already failing in numbers that mattered. When he looked, he saw failures in several places at once: “seat unavailable” errors on holds, rising checkout latency, and a retry rate that climbed while he watched.
Rui’s first move was not to touch anything. He spent 60 seconds judging the scope of the problem, and the reason for that pause deserves care, because it is easy to misread. Had the errors begun right after a deploy by his own team, the right move would have been to roll that deploy back first, without waiting to judge anything; the pause is for sizing the problem, and it should never delay an obvious, safe mitigation. But nothing of his had changed. The errors spanned every shard, which meant this was not one bad component misbehaving. And two of the declaration criteria were already met. At 10:06 he paged the incident commander rotation. At 10:07 Marta, a staff engineer from Orders & Payments who was on the rotation that week, declared a SEV1 and took command. Seven minutes after the Gate opened, the incident had a name, a channel and one person whose only job was to run it. Section 5.2 takes up what that job is, and where it came from.
Recap. An incident is defined by the need for coordination rather than by the amount of damage, and a concrete test (a second team, customers who can see it, an hour without a fix) turns that definition into something a tired person can use. Severity is a vocabulary of harm agreed in advance, so that one word summons the right response. We declare early, downgrade freely, and save the argument about the level for afterward.
Exercise 5.1. Take your team’s last three significant alerts. For each one, note when it was detected, when (if ever) it was declared, and at what minute the three declaration criteria were first met. Where declaration came late, ask what the person holding the pager was waiting for.
5.2 Roles, Command, and Communication
What the firefighters learned
At 10:07 Marta took command, and the obvious next question is what, exactly, she had taken. To answer it we go back to the fire services, because the Incident Command System is a set of answers to specific failures, and each of its ideas makes more sense once we can see the failure it was built to prevent. There are four of them, and a fifth that sits behind them all.
The first is common terminology: every agency calls the same resource by the same name. It answers the first of the 1970 failures described at the start of the chapter: when agencies used different words for the same things, a request for help could be misunderstood, or answered with the wrong resource, by the very people it was meant for. When people who have never worked together must act within minutes, shared words are the cheapest coordination there is. The second is modular organization: a small fire and a large one are run in the same shape, and a response grows by adding standard units to that shape rather than by improvising a new structure halfway through. Nobody has to learn a different organization at the moment the fire gets bigger.
The third is span of control, the number of people one supervisor directs. ICS holds it to the number a person can actually keep track of, conventionally three to seven, with five as the target. When a response outgrows that span, it adds a layer of supervisors instead of asking one person to watch twelve. The fourth is unified command: when several agencies each hold jurisdiction over part of an incident, as a county, a state and a federal forest service might on a fire that crosses their boundaries, they command it jointly and work from one plan, so that no crew receives two incompatible sets of orders.
Behind all four sits the idea that matters most, and the one software teams most often get wrong. Command is a role. It is assigned at the start of an incident, it is handed over explicitly when it changes hands, and it has nothing to do with rank. A more senior officer who arrives at the scene does not become commander simply by being senior; command passes only when it is deliberately transferred. I have come to believe this is the single most useful idea software has borrowed from the fire services, because it lets the person best placed to run the response run it, and it gives everyone else a clear answer to the question “who decides?”
Software did not have to work out the translation alone. Rob Schnepp, Ron Vidal and Chris Hawley, veterans of the fire service and of incident command, mapped these ideas onto software operations in Incident Management for Operations (2017). Most of the mapping carries over directly, but one idea needs adjusting. A software company rarely shares jurisdiction over its own systems the way three fire agencies share a hillside, so unified command in its full form seldom applies. The case that comes closest is an incident involving a partner. When the payment service provider (PSP) is in the same incident, each side commands its own systems, and the two responses meet through ICS’s liaison officer, the role that connects one organization’s response to another’s. The two sides then agree on joint objectives without either one giving orders inside the other’s systems.
Figure 5.2 sets out the whole mapping: each ICS idea, the failure of 1970 it answered, the form it takes in a software incident, and the role that fills it at Encore.
| ICS idea | What it answered in 1970 | Its form in a software incident | Encore’s role |
|---|---|---|---|
| Single incident commander | Nobody knew who was in charge of a flank | One person owns the response and its decisions, and does not type commands | Incident commander (IC), from a cross-team rotation |
| Operations section | Crews acting on contradictory orders | One person directs hands-on changes to production | Ops lead, usually the owning team’s on-call |
| Public information officer | Rumor and conflicting statements | One person speaks to stakeholders and the public, on a cadence | Comms lead, from the Reliability team |
| Planning and documentation | Lost track of resources and decisions | A live incident document (status, owners, decisions) and a running log | Scribe, assisted by Cue’s draft timeline |
| Span of control | Supervisors overwhelmed | When more than about six responders are active, split into workstreams with their own leads | Workstream leads under the ops lead |
| Liaison officer | Agencies running parallel fights | Joint objectives with a vendor or partner, each commanding its own systems | Liaison to the PSP’s or partner’s incident lead |
Figure 5.2 — From wildfire to on-sale. The roles are ICS’s, scaled down; the reasons are the same.
Read down the third column and a pattern appears. Every role exists to keep one kind of work from crowding out another. The ops lead directs the hands-on changes to production. The comms lead speaks to everyone outside the response. The scribe keeps the written record of what is known and what has been decided, with Cue, Encore’s operations agent, drafting a timeline the scribe can correct. And the incident commander holds the whole picture and makes the decisions. Separating these roles matters because each of them, done properly, takes all of one person’s attention.
The commander’s role is the least intuitive of the four, and for Encore the best way into it is through the theater. A stage manager “calls the show.” From a desk in the wings, wearing a headset and with the prompt book open, the stage manager gives every cue: lights up, sound in, fly the backdrop out. Yet the stage manager operates none of those things. The electricians, the sound engineers and the fly crew do, each at their own station, waiting for the call. The stage manager’s value lies in watching the whole stage at once and timing everything against everything else, which nobody with a hand on a fader can do. The incident commander is the stage manager. PagerDuty’s response documentation says it bluntly: the commander is not a resolver. So Marta would not be the one running kubectl at 10:07. Her hands were free so that her attention could be.
The analogy breaks, and where it breaks is instructive. A stage manager has a script. Every cue was written and rehearsed weeks before opening night, and the job during the performance is to execute it with perfect timing. An incident commander has no script. Marta had to work out the cues while calling them, deciding what the team should try next while also keeping track of what it had already tried. That is a harder job than the stage manager’s, which is all the more reason to give it to someone with nothing else to do.
Handoffs and the collapse of roles
The roles only help if everyone knows who holds them at every moment, and that is harder than it sounds, because command changes hands more often than people expect. The first responder hands to the rotation’s commander, as Rui did to Marta. A long incident outlasts one person’s alertness, a commander in one time zone goes off shift, or a more experienced colleague arrives. Each handoff is a gap through which the team’s shared picture of the incident can fall: the new commander may not know what has been tried, and the team may not be sure who is now deciding.
The ICS answer, which Google’s Site Reliability Engineering book adopts almost word for word, has two parts. First comes a short spoken briefing that gives the incoming commander the state of the incident. Then comes an explicit transfer, a sentence such as “you’re now the incident commander, okay?”, which the outgoing commander does not consider complete until they hear it acknowledged. The acknowledgment is the important part. Without it, there is a window in which each of two people believes the other is in charge, and in that window nobody is.
Rui’s briefing to Marta at 10:07 took under a minute: admission at 1,500 per second, errors on holds, retries rising, nothing changed yet. It is worth noticing how much those four items carry. They tell the new commander the load on the system, the symptom fans are seeing, the direction things are heading, and, perhaps most usefully, that no one has yet made a change whose effects she would need to untangle. A good briefing is short because it has been chosen, and its last item is often the most valuable.
What happens when roles are not held is the subject of one of the most searching studies in the literature on organizations. In 1993 Karl Weick re-examined the Mann Gulch fire of 1949, in which 13 firefighters died in Montana. Weick argued that the crew’s ability to make sense of their situation collapsed along with the structure of their roles. As the fire overtook them, the crew stopped functioning as an organized crew with a leader, and so, when the foreman lit an escape fire and told them to lie down in its burned-out ground, none followed. His instruction was sound, but it no longer came from a role the others recognized. Weick’s point was that roles do more than divide up work: they hold together a group’s shared understanding of what is happening, and when the roles dissolve, the understanding tends to go with them.
The stakes in software are far lower, but the pattern is familiar to anyone who has watched eight senior engineers in one incident channel, each pursuing a private theory. Every one of them is capable, and each is doing something reasonable, yet nobody is assembling the theories into one picture or deciding which to test first. The channel fills with fragments and the response stalls. The remedy is the one ICS prescribes: somebody holds command, and everyone else knows it.
Communication: inward, upward, outward
Holding the roles keeps the team coordinated, but an incident also has to be explained to people outside the team, and there are three audiences, each with different needs.
The first audience is the responders themselves. They need one channel where facts are stated and decisions are recorded, so that nobody has to reconstruct the situation from side conversations. Once three or more people are working the incident, they also need a live document beside the channel, saying what is known, who owns which line of work and what has been decided. A channel is a stream; it records everything in order, and the important facts scroll away under the chatter. The document is the place where the current state lives. The second audience is stakeholders inside the company: leadership, Support, and the account managers who look after Encore’s tenants. They need plain summaries that tell them what is happening without making them read the channel, and that keep them from wandering into it to ask. The third audience is the people affected, here the fans, and they need an honest public statement of what is wrong and when they will hear more.
Where that public statement lives matters more than it first appears. When Amazon S3 failed in the us-east-1 region in February 2017, AWS could not update its own status dashboard for the first part of the outage, because the dashboard itself depended on S3. The tool for announcing the failure had failed along with the thing it was meant to report on. Encore took the lesson. It rents a hosted status page from a provider that shares none of Encore’s DNS, content delivery or cloud regions, so that whatever breaks inside Encore, the page that says so can still be reached.
At 10:14 Elif, the comms lead from the Reliability team, posted the first update. It said three things: some fans were seeing errors when selecting seats; places in the queue were safe; and the next update would follow within 15 minutes. Each of those statements did a job. The first was honest about the harm. The second answered the question every fan in a queue is actually asking, which is whether to stay. The third told them when to look again, so they did not need to keep refreshing. Stakeholders inside Encore received summaries on the same cadence.
There is a discipline in that third statement worth making explicit. Every message gave the time of the next update, and none gave a time for the fix. The reason is that only the first is a promise the comms lead can keep. Elif could guarantee that she would post again by 10:29; nobody in the channel could guarantee when the errors would stop. A promised fix time that slips damages trust twice, once when it is missed and again in every later message, which readers now discount. A promised update time that is kept builds trust, even while the news itself is still bad.
Communication also runs in the other direction, inward from the outside, and that was where Encore’s incident turned. At 10:24 Elif relayed something from Support that no dashboard had shown: fans were writing in to say the site had told them they were bots. Nothing in the telemetry the responders were watching would have revealed that, because the fans being turned away were, from the system’s point of view, a security control working as designed. Support, at that moment, was acting as a sensor, one that measured what fans were experiencing rather than what the system reported. And the comms lead was the only role positioned to connect that sensor to the response, because she was the one person in regular contact with both Support and the incident channel.
Figure 5.3 — The Vesper Hale response in ICS shape: command at the top, three roles beneath it, and the comms lead standing at the channel’s edge. Notice the one line that runs inward; it carried the fact no dashboard had shown.
Recap. The Incident Command System gives us four roles: a commander who decides and does not operate, an ops lead who directs the changes, a comms lead who speaks for the response, and a scribe who keeps the record. Around them sit span of control, which splits a growing response into workstreams; explicit, acknowledged handoffs, so that someone is always in charge; and a liaison for partners who command their own systems. Communication flows outward to three audiences on a promised cadence, never promising a fix time, and it also flows back in, often carrying the very fact the responders were missing.
Exercise 5.2. Reconstruct the roles in your last significant incident. Who was commanding, who was operating, who was communicating and who was recording? If one person held two of those roles, find a moment when that cost something: a decision delayed while they typed, an update that went out late, or a fact that reached the channel but never reached the person deciding.
5.3 Mitigate First — Situational Awareness Under Pressure
Three levels of seeing
By 10:07 Encore’s response had a commander, a channel and a shape. Structure is necessary, but it does not tell anyone what is actually happening. The roles of Section 5.2 exist so that a group of people can come to see the situation together and act on what they see, and to talk sensibly about that seeing we need a word for it. Mica Endsley supplied one in her 1995 theory of situation awareness, and it names precisely what an incident team is trying to build.
Situation awareness is the perception of the elements of an environment, the comprehension of what they mean, and the projection of what they will do next. Endsley’s three levels are worth taking one at a time, because each asks something different of the people in the channel. Perception is noticing the signals at all: at Encore that morning, the “seat unavailable” errors on holds, the rising checkout latency and the climbing retry rate that Rui saw at 10:04. Comprehension is fitting those signals together into a single account of what is going on, so that three alarming graphs become one problem with a shape. Projection is running that account forward a few minutes: if this continues, what happens next, and what will our own actions set in motion?
The levels are cumulative, and a team can stall at any of them. It can perceive every alert and still fail to comprehend them together, treating each graph as its own emergency. Or it can comprehend the present correctly and still fail to project, missing, say, that the queue will empty in four minutes and send a second wave of fans into a system that has not recovered from the first. Each level rests on the one beneath it, and none comes for free.
This is where it helps to be honest about what our tools do. Incident tooling, from dashboards and alerts to traces and log search, serves mostly the first level. It is very good at putting signals in front of people. Comprehension and projection happen in people’s heads, and heads under pressure are unreliable instruments. That is why a shared picture matters so much: the live incident document, the scribe’s log, the commander’s habit of restating what is known. When one person’s comprehension is written where others can see it, it can be checked against someone else’s, and a wrong account has a chance of being caught before the team acts on it.
Fixation
The characteristic failure of situation awareness under pressure is fixation: a team locks onto one explanation and stops seeing evidence that contradicts it. Fixation is not carelessness. It usually starts with an explanation that is true, or partly true, and it grows because a good explanation is a relief: it gives an anxious group something definite to work on, and once the work has started, the attention that would have noticed contrary evidence is busy elsewhere.
Aviation learned this at terrible cost. On 29 December 1972 the crew of Eastern Air Lines Flight 401, approaching Miami, became absorbed in a burned-out landing-gear indicator light. While they worked the problem, the autopilot’s altitude hold was inadvertently disengaged, and the aircraft descended slowly into the Everglades, killing 101 people. The bulb itself was harmless. The danger lay in how absorbing it was: every member of the crew was attending to the puzzle, and nobody had been assigned to fly the airplane. What makes the story so instructive for us is that nothing about the bulb was a mistake to investigate. The mistake was letting the investigation take everyone’s attention, so that the one question that mattered, is the aircraft still where we think it is?, went unasked.
Encore’s fixation began at 10:11, and it began, as fixations often do, with something true. Cue, the operations agent, posted that the platform’s upgrade reconciler had drained a node at 10:02, and that at that same moment Seat Inventory shard 3, one of the four partitions selling the tour’s seats, had failed over its leader. Both facts were correct, and they arrived as a tidy story: a node went away, a shard lost its leader, writes were rejected, fans saw errors. The channel’s attention gathered around shard 3.
The trouble was that the story explained the past and not the present. Jonas, Seat Inventory’s on-call, confirmed the failover and its 40 s of rejected writes, but that window had closed at about 10:03, and errors were still rising, not on shard 3 alone but on all four shards. A failover that had finished eight minutes earlier on one shard could not account for a problem that was growing on every shard now. The evidence against the shard 3 story was already on the dashboards; the difficulty was that a team busy confirming a story is poorly placed to notice it.
Marta’s question at 10:16 broke the fixation: “What is still broken now, and is it getting better or worse?” It is worth noticing what kind of question that is. It asks for no theory and does not argue with Cue’s or Jonas’s findings. It pulls the team back from explanation to perception and projection, to what the signals say at this minute and which way they are heading. This is the incident commander’s version of flying the airplane, and it is one reason the commander keeps their hands off the keyboard: someone has to stay free to ask it. Once the question was asked, the answer was plain. The failover explained how the trouble had started; something else was keeping it going.
Mitigation before diagnosis
Marta’s question leads directly to a principle that is old in medicine and easily forgotten in engineering: stop the bleeding before you look for its cause. An emergency physician restores circulation in a patient in shock before asking why the patient is in shock, because a correct diagnosis delivered too late helps no one. The physician is not indifferent to the cause; she knows that the cause can be pursued only while there is still a patient to pursue it in.
In an incident, mitigation is any action that reduces user harm without requiring that we understand why the harm is happening. Google’s SREs call the best of them generic mitigations: shedding load, rolling back, failing over, disabling a feature. What makes these generic is that they work across many causes. We do not need to know why the system is struggling to know that asking less of it will usually help, or that returning to the last version that worked will usually help if a change is to blame. The best generic mitigations are cheap to try, easy to reverse, and dependable only if they have been rehearsed. That last condition is the one teams most often neglect. A mitigation nobody has practiced is a fresh experiment run on production at the worst possible moment.
The medical analogy holds well, but it breaks in two places worth noticing. First, we think of stabilizing a patient as preserving the evidence of what went wrong, whereas some software mitigations destroy it: a restart clears the very state an engineer might have inspected, and a rollback can hide the change it undoes. Stopping the bleeding is still right, but a good responder notes what the system looked like before the mitigation changed it, so that the diagnosis can continue afterward, in the review of Chapter 6. Second, a software mitigation is itself a change to a running system, and it can carry costs of its own. Both of Encore’s mitigations that morning show the second point.
The first came at 10:19. On Rui’s proposal and with Marta’s decision, the Gate’s admission rate was lowered from 1,500 to 900 fans per second. The reasoning did not depend on knowing the cause. Fewer fans admitted each second meant fewer seat holds attempted each second, which meant less load on Seat Inventory; fewer failed holds meant fewer fans retrying, which eased the retry storm that was feeding on those failures. The cost was small and understood: fans would wait a little longer in a queue they already expected to wait in. And the move was reversible in seconds, because the rate is a single setting on the Gate. Errors on holds began to fall within two minutes. Nothing was fixed, but the team had bought something valuable. It now had time to think.
The second mitigation came from the fact Elif had brought in from Support at 10:24, that fans were being told they were bots. Noor, Bot Screening’s on-call, joined at 10:27 and confirmed it. The velocity rule, which flags rapid repeated requests as bot behavior, had been firing on real fans who were retrying failed seat selections, exactly the behavior the first wave of errors had provoked, and it had blocked about 30,000 of them. The rule predated the policy, adopted that spring after an error-budget dispute between the On-Sale and Bot Screening teams (the Resilience book tells it in its chapter on service level objectives), that every block must offer a challenge and a way back; it had never been reviewed against that policy, so it still blocked outright, with no way for a wrongly blocked fan to prove otherwise.
At 10:31, with the IC’s approval, Noor disabled the rule, and the Gate re-admitted the blocked fans with their original queue positions restored. This was a conscious trade, and it is the clearest example in the incident of a mitigation with a price. Turning off a bot rule in the middle of a major on-sale opened a short window in which bots would meet less resistance. Against that stood certain harm to tens of thousands of real fans who had done nothing wrong except retry. The commander weighed a possible cost against a present one, chose, and the choice was recorded in the channel where everyone could see it.
By 10:47 the checkout burn rate had been within budget for several minutes, and Marta declared the incident recovered. Admission was raised back to 1,200 fans per second at 11:10, under watch, and the incident was resolved at noon. Note that the rate came back to 1,200, the level that had served before Wednesday’s change, not to the 1,500 at which the morning began; Chapter 6 explains why that difference matters. Throughout, no seat was sold twice. That fact is easy to pass over, but it is what made the morning’s boldness possible. The team could shed load, disable a rule and re-admit 30,000 fans quickly because it knew that fencing and idempotency would hold underneath whatever it did. Aggressive mitigation is affordable only on top of guarantees we trust.
Figure 5.4 — The on-sale as the Sale Gate saw it: admission rate per event, the 47 degraded minutes, and the response’s events beneath. Both mitigations were cheap moves on one dial and one switch, made long before anyone understood the cause.
The timeline below gathers the morning in one place, as the scribe’s log recorded it. Read the Phase column and you will see the shape this section has argued for: diagnosis ran alongside everything, but the two entries marked Mitigate came well before anyone could have said why the incident was happening. The first row, the Catalog deploy at 09:52, was noticed only afterward; nobody in the channel knew of it while the incident ran.
| Time | What happened | Phase |
|---|---|---|
| 09:52 | A routine Catalog deploy rolls pods and empties the seat-map geometry cache (noticed only afterward) | — |
| 10:00 | The on-sale opens; the Gate admits 1,500 fans/s | — |
| 10:02 | The node-upgrade reconciler drains a node; Seat Inventory shard 3 fails over, about 40 s of rejected writes | — |
| 10:04 | The checkout burn-rate alert pages the On-Sale on-call | Detect |
| 10:07 | SEV1 declared; incident commander takes command | Declare |
| 10:11 | Cue surfaces the node drain and the shard 3 failover, and suggests restarting Seat Inventory pods; the suggestion is declined | Diagnose |
| 10:14 | First status-page update | Communicate |
| 10:19 | Admission lowered to 900 fans/s | Mitigate |
| 10:24 | Support reports fans being told they are bots | Diagnose |
| 10:31 | Bot velocity rule disabled; blocked fans re-admitted with queue positions restored | Mitigate |
| 10:47 | Checkout recovered | Recover |
| 11:10 | Admission returned to 1,200 fans/s | Resolve |
| 12:00 | Incident resolved; review scheduled | Follow up |
Figure 5.5 — The Vesper Hale on-sale as the scribe’s log recorded it. 47 minutes of degraded checkout; roughly 9% of admitted fans hit at least one error; no seat sold twice. Chapter 6 asks why each of these things was possible.
Recap. Situation awareness has three levels (perceiving the signals, comprehending what they mean together, and projecting where they lead), and our tooling helps mostly with the first; the other two live in people’s heads, which is why a shared picture matters. Fixation is the characteristic failure under pressure, and it usually begins with an explanation that is true but no longer sufficient. The remedy is a role whose job is to keep asking what is broken now and which way it is heading. Mitigation reduces harm before the cause is understood, and the best mitigations are generic, cheap, reversible and rehearsed, and safe to use boldly only on top of guarantees we trust.
Exercise 5.3. List the generic mitigations available for your most important service: what you can shed, roll back, fail over or switch off. For each, note how long it takes, who may authorize it, what it costs users while it is in effect, and when it was last practiced.
5.4 Tooling for Response — Runbooks, ChatOps, and AI Assistance
Runbooks and the channel
Everything in the last two sections was about people: who commands, who acts, who speaks, who keeps the record, and how they keep from fixing on the wrong story. Tools come into it only now, and that order is deliberate, because the tooling for incidents should serve those roles. A tool that asks the commander to operate it, or that scatters the record across five consoles, makes the work harder on the very morning it was bought for.
The oldest of these tools is the runbook, and a good incident runbook is written differently from the reference documentation most teams keep. It starts from a symptom, because a symptom is what the on-call engineer actually has at 10:04 (“errors on seat holds are rising”); the cause comes much later, if it comes at all. It offers the generic mitigations of Section 5.3 before any diagnostic steps, so that the first page of the runbook helps reduce harm while the later pages help explain it. And it names who may authorize each action, so that nobody has to stop in the middle of an outage and work out whose decision this is. All three properties showed on Friday. When Rui proposed “lower admission at the Gate”, the move was already written down under the symptom the team was seeing, and the runbook said the incident commander could approve it. Proposal and approval took under a minute, because every question the team might have argued over had been settled calmly, weeks earlier, by people who were not under pressure.
A runbook says what may be done. The incident channel is where it is done, and that brings us to the second tool. ChatOps is the practice of running operational work through commands typed into a shared chat channel, so that each action and its result are visible to everyone and recorded as they happen. Its value in an incident is less about convenience than about witness. A command typed in the channel is seen by the incident commander as it is issued and logged by the scribe without anyone having to remember it afterward. Compare a change made from an engineer’s own terminal: it may be the right change, but the commander learns of it late or not at all, and the timeline later has a hole exactly where the most important decision went. Encore’s incident commands look like this:
/incident declare sev1 "Vesper Hale on-sale: checkout errors"
/incident role ic @marta
/incident role comms @elif
/gate admission set event=vh-2026 rate=900 # requires IC approval
/statuspage draft "Some fans are seeing errors when selecting seats..."
Each line does a piece of the work Section 5.2 assigned to a role. The first two declare the incident and name its commander, the third names the voice that speaks to stakeholders, and the fourth is the mitigation itself, guarded so that it runs only with the IC’s approval. The last line is the most instructive: it drafts a status-page update and does not publish it. As in PagerDuty’s process, a public post needs the commander’s approval, because what Encore says to 1.1 million waiting fans is a decision about the incident and belongs to the person running it. The tool makes the comms lead faster; it does not let anyone skip the commander.
Cue at 10:11
The newest tool in Encore’s channel is not a command but a participant. Cue, the operations agent first introduced in Section 3.5, whose 10:11 findings we have already watched the channel fix upon, joins every SEV1 and SEV2 channel. It reads telemetry, deploy history, runbooks and past postmortems, and it answers questions in the channel the way a well-read colleague might.
What matters most about Cue is where its limits come from. What it may do is fixed by the platform, not by the instructions in its prompt, and that distinction carries the whole design. Instructions can be argued with, misread or overridden by a cleverly worded input; a platform control cannot. So Cue’s only actions come from a catalog that the platform enforces. When Cue wants to act, it posts a plan in the channel, a named person approves it there, and only then does the platform issue a token that lasts five minutes and is scoped to that one action on that one target. Cue holds no standing permission to change anything. Just two small actions may run without approval: raising Catalog’s autoscaler floor and holding a node in the upgrade reconciler. A restart of Seat Inventory was not one of them, which is why what follows was a suggestion rather than an event.
At 10:11 Cue did two things. They are worth looking at separately, because they line up closely with what tools of this kind have and have not been shown to do.
The first was genuinely helpful. In about four minutes, Cue had correlated the alert with the platform’s change log and with the shards’ leader history, and it posted what it found: the reconciler had drained a node at 10:02, and Seat Inventory shard 3 had failed over its leader at that moment. Correlating alerts with recent change is an old and proven move. Most outages follow a change, so the first useful question in almost any incident is “what changed?”, and on-call engineers have been asking it of deploy logs since long before language models existed. What is new is asking a language model to do the correlating, and here the published accounts are real but modest. Meta reported in 2024 that its ranker put the responsible change among its top five candidates in 42% of the investigations it was tested on. Read that number carefully: it is a shortlist of five that contained the right answer a little less than half the time. That is useful to a human investigator and far from an oracle. Microsoft’s RCACopilot (EuroSys 2024) was evaluated on a year of incidents and deployed with one team. Cue showed the limit of the technique too. The Catalog deploy at 09:52, which had emptied the seat-map geometry cache, fell outside the time window Cue searched, so it never appeared in Cue’s answer. Cue was right about what it found and blind to what it did not look for, and Section 5.3 showed what came of the channel’s attention gathering around shard 3. Chapter 6 measures that blind spot.
The second thing Cue did was suggest a fix: restart the Seat Inventory pods to clear what it called an unhealthy state. It had learned the move from two old postmortems, both about stateless services, where a restart is cheap and often works, because a fresh pod picks up a clean state and loses nothing. Seat Inventory is not stateless. Each of its shards has a leader, and restarting the pods would have forced leader elections on every shard, each election with its own window of rejected writes, in the middle of the busiest on-sale of the year. The suggestion was plausible, and it was wrong. Jonas, one of the few engineers who had run a shard failover by hand (at a game day the quarter before), declined it in one line.
This was Bainbridge’s irony, from Chapter 3, at full strength. Automation leaves people with the hardest part of the job, and with less practice at it. The safeguard against a fluent agent turned out to be a person skilled enough to judge its suggestion, at exactly the moment when the agent’s speed and confidence made it tempting to go along. Encore was lucky that Jonas had done a manual failover recently enough to know what a restart would cost; most of his colleagues had never done one. The lesson I draw is a narrow one, and I think it is durable: an assistant can be right about the facts and still wrong about the action. Cue’s correlation was accurate. Its recommendation took accurate facts and applied a pattern from a different kind of system.
The approval gate that held at 10:11 is not only Encore’s caution; there is production practice behind it too. Google’s SREs described in early 2026 how Gemini CLI works through outages using typed tools that carry risk metadata, with a human confirmation for every change and an audit trail of what was done. Their worked example was a simulated outage, and the practice is young, but its shape is the same as Encore’s: the agent proposes, a person decides, and the system records. The other approach, letting an agent remediate unattended, has no credible production account behind it. In IBM’s ITBench benchmark (ICML 2025), agents resolved only 11.4% of the site reliability engineering scenarios they were given. So Encore keeps Cue to suggestions and to approved catalog actions. Since that Friday each action in the catalog also carries a blast-radius tag, which tells the approver, before anything runs, how much of the system the action could disturb. The tag puts in front of every approver the question Jonas answered from experience: if this goes wrong, how much goes wrong with it?
Cue’s most valuable work that morning drew the least attention. It drafted the incident timeline as events unfolded, which the scribe corrected into Figure 5.5, and it drafted stakeholder summaries for Elif to edit and send. This is where the evidence is firmest. Google’s security team reported in 2024 that incident summaries drafted by a model were written 51% faster and rated higher in quality, with a person approving each one, and Datadog describes the same draft-then-correct pattern for postmortems. The reason it works is not mysterious. Drafting a summary is slow, tedious work for a tired person, while checking a draft is quick and plays to what the person knows. A wrong sentence in a draft costs a correction, but a wrong action against a live shard costs an outage. That difference in the cost of error explains a good deal about where these assistants have so far earned their place.
Recap. Good runbooks start from a symptom, lead with generic mitigations and name who may authorize each action, and ChatOps makes every action visible to the commander and part of the record. AI assistance in incidents is young, but it has real accounts behind it for correlating alerts with change and for drafting timelines and summaries that a person corrects. Its actions belong in a catalog the platform enforces, each one approved by a named person and scoped to one target; autonomous remediation remains unproven.
Exercise 5.4. Pick one action your tooling or assistant could take during an incident: a restart, a rollback or a scale change. Write down the conditions under which that action would make things worse. Then check two things: whether the approval step forces a human to consider those conditions before approving, and whether anything other than the approval stops the tool from acting.
5.5 On-Call That People Can Sustain
Load and its measures
Everything we have watched so far in this chapter, the page at 10:04, the briefing, the command, the mitigation, depended on a person who was awake, reachable and clear-headed when the phone rang. That person is the subject of this last section. On-call is where incident response stops being a question of process and becomes a question of labor: how much of someone’s life the pager may claim, how often it may wake them, and what the organization owes them in return. The roles of Section 5.2 can be drawn on a whiteboard in an afternoon, but they are only as good as the rested, willing people who fill them week after week, and a rotation that wears those people down will eventually fail at exactly the moment it is needed.
The Google SRE book offers two reference points that have aged well. The first is that no more than 25% of an engineer’s time should be spent on call. The second is that a 12-hour shift should bring about two incidents at most, because each real incident carries hours of follow-up beyond the page itself: investigating, writing it up, fixing the alert or the code, and catching up on the work it interrupted. Two incidents in a shift, each with its tail of follow-up, already fill that shift. Other teams will reasonably choose their own targets, but whatever the targets, the load should be measured with the same seriousness we give an SLO. Four measures do most of the work: pages per shift; pages that arrived outside working hours; the share of pages that needed someone to act; and time to acknowledge. Each is best read as a distribution over many shifts, because a single team’s averages are noisy, and one brutal week can hide inside a comfortable mean.
The third of those measures deserves a moment of its own. A page that needed no action is a defect in the alerting. It woke someone, or interrupted them, in order to tell them something they could do nothing about, and each such page teaches the person carrying the pager that pages can be ignored, which is the most dangerous lesson an alerting system can teach. The cure is the paging discipline of Chapter 4: page only on symptoms that a human must act on now, and send everything else to a ticket or a dashboard.
The 25% cap sounds like a policy, but it carries an arithmetic consequence that shapes how teams are organized. Suppose a rotation has a primary and a secondary each week, so two people are on call at any moment. For each engineer to be on call no more than a quarter of the time, that is two weeks in every eight, the rotation needs at least eight people. When two sites split the day between them, each site holds the pager for only half of every day, and the SRE book puts the minimum at six people per site. Now consider a typical stream-aligned team of five engineers. On its own it cannot meet the cap: with two people on call every week, each of the five would carry the pager for two weeks out of every five, which is 40% of their time. The numbers leave only two honest choices, which are to relax the cap or to share the rotation with someone else.
Encore chose to share. Each team runs a weekly primary and secondary, but small teams are paired with neighboring teams whose systems they understand, so that no rotation has fewer than eight people. Alongside these team rotations, Encore keeps a separate incident commander rotation of about 20 trained engineers, most of them senior, drawn from across the company. Every rotation answers to an escalation policy, the configuration that decides who is notified for an alert, in what order, and how urgently. It does two jobs without anyone having to remember them. It moves an unacknowledged page on to the next person by itself, and it decides, from the alert alone, whether a phone may ring at night:
escalation_policy: on-sale
steps:
- notify: primary
escalate_after: 5m # unacknowledged
- notify: secondary
escalate_after: 10m
- notify: on-sale-engineering-manager
urgency:
high: [sev1-symptom, sev2-symptom] # any hour
low: [everything-else] # working hours only
Read from the top, the policy says that the primary has five minutes to acknowledge; if they do not, the secondary is paged, and if the secondary is also silent for ten minutes, the On-Sale engineering manager is paged. The urgency block says that only alerts on SEV1 and SEV2 symptoms may wake anyone, and that everything else waits for working hours.
Even with a policy like this, the numbers can drift without anyone noticing. Rui had been paged twice in the small hours that week, mostly by pre-warm alerts, the kind that fire around the preparations for a scheduled on-sale. He responded well on Friday. That says something about Rui, and very little about whether the rotation was healthy, because a rotation is judged by its load over months, and a good performance on one morning tells us nothing about how many more such weeks he can absorb.
Follow-the-sun, compensation and handoffs
The night is the expensive part of on-call, and the most elegant way to remove it is geography. Organizations with two adequately staffed sites in distant time zones can run follow-the-sun rotations, in which each region holds the pager during its own daytime and hands it to the other region as its evening arrives, so that nobody is paged at night. The price of removing the night is that every shift boundary becomes a handoff. Each handoff needs the spoken briefing of Section 5.2 and a written note, because anything in flight, an open incident, a suspicious graph, a change half rolled out, must cross the boundary intact, and Section 5.2 showed how easily a shared picture falls through the gap between two people.
Encore cannot use this arrangement, because its engineers all work near CET; there is no second site whose daytime covers Encore’s night. It does the next best thing, which is to make the night as narrow as possible. Night pages are kept for SEV1 and SEV2 symptoms only, and that rule is set in advance as an urgency on each alert, as in the policy above. It cannot be left to the severity of the incident, because severity is assigned by people after someone has already been woken up to look; by then it is too late to decide whether the phone should have rung. And after any night page, the engineer who answered it is given time off.
Compensation is part of sustainability too, and here the law has something to say, though less than is often claimed. In the Matzak case (2018) the Court of Justice of the European Union considered a Belgian volunteer firefighter who, while on standby at home, had to be able to reach his station within eight minutes. The Court held that his standby was working time. The reasoning is easy to follow: a man who must be at the station within eight minutes cannot really go anywhere or do much with that time, so it is not his own.
Matzak marks the extreme, and it is often quoted as if it covered every on-call arrangement. It does not. In two 2021 rulings the Court narrowed it: standby counts as working time only where the employer’s constraints very significantly limit the worker’s ability to use their free time, and even then the classification does not settle what the worker must be paid. Few software rotations come near that line. An engineer with a laptop and half an hour to respond can go to dinner, visit family or sit in a cinema with the phone on vibrate, which is a different life from waiting by the door for the fire siren. What is settled is narrower and more practical. Answering a page is working time, and the 11 hours of daily rest that the Working Time Directive requires are owed after it, so an engineer who works through the night on an incident is not expected at their desk the next morning.
Encore pays a standby allowance on top of what the law requires. That is its own choice, and I think the right one, because a rotation that depends on goodwill is already failing. Goodwill is real, and most engineers give it freely the first time and the fifth, but it is spent each time it is drawn on, and an organization that treats it as an inexhaustible resource discovers its limit only when experienced people quietly leave the rotation, or the company.
Fatigue
Fatigue matters for a reason more specific than kindness: it degrades exactly the faculties incident response depends on. Section 5.3 described the first two. Comprehension is understanding what the signals mean. Projection is seeing where the system is heading. And beneath both lies the patience Rui showed in Section 5.1, spending 60 seconds establishing the scope of a problem before acting on it. A tired engineer can still type commands and read graphs. What goes first is the judgment that connects them, and the tired engineer is often the last to notice it has gone.
Touring crews know this well. The crew who loads out a show after midnight and drives through the night to the next city is not the crew you want rigging lights over an audience the next afternoon, and good tour managers build rest into the schedule as carefully as they build the route. The analogy holds as far as the schedule; it breaks at predictability. A tour knows its load-outs months in advance, while an incident arrives when it likes and lasts as long as it lasts, so on-call rest has to be granted after the fact and command has to be rotated during the event.
Long incidents therefore rotate command. In one incident recounted in the SRE Workbook, PagerDuty rotated its responders and its incident commander every four hours, and Encore adopted the same four-hour limit for the incident commander. The handoff at each rotation is the briefing of Section 5.2, which is one more reason to practice it when nothing is on fire.
Rest also matters once an incident is over. After Vesper Hale, Marta sent Rui and Jonas home at lunchtime and asked the On-Sale team’s secondary to take the pager for the weekend. Rui had been woken twice that week and then carried the opening minutes of a SEV1; Jonas had held his nerve when a fluent agent suggested a plausible restart. Neither needed to be told they had done well as much as they needed to sleep. It was a small decision, and I have come to believe that decisions of exactly that size, made consistently by the people who lead incidents, are what keep engineers on a rotation for years.
Recap. On-call load deserves to be measured as carefully as any SLO, through pages per shift, night pages, the share that needed action and time to acknowledge, read as distributions. The 25% cap implies rotations of at least eight people, or six per site across two sites, which small teams reach only by pooling with their neighbors. The law asks less of standby than is often claimed, but answering a page is work and the rest after it is owed; and because fatigue erodes judgment before it erodes skill, long incidents rotate command and the people who carried them are sent to rest.
Exercise 5.5. Pull the last quarter’s pages for your rotation. Compute pages per shift, the share that arrived outside working hours and the share that required action, and check the rotation’s size against the 25% arithmetic: how many people would it need, with its current pattern of primaries and secondaries, to keep each one on call no more than a quarter of the time? Then ask which single alert, removed or demoted to working hours, would most improve the numbers.
Kata: Storm Night
Your brief: “Brightwater Energy.” Brightwater is a regional electricity utility, and you are inheriting its customer platform. The platform serves 1.1 million accounts. It publishes an outage map that customers check when their lights go out. It listens to 800,000 smart meters, each of which sends a “last gasp” signal in the moment it loses power, so the platform can know about an outage before anyone phones it in. And it runs dispatch for 300 field crews, the people who drive out in the weather to restore the lines.
A winter storm brings 25 times the normal traffic. Brightwater does not face a storm alone: the grid operator’s control room and two vendors who supply field crews take part in every storm incident, so each one is shared among several organizations from its first minute.
Twenty-four engineers in four teams run the platform from two offices an hour apart. They share a single on-call rotation, which took 310 pages last quarter. That is between three and four pages a day, every day; 55% of them arrived at night, and most of them needed no action at all.
Last January, during a storm, the outage map froze for four hours. Throughout those hours it showed 2,000 customers without power, when the true number was 90,000. Nobody declared an incident for 70 minutes. Three engineers made changes to the platform that conflicted with one another, and customers learned when their power would be back from local radio, not from Brightwater.
Brightwater’s January is Encore’s Friday morning without the scaffolding this chapter built, and setting the two side by side is the best way into the kata. Encore declared within minutes, because Rui had a concrete test and a severity table that told him what a purchase-path symptom during an on-sale was worth; Brightwater waited 70 minutes, presumably because nobody had agreed what a frozen map was worth. Encore had one incident commander who did not touch production and an ops lead who did; Brightwater had three engineers each acting on a private theory, which is the collapse of roles that Weick described at Mann Gulch, at lower stakes but in the same shape. Encore’s comms lead posted to a status page that shared none of Encore’s infrastructure and promised only the time of the next update; Brightwater’s customers turned to the radio, which is what people do when the organization that ought to inform them falls silent. And Rui, paged twice in the small hours that week, still answered well, whereas Brightwater’s engineers have been answering pages at night for a whole quarter, most of them for nothing, and the storm will find them already tired.
One difference cuts the other way, and it is worth noticing before you begin. Section 5.2 observed that a software company rarely shares jurisdiction, so Encore met its payment provider through a liaison, each side commanding its own systems. A utility in a storm is much closer to the wildfire that gave birth to ICS. The control room decides what happens on the grid, the crew vendors decide where their trucks go, and Brightwater decides what customers see and how dispatch works. These are separate jurisdictions over one emergency, which is exactly the situation unified command was invented for. Your design has to say which decisions belong to Brightwater alone and which must be made jointly, and it has to say so before the next storm, because nobody negotiates a command structure well at two in the morning with the wind rising.
Deliverables:
- Severity matrix and declaration test. Define four severity levels by the harm done, never by the component that failed. The harm that matters most falls on customers, and above all on those on the medical-dependency register, whose equipment needs electricity; it also falls on the crews, who rely on the platform to know where to go. For each level, state the response it sets in motion, as Figure 5.1 does for Encore, and write the concrete criteria by which a tired engineer decides to declare.
- Role cards. Write one page each for the incident commander (IC), the ops lead, the comms lead and the scribe. Each card says what the role does, what it must not do, and how it hands over: include the spoken briefing for a handoff. Then describe how decisions are shared with the control room and the crew vendors, since they belong to the incident too.
- Communication plan. Set the cadence and write the templates for each audience: the incident channel; the control room and the call center; the status page and the banner on the outage map; and SMS to customers. Say where the status page is hosted, and check that it cannot fail for the same reason the platform fails, remembering what happened to AWS’s own status dashboard when S3 went down in 2017.
- Mitigation runbook. Write symptom-first steps for “the outage map is stale or wrong.” Start from what a responder can observe, not from a guess at the cause. Lead with generic mitigations, the ones that reduce harm whatever the cause turns out to be, and name who may authorize each step.
- On-call redesign. Set rotation sizes and an escalation policy, choose targets for page load, list the alerts you would delete or demote to working hours, and write a compensation and rest policy. Section 5.5 gives you the arithmetic and the legal floor.
- Tabletop script. Write a 45-minute exercise that replays last January’s storm with the new roles in place, so the team can rehearse the response before it needs it.
Rubric:
| Criterion | The question to ask yourself |
|---|---|
| Early declaration | Would the new criteria have declared last January’s incident within 10 minutes, and who would have done it? |
| Command clarity | Is there one IC who does not operate, and could three engineers still make conflicting changes? |
| Partners | Do the control room and the crew vendors know whom to talk to, and which decisions are joint? |
| Mitigation first | Can customers still report outages and see an honest map while the cause is unknown, and has that option been rehearsed? |
| Honest communication | Will customers hear from Brightwater before they hear from the radio? |
| Sustainable load | Do the numbers, rotation size included, show a rotation people would join voluntarily before next winter? |
Three of these questions repay some thought before you start writing. The first is mitigation first. When Brightwater’s map froze, the team’s instinct was presumably to find out why, and every minute spent diagnosing was a minute in which 88,000 customers without power were told, in effect, that they had power. A generic mitigation does not need the cause. A banner saying the map is behind and pointing customers to another way to report an outage, or a fallback view built from the meters’ last-gasp signals, would make the map honest while the diagnosis continues; Encore restored fans’ queue positions in the same spirit while it was still working out what had gone wrong. Such an option is useful only if someone has practiced switching it on, which is why the rubric asks whether it has been rehearsed.
The second is honest communication, and here the radio is a fair judge. The radio stations had no special knowledge of Brightwater’s systems; they were simply the first to say something. Encore’s practice of promising the time of the next update, and never the time of the fix, is what lets a comms lead speak early without saying something that later proves false.
The third is sustainable load, and the numbers in the brief already tell much of the story. Three or four pages a day, more than half of them at night and most of them needing nothing, means the engineers who must declare quickly and think clearly on storm night have been trained by a whole quarter of pages to expect that a page is noise. Fatigue, as Section 5.5 put it, erodes judgment first. Before you decide how many people the rotation needs, decide how many of those 310 pages should ever have reached a person; a smaller and more honest stream of pages may turn out to matter more than a larger rotation.
Where you now stand
You can now declare an incident by a concrete test, so that a tired engineer does not have to decide alone whether something is serious enough. You can staff a response with the roles the fire services refined over half a century: a commander who does not operate, an ops lead who does, a voice for everyone outside the channel and a scribe who keeps the record. You can recognize fixation and break it with a plain question about what is still broken now. You can mitigate before you diagnose, trading a known small cost for relief from a large and certain harm. You can give an agent only the part of the work that has been approved and that the evidence supports. And you can size a rotation that people can carry for years, not just survive for a quarter. Encore’s 47 minutes ended with no seat sold twice, and with some 30,000 fans wrongly called bots before the rule that blocked them was switched off. Chapter 6 takes up the harder question that this chapter deliberately set aside: how a sensible rate change, a routine deploy, a trusted reconciler and an old bot rule came to meet at 10:02 on the most important morning of the year.
References
- Betsy Beyer, Chris Jones, Jennifer Petoff, Niall Richard Murphy (eds.) — Site Reliability Engineering. O’Reilly/Google, 2016 — free online.
- Betsy Beyer, Niall Richard Murphy, David K. Rensin, Kent Kawahara, Stephen Thorne (eds.) — The Site Reliability Workbook. O’Reilly/Google, 2018 — free online.
- PagerDuty — PagerDuty Incident Response Documentation. PagerDuty — free online.
- Rob Schnepp, Ron Vidal, Chris Hawley — Incident Management for Operations. O’Reilly, 2017.
- Amazon Web Services — Summary of the Amazon S3 Service Disruption in the Northern Virginia (US-EAST-1) Region. AWS, 2017 — free online.
- Mica R. Endsley — Toward a Theory of Situation Awareness in Dynamic Systems. Human Factors, 1995.
- Karl E. Weick — The Collapse of Sensemaking in Organizations: The Mann Gulch Disaster. Administrative Science Quarterly, 1993.
- Meta Engineering — Leveraging AI for Efficient Incident Response. Engineering at Meta, 2024 — free online.
- Yinfang Chen et al. — Automatic Root Cause Analysis via Large Language Models for Cloud Incidents. EuroSys, 2024.
- Google Security Blog — Accelerating Incident Response Using Generative AI. Google, 2024 — free online.
- Riccardo Carlesso, Ramón Medrano Llamas — How Google SREs Use Gemini CLI to Solve Real-World Outages. Google Cloud Blog, 2026 — free online.
- Saurabh Jha et al. — ITBench: Evaluating AI Agents across Diverse Real-World IT Automation Tasks. ICML, 2025 — free online.
- Court of Justice of the European Union — Case C-518/15, Ville de Nivelles v Matzak (2018), and Cases C-344/19 and C-580/19 (2021). CURIA — free online.
Chapter 6: Learning from Incidents — Postmortems, Just Culture, and Drift
“For a successful technology, reality must take precedence over public relations, for nature cannot be fooled.” — Richard Feynman
On the evening of 27 January 1986, engineers at Morton Thiokol joined a teleconference with NASA managers to argue that Challenger should not launch the next morning. Thiokol was the contractor that built the space shuttle’s solid rocket boosters, and the engineers’ worry was a small part with a large job. Each booster’s field joints were sealed by rubber O-rings. A rubber ring seals by springing back into the gap when pressure reaches it, and cold rubber springs back slowly. The forecast for the morning was far colder than any launch so far. The coldest earlier launch, in January 1985 at about 53°F (12°C), had shown more blow-by than any flight before it, which is to say that hot gas had slipped past a primary ring before the seal closed. Reasoning from that flight, the engineers recommended against launching below that temperature. NASA’s managers challenged the data, and the data was in fact thin. Thiokol’s managers conferred off the line and came back recommending launch. On 28 January, at about 36°F (2°C), Challenger lifted off; 73 seconds later it broke apart, and the seven people aboard were killed.
The first account of the disaster was a story of schedule pressure and rules bent, and it was not wrong as far as it went: the Rogers Commission did find that launch constraints had been waived without being reported upward. Diane Vaughan’s The Challenger Launch Decision (1996) told a more unsettling story, one that begins years before that cold night. O-ring erosion had been seen as early as the second shuttle flight, in 1981. Each time it appeared, engineers found a reason the margin still held and accepted the next flight as an “acceptable risk”, and they did so through exactly the procedures NASA had built for making such judgments. Each acceptance then became precedent for the next. A flight that showed some erosion and came home safely became evidence that some erosion was tolerable, and so the next case was judged against that new baseline, not against the expectation the rings had started with. By January 1986 the burden of proof had quietly turned over. Where a flight had once needed to be shown safe, the engineers were now asked to prove it unsafe, and with the data they had, they could not.
Vaughan called this the normalization of deviance: the gradual process by which a departure from an expected standard, repeated without harm, comes to be treated as the standard itself. What makes her account unsettling is where she places the failure. In her reading nobody broke the rules in any sense that mattered; the rules were how the deviance became normal. The reviews and sign-offs worked as they were designed to work, and what they produced, one reasonable decision at a time, was a launch that should not have happened. When Columbia was lost in 2003, the accident board drew explicitly on her work and found the same pattern a second time, seventeen years after the first. I have come to believe this is the most important lesson the history of accidents holds for people who run systems. An organization can drift toward danger while every person in it behaves sensibly, and the drift is hard to see from inside, because each step is small and each step was survived.
We already have the vocabulary for this. Chapter 2 introduced the ideas this chapter now puts to work, from Reason’s latent conditions to Leveson’s System-Theoretic Accident Model and Processes (STAMP). Chapter 5 followed Encore through the Vesper Hale on-sale as it happened: 47 minutes of degraded checkout, about 30,000 real fans blocked as bots, and not one seat sold twice. With the incident over, the slower work begins. That work is learning from what happened without punishing anyone and without excusing anyone, and then making the learning stick, so that it changes how Encore operates and not merely what Encore says about itself. It also means looking honestly at a slow change that set the stage for the incident. Encore’s change freeze, the rule that bars routine changes to the purchase path around a big on-sale, had been eroding for a year, one reasonable exception at a time, very much as the O-ring margins had. The rest of this chapter is about how to review an incident so that people tell the truth, how to see that kind of drift, and what to change once you have seen it.
6.1 Blameless, Not Accountability-Free
On the Monday after the on-sale, the first question in the leadership channel was “who approved the admission change?” It was a natural question to ask, and it was the wrong one to ask first. Its answer, a name, explains almost nothing about why the morning went as it did. The admission rate had been raised from 1,200 to 1,500 fans/s on the strength of a load test that ran against a warm seat-map cache, and the review process had accepted that warm-cache test as evidence of headroom. Any engineer on that team, holding that test result, would have approved the same change. The trouble lay in the process that let such a test count as proof, and a question that ends in a person’s name stops just short of the process.
That observation is the starting point for what the industry calls a blameless review. A blameless postmortem is a review in which the people involved give a full account of what they did and why, on the understanding that the account will be used to improve the system and not to punish them. The idea has a short lineage worth knowing. It grew from Sidney Dekker’s work on just culture; John Allspaw’s 2012 post on Etsy’s engineering blog carried it into web operations; and Google’s SRE book made it the default for a generation of engineers, adding that leaders must be seen to reward good postmortems, since a policy nobody visibly honors is soon not believed. The reasoning behind all of it is informational before it is moral. An organization learns only what its people tell it, and people tell only what is safe to tell. Punish one candid account and the next will be shorter, vaguer and carefully lawyered, and the organization will have bought a feeling of justice at the price of its own eyesight.
Blameless is often misheard as “nobody is accountable”, and the misreading does real damage, because it lets critics dismiss the practice as softness and lets careless defenders practice it as avoidance. Dekker’s Restorative Just Culture (2025, the fourth edition of his Just Culture) answers the confusion by contrasting two responses to harm. A retributive just culture asks which rule was broken, by whom, and what the consequence should be. A restorative just culture asks who was hurt, what they need, and whose obligation it is to meet that need. Both take accountability seriously; they differ in what they ask the accountable to do. The retributive form asks a person to bear a penalty. The restorative form asks for an account and for repair, and “account” is meant literally: to be accountable is to be able and willing to explain what happened, and then to help put it right. The framing comes from healthcare, where its best-documented adopter, the Mersey Care NHS trust in England, reported fewer suspensions and lower costs. In software the word “blameless” is common, but the restorative questions, asked by name, are still rare.
Encore asked them explicitly, one affected group at a time, and the answers turned a principle into a list of obligations.
The fans were hurt first. About 30,000 real fans were blocked outright as bots, and roughly 9% of the fans who were admitted hit errors at least once. What they needed was their place back, some recompense for a spoiled morning, and the truth about what had happened. Encore restored blocked fans’ queue positions during the incident itself, gave every blocked fan early access to further tour dates, and published a plain public account within the week. A public report of that kind is restorative work done in the open: it is the same act of giving an account, aimed outward at the people who were harmed. Cloud providers have made such reports routine. AWS published a post-event summary within days of its us-east-1 failure of October 2025, and Cloudflare explained its November 2025 outage in detail the same day. Encore’s other affected parties, the organizers and the artist’s management, received the same account, earlier and fuller, since they had their own audiences to answer to.
The engineers were hurt too, and they are the group a retributive culture forgets. The On-Sale engineer who proposed the admission change spent the weekend replaying it. Medicine has long recognized this kind of injury. In 2000 the physician Albert Wu called such people second victims: clinicians harmed by their own involvement in a patient’s harm. The term has been contested since; patient advocates have argued that it casts the harm as bad luck, and many hospitals now avoid it. But the practice Wu asked for, early support for the clinician, has become standard, and the practice is the part that matters. What the On-Sale engineer needed was to hear, early and from leadership, that the review would be about the system. Ask the third restorative question, whose obligation that was, and the answer is plain: it fell on the organization, and silence from leadership over that weekend would itself have been a failure to meet it.
None of this abolishes consequences. Sabotage and sustained recklessness are rare, and both Allspaw and Dekker send them to a separate process, so that the possibility of punishment does not hang over every review. Keeping the two apart is what lets the postmortem do its job, which is to collect the truest account it can. Everything else in this chapter, from the contributing factors of Section 6.2 to the drift of the change freeze and the changes Encore made afterward, can only be as good as what people were willing to say.
Recap. Blameless review exists so that people give full accounts, because an organization can learn only from what it is told. Accountability survives in restorative form, which asks who was hurt, what they need and whose obligation it is to meet that need. At Encore, fans were answered with restored queue positions, early access and a public report, and the engineers with early, explicit support from leadership.
Exercise 6.1. Take your organization’s last significant incident. Write the three restorative questions and answer them for every group affected, including the engineers. Which need went unmet, and whose obligation was it?
6.2 Beyond Root Cause — Contributing Factors and CAST
Why root cause fails
Ask “what was the root cause of Vesper Hale?” and four candidates step forward at once. The first is the admission change, which raised the Gate’s rate from 1,200 to 1,500 fans per second on the strength of a load test run against a warm cache. The second is the Catalog deploy at 09:52, which cold-started the seat-map cache eight minutes before the doors opened. The third is the node drain at 10:02, which forced a leader failover on Seat Inventory shard 3 and about 40 seconds of rejected writes. The fourth is the bot rule, which read the fans’ frantic retries as an attack and blocked about 30,000 of them. Each of the four was necessary, and none was sufficient. Remove any one of them and the morning is very likely an ordinary on-sale: a warm cache absorbs the higher admission rate, a failover on a lightly loaded shard passes unnoticed, and retries that never start trip no rule. Chapter 2 met Richard Cook’s observation that catastrophe needs several failures together, each insufficient alone. At Vesper Hale that observation is no longer a thesis to be argued; it is simply the timeline.
If no single cause is the cause, then the phrase “root cause” must be describing something other than the incident. I think it describes the investigation. Every chain of “why” can be followed further back. Why was the load test warm? Perhaps because nobody had asked for a cold case; and why had nobody asked? Each answer opens another question, and if we keep going we arrive at budgets, staffing and the history of the company. A root cause is wherever an investigation decides to stop asking why. That decision is sometimes sensible, but it is a decision about the inquiry, and the danger is that it gets mistaken for a discovery about the world.
Two biases push us to stop early, and both are strongest in exactly the moment after an incident, when everyone knows how the story ended. Hindsight bias, which Baruch Fischhoff demonstrated in 1975, is the tendency of people who know an outcome to judge it more predictable than it was. Once we know the cache was cold, the cold cache looks like the obvious thing to have checked; on the Wednesday of the readiness review it was one of hundreds of things that might have mattered and almost never did. Hindsight’s companion is the counterfactual, a statement of what someone should have done instead: “the team should have run a cold-cache test.” The sentence is true, and it is nearly useless, because it describes a world that did not exist and says nothing about why the world that did exist made sense to the people in it. Richard Cook, David Woods and John Miller drew the distinction that matters here in 1998. A first story explains an incident as a person’s error: someone approved the change, someone missed the risk. A second story explains the pressures, resources and trade-offs that made the same act reasonable at the time it was taken. The first story points at a person, and the only change it suggests is a different person or a sterner warning. The second story points at the conditions the person worked in, and those conditions are something an organization can actually change. Only the second story says what to change.
None of this requires banning a phrase, and Encore did not try. Mainstream operators still use the words, and mostly mean the plural by them. Google’s error-budget policy still asks for an action addressing “the root cause”, and CrowdStrike’s 2024 root cause analysis of its faulty sensor update described several conditions that all had to line up before the failure could happen. What matters is the shape of the analysis, not the label on the heading. Encore’s default review makes the plural explicit by putting it under a heading of contributing factors: the conditions that together made the incident possible, each explained from the inside, as the people and systems involved saw it at the time. For most incidents, a well-written list of contributing factors, each told as a second story, is enough.
When CAST earns its cost
For its largest incidents Encore goes further, because a list, however honest, has a limitation: it presents the factors side by side, and leaves the reader to guess how they relate. Nancy Leveson’s Causal Analysis based on STAMP (CAST) is a method for writing second stories systematically, and for showing how they fit together. It rests on the STAMP model from Chapter 2, which treats safety as something enforced by a structure of controllers. In that view an incident is a failure of control: some controller, human or automated, issued a control action that was unsafe in its context. Usually the controller did so because its process model, its beliefs about the state of the system it controls, was wrong, out of date or missing a signal that would have corrected it. The method proceeds in a fixed order. CAST names the loss, the harm that actually occurred, and the hazard, the system state that made the loss possible. It then draws the control structure: who and what could act on the system, and what feedback each of them received. Of each controller it asks three questions: what did it do, what did it believe, and why was that belief reasonable at the time? Finally it steps back to examine coordination between controllers, and how the structure itself had changed over time.
The discipline in those three questions is the point. “What did it believe, and why was that reasonable?” forces the second story for every controller, the reconciler and the bot rule as much as the engineers, and it forbids the analysis from stopping at the first person who could be blamed. A ship’s master after a collision is a fair comparison. Asking who was on the bridge yields a name; asking what the radar showed, what the charts said and what the other vessel was signaling yields a picture of why a competent officer steered as they did. The comparison breaks in one respect, and the break is instructive: a ship has one bridge, while Encore’s purchase path had six controllers acting on it that morning, none of them in charge of the others.
CAST is established in aviation, defense and healthcare, and young in software. Leveson’s free CAST Handbook appeared in 2019. The best public account of its use by a large operator is Google’s, whose SRE organization has described applying STAMP methods to its incidents in recent articles and talks, while its own page still calls the work exploratory. That is a serious precedent, and an honest reader should take it as exactly that much and no more: a respected organization finds the method worth pursuing, and has not yet published evidence of what it buys.
The method is also labor-intensive. Drawing a control structure with every team involved, and interviewing each one about what it believed, takes days of skilled people’s time. Encore therefore reserves CAST for two kinds of incident: SEV1 incidents, the top severity defined in Chapter 5, and anything touching seat or money integrity. Everything else gets the lighter contributing-factors review. The trade-off is deliberate. A heavier method on every incident would teach the organization to resent reviews, and a lighter method on the worst incidents would miss exactly the structural findings that only a drawn structure reveals. Vesper Hale qualified on both counts: it was a SEV1, and although no seat was sold twice, the purchase path that protects seat integrity was the thing under strain.
Encore’s Reliability team, the platform group’s ten site reliability engineers, ran the analysis with every team that had a controller in the story. They began by naming the two things CAST asks for first. The loss was fans unable to buy tickets during an on-sale. The hazard was the purchase path receiving more load than it could serve while its capacity was reduced. That hazard statement already does useful work: it says the incident needed both halves, rising load and falling capacity, and so it points the analysis at every controller that could raise one or lower the other. Figures 6.1 and 6.2 show the control structure that resulted and what each controller believed.
Figure 6.1 — The control structure of the Vesper Hale on-sale. Every controller could act on the purchase path, and two of the feedback paths that would have warned them did not exist.
| Controller | Control action | What it believed | What was missing |
|---|---|---|---|
| Node-upgrade reconciler (platform) | Drained a node at 10:02 | Draining is safe whenever disruption budgets allow it | Input from the on-sale calendar; any sense that draining a node that hosts a shard leader costs more than draining an ordinary one |
| Change freeze (readiness review) | Defined the frozen scope; granted exceptions | Catalog and “low-risk” automation sit outside the purchase path | A scope derived from real dependencies; a record of exceptions and what followed them |
| On-Sale team and reviewer | Raised admission from 1,200 to 1,500 fans/s | The load test proved headroom | A cold-cache case in the test; a review question about cache state |
| Catalog team | Deployed at 09:52 | Outside the freeze, a rolling deploy is routine | Any signal that its seat-map cache was on the on-sale’s critical path |
| Bot Screening velocity rule | Blocked about 30,000 clients | Bursts of identical requests are bots | Knowledge that the web client now retries failed holds; feedback from purchase-path errors |
| Cue (operations agent) | Suggested restarting Seat Inventory pods | Restarts had cleared elevated errors in past incidents | A model of leader failover; the blast radius of its suggestion |
Figure 6.2 — Encore’s control structure on the morning of the Vesper Hale on-sale, read through CAST. Every controller acted on a reasonable belief; the missing column is where the changes come from.
Each row, read on its own, is a small second story, and each could have been written in a contributing-factors review. The value of the table lies in reading it the other way. Read down the last column and a pattern appears that no single row reveals: nearly every gap is missing feedback between teams. The reconciler did not know about the on-sale calendar, which the readiness review owned. The Catalog team did not know its cache was on the On-Sale team’s critical path. The bot rule did not know that the web client’s retry behavior had changed, nor could it see the errors on the purchase path that were causing the bursts it was punishing. In every case the information existed somewhere at Encore; it simply did not flow to the controller that needed it.
Diane Vaughan, whose study of Challenger opened this chapter, had a name for this condition. She called it structural secrecy: the way an organization’s division of labor lets each group see its own piece clearly while nobody sees the whole. It involves no secrets in the ordinary sense, since nobody hid anything; the secrecy is built into the structure. And it cannot be removed by abolishing the structure, because the structure is how the work gets done at all. Decomposition is how 40 teams master a system that no one person could hold in their head, and the narrow, deep view each team has of its own service is the price of that mastery. A touring production works the same way: the lighting crew, the sound crew and the riggers each know their own rig thoroughly, and the stage manager’s calls are what tie them into one show. The analogy holds as far as it shows why the cure is coordination and not a merged department. It breaks on one point: a show has a stage manager watching every cue in real time, and a software organization of 40 teams has no such person, nor could one person keep up. So the answer at Encore cannot be a single all-seeing coordinator. It has to be the feedback itself, wired back in between the controllers that need it, so that the reconciler can see the calendar and the bot rule can see the purchase path’s errors.
That is the finding a lighter review would have missed. A contributing-factors list would have named the four factors, and each would have produced its own action item, owned by its own team. It took the drawn structure to show that the four were one finding: a control structure whose controllers could not see each other.
The freeze as normalization of deviance
One row of the table deserves a closer look, because it is where the chapter’s home touchstone returns. The second row, the change freeze, is Challenger in miniature.
Begin with the rule as it was written, because the rule itself was never the problem. The freeze said: no non-emergency changes to the purchase path from two hours before an on-sale until its end. Over the year before Vesper Hale, the freeze channel recorded 41 exceptions (Figure 6.3). Every one was granted in chat, and none was followed by an incident. Alongside those explicit exceptions sat a standing one. The node-upgrade reconciler had been classed as low-risk automation and exempted from the freeze altogether, and on three earlier on-sales it had drained nodes mid-sale without harm. It had done no harm only because none of those nodes happened to host a shard leader, but from the outside that luck looked exactly like safety. Finally, the freeze’s list of purchase-path services predated Catalog’s seat-map cache. When the cache moved onto the on-sale’s critical path, nothing prompted anyone to update the list, and nobody had reason to revisit it.
Figure 6.3 — Freeze exceptions granted in chat, quarter by quarter, in the year before Vesper Hale. Each quarter looked like the last one, a little busier; only the running total, which nobody kept, shows the drift.
The figure is worth dwelling on, because it shows why nobody noticed. Anyone looking at one quarter saw a handful of exceptions, each with a sensible reason, slightly more than the quarter before. The drift was visible only in the cumulative count, and no one was keeping that count. When we set the freeze’s year beside the history of the O-rings, the two drifts pass through the same stages in the same order.
| Stage | Challenger’s O-rings | Encore’s freeze |
|---|---|---|
| The standard | Joints seal with no erosion | No purchase-path change from T−2h |
| First deviance | Erosion seen after the second flight (1981) | Exceptions granted in chat “just this once” |
| Reinterpretation | Erosion within a calculated safety margin | Platform automation classed as low-risk and exempt |
| Success as evidence | Flights with erosion return safely | Three mid-sale drains cause no harm |
| Burden of proof reversed | Engineers must prove flight unsafe | Anyone objecting must show why an exception is risky |
Figure 6.4 — Two drifts, side by side. In both, each step was reasonable, made by careful people, and confirmed by an outcome that happened to be good.
The comparison has limits, and it is worth stating them. Challenger cost seven lives; Vesper Hale cost a bad morning for tens of thousands of fans and a hard weekend for the engineers involved. The mechanism, however, is the same, and the mechanism is what we are here to learn. In both stories a standard was set; a departure from it was allowed once, for a good reason; the departure was then reinterpreted as falling within the standard; each harmless repetition was taken as evidence that the departure was safe; and in the end the burden of proof had turned over, so that the person raising a concern had to prove danger instead of the person seeking the exception having to prove safety.
Nobody ignored the freeze. People followed it, asked for exceptions through the channel it provided, and received them for reasons that were sound each time. That is precisely how it drifted. When a rule’s exceptions are never counted, its meaning changes without anyone deciding to change it, and the rule on paper and the rule in practice slowly become two different rules.
Recap. Root cause is a stopping point, and hindsight pushes us to stop too soon. The everyday remedy is a plural list of contributing factors, each told as a second story that explains why the act made sense at the time. CAST, young in software and costly, earns its place on the largest incidents. At Encore it showed that the four factors were one finding, structural secrecy between teams, and it showed a freeze that had drifted through the same stages as the O-ring margins.
Exercise 6.2. Build a CAST table like Figure 6.2 for the most serious incident you know, with at least four controllers, one of them automated. For each controller, write why its belief was reasonable at the time. Then read down the last column: which missing feedback path, if it had existed, would have changed the most rows?
6.3 Writing and Running the Review
Deciding what gets reviewed
Before any review is written, someone has to decide that one will be written at all, and that decision is best made long before the incident it applies to. If the rule is settled in advance, the incident simply meets it or does not. If it is left open, the choice falls to whoever is in the room on Monday morning, and the quiet pressure in that room is to review the incidents that are safe to talk about and let the awkward ones pass. Left to the moment, embarrassment chooses. Google’s SRE book lists the triggers it uses: user-visible impact past an agreed threshold, any loss of data, on-call intervention such as a rollback, a long time to resolve, and a monitoring failure, by which it means a problem that a human found before the alerts did. That last trigger deserves a moment’s attention, because it is the one teams most often forget: an incident the alerts missed is also a review of the monitoring itself, even when the harm was small.
Encore’s rules follow the same spirit and come in two weights. Every SEV1 gets a full CAST review of the kind Section 6.2 described. Any incident that spends 20% or more of an error budget, loses data, or is reported by a customer before an alert fires gets the lighter contributing-factors review. And anyone at all may ask for a review of anything, which matters more than it seems, because it means that an engineer who sensed something wrong does not first have to win an argument about whether it was serious enough.
Preparing the account
The Vesper Hale review was facilitated by a member of the Reliability team who met two conditions: she had not been in the incident channel during the on-sale, and she had no authority over anyone she would interview. Etsy’s debriefing guide and Jeli’s Howie guide both insist on these conditions, and the reasons are not hard to see. A facilitator who was in the channel already carries her own version of events and will, without meaning to, steer the interviews toward it; a facilitator who manages any of the interviewees turns every answer into a performance for the boss. Within two days of the incident she held short one-to-one interviews with Marta, who had been incident commander, with the other responders, and with each team that appears in Figure 6.1. The interviews were deliberately one to one. Group meetings tend to converge on the account of whoever speaks most confidently, and the quiet engineer who noticed something odd at 10:03 may say so only in a room of two. Speed mattered too: memory of an incident fades and reshapes itself quickly, and within a week people recall the story the team has agreed on more readily than the confusion they actually felt.
The facilitator did not start from a blank page. Cue, Encore’s operations agent, had drafted most of the timeline within an hour of recovery. Drafts like this are a young feature of incident tools, and this one was accurate, but it told only half the story. A timeline built from logs records what the system did; a review also needs a second column for what people knew, what they believed and what they were trying to do at each moment. Only the interviews could fill that column. They showed, for example, that at 10:11 Marta already suspected the admission change and was weighing a rollback, and that when Cue posted the news of the node drain at that same minute, it changed which lever she reached for first. No log records a suspicion that was weighed and set aside, and yet that is exactly the kind of fact a review needs, because it explains why the response unfolded in the order it did.
The 2017 STELLA report, from the SNAFUcatchers workshop led by David Woods, gives a precise way to say why that second column matters. Its authors draw a line across the picture of any running system. Below the line sits the machinery itself: the code, the servers, the pipelines. Above the line sit the people, and they never touch the machinery directly; they act on it only through their mental models of it, by way of screens, dashboards and commands that are themselves representations. Each person’s model is partial, and different people’s models differ. Most days the differences do no harm. Incidents are where they come to light, because the system does something that at least one person’s model said it could not do. Encore’s mismatches surfaced quickly once the interviews began. The On-Sale team learned that the node-upgrade reconciler existed at all. Bot Screening learned that the web client had been retrying failed holds automatically since the previous spring, which meant that the bursts of identical requests their velocity rule watched for were now also what an ordinary frustrated fan looked like. And the velocity rule itself turned out to be older than the policy, adopted in the spring after an error-budget dispute between On-Sale and Bot Screening, that every block must offer a challenge. Nobody had reviewed the rule since that policy arrived, so it still blocked outright. None of these facts was secret; each was known to someone. The trouble was that each lived above the line in one team’s model and nowhere else.
Reviewing the machine’s part
One controller in Figure 6.2 was not a person, and the review had to decide how to treat it. At 10:11 Cue had suggested restarting the Seat Inventory pods, a suggestion that, as Chapter 5 showed, would have forced a leader election on every shard. The review examined that suggestion exactly as it examined every other controller’s action: what did Cue do, what did it believe, and why was that belief reasonable given what it could see? No industry convention yet says that an AI agent’s part in an incident should be reviewed this way. Encore chose the approach for two reasons. The first is that CAST already treats automated controllers this way; a reconciler and an agent are both controllers with process models, and the method does not care whether the model lives in a person’s head or in software. The second is that two easy first stories were on offer, and both were tempting: “the AI was wrong” and “the human caught it”. Each is true, and each ends the inquiry before it has learned anything.
Asked from the inside, the restart suggestion made sense. Cue had drawn on what it could read: two old postmortems in which restarts had cleared errors, both of them about stateless services, and nothing at all about leader-elected services under load. Given that evidence, a restart looked like the remedy that had worked before. Jonas, Seat Inventory’s on-call, declined it because he had run a shard failover by hand at a game day the quarter before and knew at once what a restart would do to the shard leaders. Chapter 3 described the irony that skill decays exactly where automation succeeds, because people stop practicing what the machine usually does for them. Here, for once, the irony did not apply: the game day had kept the skill alive in at least one person. The review’s finding concerned neither Cue nor Jonas; it concerned the structure around them. A suggestion had arrived in the channel without its blast radius, that is, without any statement of how much of the system it could disturb, and the safety of the morning had rested on one person’s memory of a drill. A system that is safe only when the right person happens to be on call has been lucky, which is not the same thing. So Encore changed the structure: runbook actions now carry a blast-radius tag, and Cue must show that tag with any suggestion it makes. The rule is Encore’s own devising, not an established practice, and it is offered here as one reasonable answer among several possible ones.
The meeting and the document
With the interviews done and both columns of the timeline filled, the review met as a group. The meeting ran for 90 minutes with about 25 people, more than the guides advise. A smaller group talks more freely, which is why the guides advise it, but this incident had touched so many teams that a smaller room was hard to justify, and the one-to-one interviews had already gathered what people might not have said in front of so many colleagues. The meeting’s work was less to discover facts than to let the teams see the same picture together and agree on what to change.
For the document that comes out of such a meeting, the right model comes from the theatre. After every performance a stage manager writes a show report: when the curtain went up and came down, which cues ran late, what broke, who was out, and what the crew did about it. It is plain and unembarrassed, because it is written every night, after the good shows as well as the bad, and so nobody reads it as an accusation. A review document should have that same tone. The analogy breaks in one important place. A show report is written by one person who watched the whole performance from the prompt desk, whereas an incident review has no single witness who saw everything; it must reconcile many partial accounts, some of them honestly disagreeing.
The skeleton below is Encore’s lighter review, the default for anything below SEV1. It follows the example postmortem in Google’s SRE book and Atlassian’s template, borrows the went well and surprises sections from the learning-from-incidents community, and adds a last line that only a CAST review fills in. Each line exists to make one of this chapter’s ideas routine. The two-column timeline turns the STELLA report’s line into a table. Contributing insists on the plural and on the second story of Section 6.2. Surprises is where the mismatched mental models get written down. And the strength field on each action looks ahead to the ranking of remedies in Section 6.5.
Summary two paragraphs a fan could follow
Impact who was affected, for how long, how we know
Trigger why this got a review (severity, budget spent, found by a customer)
Timeline what the system did | what people knew and were trying to do
Contributing the conditions that together made it possible, each as a second story
Went well what limited the harm, and why it worked
Surprises where someone's picture of the system turned out to be wrong
Actions owner, strength (stronger/intermediate/weaker), how we will know it worked
Language reread for "should have", "failed to", "simply", "careless"
CAST (SEV1) controllers, actions, beliefs, missing feedback
The language line needs a word of explanation, because it is easy to misuse. It is a prompt to reread the draft, not a list of banned words. A phrase such as “failed to” quietly brings back the counterfactual of Section 6.2, judging what people did against a world they could not see. But a writer could delete every phrase on the list and still tell the first story in politer words: “the reviewer approved the change without a cold-cache test” blames as surely as “the reviewer failed to require one”. So the check asks for something harder than search and replace. It asks the author to look again at each sentence that passes judgment and ask whether it explains why the act made sense at the time, or only says that it was wrong.
Recap. Triggers settled in advance decide which incidents are reviewed, and how heavily, so that the choice is not left to embarrassment. An uninvolved facilitator, prompt one-to-one interviews and a timeline with a second column for what people knew and believed produce an account that no meeting could, and the same questions apply to an AI agent’s suggestion as to any other controller’s action. A short skeleton makes the lighter review cheap enough to do every time.
Exercise 6.3. Rewrite a postmortem from your archive into the skeleton above, adding the missing column to its timeline: what people knew, believed and were trying to do. Count the counterfactual phrases in the original. What does the rewritten version show that the original did not?
6.4 Near Misses and Learning from Success
Everything we have done so far in this chapter began with harm: fans who could not buy tickets, an engineer who spent a weekend replaying a decision, a review that followed. But harm is a poor teacher in one respect, because it arrives rarely and late. For every morning like Vesper Hale’s there are many mornings on which the same conditions gathered and then, for one reason or another, dispersed. A near miss is an event in which the conditions for harm came together but harm did not follow, whether through luck or because someone adapted in time. Near misses are far more common than accidents, they carry much the same information about how the system can fail, and they cost nothing to learn from except the effort of noticing them.
Aviation understood this first and built an institution around it. In 1976 the United States set up the Aviation Safety Reporting System, run by NASA on behalf of the Federal Aviation Administration. Through it, pilots and air traffic controllers report close calls confidentially, and those who report promptly receive limited protection from penalty. The arrangement is worth pausing over, because its design is the whole idea. A pilot who has just misread a clearance and nearly crossed an active runway has every reason to say nothing: nobody was hurt, and speaking up invites scrutiny. The system is built to reverse that calculation, so that telling becomes cheaper than staying quiet, and the regulator, by placing the reports with NASA instead of keeping them itself, gives up some power to punish in exchange for knowledge it could not otherwise get. Hospitals later adopted the same idea. Few software organizations run a formal near-miss channel, so in our field the practice is borrowed and still young.
At Encore the CAST analysis of Section 6.2 turned up near misses that nobody had reported, for the simple reason that nothing had happened. These were the three earlier on-sales, met in Section 6.2, during which the node-upgrade reconciler had drained a node mid-sale. Each drain had passed without harm only because no shard leader happened to be on the node, and each was read, silently and by no one in particular, as evidence that the reconciler was safe to leave running. Here the near miss and the normalization of deviance turn out to be the same event seen from two sides: an escape that is reported becomes a warning, and an escape that goes unremarked becomes a precedent. Encore now asks the on-call engineers for each on-sale to note anything that surprised them, whether or not it caused harm, and the Reliability team reads these notes every week and answers each one. The answering matters as much as the reading. A channel into which notes disappear without reply teaches people to stop writing, and the whole value of the channel lies in people continuing to write.
The review then asked a stranger question. If the reconciler had been exempt from the freeze all year, why had the exemption seemed to work for so long? The answer had nothing to do with the reconciler’s design. For most of the previous year a platform engineer had paused the reconciler by hand before each big on-sale. The step appeared in no runbook, and no one had asked her to take it; drains during sales simply made her nervous. In the spring she moved to another team, and the practice left with her. Nobody removed a safeguard, because nobody knew there was one to remove. A large part of the safety that Encore believed lived in its process had in fact lived in one person’s unease.
This is Erik Hollnagel’s Safety-II, introduced in Chapter 2, made concrete. Traditional safety management, which Hollnagel calls Safety-I, studies the rare cases where things go wrong and tries to prevent them. Safety-II starts from the observation that things usually go right, and asks why. Its answer is that they go right because people continually adjust their work to the conditions in front of them, filling the gaps that procedures leave. Hollnagel names the two versions of the work that result. Work-as-imagined is the work as designers, managers and runbooks describe it; work-as-done is the work as people actually perform it, adjustments included. The two always differ, and the difference is usually where the resilience lives. The touring production of Section 6.2 shows the same thing from the wings. The prompt book records every cue as designed, yet a good crew carries a hundred small habits the book never mentions: the extra check on a flown piece in an old theater, the quiet word to a nervous understudy. When a crew member leaves the tour, the cue sheet is unchanged and the show is a little less safe. The analogy stops short in one respect. On a stage the crew can usually see each other’s habits, whereas in software an adaptation such as pausing a reconciler can be invisible even to the engineer’s own teammates, which is exactly why it has to be looked for deliberately.
Looking for it deliberately meant a second kind of review, one triggered by success instead of failure. Encore borrowed its shape from the US Army’s after-action review, which follows training exercises and operations whether they went well or badly and asks three plain questions: what was supposed to happen, what actually happened, and why the two differed. We should be honest about the evidence here. Safety-II gives this habit a strong theory, but the outcome evidence behind it is thin, and in software it remains a movement among practitioners more than an established discipline. Encore adopted it anyway, because its own experience with the reconciler was hard to argue with. After each major on-sale that goes well, the teams involved spend 30 minutes on three questions of their own: what they adjusted, what nearly happened, and what they did that no document describes. The first few of these reviews surfaced a dozen informal practices. Three of them became automation, so that the system no longer depends on someone remembering; one was retired as superstition, a ritual that protected nothing. I have come to believe that this sorting is the real product of studying success. Some adaptations deserve to be built into the machine, some deserve to be taught, and a few deserve to be let go, and you cannot tell which is which until you have found them.
The same lens applies to an incident, because even a bad morning contains things that went right. Vesper Hale’s postmortem had a “went well” section worth studying as carefully as the timeline. When the node drain triggered a leader failover on Seat Inventory shard 3, the shard rejected writes for about 40 s. Because leader terms are fenced, a deposed leader could not keep accepting writes, and because writes carry idempotency keys, a retried write could not be applied twice. Together they turned those 40 s into errors that fans could retry, where they could otherwise have become seats sold twice. That outcome was no accident of the day. It was the result of design decisions made long before and tested at every game day since. A postmortem that recorded only what failed would have left this out, and with it the reason the worst outcome, a broken promise that every seat is sold exactly once, did not occur.
Once near misses are being reported, there is a natural temptation to count them and push the count down. Resist it. In patient safety a rising count of near-miss reports is read as a sign that staff trust the channel, and a falling count as a possible sign that they have stopped using it. A team told to reduce reported near misses will most easily do so by reporting fewer. The same caution applies to the incident metrics that most dashboards display. The VOID, a public collection of thousands of software incident reports, found incident durations so skewed that mean time to resolve says little about whether an organization is improving: a few very long incidents dominate the average, so it swings with chance more than with skill. It also found that incident counts mostly reflect how willing people are to declare an incident, which is to say they measure the culture of reporting more than the reliability of the system. Numbers like these are not useless, but they answer a different question from the one they appear to answer, and a team that steers by them will be steering by its own willingness to speak.
Recap. Near misses are incidents the system escaped through luck or someone’s adaptation, and they go unreported unless reporting is cheap and safe; software is borrowing this practice from aviation and hospitals. Studying ordinary success reveals the adaptations that hold the system up, some of which live only in one person’s habits, and sorting them into automation, documentation and retirement is how an organization keeps them when that person moves on.
Exercise 6.4. Interview two colleagues about something they do before a risky change that no runbook asks them to do. Write each practice down. Which should become automation, which documentation, and which should be retired?
6.5 Turning Learning into Change
Why action items die
A review that ends in understanding has done half its work. The other half is change, and change is where most postmortems quietly fail. Nobody cancels an action item. It simply waits in a tracker, losing priority week after week to work that has a customer and a deadline, until everyone has forgotten why it mattered. When Encore’s Reliability team audited the previous year’s postmortems, they found that about 40% of the action items were still open after 90 days. More telling than the number was which items remained. The open ones were not a random sample. The small fixes, such as an alert threshold or a missing dashboard panel, had mostly closed, because one engineer could finish them in an afternoon. The items still open were the structural ones: those that crossed team boundaries, needed a design before anyone could start, or had no obvious owner. Those are exactly the items that address the conditions behind an incident rather than its symptoms. So an organization can close most of its action items and still learn very little, because the closed items are mostly the easy ones. Google engineers described the same pattern in 2017, and their remedy was a plain one: plan postmortem work like any other work, with owners, priorities and a place in the schedule, instead of leaving it to compete unaided with the roadmap.
Planning keeps an action item alive. A second question is whether the action, once done, will actually prevent anything, and here software has much to learn from older fields that have been asking it for decades. Occupational safety ranks its remedies in a hierarchy of controls: an ordering of ways to reduce a hazard, from the most reliable to the least. At the top is eliminating the hazard altogether. Next comes substituting something less dangerous, then engineering a physical barrier between people and the hazard, then procedures and training, with protective equipment last. The logic of the ordering is simple once seen. Each step down relies more on a person doing the right thing at the right moment, and people under pressure are exactly what an incident has already shown to be unreliable. A guard on a saw protects the operator whether or not they remember the safety course; the course protects them only on the days they remember it.
Healthcare carried this ranking from the factory floor into incident review itself. The National Patient Safety Foundation’s RCA² guidance of 2015 (the name stands for “root cause analysis and action”), building on the US Veterans Affairs’ action hierarchy, sorts the actions a review might propose into three tiers. Stronger actions are physical changes, forcing functions and simplification. Intermediate actions are checklists, redundancy and software enhancements. Weaker actions are training, new policy and warnings. The guidance asks every review to propose at least one stronger or intermediate action for each finding, and it accepts weaker actions only as stopgaps while the stronger work is done. The difference is easy to see in an Encore example. “Remind engineers to check cache state before changing admission rates” is a weaker action: it is a warning, and it works only if a busy engineer remembers it on the right Wednesday. “The load test cannot pass unless it includes a cold-cache run” is a stronger one: it is a forcing function, and it works whether or not anyone remembers. That example suggests a test I now apply to every proposed action. It should name the control it restores, meaning the specific check, barrier or feedback path whose absence the review found. An action that restores no named control is usually a wish. Figure 6.5 places Encore’s changes on the hierarchy.
Figure 6.5 — The hierarchy of controls, with the Vesper Hale changes placed on it. The higher a remedy sits, the less it depends on a tired person remembering it, which is also how RCA² ranks actions.
What Encore changed
With those two ideas in hand, that action items need a place in planned work and that some remedies are stronger than others, we can look at what Encore actually did. Figure 6.6 sets out the changes. Each row begins from a finding of the CAST analysis in Section 6.2, names the change made in response and its owner, and then says, before any work starts, what evidence will show that the change works. That last column is the discipline that keeps the table honest. An action whose success cannot be observed will be declared done when the ticket closes, which is not the same as working.
| Finding | Change | Owner | How we will know it works |
|---|---|---|---|
| Upgrade automation blind to the on-sale calendar | The calendar becomes a signal: deny sync windows on purchase-path projects and a hold the reconciler reads, from T−2h to the sale’s end; no shard-leader drains during a sale | Runtime team (platform) | A game day schedules an upgrade into a mock on-sale and confirms it waits |
| Admission change reviewed against a warm cache | Any admission-rate change needs a cold-cache load test; the readiness review asks about cache state | On-Sale team, Reliability | The next admission change arrives with a cold-cache result attached |
| Bot rule tuned before retry behavior changed | Every bot rule has an owner and review date; client retry changes trigger a rule review; the velocity rule drops to observe-only when purchase-path errors spike | Bot Screening | A replay of Vesper Hale traffic blocks no real fans |
| Freeze drift | Freeze restored; scope from the traced dependency graph (Chapter 4), which misses unexercised paths, plus declared dependencies; a register of exceptions with reason, approver and outcome, reviewed monthly | Reliability | Exceptions trend down, and each has a recorded outcome |
| Suggestion without blast radius | Runbook actions tagged; Cue shows the tag with every suggestion | Reliability, Cue maintainers | Drill transcripts show the tag on every suggested action |
Figure 6.6 — From finding to change. Each row restores a control missing from Figure 6.2, and each says in advance what evidence will show it working.
Read against the hierarchy, the table leans toward the top. Most rows change what the machinery will allow, and few merely ask people to be more careful. Even the readiness review’s new question about cache state, a procedural step on its own, sits beside a load-test requirement that does not depend on anyone asking it.
The first row is the strongest of these, and it also has the firmest precedent. On the morning of Vesper Hale, the platform’s upgrade automation had no way to know that an on-sale was under way; the calendar lived in people’s heads and in a readiness review the automation never saw. The fix is to make the calendar a signal that machines can read. Argo CD, the GitOps agent that keeps Encore’s clusters matching what Git declares, offers sync windows (the Resilience book
introduces them in its chapter on the runtime), which stop the agent from applying changes to chosen applications for a scheduled period, and managed Kubernetes services offer node-upgrade maintenance exclusions built on the same idea. Encore uses both kinds of hold. A small calendar controller, added beside the curtain-up workflow, now writes each on-sale in two places. It writes a deny window on the purchase-path projects in Argo CD, so that routine deploys wait. It also writes an entry in a small calendar service that the node-upgrade reconciler checks before every drain, so that nodes stay put. Both are generated from one source, the on-sale calendar, so the two holds cannot disagree about when a sale begins or ends. The window for a Friday on-sale looks like this:
# AppProject purchase-path; written by the calendar controller from the on-sale calendar
spec:
syncWindows:
- kind: deny
schedule: "0 8 20 11 *" # T−2h before a Friday 10:00 on-sale
duration: 6h # through the end of the sale
timeZone: Europe/Paris
applications: ["sale-gate-*", "bot-screening-*", "seat-inventory-*", "orders-*", "catalog-*"]
manualSync: true # break-glass stays possible, and is logged
Three details in that block repay a closer look. The schedule opens the window at 08:00 Paris time, two hours before the 10:00 on-sale, which is exactly the freeze rule written in a form a machine obeys. The application list includes catalog-*, the service whose deploy at 09:52 fell outside the old freeze because its seat-map cache had never been recognized as part of the purchase path. And manualSync: true keeps a deliberate escape hatch. A freeze that no one can override during an emergency would be its own hazard, so a person may still push a change by hand, but that act is logged and therefore visible afterward. The window removes the routine change while keeping the deliberate one, and it leaves a record either way.
That record leads to the change I consider the quietest and the most important: the register of exceptions. Such registers are old practice in change and risk management. I should be candid about their limits, though. None is proven to prevent incidents, and a register that nobody reads becomes a rubber stamp, a place where exceptions are written down so they can be granted with a clear conscience. Its value lies in what it lets people see. Recall what Section 6.2 drew from Vaughan, and what Figure 6.3 showed. She never taught that deviance can be forbidden, and an organization that tried would freeze itself solid, because some exceptions are right; a genuine emergency fix during an on-sale is one. What she taught is that deviance becomes normal when nobody can see it accumulate. At Encore, as we saw, 41 exceptions had been granted in chat in a year, each judged on its own merits, and no one had kept the running total. The register makes each exception a decision with a name, a reason, an approver and an outcome. Whoever weighs the 42nd exception can now see the previous 41, and can ask whether this one is truly different or simply the next step in a drift everyone has stopped noticing. The monthly review is what keeps the register from becoming that rubber stamp: someone has to look at the list and say what it shows.
Tracking, sharing and reading across incidents
The changes in Figure 6.6 will only matter if they get done, which brings us back to where this section began. Encore’s answer follows Google’s: postmortem actions are tracked alongside feature work in the same planning system, instead of in a separate list that nobody opens, and they are reviewed every week. When a service has spent its error budget, Encore’s error-budget policy, signed by the heads of engineering and product (the Resilience book sets it out in its chapter on service level objectives), moves these actions to the front of the queue, so reliability work gains priority exactly when the evidence says it is needed. There is also a limit on how long an item may simply wait. An item older than 90 days must be closed, rescheduled with a written reason, or accepted as a risk by a named person. That third option matters more than it seems. Sometimes the honest answer is that a fix is not worth its cost, and saying so explicitly, with someone’s name attached, is far healthier than letting the item sit open as a polite fiction. Encore’s 90-day rule is generous by some standards: Atlassian sets deadlines of four and eight weeks for its priority actions.
Tracking keeps each review’s actions alive, but some lessons cannot be found in any single review at all. Drift shows across incidents more than within one. Each postmortem is written by different people, about a different failure, and each reasonably focuses on its own story, so a condition that contributes a little to many incidents never looks large in any of them. For this reason the Reliability team reads each quarter’s postmortems together, as a set, and tags the contributing factors that recur. The first such reading found stale cache assumptions in three reviews that never cited each other. Each review had noted its cache problem as a local detail, and only reading them side by side showed a pattern that deserved a structural fix.
Learning also has to travel to the people and systems who were not in the room. The Vesper Hale review went to all of engineering and to the monthly all-hands. Its timeline will be replayed at a game day, much as Google’s SRE teams replay old incidents for new on-call engineers in an exercise they call the Wheel of Misfortune, so that people who never saw the incident can practice the decisions it demanded. The review was also indexed for Cue, and here the loop closes in a way worth pausing over. Cue’s unhelpful suggestion during the incident, to restart Seat Inventory pods, came, as Section 6.3 found, from reading old postmortems that described restarts clearing errors without saying that those services were stateless. The postmortems had recorded the action and left out the conditions that made it safe. Postmortems teach future responders, human and machine alike, and a responder who learns an action without its conditions will one day apply it where it does harm. So every postmortem must say not only what was done, but under what conditions it was safe to do.
Recap. Action items die when they compete unaided with feature work, and the structural ones, which matter most, die first. Planning them as real work keeps them alive. Ranking remedies by how little they depend on someone remembering, as the hierarchy of controls and RCA² both do, and stating in advance the evidence that each one works, keeps them honest. A register of exceptions and a regular reading across postmortems are how an organization watches its own drift, and a postmortem that records the conditions of each action teaches its future readers, people and agents alike, the right lesson.
Exercise 6.5. Audit the action items from your last ten postmortems. What share closed within 90 days, and were the ones still open mostly small or mostly structural? Classify each open item as stronger, intermediate or weaker, using the RCA² tiers. For the three items that matter most, write down the evidence that would show they worked, as specifically as the last column of Figure 6.6.
Kata: The Second Story
This kata asks you to do for another organization what this chapter did for Encore, and to do it starting from a postmortem that has already been written. That is the harder situation, and the more common one. Most of us do not arrive at an incident with a blank page. We arrive with a first story already told, signed off and filed, and our work is to find the second story underneath it without humiliating the people who wrote the first.
Your brief: “Scriptline.” Scriptline runs an electronic prescription network that links 2,000 clinics to 6,000 pharmacies in two countries. It routes 1.2 million prescriptions a day, and 60 engineers run it. Last month an automated certificate-renewal job failed during the clinics’ morning peak, and for 3 hours prescriptions could not be submitted at all; pharmacists fell back to phone calls and paper. The head of engineering’s postmortem concludes “human error: the on-call engineer restarted the wrong cluster while mitigating” and lists 11 action items, most of them training. The renewal job had failed silently twice before, and each time the same platform engineer had fixed it by hand without reporting it. Scriptline has no written review triggers, it still carries 70 open action items from last year, and two senior engineers have asked to leave the on-call rotation.
Read the brief twice before you begin, because nearly every detail in it points back to a section of this chapter. The verdict of “human error” is a first story in the sense of Section 6.2: it names a person who erred and stops there. The 11 training items sit at the weakest level of the action hierarchy from Section 6.5. The two silent failures, each repaired quietly by one engineer, are near misses of the kind Section 6.4 describes, and they reveal an adaptation that held the system up while living only in one person’s habits. The 70 stale action items say that Scriptline’s learning is not turning into change. And the two senior engineers asking to leave on-call are a sign of harm the postmortem never asked about, which is where the restorative questions of Section 6.1 begin. Notice the setting, too. As in the hospitals from which so much of this chapter’s practice was borrowed, the people ultimately affected are patients waiting for medicine, and that raises the stakes of getting the account right.
Deliverables:
- The second story — a one-page summary that explains why each key action made sense to the person who took it, given what they knew, the pressures they were under and the tools they had at the time. Cover at least the on-call engineer’s restart of the wrong cluster, the platform engineer’s repeated hand fixes, and the head of engineering’s conclusion. Your test is whether each action reads as reasonable from the inside, rather than merely forgivable from the outside.
- Review policy — written triggers, settled in advance as Section 6.3 recommends, for when an incident gets the lighter contributing-factors review and when it earns a full CAST review (Causal Analysis based on STAMP, from Section 6.2). Then say which of the two this outage gets, and why.
- CAST table — for at least five controllers, the control actions each one took, what each one believed about the system when it acted, and the feedback it was missing. Two of your controllers must be the certificate-renewal job and the head of engineering’s review process itself, because the process that produced the first story is one of the controllers whose beliefs need examining.
- Restorative response — the three restorative questions answered for every group that was hurt, including at least the on-call engineer, the pharmacists and the patients: who was hurt, what each needs, and whose obligation it is to meet that need. Add an outline of the public report Scriptline should publish.
- Near-miss channel — a design showing how the two earlier silent failures would have been reported had such a channel existed: who notices, where they write it down, who reads it and how quickly they answer. State plainly what the reporter is promised in return, since a near-miss channel works only if telling is cheaper than staying quiet.
- Action-item triage — the 70 open items and the 11 new ones, each classed as stronger, intermediate or weaker on the action hierarchy. For each, decide whether to keep it, merge it with another or close it, and for every item you keep, write down in advance the evidence that would show it worked.
Rubric:
| Criterion | The question to ask yourself |
|---|---|
| Second story | Could the on-call engineer read your summary and recognize the situation they were actually in? |
| Proportion | Is CAST kept for the incidents that earn its cost, and is the lighter review cheap enough to happen every time? |
| Control and feedback | Does the CAST table find the missing feedback between teams, rather than stopping at a faulty job? |
| Restorative accountability | Is every hurt party’s need met by someone with both the obligation and the power to meet it? |
| Durable change | Is each kept action tied to a named control, as strong as it can practically be, with its evidence stated in advance? |
| Drift | Have you found where Scriptline’s standards have been quietly rewritten by success, so that a renewal job failing silently came to seem normal? |
Where you now stand
You can now decide in advance which incidents deserve which kind of review, so that embarrassment does not make the choice for you. You can run a review in which people feel safe enough to tell the truth, write the second story that explains why their actions made sense at the time, and reach for CAST when an incident is large enough to repay its cost. And you can turn what a review finds into ranked changes, each with its evidence named in advance, that survive the pressure of the next quarter’s feature work. Above all, you have seen drift for what it is. It is rarely negligence. It is careful people following the rules as they understand them, confirmed again and again by good outcomes, until the margin that protected them has quietly gone. What remains is the organization that has to carry all of this, day after day: who owns which service and which seam, how people keep skills that automation lets fade, and whether the person who notices the next drift will feel able to say so. Chapter 7 turns to that organization, and then sends Encore back to the same artist and the same kind of morning to see whether it has learned.
References
- Diane Vaughan — The Challenger Launch Decision: Risky Technology, Culture, and Deviance at NASA, enlarged ed.. University of Chicago Press, 2016.
- Betsy Beyer, Chris Jones, Jennifer Petoff, Niall Richard Murphy (eds.) — Site Reliability Engineering, ch. 15, “Postmortem Culture: Learning from Failure”. O’Reilly, 2016 — free online.
- John Allspaw — Blameless PostMortems and a Just Culture. Code as Craft (Etsy), 2012 — free online.
- Sidney Dekker — Restorative Just Culture: From Disciplinary Action to Meaningful Accountability, 4th ed.. CRC Press, 2025.
- Nancy G. Leveson — CAST Handbook: How to Learn More from Incidents and Accidents. MIT, 2019 — free online.
- Tim Falzone, Ben Treynor Sloss — The Evolution of SRE at Google. ;login: online, 2024 — free online.
- National Patient Safety Foundation — RCA²: Improving Root Cause Analyses and Actions to Prevent Harm. NPSF, 2015 — free online.
- John Lunney, Sue Lueder, Betsy Beyer — Postmortem Action Items: Plan the Work and Work the Plan. ;login:, 2017 — free online.
- Etsy — Debriefing Facilitation Guide. Etsy, 2016 — free online.
- Jeli (now PagerDuty) — Howie: The Post-Incident Guide. Jeli, 2021 — free online.
- David D. Woods (ed.) — STELLA: Report from the SNAFUcatchers Workshop on Coping with Complexity. The Ohio State University, 2017 — free online.
- Erik Hollnagel — Safety-I and Safety-II: The Past and Future of Safety Management. Ashgate, 2014.
- Albert W. Wu — Medical Error: The Second Victim. BMJ, 2000.
- The VOID — The VOID Report. Verica, 2021 — free online.
Chapter 7: The Production Organization and the Capstone
No one flies the mission alone, and no one learns to fly it on the day.
For six chapters we have treated production as a system of parts: automation and telemetry, incident command and postmortems here, and in the Resilience book
beside them service level objectives, capacity and runtimes, pipelines and rings, caches and ledgers. Again and again we said that each of those parts was held in place by people, and again and again we moved on to the next part. This last chapter turns to the people directly. Its question is how to arrange an organization so that many specialists, and a growing number of machines, can run one system together when none of them holds the whole of it in their head. That is the oldest problem in our field wearing working clothes. We master a complex program by decomposing it into parts that each fit in one mind, and an organization that runs a complex system has to be decomposed the same way, with the same care about where the boundaries fall and what crosses them.
The best answer I know to that question was worked out in a room in Houston in the 1960s. NASA’s Mission Control put a spaceflight in the hands of flight controllers, each of whom owned one system or one discipline of the flight. Behind each controller stood a back room of specialists, joined to the console by voice loops, the shared audio channels on which each group talked and listened. The arrangement meant that the person at the console carried a summary of the system while the full detail lived one room away, ready to be asked for. Above all of them sat the flight director, who by long-standing rule could take whatever action the crew’s safety and the mission’s success required. Seen with a software engineer’s eyes, this was decomposition and hierarchy built out of people. Each console was a module with a narrow interface, each back room was an implementation hidden behind that interface, and one role existed whose whole job was the whole. The analogy with software is close, though it breaks in an instructive place: a module never gets tired, frightened or distracted, and Mission Control’s designers knew their components would be all three, which is why so much of their effort went into training rather than into the diagram.
That arrangement was tested at the worst possible moment. On 20 July 1969, during Apollo 11’s descent to the Moon, the lunar module’s guidance computer raised program alarms, first 1202 and then 1201. Both meant that the computer was overloaded and was shedding lower-priority work to keep the essential work running. The guidance officer, Steve Bales, had seconds to decide whether to abort the landing. In his back room, Jack Garman judged that the alarms were safe so long as they did not persist, and on that judgment Bales called “go”. They could make that call in seconds because they had already faced it once, when nothing was at stake. A training simulation on 5 July, about two weeks earlier, had thrown a 1201 alarm at the team, and the team had aborted when it did not need to. Being wrong in a simulation cost nothing, and the team used the error well. After that simulation the flight director, Gene Kranz, had every alarm code reviewed, and Garman wrote out what each one meant, a list he kept at his console for the flight. So when the real alarm came, the knowledge was already in the room, written down and within reach of the one person who needed it. The landing depended on three things working together: a structure that put the right specialist one voice loop away, a culture in which a back-room engineer’s judgment was asked for and trusted, and a rehearsal that had surfaced the gap while it was still cheap. Structure, culture and rehearsal are this chapter’s subject.
Encore, in this final chapter, stands where Mission Control stood after a hard flight. The Vesper Hale postmortem of Chapter 6 has produced its changes, and those changes are now in place. The promoter has announced four added stadium dates for the tour, going on sale on a Friday six weeks from now, which gives Encore both a reason to prove that the changes work and enough time to prepare properly. The chapter follows that preparation in the order an organization would think about it. The first four sections examine how Encore’s organization is shaped, how ownership of its services is divided, how its people are trained, and what culture lets information reach the people who need it. The fifth section works through the on-sale day itself, end to end, drawing on every earlier chapter of this book and on the engineering practices of the Resilience book.
7.1 SRE Team Models — Embedded, Central, and Platform
Where reliability expertise lives
Every organization that runs software in production has to decide, sooner or later and often without noticing that it has decided, where the people who know most about reliability will sit. An SRE team model is the decision about where reliability expertise sits relative to the services it protects, and therefore about who notices trouble, who decides what to do about it and who is woken when it happens. The choice looks like a matter of org charts, but it is really a choice about the flow of knowledge. Put the experts close to one service and they will understand it intimately; spread them across many and they will see patterns that no single team can see. Mission Control faced the same question and answered it with consoles and back rooms: the specialist knowledge lived next to the system it watched, while one role kept the whole in view.
Site reliability engineering (SRE) did not arrive with this question already answered. Chapter 1 told how SRE grew from the seven-engineer production team Ben Treynor took over at Google in 2003. Only later did it settle into the form most people now picture, in which an SRE team takes over a service’s pager only after a production readiness review has found the service ready for it. A production readiness review is a structured examination of a service before reliability engineers accept operational responsibility for it: its objectives, its alerts, its runbooks, its capacity and its failure modes. The review matters because it turns “will you look after this for us?” from a favor into a contract, with conditions the owning team must meet first. Once that gate existed, the question of where SRE should sit became a real design choice, because there was now something definite to hand over and someone definite to receive it.
The choices have since been catalogued. Ryan Franco and Brian Brown’s survey for Google Cloud (2019) names six team types. Figure 7.1 folds two of them, the infrastructure team and the tools team, into one platform-aligned row, since both serve every product team through shared machinery rather than through any one service, and it adds the newer hybrid.
| Model | Reliability engineers… | Strength | Typical failure |
|---|---|---|---|
| Central (“kitchen sink”) | run operations for many services from one team | consistency; one place where lessons accumulate | becomes the old operations team with a new title, and a queue |
| Embedded | sit inside a product team for a bounded time | context; influence on design before it hardens | isolation; drift into being extra feature developers |
| Consulting | advise many teams and own no services | reach at low cost per team | advice without consequences; little feel for the pager |
| Platform-aligned | own the reliability of shared infrastructure and tooling | leverage: one fix serves every team | distance from product-specific failure modes |
| Hybrid with champions (newer) | keep a small central team, embed temporarily, name a champion in each team | reach and context together | champions without protected time become names on a list |
Figure 7.1 — SRE team models and how each tends to fail. Most organizations end up hybrid; the useful question is which failure mode they have chosen to watch for.
The table is best read from its last column, because each model’s strength casts a matching shadow. The central team gathers lessons in one place, but that same concentration makes it a queue: every other team must wait its turn, and the reliability engineers slowly become the people who do the operations work nobody else wants. Embedded engineers gain context and can shape a design before it hardens, but cut off from their peers they lose the shared practice that made them reliability engineers, and the product team’s backlog quietly turns them into extra feature developers. Consultants reach many teams cheaply, yet because they own nothing, their advice carries no consequence for them, and over time they lose the feel for what a 3 a.m. page is actually like. A platform-aligned team gains leverage, since a fix to shared infrastructure serves every team at once, but it stands far from the failure modes that live in one product’s own logic. None of these failures is a mistake of execution. Each is the natural drift of a model left to itself, and so choosing a team model is, I think, mostly a matter of choosing which drift you are prepared to watch for.
The commonest of these drifts has a name. David Blank-Edelman’s Becoming SRE calls it title flipping: renaming the operations team and changing nothing else. Title flipping is the central model’s failure in its purest form, because the work, the queue and the relationship with product teams all stay exactly as they were, and only the job titles change. Google’s second edition of Site Reliability Engineering, published this year, describes hybrid models and reliability champions placed inside product teams. A reliability champion is an engineer inside a product team who carries reliability practice for that team, as part of their normal role rather than as a separate job, and who acts as the team’s link to the central reliability engineers. That idea is young, and we should hold it with the caution young ideas deserve. Its nearest relative is the security champion, and security champion programs report precisely the failure Figure 7.1 names: champions who have the title but neither the time nor the recognition to do the work. A champion whose reliability work must be squeezed in after the sprint’s real commitments is a champion in name only.
The models differ along two dimensions that pull against each other. Context is how deeply the reliability engineers understand a particular service: its design, its users and its quirks. Reach is how many teams and services their work touches. Embedded engineers have a great deal of context and little reach; consultants and platform teams have reach and little context. Figure 7.2 draws this trade of context against reach.
Figure 7.2 — SRE team models placed by context and reach. The pure models sit near one trade-off line; a hybrid with champions tries to get above it, which is where Encore now aims.
The trade-off line in the figure is the price of having a fixed number of reliability engineers: every hour spent deep inside one team is an hour not spent across the others. A hybrid with champions tries to rise above that line by drawing on people outside the reliability team. The champions bring the context, because they already live inside their teams, and the small central team brings the reach, because it sets the shared practice and tooling that every champion uses. Mission Control’s back rooms worked in a similar way, with the specialist close to the detail and the shared loops carrying what mattered to everyone, but the analogy breaks at one point that matters here: a back-room specialist did nothing else, while a champion is also a full member of a product team with a product team’s deadlines. Whether the hybrid succeeds therefore depends almost entirely on whether the champions are given real time, which is where Encore’s story ends.
Encore’s arrangement was not designed in one sitting; it grew in steps, each forced by the company outgrowing the step before. With nine engineers and a modular monolith there was no team model to speak of. Everyone carried the pager and knew every part, so context and reach were the same thing, held in nine heads. Extracting the on-sale path drew the first real boundary, the first place where one engineer could say of a component “that is not mine”. At 70 engineers in nine teams, the boundaries had multiplied and ownership had to be written down, because it could no longer be assumed. At 400 engineers in 40 teams, the platform group and its Reliability team appeared, because nobody could see the whole any more. This is the story of most growing organizations, told in the language of complexity: when a system outgrows any one mind we decompose it, and then we need a structure that keeps the pieces in touch.
The Reliability team today is 10 engineers led by a staff SRE, working from a one-page charter. Franco and Brown recommend a charter as the defense against the kitchen-sink failure, because a team that has not written down what it will not do will slowly be handed everything. Encore’s charter therefore opens with a refusal: its first line says that the team does not run other teams’ services. Within that boundary the team works in three ways, which match three rows of Figure 7.1. As a platform-aligned team, it holds the pager only for platform planes that have passed a readiness review. As a consulting team, it serves the 40 stream-aligned teams through the service level objective (SLO) tooling, the incident process, the readiness review and the game days, all of which it owns on everyone’s behalf. As an embedded team, it sends two of its engineers into a product team for each big launch; they help that team improve its reliability without taking over its service, and they leave when the launch ships. The departure date is the point. Embedding for one launch captures the embedded model’s strength, context at the moment design decisions are made, while a fixed end keeps away its typical failure, the slow drift into becoming permanent feature developers.
The last piece came after Vesper Hale. Encore named a reliability champion in every stream-aligned team and protected a tenth of each champion’s time in planning, which means the time appears in the team’s plan as committed work rather than something to be found in the margins. No published standard sets that figure. Encore chose a tenth because it is large enough to appear as a real line in a plan and small enough that nobody resents it. Whether it is the right amount is something Encore can learn only by watching, and that kind of continuing judgment is what the champion model asks of any organization that adopts it.
Recap. Team models trade context for reach: embedded engineers know one system deeply, while central, consulting and platform teams touch many systems and know each less well. Every model has a characteristic drift, so mature organizations combine models so that each covers another’s weakness, gate what reliability engineers carry with a readiness review, and write a charter that says what they will not do. Reliability champions are a young addition that promises context and reach together, and that fails, as security champions have, when their time is not protected.
Exercise 7.1. Place your organization in Figure 7.1, honestly rather than by its org chart: where do the people who know most about reliability actually spend their days, and who actually answers the pager? Name that row’s typical failure mode, and find one piece of evidence that it is, or is not, happening to you.
7.2 Ownership — You Build It, You Run It, and Its Limits
What “you run it” asks of a team
Section 7.1 settled where reliability expertise lives. This section asks the question underneath it: once a service is running, who answers for it? The most familiar answer is Vogels’s “you build it, you run it”, which the Architecture book
took as a principle of operable design. Its virtue is that it closes the loop between the people who change a system and the people who feel the consequences of those changes. When the same team writes the code and answers the page, a careless deploy costs its own authors a night’s sleep, and that cost teaches faster than any review board. It is the right default. But a principle repeated for 20 years starts to sound like a law of nature, and principles that sound like laws stop being examined, so it is worth stating plainly what this one asks of a team.
Operational ownership is a named team’s accountability for a service’s behavior in production, together with the authority to change it. The accountability covers the service’s objectives, its pager, its runbooks and, eventually, its retirement. The authority is the other half of the bargain, and the definition does not work without it. A team that is accountable but lacks authority, answering for a service it is not allowed to change, can only absorb blame for decisions made elsewhere. A team with authority but no accountability, free to change a service whose failures land on someone else, has rebuilt the old wall between development and operations under a new name. Ownership in the useful sense means that both halves sit with the same people.
The principle has three limits, and each of them is, at bottom, a limit on how much complexity one group of people can master. The first is cognitive load: how much of a system a team must hold in its heads in order to run it well. Matthew Skelton and Manuel Pais’s Team Topologies (2019; second edition 2025) argued that a team’s software should be sized to fit what the team can understand, because whatever lies beyond that size will be run badly however willing the team is. Their remedy is a platform offered as a service. If the platform takes on the clusters, the pipelines and the shared tooling, then what remains for a product team is mostly the essential complexity of its own domain, the seats, orders and queues of the business it serves, rather than the accidental complexity of the machinery underneath. The evidence for this is case studies rather than controlled studies, and we should hold it with that much confidence. Still, Encore has already shown us what happens when ownership outruns understanding. The Notification rewrite of Chapter 1 left a service of 40 files that nobody had read in full. The team owned the service on paper, its name was on the service and its pager would ring, but in practice it was a stranger to the code it answered for. Ownership in that state is a label, and a label debugs nothing at 3 a.m.
The second limit is arithmetic. Chapter 5 set out the caps that keep an on-call rotation humane: no more than a quarter of anyone’s time on call, about two incidents at most per shift, and compensation for the hours someone is tied to a pager. Those caps have a consequence for headcount. If a rotation puts one primary and one secondary on call each week, then each engineer serves two weeks in every eight, a quarter of the time, only if the rotation has at least eight people. That is how Google’s SRE book derives its minimum of eight people for a single-site rotation, and it means a team of five cannot meet the cap alone however hard it tries. Encore pairs its smallest teams with a sibling team for out-of-hours paging, so that the combined rotation reaches eight. The pairing holds only because of what stands behind it: the sibling team has the same runbooks, the same access and a written escalation path back to the owners. Without those three things, pairing would mean waking someone who can do nothing except wake someone else.
Incident command follows a different logic. Encore’s incident commander rotation draws trained engineers, most of them senior, from across all the teams rather than from any one owner. What qualifies them is the training. In PagerDuty’s published practice and in Google’s, a commander need be neither the most senior person present nor an expert on the failing system, because the commander’s job is to coordinate the people who do know the system, and to keep the whole in view while they work on the parts. It is the flight director’s role from the chapter’s opening, set apart from the consoles for the same reason Houston set it apart.
Google’s engagement model adds a feature that the slogan hides: ownership can move back. When SRE carries a service’s pager and the service falls below the standards both sides agreed, SRE can return excess operational work to the developers and, in the extreme, the pager itself, until the service meets those standards again. Joint work to fix the service is the usual remedy, and a full hand-back is the last resort. But the mere existence of the option changes what ownership is. It stops being a permanent assignment and becomes a contract with terms, and a contract can be renegotiated when one side stops keeping them.
The third limit is the seam between owners, and it is the subtlest of the three. During Vesper Hale, every component involved had an owner, and each owner had done something reasonable within its own territory. The hazard lived in none of those territories. It lived in the interaction between them: a reconciler that drained a node without knowing an on-sale was under way, a calendar that the reconciler never consulted, a cache that had just gone cold, and a bot rule that read frightened fans’ retries as an attack. No owner’s dashboard showed that interaction, because no owner’s territory contained it. A map of ownership can be complete and still leave the most dangerous ground unclaimed. Encore’s response was to give the seam an owner and a contract. The calendar became a published signal owned by the On-Sale team, and any automation that changes the purchase path must declare that it reads the signal, a requirement the platform’s scorecard enforces. The mechanism is Encore’s own, but its precedents are not. Managed Kubernetes offers maintenance exclusions, so that a provider’s upgrades stay clear of a customer’s peak periods, and Argo CD offers sync windows that deny automated syncs during a chosen time range. Both tools encode the same lesson Encore learned the hard way: an automation must know when not to act.
A touring production shows this kind of arrangement at its best. When a show comes to a city, the touring crew runs the show itself, while the venue’s house crew owns the building’s rigging, its power and its fire curtain. Between them sits the technical rider, the document the tour sends ahead, which among much else says who owns which cable and who may touch which hoist. Two crews with different employers share one stage safely because the boundary between them was written down before load-in. The analogy fits Encore’s teams sharing a platform closely, but it fails on one point that deserves our attention: time. No venue rebuilds its rigging during a performance. The house crew’s work happens before the doors open or after the audience has gone, and everyone understands that without needing to write it down. Encore’s platform drained a node in the middle of an on-sale, because nothing told it that the performance had begun. A contract between owners must therefore cover time as well as territory: it must say when each party may act, and not only what each party owns. I spent years on the platform side of exactly this boundary, inside a large bank, and I have come to believe that most operational trouble between teams begins with a clause about time that nobody wrote.
Contracts that live only in people’s memories decay, so Encore keeps its ownership where it can be read and checked. Its service registry is a software catalog of the kind Spotify’s Backstage made common. Each entry names an owning team, a rotation, objectives and runbooks, and the scorecard flags any entry where one of these is missing. The first sweep for gaps found 11 components with no owner at all. Most were scheduled jobs, the small useful things someone writes once and nobody thinks of as a service, and one was a dashboard that three teams relied on and none had ever claimed. Each was a seam in miniature: something many depended on and nobody answered for. A registry shows who owns what, but it cannot show whether the owners are coping. For that, the Reliability team reviews each rotation’s pages per shift and its out-of-hours pages every month, because a rotation shows strain long before anyone resigns. Tired engineers usually keep answering the pager, out of pride or duty, and the numbers are often the first place the strain becomes visible to anyone outside the team.
Recap. “You build it, you run it” is the right default, and an incomplete one. Ownership needs authority as well as accountability. It must fit within what a team can understand, and within the arithmetic and load caps that keep a rotation humane. And the seams between owned components, where the dangerous interactions live, need owners of their own. A contract between teams should say when each may act, as well as what each owns.
Exercise 7.2. List the services your team owns and the people on its rotation. Compute the weeks on call per person per year, and the pages per shift over the last quarter. Then name one interaction between your service and another team’s that nobody owns, and propose who should own it.
7.3 Skills, Training, and Operational Maturity
Rehearsing the day before it comes
The previous two sections were about where people sit and what they own. A structure, however well drawn, only helps if the people in it know what to do when the moment comes, and so we turn now to how that knowledge is made. Mission Control did not discover its competence; it built it on purpose, and it built most of it through simulation. A team led by the simulation supervisor, known in Houston as the SimSup, designed full-scale rehearsals of a flight and quietly injected failures into them, so that the controllers met trouble at their consoles long before they met it in space. The 1201 alarm that drew an unnecessary abort on 5 July 1969 was one of those injected failures. Just as important as the run itself was what came after it: the debrief, in which the team went over what had happened and why they had decided as they did. That simulation produced Garman’s written list of alarm codes, and the list was on his console for the landing. Nearly everything we have learned about operational skill since then builds on the same loop, and it is worth naming its four steps plainly: realistic practice, an honest debrief, a written artifact that captures what was learned, and then practice again.
We need that loop more than Houston did, and the reason is the irony Chapter 3 described. When we automate a process, the automation takes over the routine work, which is exactly the work in which people used to acquire their skill, and hands back to people only the rare and difficult cases, which are exactly the cases in which skill is most needed. The better the automation, the fewer chances anyone gets to practice, and the harder the problem they face on the day it gives up. Encore shows this precisely. Its shard failover is automatic, and it works; in normal operation, when a node goes away, a new leader is elected without anyone lifting a finger. That reliability is the very reason that, before Vesper Hale, few of Encore’s engineers had ever performed a shard failover by hand. Nobody had neglected anything. The system had simply never given them the occasion.
The good news is that the practices which keep skill alive are cheap, and each of them is a version of the SimSup’s rehearsal scaled down for an ordinary team. The first is the Wheel of Misfortune, described in Google’s first SRE book (2016): a role-play in which a game master narrates a past incident, step by step, and an engineer works through it aloud, saying what they would check, what they would conclude and what they would do, while the game master reveals what the system shows in response. Google runs it weekly. Nothing in production is touched, which is what makes it cheap; the incident is real, because it already happened, which is what makes it realistic. The second is the game day, a planned exercise in which failures are injected into a running system on purpose, which the Resilience book treats in its chapter on designing for failure as an experiment on the system. The same exercise becomes training when we measure the people as well as the software: how long it took to declare an incident, whether a commander was named, whether the status page told the truth, and whether the follow-up actions were actually finished afterward. The third is shadowing, in which a new engineer sits beside an experienced one through a shift on call, watching how the veteran reads alerts and makes decisions. Reverse shadowing swaps the seats, so that the newcomer leads while the veteran watches and steps in only if needed. The value of the pairing is in the order: first the newcomer sees the work done, then does it with a safety net, and only then does it alone. PagerDuty’s training path for incident commanders follows this order, asking for a week of shadowing and a week of reverse shadowing, then several simulated incidents in command.
Medicine adds a lesson of its own, about checklists and who owns them. A surgical checklist built around pause points, defined moments at which the whole team stops and confirms the few things that kill a patient when forgotten, was the core of the World Health Organization’s surgical safety checklist. In 2009 Alex Haynes, Atul Gawande and colleagues reported that across eight hospitals, deaths after surgery fell from 1.5% to 0.8% once the checklist was introduced, nearly halving them. That seemed to settle the matter, until in 2014 David Urbach and colleagues studied Ontario, where the province had made the checklist mandatory in its hospitals, and found no significant change in deaths or complications. The same list, in two settings, gave two different results. The usual reading of the difference is ownership. The teams in the original study had chosen their checklist and believed in it, so the pauses were real pauses in which people actually looked. A mandate, by contrast, produced compliance from people who had not chosen the list, and a checklist that is ticked without being believed becomes a form to fill in rather than a moment of attention. Encore’s on-sale readiness review, held on the Wednesday before each big on-sale, is designed as this kind of pause point. It is short, so that people give it attention rather than endure it. It is owned by the team that runs it, so it is their list and nobody else’s. And every item on it can be traced to an incident or a near miss, so that no one has to wonder why a line is there.
With those practices in view, we can look at what Encore actually does. Its training program, rebuilt after Vesper Hale, has five parts, and each one answers a specific weakness that the incident exposed. First, each team runs a monthly Wheel of Misfortune drawn from its own postmortems. That is lighter than Google’s weekly cadence, but it is a cadence the teams can sustain, and a lighter practice that continues does more good than an ambitious one that quietly stops. Second, every quarter an engineer who has never done it before performs a manual shard failover in a staging cell, which turns the skill that automation had let fade into one that someone on each rotation has recently exercised. Third, new members of an on-call rotation do two weeks of shadowing and one week of reverse shadowing before they carry the pager alone. Fourth, candidates for the incident commander rotation must command two simulated on-sales before they command a real one. Fifth, in half of all drills Cue, Encore’s operations agent, is switched off, so that the team keeps using its own judgment rather than learning to wait for the agent’s suggestion. That last rule needs a caveat. It has no published precedent in software, and the figure of 50% is Encore’s own choice rather than a number anyone has validated. Its closest analogue comes from aviation: in 2013 the Federal Aviation Administration advised airlines to give their pilots regular opportunities to fly by hand, for the same reason, so that the skill the autopilot spares them is still there on the day the autopilot hands the aircraft back.
All of this raises a natural question: how do we know whether it is working? The tempting answer is a maturity model, a ladder of numbered levels against which an organization grades itself, climbing one rung at a time as it adds practices. Accelerate argued against that approach and in favor of capabilities that can be measured and improved, for a reason worth dwelling on: a level implies a finish line, a point at which the organization has arrived and may stop, and production has no such point, because the system, the traffic and the people keep changing underneath it. A more useful frame is the hierarchy Mikey Dickerson drew for Google’s first SRE book. It stacks the work of reliability in layers, with monitoring at the base, then incident response, then postmortems, then testing and release, then capacity planning, then development, and finally product at the top. The hierarchy has never been tested empirically, so we should not treat it as a scorecard. It reads best as an order of construction, in the way a builder lays a foundation before raising walls: each layer depends on the ones beneath it. A team that cannot yet see what its system is doing has no business building elaborate release automation, because when a release goes wrong it will have no way to notice, and no way to learn from the incident it cannot see.
Recap. Operational skill is produced by rehearsal under realistic pressure followed by an honest debrief, and automation makes that rehearsal more necessary, not less, because it removes the everyday practice in which skill used to grow. Wheels of Misfortune, game days that measure the people as well as the system, shadowing and reverse shadowing, and checklists whose users own them keep skills alive at little cost. Maturity frameworks are most useful as an order of construction, telling a team what to build first, rather than as a ladder with a top.
Exercise 7.3. Name the three operations your team would most need to perform by hand in a real incident. For each, find the last date on which someone on today’s rotation actually performed it. Then schedule a drill for the one with the oldest date.
7.4 Culture — Generative Organizations and Psychological Safety
How information flows
The first three sections of this chapter were about arrangements we can draw and schedule: where reliability expertise sits, who owns which service, how often people rehearse. Structure and training decide what an organization can do under pressure. Culture decides something subtler and, in my experience, more decisive: what the organization will actually hear when someone has bad news. A team can have a flawless rotation and a superb drill program and still fail, because the one engineer who noticed the problem kept quiet, or spoke and was ignored. To reason about that, we need a way to describe culture that is more precise than “good” or “toxic”. The sociologist Ron Westrum gave us one. He classified organizations by how they handle information, and his typology, in the form most often cited today, was published in 2004.
| Pathological | Bureaucratic | Generative | |
|---|---|---|---|
| Orientation | power | rules | performance |
| Cooperation | low | modest | high |
| Messengers | shot | neglected | trained |
| Responsibilities | shirked | narrow | risks shared |
| Bridging between teams | discouraged | tolerated | encouraged |
| Failure leads to | scapegoating | justice | inquiry |
| Novelty | crushed | becomes a problem | implemented |
Figure 7.3 — Westrum’s typology of organizational cultures. Each column describes what happens to an inconvenient fact.
The table is worth reading one column at a time, as the story of a single unwelcome fact. In a pathological organization, oriented toward power, the person who brings bad news is punished for it, so people learn to stop bringing it. In a bureaucratic organization, oriented toward rules, the messenger is not punished but simply ignored: the fact is filed, routed to the team whose remit it falls under, and left there. In a generative organization, oriented toward the mission’s performance, the messenger is trained and valued, because the organization understands that its next failure is probably already known to someone in it.
Westrum’s central insight follows from that reading. Safety depends on information reaching the people who can act on it, and reaching them in time; culture is the thing that speeds that information along or blocks it. This is why culture belongs in a book about running production systems rather than in a book about management. A monitoring pipeline that drops alerts is a reliability defect, and so is an organization that drops warnings. The difference is only that we know how to test the pipeline.
For a long time, claims like Westrum’s rested on case studies and argument. The book Accelerate (2018) put them to a larger test: it turned his typology into survey questions, put them to thousands of practitioners, and found that, in that data, a generative culture predicts both software delivery performance and wider organizational performance. It found something more hopeful as well. Teams that adopted continuous delivery and lean management practices reported more generative cultures, which suggests that culture is not only a cause of good practice but can also be one of its results. We should hold that finding at its true strength. The data is self-reported and the analysis correlational, so it shows a strong association and a plausible direction rather than proof. Even so, it remains our best large-scale evidence that a team can change its culture, and that it does so the way most durable change happens, one practice at a time. DORA’s 2025 report on AI-assisted development found the same pattern with new tools: AI amplifies what a team already has, its strengths and its dysfunctions alike. A generative team with an AI assistant becomes more generative; a team whose messengers are neglected now has a faster way to neglect them.
Westrum describes the organization as a whole. The second strand of research looks closer, at the small team, and asks what makes an individual willing to be the messenger in the first place. In 1999 Amy Edmondson defined psychological safety as a shared belief that the team is safe for interpersonal risk taking. The definition is precise in a way worth noticing. It describes a belief, so it lives in people’s heads rather than in a policy; it is shared, so it is a property of the team rather than of one confident member; and its subject is interpersonal risk, the risk of looking ignorant, incompetent or disruptive in front of colleagues. Edmondson showed that teams holding this belief did more of the behaviors through which teams learn, such as asking for help, admitting errors and raising concerns, and that they performed better as a result. Later meta-analyses confirmed the link. Google’s internal study, Project Aristotle, reached a similar conclusion about its own teams, though it was never peer-reviewed and should be weighed accordingly.
It helps to say plainly what psychological safety is not. It is not comfort, and it is not a promise that nobody will disagree with you. Its point is candor: the confidence that saying “I think the freeze is drifting” in a planning meeting will be met with interest and a follow-up question, not with a sigh or a remark about negativity. Readers of Chapter 6 will recognize that sentence. Encore’s on-sale freeze had in fact been loosening for a year before Vesper Hale, one reasonable exception at a time, and the question a culture must answer is whether the person who noticed that drift would have felt able to say so, and whether anyone would have acted.
Westrum’s typology and Edmondson’s definition can sound abstract until we watch them working under pressure. Apollo 13 is the finest demonstration I know of generative information flow in a crisis, and it comes from the same Mission Control that opened this chapter. After an oxygen tank exploded in April 1970, the crew sheltered in the lunar module. That spacecraft’s carbon dioxide scrubbers could not last the trip home, and the command module’s spare scrubber canisters, which would have extended them, were square where the lunar module’s sockets were round. Engineers on the ground built an adapter from bags, cardboard, suit hoses and tape, tested it, and read the instructions up to the crew step by step. Look at the path the idea traveled. It came from engineers well outside the control room, it reached the flight director, it was trusted, and it became a procedure while there was still time to use it. Every link in that chain is a column of Figure 7.3 choosing “generative”: the messengers were heard, responsibility for the risk was shared across teams, and a novel idea was implemented rather than treated as a problem.
The analogy has a limit, and the limit is instructive. A crisis concentrates attention and suspends ordinary politics; almost any organization becomes more generative for a few days when the stakes are obvious and everyone is watching. An organization can be generative in a crisis and pathological in an ordinary week, and it is the ordinary week in which most warnings are raised and lost. Karl Weick and Kathleen Sutcliffe, studying organizations that operate hazardous systems with few accidents, named one of their defining habits deference to expertise: letting a decision travel to whoever knows most about the problem at hand, whatever their rank. The discipline lies in practicing that deference on ordinary days too, in a Wednesday readiness review as well as on the night of an explosion, so that the habit is already in place when the stakes arrive.
At Encore, the practices that came out of the Vesper Hale review try to build exactly that ordinary-week habit, and to measure it. Westrum’s six survey items now sit in the quarterly engineering survey. The results are reported per team and, as DORA advises, are never used to rank teams, because a culture score that can cost a team its standing will quickly stop measuring anything except the team’s ability to answer surveys. Readiness reviews now open with a single question: “What are we worried about?” It is a cousin of Gary Klein’s premortem, in which a team imagines that the plan has already failed and explains why, a framing that makes voicing a doubt feel like contributing rather than complaining. The first answer to the question is thanked before it is examined, a small ritual whose purpose is to tell everyone in the room what happens to the messenger here.
Psychological safety also has a new object, and Vesper Hale showed it. During the incident, Cue confidently suggested restarting Seat Inventory pods, and Jonas declined the suggestion in front of a busy incident channel. He was right to: as Chapter 5 described, a restart would have forced leader elections on every shard. Automation bias, the tendency to accept a machine’s recommendation over one’s own judgment, has been documented in cockpits and clinics for decades. What is new is a machine that argues in the engineers’ own language, fluently, with the vocabulary and cadence of a capable colleague, and whose suggestions arrive in the same channel and in the same form as a senior engineer’s. Declining it can feel less like overriding a tool and more like contradicting a confident peer in public. So I have come to believe that the safety to contradict a fluent machine now matters as much as the safety to contradict a senior colleague. Encore had the first only because Jonas happened to have run a failover by hand; how to build it deliberately, for everyone on a rotation, is something we are still learning.
Recap. Westrum’s typology describes a culture by what happens to inconvenient information: it is punished, neglected, or welcomed and acted upon. DORA’s survey data associates generative culture with performance and suggests that adopting better practices can move a culture, while its AI findings say that new tools amplify whatever culture they land in. Psychological safety, the shared belief that interpersonal risk is safe, is the condition under which a team learns; it rests on candor, it must hold in ordinary weeks as well as in crises, and it must now include the safety to disagree with the machine.
Exercise 7.4. Recall the last time someone in your organization raised an unwelcome risk. Which column of Figure 7.3 describes what happened next: was the messenger punished, neglected, or heard and acted upon? Write down one practice that would move your organization one column to the right, and name who would have to adopt it.
7.5 Capstone — Operating One System End to End
The added dates
Four added stadium dates for Vesper Hale go on sale at 10:00 CET on a Friday, and Encore expects about 1.4 million fans in the waiting room across the four events. This is the same artist, the same kind of crowd and much the same system that failed in Chapter 5, and so the question this section asks is a practical one: what does it look like when everything the book has described is applied, in order, to one known peak?
The shape of the preparation was not Encore’s invention. Large engineering organizations that face predictable peaks have converged on a similar rhythm. Google built a dedicated function, launch coordination engineering, to shepherd big launches; AWS runs operational readiness reviews before a service or a major change goes live; Shopify spends months on game days and scale tests before Black Friday. The details differ, but the pattern underneath is the same, and it has four parts. First, set objectives for the event itself, because a day this important deserves its own definition of success. Second, test load past the forecast, so that the forecast is never the edge of what you know. Third, rehearse the likeliest failures, so that the first time people meet them is not the real day. Fourth, hold a review a few days out, close enough to see the final state and far enough to still change it. Figure 7.4 lays Encore’s version of that rhythm across the six weeks.
| When | What Encore does | From |
|---|---|---|
| T−6 weeks | On-sale-window SLOs: 99% of admitted fans finish without an error page in the first 60 minutes; burn-rate thresholds re-derived for a one-hour window | Resilience book, Chapter 1 |
| T−5 weeks | Cold-cache load tests at 1,200 and 1,500 fans/s per event; admission held at 1,200; home regions split two events each; pre-warm verifies cache hit ratio | Resilience book, Chapters 2 and 6 |
| T−4 weeks | Secondary payment service provider (PSP) confirmed able to carry the full checkout rate; pending-payment holds and their per-fan cap exercised in staging | Resilience book, Chapters 1 and 5 |
| T−4 to T−1 weeks | Bot velocity rule retuned, then staged: count-only on recorded traffic, enforced for one small on-sale, then everywhere | Resilience book, Chapters 4 and 7 |
| T−3 weeks | Two Reliability engineers embed with the On-Sale team; commander, comms lead, operations leads and scribe named | Sections 7.1 and 5.2 |
| T−2 weeks | Calendar controller writes sync windows and node-drain holds for purchase-path workloads from T−2h | Resilience book, Chapter 3; Chapter 6 |
| Tuesday before | Game day in a staging cell: cold cache, shard failover, primary PSP failure and a retry burst, with a Reliability engineer as SimSup | Resilience book, Chapter 5; Section 7.3 |
| Wednesday | Readiness review, a pause point; the exception register opened | Resilience book, Chapter 2; Chapter 6 |
| Friday 08:00 | Freeze begins; two exceptions logged, each with an approver and a reason | Resilience book, Chapter 4; Chapter 6 |
| Friday 10:00 | Gate opens; Cue posts the calendar, deploy history and exception register to the incident channel | Sections 3.5 and 5.4 |
| T+1 week | After-action review of an on-sale that went well | Section 6.4 |
Figure 7.4 — The added dates, end to end, with the chapter each step comes from in this book or in the Resilience book. Read down the right-hand column and the two books appear in order of use rather than order of writing.
A few rows deserve a word of explanation, because each one answers something specific. The on-sale-window SLO exists because Encore’s ordinary objectives are measured over 28 days, and a bad hour barely moves a 28-day number; an objective for the first 60 minutes makes the hour that matters most visible on its own terms, and the burn-rate alerts had to be re-derived so that they fire at a pace that makes sense inside one hour. The load tests run with a cold cache, at both the admission rate Encore intends to use and the higher rate to which it was raised during Vesper Hale, because the Chapter 6 review found that the earlier test had been run warm and so had proved headroom that did not exist. Admission stays at 1,200 fans/s per event. Because each event’s writes are pinned to a home region, assigning two events to each region spreads the write load instead of stacking all four on one. And the pre-warm step now checks the cache hit ratio rather than assuming the warm-up worked.
Two other rows close hazards that belonged to Vesper Hale specifically. The first is the bot rule. A bot rule is configuration, not code, and it is tempting to treat configuration as lighter and safer to change. History says otherwise: in July 2024 a single content update to CrowdStrike’s security sensor, pushed to every online Windows sensor at once, crashed millions of Windows computers around the world (the Resilience book tells the story in its chapter on shipping change), and it showed that configuration which reaches everyone at once is as dangerous as code. So the retuned rule travels in stages. It first runs count-only against recorded traffic, where it can be measured but blocks nobody; then it is enforced for one small on-sale; only then does it go everywhere. Behind those stages sits a second safeguard: Bot Screening’s loader validates every rule set it receives, and if a new set fails validation it keeps running the last good one.
The second hazard is what we might call the reconciler’s gap. During Vesper Hale, the platform’s node-upgrade reconciler, which counted as low-risk automation and was exempt from the freeze, drained a node in the middle of the sale and set off a shard failover. The automation was doing its job correctly; it simply did not know that this was the worst hour of the year to do it. Encore’s answer was to make the on-sale calendar something machines can read. A calendar controller reads the calendar and writes a deny window into the Argo CD project that holds the purchase-path applications, so that GitOps stops syncing changes to them for the duration. The node-upgrade reconciler reads the same calendar and holds drains on the same node pools. Two independent pieces of automation now share one source of truth about when to keep their hands off. For the added dates, the window looks like this:
# AppProject "purchase-path", written by the calendar controller
spec:
syncWindows:
- kind: deny # no automated syncs in this window
schedule: "0 8 27 11 *" # Friday 08:00, two hours before the Gate opens
duration: 6h
timeZone: Europe/Paris
applications: ["sale-gate-*", "bot-screening-*", "seat-inventory-*", "orders-*", "catalog-*"]
manualSync: true # a registered exception can still be synced by hand
The most interesting line is the last one. A freeze that nobody can ever break is brittle, because sooner or later a real emergency needs a change, and people will find a way around a rule that offers no legitimate door. The manualSync line is that door, and it writes the exception register into configuration. The machines stop on their own when the window opens. A person who has a written reason, and whose exception has been logged with an approver, can still act by hand. Automation is restrained by default, and human judgment keeps a narrow, recorded path through.
The game day, held on the Tuesday before, did what a good rehearsal should: it found the weakest step. During Vesper Hale, at 10:31, engineers had re-admitted fans that Bot Screening wrongly blocked, restoring each fan’s place in the queue. That fix had been applied by hand, under pressure, for the first time. In rehearsal it took 14 minutes, which is a long time to leave legitimate fans locked out of a sale that sells out within the hour. So Encore turned it into a scripted workflow, in the self-service style Chapter 3 described, and added it to Cue’s action catalog, the short, platform-enforced list of operations that Cue is allowed to propose. Only two entries in that catalog may run without a person’s approval, both granted on track record: raising Catalog’s autoscaling floor through Git, within a cap, and holding a node in the upgrade reconciler. Re-admitting fans is not one of them. Cue may find the fans and propose the action, but it may never perform this one alone. I should be candid that agent-proposed, human-approved action is young practice. The published accounts, which come from the cloud providers’ own operations agents, share two features: credentials issued per action rather than held standing, and a named person who approves. Encore’s entry follows that shape:
action: readmit-blocked-fans
proposed_by: cue # with the query that found the fans
approved_by: [incident-commander, operations-lead] # one named person, in the channel
scope: one event; fans blocked by Bot Screening in the last 60 min
preview: fan count and sample sessions shown before approval
limit: 50000 fans per run
credentials: issued for this run only, expire after 10 min
audit: proposer, approver and result posted to the incident log
Each line of the entry narrows something. The scope confines the action to one event and to recent blocks, so a mistake cannot spread across the platform. The preview lets the approver see how many fans and which sessions are involved before saying yes, so approval is a judgment and not a rubber stamp. The limit caps the damage a wrong query could do in one run. The credentials exist only for this run and expire quickly, so there is nothing standing around to be misused later. And the audit line means that afterward anyone can see who proposed, who approved and what happened.
The day itself was dull, which is exactly what six weeks of preparation had been for. At 10:09, card authentication at one Dutch issuing bank slowed down. Of the window’s burn-rate alerts, the slower one fired, the one meant to catch a steady leak of the error budget rather than a sudden collapse. The incident commander asked Cue for a breakdown and confirmed that the slowdown sat with the bank itself, behind both PSPs alike. That finding mattered, because it ruled out the obvious-looking remedies. The primary PSP’s circuit breaker had rightly stayed closed: shifting new payments to the secondary PSP would have sent them to the same slow bank, and so would have achieved nothing. Nor did any seats go into pending payment, the hold Encore uses when a payment route is degraded, because neither PSP was degraded; only one bank behind them was. The commander chose not to act beyond posting a status-page note for Dutch fans, and logged that decision, which is worth noticing: deciding not to intervene, and writing down why, is a decision like any other. About 22% of the window’s error budget was spent. Since the objective allowed 1% of admitted fans to see an error page, that means roughly one admitted fan in 450 did. All four dates sold out within the hour (Figure 7.5).
Figure 7.5 — The Friday of the added dates, with the morning before the Gate opened compressed. The red ink is the error budget, spent mostly after 10:09; the 09:40 line marks the hand-run check that the later review would find.
Learning from a good day
Encore held a review anyway. That may seem odd, since nothing went wrong, but Chapter 6 had set a rule of proportion for reviews, and a good day has a place in it. A major incident earns a full CAST analysis of its control structure; a lesser incident earns a lighter review of contributing factors; and a good day earns the lightest form of all. That form is borrowed from the US Army’s after-action review, which follows every exercise whatever the outcome, and asks what was supposed to happen, what did, and why.
This one found an adaptation nobody had designed. At 09:40, the pre-warm check had timed out on its first run. An engineer reran it by hand, read the cache hit ratio from a dashboard, saw that it was fine, and moved on without telling anyone. Nothing about the act was wrong; it was sensible, quick and correct. But it meant the success of the morning depended, in one small place, on a person quietly filling a gap that the procedure did not know it had. The pattern is the one Chapter 6 found behind Vesper Hale: a platform engineer who paused the reconciler by hand before big on-sales, in no runbook, until she moved teams and the protection left with her. This is Safety-II in miniature, the view from Chapter 2 that safety lives partly in the everyday adaptations by which people make work succeed. The useful response is to make the adaptation visible and then build it in, not to scold anyone, and so the check now retries on its own and has an explicit failure path that tells people when it has not passed. Reviewing success in this way is still emerging practice in software, and in my experience it survives only when its time is protected; a review of a day that went well is the first meeting to be cancelled when the calendar fills.
Looking back across the six weeks, what strikes me is how little of it was heroic, and how much of it had been written down in advance by people who would not be in the room on the day: the SLO, the load test, the staged rule, the sync window, the catalog entry. The arrangement is Mission Control’s, rebuilt in software and teams. There are consoles with narrow interfaces, in the form of teams that own one service each. There are back rooms behind them, in the form of the specialists and the embedded Reliability engineers who carry the detail. There is one role whose job is the whole, the incident commander. And there was a simulation before the day, the game day that found the slowest fix while it was still cheap to find.
Recap. The capstone places the whole book in time against a known peak: SLOs for the event, capacity tested cold and past the forecast, a second payment route, configuration rolled out in stages, automation that reads the calendar, rehearsal, named roles, an agent limited to a scoped catalog, and a review sized to the day. A dull day is what the preparation was for, and a short review after a success finds the quiet adaptations that made it so, so that they can be built in before the people who perform them move on.
Exercise 7.5. Choose the next predictable peak your system faces. Build your own version of Figure 7.4, with a “From” column pointing to the practices you already have. Each blank cell in that column is a gap, and together the blank cells are your preparation plan.
Kata: The Capstone Kata — Results Day
Your brief: “Quorum.” Quorum runs the online admissions platform for universities in four EU countries. It serves 1.8 million applicants a year, and 300 institutions use it as tenants. Two days of the year matter more than all the others. On deadline day, submissions rise 40× in the final six hours, as applicants who have been polishing their essays for weeks all press “submit” at once. On results day, 600,000 applicants sign in within the first hour after 08:00 to learn which offers they have received, and each of them is waiting for news that may decide the next several years of a life.
The organization behind those two days is thin in the places that matter. Quorum has 95 engineers in 12 teams, but a central operations team of six holds every pager, and two of its members left last year. The applications database is a single primary with one replica in the same region, so a regional failure would take both copies at once, and nobody has ever restored a full backup to learn whether it works or how long it takes. An AI assistant answers applicants’ questions about entry requirements; last spring it told some applicants a deadline one day later than the real one. And last year’s results day had 52 minutes of errors, because a scheduled certificate rotation restarted the authentication service at 08:05, five minutes into the busiest hour of the year. Nothing in that rotation was broken. It simply did not know what day it was.
The board’s request is short: make results day boring.
This Kata asks you to do for Quorum what Section 7.5 did for Encore’s added dates: to run one system end to end through a predictable peak, drawing on every chapter at once. Each deliverable below corresponds to a part of this book or of the Resilience book, and together they form the preparation plan for both of Quorum’s critical days.
Deliverables:
- Operating model — choose a team model from Figure 7.1 and write a one-page charter for it. Map an owner to every service and to every seam between services, since incidents so often begin in the seams nobody owns. Work out the on-call arithmetic and set a load cap for each rotation, and decide what becomes of the central operations team of six: whether it becomes a platform team, an embedded group, the core of a hybrid, or something else, and why.
- Objectives and signals — define service level objectives (SLOs) measured over the results-day and deadline-day windows themselves, rather than over a month in which those few hours disappear into the average. Scale the burn-rate alerts to those short windows. Then specify the traces and log fields that would let an on-call engineer answer, within minutes, the question “which institution’s applicants are failing, and since when?”
- Capacity and runtime plan — do the arithmetic for the first hour of results day, starting from 600,000 sign-ins. Plan tests for a cold start and a cold cache, state the scaling limits you will hit first, and calculate the cost per applicant so that the board can see what “boring” will cost.
- Change and resilience plan — set a change freeze around both days, with an exception register that records every change allowed through it. Make every piece of automation calendar-aware, certificate rotation included. Roll out configuration changes in stages, just as you would code. Finally, plan a game day with a named SimSup, the person who designs and injects the failures, as in Section 7.3.
- Data and security plan — state the recovery time objective (how long a restore may take) and the recovery point objective (how much recent data may be lost), then run a restore drill and time it against both. Give secret and certificate rotation a named owner, and show where each country’s applicant data resides.
- Incident and learning plan — staff the incident roles for both days by name. Write status-page templates in advance, so that nobody composes them under pressure. Review last year’s certificate incident with an effort sized to its impact, and commit to an after-action review of this year’s results day however it goes.
- AI operations plan — build evals on a golden set of questions about deadlines and entry requirements, so that the assistant’s answers are checked against known-correct ones before applicants see them. Define what the assistant is permitted to do and say, and how it degrades when it is unsure: for instance, by pointing the applicant to the authoritative source instead of guessing a date.
- Ninety-day training and culture plan — set up shadowing and reverse shadowing for every new member of a rotation, run a Wheel of Misfortune built from last year’s certificate incident, and take a Westrum baseline survey so that you can tell, a year from now, whether the culture has moved.
Rubric:
| Criterion | The question to ask yourself |
|---|---|
| Whole-system view | Does every deliverable trace back to what applicants experience on the two days that matter? |
| Sustainable ownership | Does the on-call arithmetic still work if two more people leave? |
| Calendar awareness | Does every automated actor, certificate rotation included, know when results day is? |
| Recoverability | Has a restore actually been timed, or only assumed to work? |
| Honest AI | Can the assistant be wrong about a deadline without an applicant acting on the error? |
| Rehearsal | Will results day be the second time the team meets its likeliest failure, not the first? |
| Learning | Is there a plan to learn from the day even if it is boring? |
Where you now stand
You began this book with an operator at a console, and you end it in a room full of them, some of them machines, all working one mission. Along the way you have learned to read failure as safety science reads it, to decide how much a machine should do alone and keep the skills it lets fade, and to see a system through its telemetry. You have learned to command an incident while it is happening and to learn from it afterwards without punishing anyone or excusing anyone, and to shape the organization that does all of this. The Resilience book supplies the other half of the craft, the objectives, capacity, delivery and recovery engineered into the system itself; this one has been about the people and machines that run it. The individual techniques will keep changing, as they always have, and many of the tools named in these pages will be replaced. What lasts is a habit of mind: treating reliability as daily work that people and machines produce together, and investing in the people as seriously as in the machines. I have come to believe that this habit, more than any tool, is what makes a results day boring.
References
- Matthew Skelton, Manuel Pais — Team Topologies, 2nd ed.. IT Revolution, 2025.
- Betsy Beyer, Chris Jones, Christof Leng, David Huska, Jennifer Petoff, Niall Richard Murphy (eds.) — Site Reliability Engineering, 2nd ed.. O’Reilly, 2026.
- Betsy Beyer, Chris Jones, Jennifer Petoff, Niall Richard Murphy (eds.) — Site Reliability Engineering. O’Reilly/Google, 2016 — free online.
- Betsy Beyer, Niall Richard Murphy, David K. Rensin, Kent Kawahara, Stephen Thorne (eds.) — The Site Reliability Workbook. O’Reilly/Google, 2018 — free online.
- Ryan Franco, Brian Brown — How SRE teams are organized, and how to get started. Google Cloud, 2019 — free online.
- David N. Blank-Edelman — Becoming SRE. O’Reilly, 2024.
- Ron Westrum — A Typology of Organisational Cultures. Quality and Safety in Health Care, 2004.
- Nicole Forsgren, Jez Humble, Gene Kim — Accelerate. IT Revolution, 2018.
- DORA — 2025 State of AI-assisted Software Development. Google Cloud, 2025 — free online.
- Amy Edmondson — Psychological Safety and Learning Behavior in Work Teams. Administrative Science Quarterly, 1999.
- Alex B. Haynes et al. — A Surgical Safety Checklist to Reduce Morbidity and Mortality in a Global Population. New England Journal of Medicine, 2009.
- David R. Urbach et al. — Introduction of Surgical Safety Checklists in Ontario, Canada. New England Journal of Medicine, 2014.
- Karl E. Weick, Kathleen M. Sutcliffe — Managing the Unexpected, 3rd ed.. Wiley, 2015.
- Kyle Petroski, Matthew Frail — How we prepare Shopify for BFCM. Shopify Engineering, 2025 — free online.
- Argo Project — Sync Windows. Argo CD documentation — free online.
Appendix: Encore at a Glance
Throughout this book, Encore has been introduced the way a touring crew learns a new venue: one part at a time, as each part becomes relevant. Seat Inventory appears when a chapter needs a core domain to protect, the Sale Gate when a chapter needs a door to control, and the payment providers when a chapter needs something outside our walls to fail. That arrangement serves a reader who goes from front to back, because every part arrives with its reason for existing. It serves much less well the reader who opens the book at Chapter 5, or who returns months later to look up one practice and finds that the example assumes things they never read or have since forgotten.
This appendix is for that reader. It gathers the whole company onto one page, so that a single glance can answer the question “what was that again?” Each row names one part of Encore, says in a sentence or two what it is, and in nearly every case points in two directions. The first pointer leads to the Architecture book
, where the part was designed and where the reasoning behind its shape is laid out. The second leads to the chapter that shows what it takes to keep that part running: a bare chapter number points into this book, and “Resilience book” points into its companion, Building Resilient Systems in the AI & Cloud Era, where the engineering of the system lives. The books divide the labor deliberately. The Architecture book explains why Encore looks the way it does; the Resilience book
explains how it was engineered for production; and this one explains what it costs, day after day and on-sale after on-sale, to keep it working that way.
A glossary like this is a small exercise in the abstraction the rest of the book keeps recommending. Every row compresses a chapter’s worth of reasoning into a line, and the compression is useful only because the full explanation sits one link away. Read the table as a map of the territory, then follow a pointer when you need to walk the ground itself.
| Term | What it is | Where to read more |
|---|---|---|
| Encore | A company selling concert tickets across the EU, priced in euros, which also sells its platform to venues as software as a service (SaaS). Three facts shape everything: traffic rises 500× within minutes when a tour goes on sale, every seat must be sold exactly once, and bots arrive ahead of the fans | Architecture book, 1.1; Chapter 1 |
| Organization | 400 engineers in 40 stream-aligned teams, each of which builds and runs its own services, plus a platform group that makes up 5–10% of engineering. Each team carries its own on-call, and a single incident commander rotation draws on trained engineers, most of them senior | Architecture book, 5.5; Chapters 5 and 7 |
| Customers | Four kinds: fans, event organizers, partners calling the public API at api.encore.com, and SaaS tenants |
Architecture book, 7.3; Resilience book, Chapter 7 |
| On-sale | The scheduled moment when a tour’s tickets go on sale, usually 10:00 CET on a Friday | Architecture book, 1.1; Chapter 5; Resilience book, Chapter 2 |
| Sale Gate | The informal name for On-Sale Admission: the virtual waiting room and admission controller that stands in front of the purchase path. It runs on a serverless edge, is pre-warmed before a scheduled on-sale, and scales to 400 instances | Architecture book, 2.4; Chapter 5; Resilience book, Chapter 5 |
| Admission rate | How many fans per second, per event, the Gate lets through to buy: about 1,200. The figure is sized so that Seat Inventory stays below 80% of its load capacity | Architecture book, 4.5; Chapter 5; Resilience book, Chapter 2 |
| Bot Screening | The service that decides whether each session belongs to a fan or a bot, using signals rented from the edge provider together with velocity rules. Its risk data lives in a cloud account of its own | Architecture book, 10.4; Chapter 5; Resilience book, Chapter 7 |
| Seat Inventory | The core domain and the sole authority on whether a seat is free. It is event-sourced and uses command–query responsibility segregation (CQRS), so the model that records sales is separate from the models that answer questions about them | Architecture book, 3.1, 6.2; Resilience book, Chapter 2 |
| Hold | A seat reserved for one fan for 5 minutes, created by POST /holds. If checkout does not finish in that time, the hold is released automatically and the seat returns to sale |
Architecture book, 3.2; Resilience book, Chapter 6 |
| Shard and home region | A large event’s seats are split by event_id into four shards. Each shard has a fenced leader that handles about 10,000 reads and 1,500 ordered writes a second. All of an event’s writes are pinned to one region, its home region |
Architecture book, 4.2; Chapter 3; Resilience book, Chapter 6 |
| Orders & Payments saga | The orchestrated purchase, in which each step is paired with a compensation that undoes it, all within a 3 s checkout budget. If the primary payment service provider (PSP) fails, new payments go to the secondary. If both are degraded, verified fans’ seats are held pending payment for up to 20 minutes. Whatever happens, no ticket is issued without an authorized payment | Architecture book, 5.2; Resilience book, Chapters 1 and 5 |
| PSP | An external payment service provider. Encore integrates two, routes each new payment to a healthy one, and keeps both behind an anti-corruption layer. The PSP call takes about 800 ms of the checkout budget. Encore holds no card numbers | Architecture book, 4.4; Chapter 2; Resilience book, Chapter 5 |
| The first big outage | The PSP slowed from 200 ms to 8 s; a retry storm followed, and autoscaling made it worse by adding more callers. It was fixed with retry budgets and a single layer responsible for retries | Architecture book, 4.4; Chapter 2 |
| Finance ledger | The relational record of money, fed by SaleCompleted events, reconciled daily and closed nightly |
Architecture book, 9.1; Resilience book, Chapter 6 |
| Seat-map geometry | The physical shape of a hall, served by Catalog from a cache. Geometry changes rarely and can be cached; availability changes constantly and is never cached | Architecture book, 1.3; Chapter 6; Resilience book, Chapter 2 |
| Notifications | The service that delivers tickets by email and to phone wallets. It is the service a coding agent rebuilt overnight in the scene that opens Chapter 1 | Architecture book, 15.4; Chapter 1; Resilience book, Chapter 4 |
ticket-sales.v2 |
The event stream that carries SeatSold, TicketIssued, SaleCompleted and related events to every consumer |
Architecture book, 6.5; Chapter 4 |
| Tenants and cells | Venues that use Encore as a service, in three tiers: one Enterprise tenant in its own silo (venue-chain-a); Professional tenants in Kubernetes cells, with a database per tenant; and about 500 self-service venues pooled in serverless cells of about 50 each |
Architecture book, 14.1; Resilience book, Chapters 3 and 5 |
| Regions | EU-1 and EU-2. Reads are served from both; writes go to each event’s home region. Each seat-ledger shard is a five-member consensus group, with two replicas in each of the two regions and a witness in EU-3, and a write commits once a majority holds it. The result is a recovery point objective (RPO) of zero and a recovery time objective (RTO) of minutes | Architecture book, 11.5; Resilience book, Chapter 6 |
| Golden path | The platform’s supported route from a service template to production, which provisions the infrastructure, registers the service and gives it a scorecard | Architecture book, 15.2; Resilience book, Chapter 3 |
| Curtain-up | The self-service workflow that pre-warms the purchase path on the morning of an on-sale | Architecture book, 11.1; Chapter 3 |
| Readiness review and freeze | The Wednesday review held before a big on-sale, followed by a freeze on non-emergency changes to the purchase path that runs from two hours before the on-sale until it ends | Architecture book, 11.3; Chapter 6; Resilience book, Chapters 2 and 4 |
| Reliability team | Ten engineers in the platform group, led by a staff site reliability engineer (SRE). They own the SLO tooling, the incident process, readiness reviews and game days | Architecture book, 15.1; Chapter 7 |
| Published numbers | The seat map loads within 800 ms for 99.9% of requests over 28 days. Tenant service level objectives (SLOs) are 99.9% for self-service and 99.95% for Professional. Blended cost per ticket drifted from €0.11 to €0.19 and is now about €0.16, of which about €0.12 is variable | Architecture book, 11.3; Resilience book, Chapters 1 and 2 |
| Cue | The operations agent, working through the internal Model Context Protocol (MCP) server. It is read-only by default. It may invoke only the actions in a catalog that the platform enforces, and each invocation gets a five-minute token scoped to that one action. All but two actions need a person’s approval; the two exceptions are raising Catalog’s autoscaler floor and holding a node in the upgrade reconciler. During the on-sale freeze, its write scopes on the purchase path are withdrawn | Architecture book, 12.3; Chapters 3 and 5 |
| AI gateway | The router for the assistant’s and the agent’s model calls. It sends about 80% of them to a model that costs a tenth as much | Architecture book, 12.1; Resilience book, Chapter 8 |
| Support assistant and refund agent | Two AI components: a retrieval-augmented assistant that answers fans, and an agent that approves refunds under €80 when showtime is more than 48 h away and sends every other case to a person | Architecture book, 12.1; Resilience book, Chapter 8 |
| The Vesper Hale on-sale | The on-sale for a fictional artist’s 12-date European tour: about 1.1 million fans in the Gate, 47 minutes of degraded checkout, and no seat sold twice | Chapters 5 and 6; the preparations in Resilience book, Chapter 9 |
Figure A.1 — Encore at a glance. The Architecture book explains why each part was designed as it was; the named chapter, in this book or in the Resilience book, shows what it takes to run.









