FalkorDB extends Valkey with native graph database capabilities

Learn more →
FalkorDB
Solutions
Use cases
Why FalkorDB
Developers

Stop Blaming the Latest Commit: Root Cause Analysis With AI

Root cause analysis AI: falling dominoes that end at a ringing alarm bell

Production breaks at 3 AM and the alert names a symptom. Somewhere upstream, one change among hundreds of deploys, config edits and flag flips caused it. Root cause analysis AI usually answers with a ranked guess, and you can't check what it ruled out. Graph Hacks, FalkorDB's online hackathon in October 2026, drew 7,899 developers and 1,213 projects, and some of the sharpest made their agents prove the answer on a graph.

On 18 held-out scenarios the Kaizen team built, its graph ranked the real commit first 83% of the time, against 28% for the latest commit. In Nihesh Rachakonda's own benchmark of 50 injected faults, his graph agent named the exact root cause 50 of 50 times on each of six models. Five of those models also tried reading the full catalog as text, and they got 15 to 27. He says the score is partly true by construction, because each fault is checked against the same rule the agent uses.

Key takeaways. Incident Commander's graph agent scored 50 of 50 on its builder's benchmark with every model tried, and the same models reading the catalog as text got at most 27. Kaizen ranked the real commit first on 83% of 18 held-out scenarios, against 44% for keyword search and 28% for the latest commit, and it never confidently named the wrong one. Without its shortestPath feature, Kaizen's held-out score fell from 83% to 39%. Ravenhold found the root cause and the right person to page in 9 of 9 runs on three hand-written alert storms, at a median of 26 s and about $0.05 per investigation.

What is root cause analysis AI?

Root cause analysis AI uses AI agents to trace a production failure back to the change or system that caused it, and to show the evidence for that answer.

FalkorDB fits because the question is about paths between a change and a symptom. shortestPath and algorithms like PageRank and WCC run from the same Cypher as every other query. GRAPH.COPY makes throwaway copies cheap enough to rehearse a fix on one. GRAPH.RO_QUERY gives an agent's lookup tools a read-only way in.

Why can't logs and text search name the change that broke production?

QuestionUsual approachGraph approach
Which commit in this deploy caused the error?Grep the logs, guess, and often roll back the latest commitWalk the call path from the function that threw to the functions each commit changed
What did the agent rule out?A ranked guess and a paragraph of reasoningEvery rival change, with the first rule it fails
13 alarms just fired. How many problems is that?The engineer on call works through the floodAn alarming system with nothing alarming beneath it is the root candidate
Who should we page?The team's on-call engineer, even with no history on that systemCompare who resolved incidents on it with who is on call

How did Graph Hacks teams find root causes with a graph?

Each project draws the line between agent and person differently, so I call it out each time. All three are hackathon builds, tested on simulated, seeded or hand-written failures.

1. Prove one change did it, and rule out every other suspect

Incident Commander · Nihesh Rachakonda · See the code · Use the app · Blog

Latency starts on orders at 10:00, then on checkout at 10:02. Four changes look suspicious. A deploy on checkout at 09:50 is out, because checkout wasn't the first to fail. A config change on orders at 09:45 is out, because this rule says config can't produce latency. A deploy on orders at 10:05 came too late. Only the 09:41 deploy on orders survives, and with it removed, nothing else qualifies.

The project runs on a simulated company with 858 service-region nodes, 5,686 changes and 27,878 edges. Facts carry a valid time and a recorded time. For each alert, GRAPH.COPY builds two snapshots in about 0.27 s, one with what was true then and one with what was known then. Verdicts use the second. The agent never writes Cypher. It registers a hypothesis in a hash-chained ledger graph, then runs the stored query that could refute it. My favorite part is Verify, which re-runs every proof, so tampering with the graph flips the affected ones to FALSIFIED.

The docs show no approval step before the agent acts, and no step that merges. It rehearses the rollback on a cloned graph, and if that clears, it opens a rollback PR and pages the on-call person. If two suspects qualify, or symptoms stay explained after the rehearsal, it pages the person and opens no PR. Without GitHub and Discord tokens, the PR and page are simulated.

Incident Commander demo

This is the rule, in the shortened form from Nihesh's write-up. The ... is his, and the full query is in api/src/ic/tools/predicate.py.

MATCH (c:Change {id: $entity_id})-[:CHANGES|EXPIRES_ON]->(home:Service)
MATCH (:Incident {id: $incident_id})-[:HAS]->(sym:Symptom)-[:ON]->(s:Service)
WITH c, home, sym, s, shortestPath((c)-[:IMPACTS*]->(s)) AS path
...
RETURN c.id AS id, CASE
  WHEN event_time >= earliest      THEN 'after_onset'
  WHEN NOT home_fails_first        THEN 'origin'
  WHEN size(unreached) > 0         THEN 'coverage'
  WHEN size(out_of_order) > 0      THEN 'order'
  WHEN size(bad_signatures) > 0    THEN 'signature'
END AS failed_clause

Nihesh built the benchmark himself and ran it once per model, with live LLM calls on a copy of the graph for each fault. In every row one model drives each approach, and only what it can look at changes. A prediction counts only if it names the exact root-cause id.

Approach, 50 injected faultsExact root cause named
Graph agent, each of 6 models50 of 50
Graph agent, the 20 faults from classes its prompts never name20 of 20
Full catalog in the prompt, 5 models15 to 27 of 50
Vector RAG, gpt-6-luna with text-embedding-3-small4 of 50
Vector RAG, 4 Claude models with a local hashing embedder5 to 8 of 50

Read the 50 with care. Each fault is checked at injection against the same rule the agent uses, and each decoy is built to fail at least one clause. So the agent finds the one qualifying change among 3 to 6 timing-matched decoys. In Nihesh's words, the result "does not show the predicate models real outages." The text catalog also holds declared dependencies only, with no observed traffic.

In a separate run with no LLM, six incidents behind one hidden dependency took 9 tool calls for the first and 5 for each of the rest. Once contradictions weakened that learned edge, the next incident took 9 again.

He also loaded the same world into Postgres. On 8,335 services, shortest path took a median of 1.01 ms on a prebuilt FalkorDB snapshot and 10.16 ms with a recursive CTE, with the same answers on all 50 inputs. On 858 services it was 0.79 ms against 1.77 ms. He writes that "Raw speed was not the deciding factor."

In the builder's words. "At 3 AM that can take hours, and AI assistants usually return a ranked guess with no way to check what was ruled out." Nihesh Rachakonda, Incident Commander

Try it. Copy your service graph with GRAPH.COPY, delete every edge that wasn't valid at alert time, and run your checks there. Start free on FalkorDB Cloud.

2. Find the commit that broke the deploy

Kaizen · Kamran Pathan, Sanskar Joshi, Akshay Nazare, Yash Chandnani · See the code · Blog

A deploy goes out with several commits, and minutes later payments fail. The on-call engineer greps logs and usually rolls back the latest commit. A commit that touches toCents matters when toCents is called by the function that is throwing, and keyword search can't see that.

Kaizen gives each repository its own graph of functions, calls, endpoints, commits, deployments and errors. Commits link to the functions they changed, and errors link to the function that threw them. Ten features score each commit in the deploy. Each one is a Cypher query, and Python only applies the weights. The LLM never sets a score. It writes the explanation, and a validator rejects any node id that no tool returned. Without a stack-level link and a clear margin, Kaizen answers "ambiguous" instead of naming a culprit.

Kaizen detects the failure and alerts Slack on its own. Then it proposes a revert, and the repo's GitHub Actions run the tests and replay the failing traffic in staging. Only a verified fix can be approved, and only by someone with push access. A person merges by default, and an optional setting lets Kaizen merge after a recorded approval. Kaizen never deploys. The repo's verification notes list a live revert PR on the demo app and a live LLM evaluation as not claimed.

Kaizen demo

Here is the distance query from the team's cookbook. It walks calls in both directions, so run it on FalkorDB 6.0.1 (falkordb/falkordb:6.0.1). On their fixture, the commit that changed the throwing function comes back at 0 hops, and a docs-only commit has no path.

MATCH (i:Incident {id: $inc})-[:evidenced_by]->(:Error)-[:thrown_in]->(t:Function)
MATCH (i)-[:candidate]->(c:Commit)-[:modifies_fn]->(f:Function)
WITH c, f, t, shortestPath((f)-[:calls*0..6]-(t)) AS p
RETURN c.sha, f.id, t.id, length(p) AS hops ORDER BY hops

The team built 28 variants of 10 failure scenarios with distractor commits, and every method ranks the same candidates. This is a replay. The ranking queries run on a graph, with no LLM and no live failure. Weights were never tuned on the 18 held-out variants.

MethodRight commit first, 18 held-outRight commit first, all 28Confidently wrong, all 28
Kaizen graph score83%89%0%
Same score without shortestPath39%57%11%
Keyword search (BM25)44%39%61%
Latest commit28%32%68%

The 89% drops to 83% on the held-out variants, with a 95% interval of 61% to 100%. All the held-out misses are one scenario, a bug in orders that shows up in payments as an HTTP 422 with no exception. Kaizen returns "ambiguous" there, with the culprit in its top 3.

The 68% describes this test, not your production. The team made the culprit the latest commit in a third of the variants, and put the error keywords in its message in half, so "neither baseline is set up to lose."

Detection to a ranked suspect took 194 ms at p50 on a developer laptop, not counting the 60 to 90 s before an incident opens.

In the builder's words. "Logs tell you what failed, Git tells you what changed, and nothing connects the two." The Kaizen team

Try it. Add modifies_fn, calls and thrown_in edges for one repository, then run the distance query on your last incident. If your instance rejects the undirected path, walk one way with shortestPath((t)-[:calls*0..6]->(f)).

3. Turn an alert storm into one cause and the right person to page

Ravenhold · Yash Shrivas · See the code · Use the app · Blog

Thirteen alarms fire across ten systems at Ravenhold Pay, a fictional payments company. The on-call engineer for the payments database has 0 commits and 0 incidents on it. The person who fixed it last time moved to another team in June.

Ravenhold keeps systems, people, customers, past incidents, runbooks, chats and tickets in one FalkorDB graph of 116 nodes. Three agents, a Commander on Claude Sonnet 5.5 and two workers on Claude Haiku 5.5, hand off work through Task nodes and call 23 graph tools over MCP.

The agents open incidents, file follow-up tickets and close incidents themselves. Pages, fixes and runbook changes wait for a person to approve them. Nothing leaves the graph. An approved page is a node, so nobody gets called, and an approved fix changes the state stored in the graph.

Ravenhold demo

This query collapses the storm. An alerting service with no alerting dependency beneath it is a root candidate, and everything that depends on it is explained.

UNWIND $hot AS cid
MATCH (c:Service {id: cid})
OPTIONAL MATCH (d:Service)-[:DEPENDS_ON*1..6]->(c) WHERE d.id IN $hot
WITH c, collect(DISTINCT d.id) AS explains
OPTIONAL MATCH (c)-[:DEPENDS_ON*1..6]->(u:Service) WHERE u.id IN $hot
RETURN c.id AS service, explains, count(DISTINCT u) AS alerting_below   // alerting_below = 0 → root candidate

Yash scored live agent runs against answers computed from the graph.

TestResult
Right root cause, 3 storms with 3 runs each9 of 9
Right person paged9 of 9
Unrelated alarm flagged9 of 9
Time and model cost per investigationMedian 26 s, about $0.05
Slowest tool on a generated 20,000-service company, no model calls911 ms

The data is hand-written, with facts planted so the answers can be checked, and no approach without the graph was tested. So this can't show how much the graph adds. Yash says to read these as "passed in every run we made", not as accuracy rates. In an early run, one of two impact answers named 0 of 8 customers, and a change to the answer format got 8 of 8 on both re-runs. With no alerts firing, a text-only question ranks the payments database above the real cause, because it has more past incidents.

In the builder's words. "Every answer comes with the path through the graph that produced it." Yash Shrivas, Ravenhold

Try it. Link each firing alert to its service, run the query above on your dependency graph, and look for alerting_below of 0.

If you want to keep going, read the code knowledge graph tutorial and a company brain with fixed read-only queries.

Frequently asked questions

Can you trust root cause analysis AI to name the right change?

Check whether it shows evidence you can re-run. Incident Commander stores each proof as a Cypher query, and Kaizen shows the query behind each score. Both refuse to name a culprit when the evidence doesn't single one out.

Why use a graph instead of vector search for root cause analysis?

Root cause depends on paths and timing, which text similarity doesn't capture. In Incident Commander's benchmark of 50 injected faults, vector RAG named the exact cause 4 to 8 times, while the graph agent got all 50. The builder notes that each fault is checked against the same rule the agent uses.

Is the latest commit usually the cause of an outage?

These projects can't tell you how often that happens in real production. In Kaizen's 28 test variants, blaming the latest commit was wrong 68% of the time, but the team chose how often the latest commit was the culprit, which was a third of the variants.

How much can an AI on-call agent do without a person?

It depends on the project. Incident Commander opens a rollback PR and pages someone after its rehearsal clears, with no approval step in its docs. Kaizen proposes a revert and verifies it, and a person with push access must approve before any merge. Ravenhold opens incidents and files tickets itself, while pages and fixes wait for a click.

Were these projects tested on real outages?

No. Incident Commander injects faults into a simulated company. Kaizen replays seeded failures from its own demo app, ShopLite. Ravenhold uses a hand-written fictional company. None of their READMEs reports results from a real production outage.

Trace your first outage

Every project here runs on the same FalkorDB you can start as a free cloud instance, or with one Docker command, docker run -p 6379:6379 -p 3000:3000 -it --rm falkordb/falkordb:latest. Load your services and last week's deploys, then ask which changes can reach the service that alerted.

Start free on FalkorDB Cloud

Not ready to build yet? Join the FalkorDB Discord to get help from our engineers, share what you build, and hear about the next Graph Hacks first.

Author