TAI BUI
Back to curriculum
LearnPython

SRE for AI — Multi-Agent Incident Response, Runbooks, Predictive Detection

AI SRE grounds LLMs in infrastructure data (logs, runbooks, service topology) via RAG to automate the investigation, documentation, and coordination phases of an incident. The 2026 pattern is multi-agent orchestration: specialized agents for logs, metrics, and runbooks, coordinated by a supervisor. The AI proposes hypotheses and queries, and humans approve the judgment calls. Datadog Bits AI and Azure SRE Agent ship this as managed products. Runbooks are changing too. NeuBird Hawkeye uses adversarial evaluation, where two models analyze the same incident and agreement means confidence while disagreement means uncertainty, and operational memory persists across team changes. Auto-remediation stays cautious. The AI suggests and humans approve. Autonomous action covers a narrow set (restart a pod, roll back a specific deploy) behind tight guardrails, and anyone selling "set it and forget it" is overselling. The emerging frontier is pre-incident prediction: MIT research reports an LLM trained on historical logs, GPU temperatures, and API error patterns predicted 89% of outages 10-15 min early. Projection: 95% of enterprise LLMs have automated failover by end-2026.

TIME: ~60 minutesPREREQUISITES: Phase 17 · 13 (Observability), Phase 17 · 24 (Chaos Engineering)

Learning Objectives

  • Diagram the multi-agent AI SRE architecture: supervisor + specialized agents (logs, metrics, runbooks) + human approval gate.
  • Explain why auto-remediation is narrow (restart pod, revert deploy) rather than broad (re-architect service).
  • Name the adversarial evaluation pattern (NeuBird Hawkeye): two models agree = confidence; disagree = escalate.
  • Cite the MIT 89% early-detection result and the operational constraint: predictions without actuation are just dashboards.

The Problem

An on-call engineer gets paged at 3 a.m. "High error rate in checkout." They check Datadog, Loki, three runbooks, and the deploy log. Thirty minutes later they find the root cause: a vLLM OOM from a KV cache spike. They restart the pod and the error clears.

In 2026 the first 20 minutes of that investigation can be automated. Grouping logs by service, correlating with recent deploys, and matching against runbooks are all RAG plus tool use. A supervised agent can do first-pass triage and hand over a hypothesis before the human has opened Datadog.

Fully autonomous remediation is a different problem. Restarting a pod is safe. Scaling the GPU pool is safe if policy allows it. Re-architecting the service is not something an agent should touch. The discipline is drawing that line narrowly.

Warm-up0/3
1. During an incident, which signals does an on-call engineer typically correlate to localize a fault?Warm-up
A card stating the goal of finding which part of a running system is at fault, that several different kinds of signals are available, and which signals get tied together and how is left as a question mark.
Generic investigation setup, typed. No signal type is named.
2. Why do teams inject controlled failures, such as killing a pod, in a chaos experiment?Warm-up
A card stating that a team deliberately injects one small failure on purpose, with killing a pod given as the example, and why they do this on purpose left as a question mark.
Generic controlled-experiment setup, typed, using only the example the question itself gives.
3. A container is killed and its status shows an out-of-memory (OOM) error. What most likely happened?Warm-up
A card stating that a container is killed and its status shows an out-of-memory error, with what most likely happened left as a question mark.
The setup exactly as given in the question. No cause is shown.
Check: The Problem0/2
1. What is an AI SRE system?Define
A card naming an AI SRE system, tagged to The Problem section, with what it is left as a question mark.
The term as the lesson names it. What it is is the question.
2. Why can the first part of a 3 a.m. investigation be automated while remediation must stay narrow?Explain
A card stating two parts of an investigation: grouping logs, correlating deploys, and matching runbooks on one side, and deciding what action to take on a production system on the other, with why one is automatable now and the other stays narrow left as a question mark.
The two parts exactly as The Problem section frames them.

The Concept

Multi-agent architecture

          Incident
             │
             ▼
        Supervisor
        /    |    \
       ▼     ▼     ▼
  Log agent  Metric agent  Runbook agent
       │     │     │
       └─────┴─────┘
             │
             ▼
        Hypothesis + evidence
             │
             ▼
        Human approval gate
             │
             ▼
        Action (narrow set)

The supervisor breaks the incident into sub-queries. Specialized agents have tool access (log search, PromQL, doc retrieval). The supervisor synthesizes their answers and presents a hypothesis with evidence. A human approves or redirects it, unless two agents agree and the proposed action sits in the narrow safe set below, in which case it can run pre-approved.

Auto-remediation scope

Safe (narrow): restart pod, revert specific deploy, scale pool within pre-approved bounds, enable pre-approved feature flag.

Not safe (broad): change service topology, modify resource limits, deploy new code, change IAM, alter databases.

Anyone selling "set it and forget it" is overselling. The safe set grows as AI SRE matures, but the boundary stays.

Adversarial evaluation (NeuBird Hawkeye)

Two models analyze the same incident independently. If they agree on the root cause, confidence is high. If they disagree, the incident goes to a human with both hypotheses visible. It is a simple pattern and an effective filter against hallucinated root causes.

Operational memory

Team turnover quietly hurts traditional SRE because tribal knowledge leaves with the people. AI SRE stores runbooks and post-mortems in a vector DB, and agents retrieve from it on each new incident. When new engineers join, the AI already has the history.

Pre-incident prediction

MIT 2025 research: LLM trained on historical logs, GPU temperatures, API error patterns predicted 89% of outages 10-15 minutes before they happened on the test set.

Reality check: predictions without actuation are dashboards. The operational question is what you do when a prediction fires. Pre-emptive drain, page someone, auto-scale? The answer depends on your policy.

Products in 2026

  • Datadog Bits AI: managed SRE copilot inside Datadog.
  • Azure SRE Agent: Azure-native.
  • NeuBird Hawkeye: adversarial eval and operational memory.
  • PagerDuty AIOps: triage and deduplication.
  • Incident.io Autopilot: incident commander and coordination.

Runbooks as code

Runbooks are moving from Confluence pages to versioned markdown with structured sections (symptom, hypothesis, verify, act). Structured runbooks give RAG better retrieval, so start an AI-SRE rollout by converting the unstructured ones.

Numbers you should remember

  • MIT early-detection: 89% of outages, 10-15 min lead time.
  • Multi-agent triage: supervisor + (logs, metrics, runbooks) + human.
  • Safe auto-remediation set: restart pod, revert deploy, scale within bounds.
  • Adversarial eval: two independent models; agreement = confidence.
Check: The Concept0/23
1. What is the supervisor agent in a multi-agent AI SRE design?Define
A card naming the supervisor agent, tagged to The Concept section's Multi-agent architecture part, with what it does left as a question mark.
The term as the lesson names it. What it does is the question.
2. What is a specialized agent in this architecture?Define
A card naming a specialized agent, tagged to The Concept section's Multi-agent architecture part, with what it is left as a question mark.
The term as the lesson names it. What it is is the question.
3. What does auto-remediation mean in an AI SRE?Define
A card naming auto-remediation, tagged to the Key Terms section, with what it means left as a question mark.
The term as the lesson names it. What it means is the question.
4. What is operational memory in an AI SRE system?Define
A card naming operational memory, tagged to The Concept section's Operational memory part, with what it is left as a question mark.
The term as the lesson names it. What it is is the question.
5. What is adversarial evaluation in an AI SRE?Define
A card naming adversarial evaluation, tagged to The Concept section's Adversarial evaluation part, with what it is left as a question mark.
The term as the lesson names it. What it is is the question.
6. What is NeuBird Hawkeye?Define
A card naming NeuBird Hawkeye, tagged to The Concept section's Products in 2026 part, with what it is left as a question mark.
The term as the lesson names it. What it is is the question.
7. What is Bits AI?Define
A card naming Bits AI, tagged to The Concept section's Products in 2026 part, with what it is left as a question mark.
The term as the lesson names it. What it is is the question.
8. What is pre-incident prediction?Define
A card naming pre-incident prediction, tagged to The Concept section's Pre-incident prediction part, with what it is left as a question mark.
The term as the lesson names it. What it is is the question.
9. Which design does the Multi-agent architecture part of The Concept describe for AI SRE?Explain
A card naming Multi-agent architecture, tagged to The Concept section, with which design it describes left as a question mark.
The heading as the lesson names it. Which design it describes is the question.
10. Why does the supervisor present a hypothesis with evidence to a human instead of only proposing an action?Explain
A card stating that the supervisor sends a hypothesis plus the evidence behind it, not just the action it wants to take, with why it sends evidence instead of just the action left as a question mark.
The setup exactly as given in the question.
11. Which action belongs in the narrow safe set for auto-remediation?Explain
A card naming Auto-remediation scope, tagged to The Concept section's Auto-remediation scope part, with which side one given action falls on left as a question mark.
The heading as the lesson names it. Which side a given action falls on is the question.
12. Why is a 'set it and forget it' AI SRE an overselling claim?Explain
A card stating a vendor claim that an AI SRE can be set up and forgotten, next to the lesson's position that the safe action set grows while a boundary stays, with why the claim is still overselling left as a question mark.
The claim and the lesson's position exactly as given in the question.
13. How does the Adversarial evaluation pattern (NeuBird Hawkeye) filter hallucinated root causes?Explain
A card naming Adversarial evaluation from NeuBird Hawkeye, tagged to The Concept section, with how it filters hallucinated root causes left as a question mark.
The pattern as the lesson names it. How it filters hallucinated causes is the question.
14. Why does storing runbooks and post-mortems in a vector DB help a team with engineer turnover?Explain
A card stating that a team has engineer turnover over time and stores runbooks and post-mortems in a vector DB, with why this helps with the turnover left as a question mark.
The setup exactly as given in the question.
15. Why does converting unstructured runbooks into structured sections (symptom, hypothesis, verify, act) help an AI SRE rollout?Explain
A card stating that runbooks go from loose unstructured prose pages to structured sections of symptom, hypothesis, verify, and act, with why this helps an AI SRE rollout left as a question mark.
The before and after exactly as given in the question.
16. Which result does Pre-incident prediction in The Concept cite from MIT research?Explain
A card stating that an MIT study from 2025 trains a model on operational signals with the goal of predicting outages before they happen, with the accuracy and lead time it reported left as a question mark.
The study's setup, typed. No accuracy or lead time figure shown.
17. An agent proposes four fixes for an outage. Which one fits the safe auto-remediation set?Apply
A card stating that an agent proposes several candidate fixes during an outage and one of them sits within a pre-approved scaling bound, with which one fits the narrow safe set left as a question mark.
The setup exactly as given in the question. No candidate fix is named.
18. A structured runbook has the sections symptom, hypothesis, verify, and act. Where does the command that checks whether the hypothesis holds belong?Apply
A card listing a structured runbook's four sections: symptom, hypothesis, verify, and act, with where the command that checks the hypothesis goes left as a question mark.
The four section names exactly as given in the question.
19. Your triage agents return three different root causes for one checkout alert, and only one agent supports the top hypothesis. What should happen next?Analyze
A card stating that triage agents return three different root causes for one alert and only one agent supports the top hypothesis, with what should happen next left as a question mark.
The setup exactly as given in the question. No resolution is shown.
20. After a rollout, an agent's proposal to raise a pod's resource limits is auto-approved because 'the safe set grows over time'. What is the flaw?Analyze
A card stating a proposal to raise a pod's resource limits, auto-approved with the justification that the safe set grows over time, with what the flaw in that reasoning is left as a question mark.
The proposal and its justification exactly as given in the question.
21. An AI SRE rollout keeps retrieving the wrong runbook for incidents, and the team's runbooks are loose prose pages. Which fix does the lesson point to?Analyze
A card stating that retrieval keeps matching the wrong runbook and the team's runbooks are loose prose pages, with which fix the lesson points to left as a question mark.
The setup exactly as given in the question. No fix is shown.
22. A predictor fires with a 12 minute lead on a GPU pool. Which policy fits Pre-incident prediction in The Concept?Design
A card stating that a predictor fires on a GPU pool with a 12 minute lead time, with what policy fits left as a question mark.
The lead time exactly as given in the question. No policy is shown.
23. You want a pod restart to run without a human at 3 a.m., but never an IAM change. Which design fits?Design
A card stating a desire for a pod restart to run with no human at 3 a.m., and never wanting an IAM change to run without a human, with which design fits both left as a question mark.
The two constraints exactly as given in the question. No design is shown.

Use It

code/main.py simulates a multi-agent triage. The log agent finds the error, the metric agent finds the GPU memory spike, and the runbook agent matches the incident to a known issue. The supervisor then ranks the hypotheses.

Check: Use It0/9
1. In the default run of main.py, which agents support the top hypothesis, and what does the safety gate print?Apply
A terminal block with the three real confidence lines a run of code/main.py prints for LogAgent, MetricAgent, and RunbookAgent, noting each has its own root-cause text omitted here, with the top hypothesis and the safety gate's printed value both left open.
The three confidences exactly as a real run of code/main.py prints them.
2. In the default run of main.py, what is aggregated_confidence for the top group?Apply
A card listing three real confidences from one run: LogAgent at 0.78, MetricAgent at 0.82, RunbookAgent at 0.88, with aggregated_confidence for the top group left as a question mark.
The three confidences exactly as a real run of code/main.py prints them.
3. main.py is run with the incident 'Latency spike in search'. Which agent's output changes, and how?Apply
A card stating that main.py is run with a new incident string, 'Latency spike in search', with which agent's output changes and how left as a question mark.
The new incident text exactly as given in the question.
4. In main.py, two agents' root causes map to the same grouping key. What does the supervisor set safety_gate to?Apply
A card for a hypothetical, illustrative case: Agent A and Agent B map to the same grouping key, Agent C maps to a different one, with what safety_gate becomes left as a question mark.
Illustrative, generic agents, not the lesson's own LogAgent, MetricAgent, or RunbookAgent.
5. On every run of main.py, where does proposed_action come from?Apply
A terminal block with two real runs of code/main.py on different incidents, both printing the identical proposed_action value, with where that value comes from left open.
Two real runs of code/main.py, confirmed to print the same proposed_action.
6. In main.py the log and metric agents disagree and the runbook agent matches neither. What does the supervisor do?Apply
A card stating that the log agent and the metric agent disagree, and the runbook agent matches neither of them, with what the supervisor does next left as a question mark.
The setup exactly as given in the question. No resolution is shown.
7. All three agents describe the same KV cache OOM, yet main.py reports adversarial_agreement False. What explains it?Analyze
A card stating that all three agents describe the same KV cache OOM, yet adversarial_agreement is False, with what explains it left as a question mark.
The setup exactly as given in the question.
8. You must replace the string-prefix agreement check with something that works on real incidents. Which design fits?Design
A card stating that the current check compares a truncated prefix of the root-cause string and must be replaced with something that works on real incidents, with what design replaces it left as a question mark.
The current check named exactly as the question gives it. No replacement is shown.
9. Your approvals start to feel like rubber stamps after a first rollout with a fixed action set. What is the sensible next step?Design
A card stating that the action set has been fixed since the first rollout and approvals are starting to feel like rubber stamps, with what the sensible next step is left as a question mark.
The setup exactly as given in the question. No next step is shown.

Ship It

This lesson produces outputs/skill-ai-sre-plan.md. Given the current on-call setup, incident volume, and team maturity, it designs an AI SRE rollout.

Author's Note

I'd run main.py and read the supervisor block before trusting the architecture diagram. The three agents are canned: the metric and runbook agents ignore the incident text, and the log agent only returns a confident answer if the word "checkout" appears in it. So the interesting part is the supervisor, not the agents.

Here is what surprised me. All three agents are describing the same incident (a KV cache OOM), but the supervisor groups them by a prefix of the root-cause string, so they land in three separate groups. Only the runbook agent supports the top hypothesis, adversarial_agreement comes out False, and the gate prints "human approval required". The agreement check is the adversarial pattern from the Concept section, and a string-prefix match is a brittle way to implement it. Real agreement needs a judgment about whether two analyses mean the same thing, which probably means another model call.

The proposed_action is a constant. The supervisor never picks it from the evidence, and that is the narrow-scope idea in its crudest form: the action set is fixed ahead of time and the only thing the agents decide is whether a human signs off. I'd keep it that way for the first rollout and widen the set only after the approvals start to feel like rubber stamps.

Exercises

  1. Run code/main.py. What if the log and metric agents disagree? How does the supervisor resolve it?
  2. Define three "safe" auto-remediation actions for your service. Justify each.
  3. Write a structured runbook template: sections, required fields, verification commands.
  4. Predictive detection fires with a 12 min lead. What is your policy: pager, pre-drain, or both?
  5. Argue whether a 3-person team should adopt AI SRE in 2026 or wait. Weigh maturity, volume, and risk.

Key Terms

TermWhat people sayWhat it actually means
AI SRE"agent for on-call"LLM-backed incident investigation + coordination
Supervisor agent"the orchestrator"Top-level agent breaking incidents into sub-queries
Specialized agent"domain agent"Sub-agent with tool access (logs, metrics, runbooks)
Auto-remediation"AI fixes it"Narrow pre-approved action; NOT broad re-architecture
Operational memory"vector runbooks"Post-mortems + runbooks in vector DB for RAG
Adversarial eval"two-model check"Independent analyses; agreement = confidence
NeuBird Hawkeye"the adversarial one"Product with adversarial-eval + memory pattern
Bits AI"Datadog's SRE agent"Datadog-managed AI SRE
Pre-incident prediction"early detection"10-15 min lead time on outage prediction

Further Reading

Code

Ships With