AI Root Cause Analysis for SRE: Automate Incident Response

AI Root Cause Analysis: How AI SREs Find Real Causes

Written by: Nimesh Chakravarthi, Co-founder & CTO, Struct | Last updated: September 23, 2026

Key Takeaways

  • AI root cause analysis can correlate telemetry across domains quickly, but often surfaces triggers instead of full causal chains, so engineers still need to verify the answer before acting.
  • Effective AI RCA follows a five-step process: smart telemetry ingestion, cross-domain correlation, topology mapping, hypothesis generation, and evidence-backed output with falsification tests.
  • Verification means checking affected traces, confirming unaffected services stay clean, validating timing with deploys, ensuring the mechanism explains the observed magnitude, and confirming the cause is falsifiable.
  • AI RCA struggles with tribal knowledge, flaky probes, unwritten config quirks, and human or process causes that telemetry never records, so missing evidence becomes the main constraint.
  • Struct reads every PR to create needed monitors, baselines thresholds after deploy, triages alerts, and root-causes real issues with a proposed fix attached.

See Struct in Shadow Mode →

Can AI Actually Do Root Cause Analysis?

AI can perform root cause analysis when it correlates telemetry across domains and tests multiple hypotheses instead of returning a single guess. It correlates logs, metrics, traces, and deploy history faster than any human, but often surfaces the trigger, such as the alert that fired or the service that spiked, instead of the deeper cause. A rigorous AI investigation methodically invalidates hypotheses without supporting evidence and classifies each as validated, invalidated, or inconclusive. That five-step mechanism gives you something concrete to audit.

  1. Smart Telemetry Ingestion. Vercel Anomaly Alerts detects an anomaly, runs an AI investigation to identify the root cause, and notifies you immediately, and webhooks can route alert notifications to your incident management tooling. The AI queries metrics, searches error logs, and analyzes traces at the same time instead of in sequence.
  2. Cross-Domain Correlation. The AI correlates logs, metrics, traces, and exceptions into a single causal story. OpenTelemetry context propagation carries trace ID and span ID across service boundaries, which enables cross-signal queries.
  3. Topology And Change Mapping. The AI cross-references dependency graphs with recent Git commits, pull requests, and feature flag updates. Google’s SRE guidance on AI-assisted investigation notes that agents use observability data plus system topology and dependency data to establish domain and intent before forming hypotheses.
  4. Hypothesis Generation. The AI drafts candidate causes such as a deploy, a saturated dependency, or a bad config, then runs targeted follow-up queries to test each one. A ClickHouse reference architecture measured 6–27 SQL queries per investigation, with the model running follow-up queries to test each candidate instead of outputting a single unsupported answer.
  5. Evidence-Backed Output. The AI presents a confidence score, a reasoning trail, and plain-English summaries in Slack. Every claim should link to its evidence, such as the log line, the trace span, or the deploy diff, with the full investigation path visible.

See Your First AI Investigation In Slack →

What Is An AI SRE?

That five-step investigation runs inside a broader system that behaves like an AI SRE. An AI SRE is an autonomous system that handles incident triage, root cause analysis, and remediation by correlating logs, metrics, traces, and code signals. AI root cause analysis forms the investigation layer inside that system and answers “why did this break?” before any remediation decision.

AI SREs differ from classic AIOps. AIOps provides the statistical layer such as anomaly detection, event correlation, and alert-noise reduction, while an AI SRE agent provides the agentic layer, an LLM tool-use loop that investigates one incident in depth with follow-up queries. The two work as a pipeline where AIOps deduplication shrinks the problem and the agent investigates what remains. An AI SRE augments engineers by automating the repetitive, toil-heavy parts of investigation and triage, while keeping all AI-driven actions inspectable, reversible, and under human control.

What Is The Difference Between A Trigger And A Root Cause?

A trigger is the alert that fired or the service that spiked, the first observable symptom. A root cause is the condition whose removal breaks the failure chain entirely. Correlation-based RCA ranks suspects by co-occurrence rather than causal mechanism. In distributed systems with concurrent changes and multiple propagation paths, co-occurrence appears everywhere. The actual cause follows one specific path through the graph, and correlation cannot reliably separate that path from noise.

Two symptoms may share an upstream factor, or a nearby change may be unrelated to the incident. True causes often involve human or process gaps such as a missing validation step, an incomplete test, or an assumption that nobody challenged.

A short test helps you tell which one you received:

  • If the proposed cause is a service that spiked, ask what made that service spike, because the spike is the symptom and not the mechanism.
  • If the proposed cause is a deploy, ask what about that deploy changed the system’s behavior, because a deploy only counts as a cause when you can name the mechanism it introduced.
  • If the proposed cause is a person, the analysis has stopped too early. The useful question is why the system allowed one mistake to become an outage.

How Do You Verify An AI Root Cause Before Acting On It?

Engineers should verify an AI root cause by checking that the proposed mechanism explains the observed magnitude, not just the direction. If a tool cannot show how it reached a conclusion, engineers will never trust it during an incident. The evidence trail carries more weight than the confidence score.

  1. Affected Traces Actually Contain The Suspect Span. Pull the traces from the incident window and confirm that the span the AI identified appears in the affected requests. If the span is missing, the hypothesis remains unconfirmed.
  2. Unaffected Services Are Clean Over The Same Window. Check that services outside the proposed causal path show normal behavior during the incident. If they also degraded, the proposed cause may describe a symptom of a broader issue.
  3. Timing Aligns With A Specific Deploy Or Config Change. Google Cloud’s incident-handling guidance states that proximity on a timeline can be a powerful indicator of causality, even if it is not proof. Confirm that the deploy timestamp precedes the first symptom by a plausible interval.
  4. The Proposed Mechanism Explains The Observed Magnitude. Connection-pool exhaustion happens when all pool connections are checked out and requests queue on acquisition while the database itself stays healthy. That mechanism can explain a latency spike from roughly 300 ms to around 4 seconds. A minor config change would not fix it. If the mechanism only explains the direction of the change and not the magnitude, the hypothesis remains incomplete.
  5. The Cause Is Falsifiable. State what you would expect to see if the hypothesis were wrong. If you cannot articulate a falsification test, you cannot confirm the cause.

What A Confidence Score Should Mean: A confidence score should reflect the strength of the evidence trail instead of the model’s internal certainty. A useful AI incident-response hypothesis is specific, falsifiable, and evidence-backed, stating what it thinks happened, what evidence supports that view, what evidence argues against it, and what validation step should come next.

Why Do 5 Whys Fail And How Does AI Change That?

The 5 Whys technique fails because it follows a single causal chain when real failures have multiple contributing factors, stops at the first plausible answer, and has no falsification step. AI improves some of these failure modes through faster correlation, broader telemetry, and more consistent investigations, but it also inherits or worsens others.

Classic failure modes and their AI equivalents:

What AI Actually Fixes: Speed of correlation, breadth of telemetry, and consistency across investigations. What It Inherits Or Worsens: Single-cause bias when the model anchors on the loudest signal, and missing falsification unless you require it.

A Worked Incident: Checkout-Api P95 Latency Spike

Setup: In the worked checkout incident, checkout p95 latency rose from a 720 ms morning baseline to a peak of 3,650 ms after a payment-retry deploy, crossing the 3,000 ms P1 threshold before rollback. In the checkout-api incident (INC-8842, Payment Service Degraded), the alert fired at 09:00:02, seven minutes after the initial failure. The on-call engineer opens the AI investigation.

What The AI Found:

What The AI Initially Got Wrong: The AI first flagged a database CPU spike as a contributing cause. The verification procedure rejected this interpretation. In a single-pool cascade incident, the database CPU spike usually appears as a downstream effect of connection-pool exhaustion, although in other scenarios, such as an oversized connection pool, database CPU spikes can themselves act as a cause. The timing aligned, but the mechanism did not explain the magnitude, so the hypothesis failed the magnitude check.

How The Verification Procedure Confirmed The Answer:

  1. Affected traces contained the suspect span. ✓
  2. Unaffected services were clean over the same window. ✓
  3. Timing aligned with the payment-service deploy. ✓
  4. The mechanism, connection-pool exhaustion, explained the latency spike. ✓
  5. Falsification test: if the connection pool were the cause, increasing the pool size should restore latency. The rollback confirmed this. ✓

Outcome: The AI’s root cause passed verification. The team rolled back the payment-service deploy, then shipped a config fix to restore the connection-pool size. This pattern matches what Coralogix’s July 2026 evaluation guide describes. Effective correlation engines use time as a filter and topology as the refinement. A deployment landing in the same narrow window as an error spike becomes a candidate for deeper investigation, and verification decides whether it is the cause.

Where Does AI Root Cause Analysis Still Fail?

The checkout incident shows AI RCA working when the telemetry contains the answer. The same procedure breaks down when key signals never reach the tools. AI root cause analysis struggles with tribal knowledge that lives in people’s heads, flaky or misleading health probes, and human or process causes that no telemetry contains. The effectiveness of any AI SRE is fundamentally bounded by the completeness of the data it can access, because it cannot generate insights from signals it does not see, and reasoning cannot replace absent evidence. These gaps arise from missing evidence rather than from model limits.

Specific failure modes:

How PR Intent Turns Correlation Into Judgment

PR intent gives the investigator a clear view of what the code was supposed to do, which allows judgment about whether production behaves as intended instead of just grouping symptoms. PR intent provides the context that turns raw correlation into causal judgment.

Generic AI investigators can only correlate logs after the fact. They lack a view of what the code was supposed to do, so they group symptoms instead of judging whether production behaves as intended. Struct starts from the PR, so every investigation anchors to intent.

The Struct loop runs in this order:

  1. Struct reads every PR to create the monitors that the change needs.
  2. It baselines thresholds after deploy and audits each deploy for regressions.
  3. It triages every alert, whether its own or your existing ones, to dismiss, retune, or escalate.
  4. When something is real, it finds the root cause and opens the fix PR.

The results are measurable. Arcana reduced average developer time per investigation from 30 minutes to 2 minutes and reclaimed about 56 hours of developer time per month, running more than 2,100 automated investigations per month. Orb reclaimed more than 160 engineering hours per month. Arcana also reclaimed roughly 14 hours per week of Sentry triage after adopting Struct.

“We investigate every Sentry alert — no exceptions. Struct made that sustainable by eliminating manual triage. Senior engineers got their time back for higher-leverage work, and the broader team adopted it without friction.” — Siva Visakan Sooriyan, CTO, Arcana

Struct ingests Sentry issues the moment they fire and correlates them with Datadog metrics, cloud infrastructure, GitHub deploy history, logs, traces, and other tools to produce a cited root-cause hypothesis. Struct connects to leading observability and alerting platforms such as Datadog and Sentry, cloud log providers, and work tools such as GitHub, Slack, Linear, and Asana as inputs, then performs cross-stack investigation across logs, metrics, traces, and the codebase. Monitors it creates live in the customer’s own observability account. Setup takes about 10 minutes. Struct is SOC 2 Type II and HIPAA compliant, and data is never used for training.

Watch Struct Investigate Your First Incident →

Approach Comparison

The three approaches below differ mainly in what they anchor on, such as co-occurrence, topology, or code intent, and that choice determines which incidents each one can resolve.

Approach What It Does Limitation Best For
Correlation-Based RCA Groups alerts by co-occurrence and outputs ranked suspects 17–42% Top-1 accuracy on the RCAEval benchmark (N=735, ACM 2025), and often mistakes correlation for causation Simple, isolated failures with a single causal chain
Causal RCA Traverses the dependency graph to find the origin event Causal RCA accuracy is bounded by the completeness of its dependency graph, because missing edges degrade causal analysis into correlation, and full topology coverage is often not achievable in heterogeneous estates. Multi-hop propagation and concurrent-change incidents
AI RCA With PR Intent Anchors investigation to what the code was supposed to do Requires PR integration and observability coverage Teams shipping with coding agents who need judgment grounded in code intent

Frequently Asked Questions

How Does AI Root Cause Analysis Interact With Existing Observability Tools?

AI RCA sits on top of your existing observability stack. Struct connects to leading observability and alerting platforms such as Datadog and Sentry, cloud log providers, and work tools such as GitHub, Slack, Linear, and Asana as inputs, then performs cross-stack investigation across logs, metrics, traces, and the codebase. It does not replace your observability tools. Monitors Struct creates live in your own observability account, so you avoid lock-in and keep your current workflows.

What Telemetry Quality Does AI RCA Require?

Structured, correlated telemetry, usually services instrumented with OpenTelemetry so logs, metrics, and traces share a common context, gives the AI enough signal to work. Without that instrumentation, the AI debugs blind. Struct flags observability gaps at the PR level and creates the monitors a change needs, which fills coverage as you ship. It cannot deduce system state from code alone, so the strongest starting point is an existing Datadog or Sentry setup with Slack alerts.

Does AI RCA Replace On-Call Engineers Or Augment Them?

AI RCA augments on-call engineers. AI handles the repetitive, toil-heavy parts of investigation and triage, which lets engineers focus on high-level architecture and strategic reliability. All AI-driven actions remain inspectable, reversible, and under human control. Autonomy in Struct is earned per capability: read-only investigation first, then monitor creation and tuning, then auto-fix PRs when confidence is high. You set the sensitivity and decide which actions need approval.

How Do You Know The AI Is Not Just Guessing?

Teams should demand an evidence trail that shows the queries run, the hypotheses tested, and the evidence for every conclusion. If a tool cannot show how it reached a conclusion, engineers will never trust it during an incident. Struct links every claim to its evidence, such as a log line, a trace span, or a deploy diff, and pairs that with a confidence score and the full investigation path. A confidence score that nobody can audit loses value, while a visible evidence trail builds trust.

Where Does AI RCA Still Fall Short?

AI RCA struggles with tribal knowledge that lives in people’s heads, flaky or misleading health probes, and human or process causes that no telemetry contains. It also struggles with novel failure modes. Accuracy is substantially higher for incidents that match known historical patterns than for new ones. The verification procedure in this article, which checks that affected traces contain the suspect span, unaffected services are clean, timing aligns with a deploy, the mechanism explains the magnitude, and the cause is falsifiable, closes much of the gap between a plausible AI hypothesis and a confirmed root cause.

Conclusion: Verify Before You Act

The difference between a trigger and a root cause often becomes the difference between a restart and a durable fix. AI root cause analysis can correlate telemetry across domains in minutes, but correlation alone cannot prove causality. A falsifiable verification procedure turns an AI suggestion into a trustworthy answer.

Your customers should not act as your monitoring system. Struct reads every PR, creates the monitors that each change needs, keeps them tuned as production evolves, and only pings you for real impact with the root cause and a proposed fix attached. Run Struct in shadow mode next to your alert channel for free.

Set Up Your AI Prod Engineer In 10 Minutes →

Read Next