Every team has a wiki full of runbooks. Somewhere between the onboarding docs and the architecture diagrams sits a set of step-by-step procedures for incidents: restart this service, check that dashboard, run this query, escalate to that team. Most of them are wrong.
They were probably accurate when written. Then the system changed and the documentation didn't. A runbook from six months ago points at a service that has been renamed, a dashboard that has been deprecated, and an escalation path to a team that no longer owns the component. At that point it is worse than unhelpful. It is dangerous.
How Runbooks Decay
A runbook is a snapshot of operational knowledge, true at the moment someone wrote it. Infrastructure keeps moving. Services get refactored, dependencies change, endpoints move, configuration formats evolve, and ownership shifts between teams.
Any one of those starts the runbook drifting from reality. Sometimes the drift is small, like a renamed flag or a different port number. Sometimes the whole remediation workflow assumes a component that no longer exists.
You find out during an incident. Someone is paged at 2 AM, opens the runbook, follows the steps and hits a dead end. Now they have two problems: the incident, and the confusion the stale document caused. Stale instructions in an incident are worse than none, because they eat time and attention and give false confidence in return.
Documentation has no built-in feedback loop. Wrong code fails loudly: tests break, builds fail, users complain. A wrong runbook fails silently. It sits in the wiki looking authoritative and nobody knows it has rotted.
Why We Keep Writing Them
Teams keep producing runbooks because writing one feels like progress. Post-mortems generate action items, and "update the runbook" or "create a runbook for this failure mode" is the path of least resistance. It is concrete, you can finish it, and it is easy to verify. The action item gets closed.
That treats the symptom. The symptom is that someone didn't know what to do during an incident. The cause is a remediation process that is manual, fragile and dependent on human memory. A runbook is a band-aid on a process that shouldn't need a human at all.
The incentives push the same way. Writing a runbook takes an hour, and automating the remediation might take a week. Under pressure to close post-mortem items and get back to feature work, the runbook wins every time. Teams build up operational debt this way, one well-meant wiki page after another.
Runbooks as Toil
Google's SRE handbook defines toil as work that is manual, repetitive, automatable, tactical, and devoid of enduring value. A runbook is toil written down as procedure. It takes actions that could be scripted and turns them into instructions for other people to carry out by hand.
Look at what a runbook contains: a sequence of deterministic steps. Check if the service is running. If not, restart it. Check if the restart worked. If not, check the logs for a specific error. If that error is present, clear the cache and restart again. That is an algorithm, and it belongs in code.
Every runbook admits that something hasn't been automated yet. That isn't always a failure, and there are good reasons to defer automation. But it is debt and should be called that. The interest comes due every time an engineer follows manual steps where an automated remediation could have run, and the organization pays it in time, cognitive load and the risk of human error.
Automated Remediation
The better model is to put the runbook's logic into the system. Where the document says "if the service crashes, restart it," configure the system to restart crashed services. Where it says "if CPU exceeds 80%, scale up the cluster," set auto-scaling policies that respond to thresholds. In place of a maintained rollback procedure, build deployment pipelines that roll back when health checks fail.
Humans stay in the loop for what is new. Automation handles the cases you've seen before and human judgment handles the ones you haven't. The split looks something like this:
- Fully automated: service restarts, scaling events, certificate renewals, log rotation, health check failures with known remediation.
- Automated with notification: failovers, rollbacks, capacity rebalancing. The system acts, then tells a human what it did.
- Human-initiated, machine-executed: complex remediations where a human decides the action and a script executes it consistently.
- Fully manual: novel failures, multi-system cascades, situations requiring business judgment.
The goal is to push as many incident types as you can toward the top of that list.
Decision Trees Over Procedures
Full automation isn't always possible or practical. Some failures need diagnostic reasoning, and some remediations carry enough risk to warrant human approval. For those, use an interactive decision tree in place of a static runbook.
A decision tree walks a responder through diagnosis based on what they see in front of them, which may be quite different from what someone assumed six months ago. It asks questions. Is the service responding to health checks? What's the error rate? Is this affecting a single availability zone or multiple? Each answer narrows the path to the right remediation.
A decision tree has four properties a static runbook lacks:
- It adapts to current conditions, where a runbook assumes them.
- You can validate its logic the way you validate code, with unit tests and integration tests.
- Stored as code, it gets version control, code review, and CI/CD.
- You can track which paths are taken most often and optimize for them.
A wiki page last edited 18 months ago has none of these properties. A decision tree implemented in code, tested in CI, and triggered by your incident management system has all of them.
The Graduation Model
Not everything can be automated on day one. There are stages between a manual runbook and a self-healing system, and it helps to say plainly which stage each incident type is at.
Level 0: Manual Runbook
A wiki page with steps. Everything starts here. That is acceptable for rare, complex, or newly discovered failure modes, and unacceptable as the permanent state of anything that happens regularly.
Level 1: Automated Check
The system detects the problem and alerts the right person with relevant context. The human still performs the remediation but no longer has to discover or diagnose the issue.
Level 2: Assisted Remediation
The system detects the problem and presents a decision tree or remediation script, and the human approves or executes it. The responder checks a response someone already worked out, which takes little thought.
Level 3: Automated Remediation
The system detects the problem and fixes it. A human is notified afterward with what happened, what was done, and confirmation that the remediation worked.
Level 4: Self-Healing
The system is designed so the failure condition can't persist. Auto-scaling prevents capacity exhaustion. Retry logic with circuit breakers handles transient failures. Redundancy eliminates single points of failure. The "incident" never materializes.
Track which level each of your common incident types is at, and set explicit goals to graduate them. If your most frequent page is a Level 0 runbook that someone follows by hand every time, solve that before you build the next feature.
Starting Point
If your team is sitting on a pile of runbooks and this sounds fine in theory and overwhelming in practice, I'd go in this order:
- Audit your runbooks. Go through the wiki and compare when each runbook was last updated with when the system it describes last changed. You'll likely find a significant percentage are stale. Count them. The number will be sobering, and it helps make the case for investment.
- Identify the top 5 most-used runbooks. Look at your incident history for the ones referenced most often. They are the most recurring toil, so automating them is worth the most.
- Automate the simplest one end-to-end. Pick the runbook with the most straightforward, deterministic steps and convert it into an automated remediation. It is a quick win that builds confidence and sets patterns for the harder ones.
- Build decision trees for the complex ones. Take the runbooks that need diagnostic reasoning and convert them into interactive decision trees. Store them as code, test them in CI, and integrate them with your incident management tooling.
- Measure MTTR before and after. Track mean time to resolution for each incident type before and after automation. The data justifies further investment and shows which automations work and which need refinement.
None of this has to be a six-month project. Start with one runbook, automate it, measure the result, and do the next. Each one adds up: less toil, faster resolution, fewer 2 AM pages, and more engineering time for other work.
The best runbook is the one you never have to open, because the system handles the problem before a human needs to get involved.
Runbooks aren't evil. They are a natural first place to capture operational knowledge. Treat each one as temporary, though. Every runbook in your wiki should carry an implicit expiration date and an explicit plan for graduating to automation.
The teams that operate best have worked steadily to remove the need for procedures. Their runbooks have become code, their tribal knowledge has become automated checks, and their manual remediation has become self-healing systems. They still write documentation. The wiki is quiet because nothing is left to do by hand.