AI • Science • Technology • Future

Coding AI

AI-Driven Development Is Outpacing Runbooks — Here’s How SREs Are Responding

The runbook is out of date and the code shipped an hour ago
Featured image: The runbook is out of date and the code shipped an hour ago. Via original publisher.

It’s 10 PM. PagerDuty is going off. A customer-facing service is failing. Automated fixes have failed. Now it’s your turn.

You open the incident ticket. You check the logs. You find a runbook.

But the runbook hasn’t been updated in months. A link is broken. Scripts have been moved. You’re unsure if the alerting service even owns the failure.

For services aiming for 99.99% uptime—just 52 minutes and 34 seconds of annual downtime—each incident risks breaching SLAs. That means service credits, lost revenue, and customer frustration.

The Real Problem

As a former SRE on a global SaaS platform, the source author observed that each service had its own team and its own runbooks—documentation for investigating and fixing failures.

When automated fixes failed, the on-call SRE became the first line of defense. But the job was often hampered by outdated information.

After just a few on-call shifts, the former SRE reported that they would typically find broken commands, missing steps, or links that no longer worked, often having to reverse-engineer procedures or track down engineers who had moved on.

These gaps weren’t rare. They were systemic. SREs didn’t write the code. Yet they executed commands on production systems—sometimes without fully understanding what they were doing.

Getting it wrong could make the incident worse or trigger new failures. In debugging, failures don’t always start where symptoms appear. A problem in one service can ripple through downstream systems, creating false leads.

The former SRE described incidents in which eight engineers from multiple teams attempted to identify the root cause, only to discover that the issue originated at the hardware layer.

Maybe the software had a gap. Maybe the issue was complex. Or maybe we could have reached a conclusion faster if we’d had better visibility into how systems connected.

We didn’t lack engineering talent. We lacked accessible, reliable information—where and when we needed it.

Image from the original article
original publisher image. Via original publisher. · Source

AI Is Accelerating the Knowledge Gap

A former SRE on a global SaaS platform reported that a project once taking four to six months could potentially be completed in one or two days using today’s AI development tools.

That’s progress. But it’s also a warning. Before AI, documentation struggled to keep up with slow development cycles. Now, with faster deployments and AI-driven changes, the gap grows.

Code changes happen faster. So does the need for SREs to understand unfamiliar code. And the risk that documentation lags behind increases.

Traditional methods—like manual searches or outdated runbooks—can’t keep pace. SREs need to understand code quickly. They can’t afford hours of searching or guessing which team owns a problem.

They need answers rooted in the actual code—not in outdated documents or assumptions.

Consider this: in a microservices architecture, where hundreds of services communicate through APIs, a failure in one component can cascade through the entire system. Without real-time visibility into dependencies and code logic, SREs are forced to rely on static documentation that may not reflect the current state of the system. This creates a dangerous feedback loop—each incident deepens the trust gap between engineers and operations teams, as the code evolves faster than the knowledge shared in runbooks.

Moreover, AI-assisted development tools enable rapid iteration, where new features or bug fixes are introduced with minimal human oversight. These changes can introduce subtle bugs or side effects that aren’t immediately visible in testing environments. As a result, the codebase becomes more dynamic and less predictable, making it harder for SREs to maintain situational awareness during incidents.

For example, a simple configuration change in a backend service might be implemented in a few minutes using AI-generated code, but that same change could alter how data flows through the system. Without immediate access to the actual code and its context, an SRE might misdiagnose the issue, leading to a cascade of incorrect remediation attempts.

How Sourcegraph Helps

Back to the 10 PM incident. Instead of guessing which runbook applies, imagine using three Sourcegraph tools: Code Search, Deep Search, and MCP.

With incident logs, you ask: What could cause this error? Which services are involved? What remediation exists?

Deep Search uses Code Search to scan repositories, trace dependencies, and return explanations backed by actual code. You can then ask follow-up questions about scripts, recent changes, or team ownership.

What if this investigation starts before the alert is even acknowledged?

With Model Context Protocol (MCP), AI agents can access Code Search and Deep Search programmatically. This enables automated incident workflows that take an incoming alert, investigate code and runbooks, and prepare an evidence-backed summary for the on-call engineer.

The SRE still validates findings and makes decisions. But Sourcegraph gives them confidence grounded in real code.

How Sourcegraph Changes the Incident Workflow

  1. Find the runbook: Deep Search leverages Code Search to locate relevant errors, scripts, and runbooks across all repositories, even those not directly tied to the failing service.
  2. Identify the cause: Deep Search traces dependencies across services, analyzes code patterns, and provides a detailed summary of potential root causes and best next steps—based on actual code, not assumptions.
  3. Execute remediation: Code Search and Deep Search help explain and inspect scripts so the SRE can operate with confidence, reducing the risk of executing incorrect or harmful commands.
  4. Escalate: Share findings with the right team using git history, commit messages, and documentation links—ensuring that the right people are notified with context, not just a vague alert.
  5. Automate investigation: MCP connects to AI-powered workflows, allowing incident-response bots to run investigations automatically, pull evidence from code, and generate summaries before human SREs even see the alert.
  6. Improve runbooks: Deep Search proactively identifies discrepancies between what the code does and what is documented in runbooks. This enables teams to update runbooks in real time, ensuring they remain accurate and relevant.

The Real Advantage Is Confidence

Reflecting on their SRE experience, the former SRE estimated that 80% of their work involved hesitation.

Was this the right service? The right runbook? The right command? The right team?

That uncertainty costs time. And with four-nines availability, time is not something you can afford to waste.

Sourcegraph doesn’t replace SRE expertise. It doesn’t eliminate the need for engineer-written runbooks. It bridges the gap between what engineers know, what documentation says, and what the code actually does.

It gives SREs a faster path from uncertainty to understanding.

When production is down, the last thing you need is another guessing game.

A special thanks to Justin Dorfman, Travis Lyons, and Caitlin Moran for their contributions to this blog post.

Read the original source.

Unblock your organization. Ship faster. With Sourcegraph, the code understanding platform for enterprise. Schedule a demo.

Sources & further reading

Featured image: The runbook is out of date and the code shipped an hour ago. Via original publisher. Image source