Inside an AI SRE investigation: hypotheses, tool calls and the evidence trail
"The AI looked at your cluster and found the root cause" is a sentence that hides almost everything that matters. Between the alert and the answer there are dozens of decisions: which data to read first, which explanation to chase, when to stop, and how sure to be. Those decisions are where AI inve

Posted on Nov 28 • Originally published at alertigate.com • Fully Autonomous
"The AI looked at your cluster and found the root cause" is a sentence that hides almost everything that matters. Between the alert and the answer there are dozens of decisions: which data to read first, which explanation to chase, when to stop, and how sure to be. Those decisions are where AI investigations succeed or quietly fail, and they are the part a demo never shows.
This article opens the box. It describes how an agentic investigation works, where it goes wrong, and the design choices that separate an answer you can act on from a fluent guess.
Almost every AI SRE product today is built on the same pattern, usually called an agent loop and first described in the ReAct paper: the model reasons about what it knows, chooses a tool to call, reads the result, and repeats until it decides it has an answer. In an incident, the tools are reads: a PromQL query, a LogQL query, kubectl get and describe, a rollout history, a runbook search.
Each turn of the loop is one read. The quality of the answer depends on which reads are chosen and what is done with the ones that disagree.
The loop is powerful because it adapts: a crash loop leads to the previous container's logs, an OOM kill leads to the memory limit, a deploy boundary leads to the rollout history. It is also where three failure modes live.
It anchors on the first plausible story. A model that reads "error rate up after deploy" will happily spend its whole budget confirming that the deploy did it, without ever reading the evidence that would show the node ran out of disk at the same moment. Nothing in a bare agent loop forces it to look for disconfirming evidence.
It wanders. Given twenty tools and no guidance, a model calls the ones it has heard of. A two-person SRE team at STCLab reported to the CNCF that adding exclusion rules to their runbooks ("no Loki, no Tempo, no Istio here; use kubectl and PromQL only") cut wasted tool calls from 16 to 2 per investigation. Same model, same alert.
It reports confidence it has not earned. The model writes "high confidence" because the story is coherent, not because the evidence is strong. Coherence and correctness are different things, and a reader at 03:00 cannot tell them apart. The companion article on confidence is about exactly this.
The difference between products is mostly in what they add around the loop.
The third approach is closer to how a good engineer works, and to the method in our article on root cause analysis for Kubernetes: enumerate the candidate causes, state what each one predicts, then go and look.
For a crash-looping payments service, a hypothesis-driven investigation starts by writing down the candidates and their predictions before reading anything:
Each read is then attached to the hypothesis it tests, with the exact query, the cluster, the time and the raw answer. When the termination reason comes back as Error with exit code 1, the OOM hypothesis is not quietly dropped; it is marked refuted, with the record that refuted it. The surviving cause is the one whose predictions held, and the others stay on the page so a reader can disagree with the elimination rather than with a conclusion.
Two engineering details make this trustworthy rather than merely tidy:
An agent loop with no limit is a cost incident waiting to happen. Every serious investigator needs a hard budget per investigation, in tokens and tool calls, enforced in code rather than requested in a prompt, and a defined behaviour when the budget runs out: stop, and report what was found so far. Deterministic work, such as grouping alerts into incidents, should not call a model at all.
This article was written with AI assistance. It first appeared on alertigate.com.