Same incident, different answers: how to test an AI SRE on your own incidents

Run an AI SRE twice on the same outage and you can get two answers. What counts as a pass, how many runs you need, and what we learned measuring our own.

You give an AI SRE last month’s outage, the one where a release lowered a memory limit. It names the release, cites the pod’s events, and says High. Then you run it again on the same incident. This time it blames a memory leak, at Medium. Which of the two is the product?

Neither, on its own. An investigation by a language model is a sample, not a result. A demo shows you one sample, picked by the person giving the demo. Testing an AI SRE means measuring how often it gets your incidents right, and that is a measurement problem before it is anything else: how many runs, what counts as right, and which failures belong to the tool.

This article is about how we answer those three questions for AlertiGate, with the numbers, including the ones that don’t flatter us. The method works on any tool.

One run proves nothing, and three prove little

AlertiGate certifies a connector, such as Elasticsearch or Argo CD, when at least three test incidents that need it pass at least two runs in three. Today 61 test incidents count towards the 20 connectors we certify. 32 of them passed 3 of 3. 25 passed exactly 2 of 3, the bar itself.

What does 2 of 3 tell you? Less than it sounds. The 95% interval around 2 passes in 3 runs goes from about 21% to 94%. A tool that gets that incident right one time in four could produce it, and so could one that is right nine times in ten.

What a pass rate can tell you Five observed pass rates, each with its 95% Wilson interval: the range of true pass rates that could plausibly have produced it. 2 of 3 runs passed, our certification bar: 21% to 94%. 3 of 3: 44% to 100%. 7 of 10: 40% to 89%. 10 of 10: 72% to 100%. 20 of 20: 84% to 100%. A pass rate from a handful of runs is a range, not a number. WHAT A PASS RATE CAN TELL YOU: THE 95% INTERVAL 0% 25% 50% 75% 100% 2 of 3 passed 21% to 94% our certification bar 3 of 3 passed 44% to 100% 7 of 10 passed 40% to 89% 10 of 10 passed 72% to 100% 20 of 20 passed 84% to 100% dot: the observed rate · bar: the true rates that could have produced it
A pass rate from a handful of runs is a range, not a number.

The same arithmetic limits what a comparison can show. We call a drop a regression only when a one-sided Fisher’s exact test gives p below 0.05. With three runs on each version, no result can pass that test: 3 of 3 falling to 0 of 3 gives p = 0.05 exactly. With ten runs each, 10 of 10 falling to 7 of 10 isn’t significant (p ≈ 0.11), and falling to 6 of 10 is (p ≈ 0.04).

So we use the two sizes for different jobs. Three runs is a floor: the tool can solve this incident, more than once, on this build. Ten runs is for decisions, such as the release gate that needs our regression incidents to pass 95% of their runs, at ten runs each. If you compare two tools, or two versions, on three runs each, you are reading noise.

Decide what a pass is before you run

The second question is harder: what counts as right? “The answer looks good” is a judgement you will make differently at the end of a long afternoon. Write the expected answer down before the first run, in parts a program can check.

AlertiGate’s test incidents keep HolmesGPT’s test format, with a file of our own beside each one. Together they say:

  • What the root cause must say, as keywords: “48Mi”, “OOMKilled”, the release.
  • What it must not claim, such as “network” when the network is fine.
  • Which system’s records the root cause must cite. Naming the right cause from the wrong evidence is a guess that happened to be right.
  • Hard limits: no write action, a cost ceiling, a call ceiling.

Writing them down was the easy part. Checking them needed rules we didn’t expect.

Read claims, not mentions. A good investigation names the causes it ruled out: “not a network failure: no connection errors in the window”. A keyword check that reads the whole answer fails that run for saying “network”. Ours reads only what the run claims: root causes, contributing factors and supported hypotheses. Refutations are never read for keywords.

Connected isn’t used. Before the citation rule existed, we looked at 40 passing runs of four regression incidents. Every run had Prometheus and Loki connected. A root cause cited a Prometheus record once, and a Loki record three times. A test that counted those runs as proof that the connectors work would have proved almost nothing. Now a run counts for a connector only when its root cause cites a record that connector produced, followed from the citation to the tool call behind it.

The grader needs grading too. Part of the answer is judged by a second model, because keywords can’t judge everything. It refuses to run when it is the same model as the one under test, compared by the model that actually serves each name, since two names can be one model. It judges each expected element on its own. Before that, an element that only asked whether a cause was considered was marked absent in 2 of 3 gradings of the same answer; after, in none. And it is told the incident’s title and services. Without them, one grader failed 3 of 10 answers for not naming a service, and passed 7 others that didn’t name it either.

Some failures can’t be averaged away. Our checks have three levels. Quality is how good the answer was. Hard failures are things a run must not do, such as claiming a cause the test rules out or spending past its budget. Absolute failures are a write action in a read-only test, or a claim that cites no record. One absolute failure fails a release, whatever the pass rate, and no one can waive it.

Count only what the run measured

The third question: which failures belong to the tool? Some of ours didn’t.

The provider stopped answering. In one evaluation, the model provider started answering every call with “Insufficient Balance”. Thirteen runs got no answer at all and were scored as failures. They measured our account, not the engine. A run whose every model call went unanswered is now an error, reported and not counted.

The budget ran out mid-run. With an evaluation’s budget nearly spent, a run started on what was left and stopped mid-investigation. It measured the budget. Now a run starts only when what is left covers the most a run of the same test has cost, and otherwise it is skipped and says why.

The test changed under the count. When a test incident is edited, its old runs measure a different test. Our certification once counted two runs of an old version with three of the current one. Each run is now stamped with a digest of the test’s files, and only runs of the current version count.

The settings weren’t the ones we ship. This one cost the most. Our certifications held with eleven engine settings and seven per-source instructions switched on by hand, round by round. When we turned them on by default and ran every test again, 13 test incidents fell below 2 of 3. A control on the same code with the settings off split them: 4 the new defaults broke, 7 that failed either way, and 2 that needed fixes of their own. The lesson for anyone testing a tool: test the configuration you will run. A vendor’s benchmark on its own settings tells you about its settings.

Replaying your own incidents is harder than it looks

The obvious way to test on your own incidents is to record a real investigation, every tool call and every answer, and replay it on each new version. The answers come from the recording, so you need no live outage, and the cluster’s state is frozen at the moment that mattered.

We built that, and the first measurement was humbling. We replayed 12 recorded runs that had passed, on the next build. None was still correct. The replays found an answer in the recording for 35 of 418 calls, 8%. A model doesn’t repeat its own queries: it asks for the same pod’s logs with another filter, or another time window, and an exact match on the recorded call misses.

What happens on a miss matters as much. If the replay answers “no data”, that is a false absence, the problem from our last article: the agent retries, and a run cost up to 7.7 times its original. If it answers “not available in replay”, the run costs what the original did. For regression runs, only the second is usable.

The fix was to record the cluster, not just the calls. Right after a live run, we save the lists of the Kubernetes objects it read, and the logs of the pods it looked at. A replay answers a read the recording never made the way HolmesGPT’s tool would have, from the saved state. Checked against the live tool, all 203 distinct Kubernetes reads the models had made in those replays came back identical. Then we replayed four new recordings. With objects saved, the replays answered 61% of calls, and 3 of 4 runs were still correct. With pod logs saved too, 136 of 141 calls (96%), and 4 of 4.

The limit is everything a snapshot can’t hold. A metric query over a range nobody recorded, or a log-store search with a filter nobody ran, still misses. Replay tells you whether a new version still solves an incident you already solved. It can’t tell you how a version would have done on data it never saw.

The right answer comes from the engineer who resolved it

All of the above measures the tool against tests we wrote. Real accuracy is measured against real incidents, and the only reliable source of the right answer is the engineer who resolved it, at the moment they resolved it. Later, nobody remembers.

So the resolve dialog asks one question, with three answers: it was the top hypothesis; it was another cause we raised, ranked lower; or it was a cause we never raised, in your own words. The third is the most useful thing an evaluation can collect, because it is the miss no test incident predicted. Matching those words to a hypothesis is a person’s job, never a model’s: a model grading its own system’s answers is the circularity a confidence band is meant to avoid.

This is where we have the least to show. On our test incidents, every root cause at High was right, 23 of 23 over 31 lab runs. Those are four lab incidents, unevenly represented. Whether High means “usually right” on real production incidents is a measurement that needs real resolutions, and our release gate for it still reads “not measured”. We would rather say so than print a percentage without its denominator.

A test plan for your own incidents

  1. Pick ten resolved incidents whose cause you know, across the systems you run. Add one whose cause sits in a system the tool isn’t connected to, and one alert that was noise.
  2. Write each expected answer first: what the root cause must say, what it must not claim, which system’s evidence it must cite, and what it may not do.
  3. Run each one three times to see what the tool can do, and ten times for anything you will decide on. Report “7 of 10”, never “70%” alone.
  4. Grade claims, not prose. Open the citations: each should lead to a real tool call with that answer in it. Ruled-out causes don’t count against a keyword.
  5. Separate errors from failures. A provider outage, a quota or a broken credential on your side is not the tool’s miss. A failed source that the answer didn’t mention is.
  6. Run on your production settings and model, and again after every upgrade, on the same incidents. Compare with a test that knows the sample sizes, or don’t call it a change.
  7. From now on, record the right answer when you resolve, in a structured form. In a year, those are the only incidents that can tell you whether High means anything.

To test what an answer says about what it couldn’t see, add the five faults from the last article: a revoked credential, a search that can’t match, a window in the future, a pod that’s gone, and a cause in a system the tool can’t reach.

What isn’t solved

  • Our certification bar is low. 2 of 3 shows the tool can solve an incident, not how often, and 25 of 61 test incidents sit exactly on it.
  • Our test incidents are lab incidents. Most are seeded faults on a small cluster, written by the people who built the engine. Real incidents are messier.
  • Replay doesn’t cover metrics and log stores. Calls to them that the recording didn’t make still miss.
  • Calibration on real incidents is unmeasured, for want of resolved production incidents with a recorded outcome.
  • The grader is still a model. Keyword checks and citations keep it from being the only opinion, but a grade can still be wrong, and we re-grade recorded answers when we find one.

Where AlertiGate fits

AlertiGate records what this method needs. Every finding links to the tool calls behind it. Resolving an incident records which hypothesis was right, or the cause in your words. An investigation can be exported as a test case, anonymised and scanned, and only with the approval of a second person. If you want to run your own incidents through it, join the beta.

  • AI SRE
  • Evaluation
  • Root cause analysis
  • Testing
  • Kubernetes

Keep reading

Access the demo

Your email is safe with us