← All posts
Case Study6 min read

Why Our AI SRE Failed 13 Times, and What Fixed It

A reply to the five-phase roadmap to autonomous SRE: start with the map of your system, not the pipe

Nati ShalomNati ShalomCo-founder & CTO
Why Our AI SRE Failed 13 Times, and What Fixed It

Our agent failed the same incident 13 times in a row. The model wasn’t the problem. More telemetry did not fix it. A map of the system and a record of what changed did. Here is what happened, a test you can run on your own incidents in ten minutes, and why I think the popular roadmap to autonomous SRE starts in the wrong place.

13 attempts, zero fixes

We broke a GPU training cluster on purpose. One storage server got slow. Because every training step waits for the slowest worker, the whole job slowed to a crawl, while Kubernetes reported every pod Running and Ready.

We gave our agent the metrics and asked it to find the cause and propose a fix. Across 13 attempts on two different AI models, no plan fixed the fault. Most went after the training workers, which were healthy and only waiting. The obvious next step was to give it more data.

It did not. We added three things the cluster already knew: which worker reads from which storage server, what runs inside each pod, and a record of what changed around the incident. We changed nothing else. The smaller, cheaper model went six for six. A bigger model with less depth lost to a smaller model with more. The full write-up is in When They Go Wide, We Go Deep.

The agent did not need more data. It needed the map, and what changed on it.

Figure 1: The fix was not more telemetry. It was the map of the system and a record of what changed on it.
Figure 1: The fix was not more telemetry. It was the map of the system and a record of what changed on it.

A second test: the slow database nobody blamed

Same lesson, smaller system. A Java service, checkout-java, talks to Postgres on every order. We added 400 ms of delay to every Postgres reply with netem, the standard Linux tool for simulating network delay.

Nothing crashed. The logs were clean. Every pod stayed Ready. The only alarm was checkout's p95 latency, at about 1.4 seconds, so the alert pointed at checkout.

Otto, our agent, did not restart checkout. It followed the wiring: checkout's own database setting points at Postgres. On that edge it found the delay container on the Postgres pod, and saw the time to open a connection jump from about 3 ms to about 400 ms. Its plan was one line, aimed at the source, and a person approved it:

helm upgrade wv shop -n <ns> --reuse-values --set postgres.netemDelayMs=0

Not "restart checkout-java". It was healthy. It was only waiting.

The part you already own, and the part you pay for

We weighed what an investigation actually relies on. In our model of a mid-size Kubernetes estate, about 75% of the weight in finding a root cause comes from three things: what changed just before the fault (deploys, image and config changes, replica counts, pods moving between nodes), the cluster’s own state and events, and a live map of what depends on what. Logs and metrics carry the other 25%. Google’s SRE team found the same from the other side: “roughly 70% of outages are due to changes in a live system.”

Now look at the bill. The 75% costs nothing. It already sits in your Kubernetes API, your git history and your cloud audit log. The 25% is about 98% of what you pay for observability. One r/sre thread this year put it plainly: “Our observability costs are now higher than our AWS bill.”

Metrics and logs still matter. They are how the agent notices something is wrong at all. But most teams pay almost everything for the quarter that decides least.

Why I am writing this now

I recently read Aman Kohli's five-phase roadmap from OpenTelemetry to autonomous SRE. Most of it is right. His last phase is the clearest description of safe automated fixes I have seen: the model proposes, a policy engine decides, every action is verified, and automation stops when a check fails. His line "Autonomy should be earned through evidence, not enabled by default" is how we built Otto.

Phase one is where it goes wrong: standardize all telemetry, centralize it, make it complete, and only then add the agent. That spends the budget on the 25%, and leaves the 75% for later. That is the architecture we built for a person at a screen. My two tests say the agent needs something else first.

His own example proves it. Checkout latency jumps from 200 ms to 2 seconds, and the line that solves the case is "A recent deployment to its inventory dependency." That is not a metric or a trace. It is two facts: checkout depends on inventory, and inventory changed. Kubernetes keeps both, for free.

What I heard at KubeCon in Salt Lake City this month points the same way:

  • A bank's AI missed the deploy. In The SRE Is Not Dead, a bank described an AI that saw CPU and latency, but missed the deploy 20 minutes earlier and the upstream service that was slowing down.
  • Complete telemetry is a big program. Capital One runs OpenTelemetry on more than 85,000 instances, with gateways, audit trails and staged rollouts. Impressive, and a platform program in its own right.
  • Ruling things out needs the map. Ritvik Pandya of JPMorgan Chase put it on one slide in The Negative Diagnosis: "Detection is OR. Exoneration is AND."
  • Engineers feel it too. One wrote on Reddit that their team burned three months trying to patch broken traces in an OpenTelemetry pipeline, and failed.
Figure 2: The same telemetry, two architectures. Left: built for a person at a screen. Right: built for an autonomous agent, which goes to the data and starts from the map.
Figure 2: The same telemetry, two architectures. Left: built for a person at a screen. Right: built for an autonomous agent, which goes to the data and starts from the map.

Try it: your last five incidents

You do not need a vendor for this, or a new pipeline. You need ten minutes and kubectl.

1. List them. Take your last five incidents. Write down the service that paged for each.

2. See what changed near it. For each paging service, check what rolled out and what the cluster recorded:

# what rolled out, and when
kubectl rollout history deployment/<service> -n <ns>
kubectl get replicasets -n <ns> -o wide --sort-by=.metadata.creationTimestamp

# what the cluster saw (events are kept for about an hour by default)
kubectl get events -n <ns> --sort-by=.lastTimestamp

For older incidents, use your deploy history or your GitOps repo log instead of events.

3. Find its neighbors. The wiring usually sits in the service's own config:

# where does it connect? (database hosts, upstream URLs)
kubectl get deploy <service> -n <ns> \
-o jsonpath='{range .spec.template.spec.containers[*].env[*]}{.name}={.value}{"\n"}{end}'

# which pods actually serve it right now
kubectl get endpointslices -n <ns> -l kubernetes.io/service-name=<service>

Run step 2 again on each neighbor.

4. Score it. For each incident, ask one question: was the cause a change on the paging service, or one or two hops away from it?

If most answers are yes, your agent's most important context is already in your cluster, and it costs nothing to collect. That is phase one. The big telemetry program can come later, aimed at the gaps your investigations actually hit.

Figure 3: Kohli's checkout incident, worked from the map. Start at the alerting node, walk one hop, read what changed first, and only then pull evidence for the two components involved.
Figure 3: Kohli's checkout incident, worked from the map. Start at the alerting node, walk one hop, read what changed first, and only then pull evidence for the two components involved.

What I would change in the roadmap

Keep his phases and his guardrails. Change the foundation under them:

  1. Map and what changed, first. Read the topology and change history the cluster already keeps. No migration.
  2. Read-only investigation from the map. Every question starts at a component and its neighbors.
  3. Guarded fixes. His phase five, unchanged: policy engine, approval, verification, stop on failure.
  4. Fill the gaps the agent finds. Add OpenTelemetry where investigations come back with "missing information".
  5. LLM observability on its own track, when you ship LLM features.

And measure the right thing. Telemetry completeness is not the goal. Questions answered correctly are: the right component blamed, the right change named. Stephen Hussey of IBM Instana made a related case at Observability Day, with a slide that read "The four golden signals are dead ...unless we embrace Accuracy and Cost."

Where the data lives matters too. In our design, which we call NoDash, the data stays where it is born and the agent goes to it, so only findings travel. Teams are already working this way: Verkada presented an agent triaging 4,700 alerts a month across nine production clusters, at $0.33 each. I made the longer case in Ship the Agent to the Data.

Back to those 13 failed attempts. The models were not short on telemetry. Nobody had given them the map. An agent does not need a bigger control room. It needs the floor plan and the door log, and your cluster has been keeping both all along.

So when your agent gets it wrong, is it missing data, or missing context? Run the five-incident test above and tell me what you find.

Want to try this hands-on? Our free, open-source autonomous SRE training series walks through topology, drift and guarded fixes step by step, on a real Kubernetes sandbox. Start the series here.

References

See remediation-first in your own stack

Install an agent and watch DataAgent map your topology. No credentials, no commitment.

Keep reading