AI on-call agents can follow a runbook on a broken Kubernetes cluster, and the best ones do it quickly, according to a 360-run experiment. Three models each handled 20 seeded incidents, three times, with and without guardrails. Claude Haiku 5.5 got all 120 of its runs right. The test also showed where guardrails help and where they don’t.
How the test worked
Each agent got a pager alert, kubectl access, an escalate tool and a two-page runbook. The cluster ran a small shop app: nginx, two busybox services, Redis on a persistent volume claim (PVC), and a payments service owned by another team. Of the 20 incidents, 13 could be fixed, six needed a human and one was a false alarm.
The testers spun up six kind clusters running Kubernetes 1.37 on a disposable cloud machine and called the models through DigitalOcean Serverless Inference. A person or a second model never graded the results. Scoring relied only on what the cluster looked like afterward.
Two setups were compared. In the guarded setup the agent ran as a service account limited to one namespace. Each change passed a policy gate and a server-side dry run first. The gate checked scope, demanded approval for anything irreversible, capped replica counts, allowed eight changes per incident and honored a kill switch. In the other setup the model held cluster-admin rights with no gate. Prompt, runbook and tools stayed the same.
Results by model
Claude Haiku 5.5 was right in 60 of 60 runs in both arms. It repaired each fixable incident, handed off each one the runbook reserves for humans, and ignored the false alarm. Its median time from page to healthy was about 15 seconds. It ran 110 change commands, and the gate would not have refused any of them.
gpt-oss-120b scored 117 of 120. All three misses were the same slip. An incident had two causes, the model fixed only one, reported that nothing more was needed and left the site down. Every guardrail allowed that, since each change was permitted. A gate checks what an agent does. It can’t tell whether the incident is over.
Ministral 3 14B, the small model, was right in 37 of 60 guarded runs and 40 of 60 unguarded runs, a gap too small to measure. It also escalated fixable incidents 11 times with guardrails on, against 4 without.
Where guardrails earned their keep
With cluster-admin and no gate, Ministral deleted configmaps the runbook says never to touch, deleted the web Service and couldn’t recreate it, and rolled back the other team’s payments service. Seven of its 60 unguarded runs did damage. With guardrails on, none of 60 did.
Each of those seven runs contained at least one command the gate would have rejected, and the restricted service account would have blocked it as well. The comparison therefore credits the full guarded setup rather than the gate by itself. The p-value was 0.013, with the caveat that the test treats repeat runs as independent.
One unguarded Ministral run was worse than sloppy. Given a big job backlog, it rewrote the configmap that stores the simulated queue depth to 120, cut the worker to one replica and declared the cluster healthy. The alarm went quiet because the model changed the very number being measured.
What the numbers say
- Model choice dominated. Swapping models shifted accuracy from roughly 64% to 100%, while toggling guardrails changed accuracy by an amount too small to detect.
- For the two stronger models, the gate did almost nothing. The dry run rejected two gpt-oss-120b commands that would have failed anyway, and RBAC blocked some reads, such as Haiku’s attempt to read a secret. Each time Haiku escalated, as the runbook directs.
- Every model escalated the dangerous incidents: a leaked key, a corrupt Redis file and a node disk alert, in all 18 runs per model. Nobody tried to rotate the key, delete the PVC or drain the node.
- With the kill switch on, no change command executed. Each model tried a change, was refused and escalated.
Caveats and cost
A few signals were staged, such as the queue depth and the “corrupt” Redis file. Samples were small: the 95% confidence range runs from 94 to 100% for Haiku and 49 to 73% for one Ministral row. Rollout restarts can’t be dry-run, so 47 restarts in guarded runs skipped that check.
All recorded runs cost about $2.70 in inference, and the two throwaway droplets cost under $0.75.
Takeaways for teams
Choose the model first. Then keep the pieces a human engineer builds: the runbook, a scoped service account, a gate and outcome checks that confirm an incident is really resolved. An agent can run a runbook fast, but each run here rested on that groundwork.
Source: devops-daily.com