Stop Blaming the Latest Commit: Root Cause Analysis With AI Graph-based root cause analysis agents outperformed text-based approaches in hackathon projects built for FalkorDB's Graph Hacks event in October 2026, which drew 7,899 developers and 1,213 projects. Nihesh Rachakonda's Incident Commander agent named the exact root cause 50 of 50 times on each of six models in a benchmark of 50 injected faults, while five of those models reading the full catalog as text scored between 15 and 27; the Kaizen team's graph ranked the real commit first on 83% of 18 held-out scenarios versus 44% for keyword search and 28% for the latest commit, and its score fell from 83% to 39% without its shortestPath feature. Rachakonda noted the 50-of-50 result is partly true by construction because each fault is checked against the same rule the agent uses, and all three projects were tested on simulated, seeded or hand-written failures rather than live incidents. 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? | Question | Usual approach | Graph approach | |---|---|---| | Which commit in this deploy caused the error? | Grep the logs, guess, and often roll back the latest commit | Walk 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 reasoning | Every rival change, with the first rule it fails | | 13 alarms just fired. How many problems is that? | The engineer on call works through the flood | An 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 system | Compare 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 https://github.com/rnihesh/incident-commander · Use the app https://commander.niheshr.com · Blog https://blog.niheshr.com/incident-commander-falkordb 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. 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 . php 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 faults | Exact root cause named | |---|---| | Graph agent, each of 6 models | 50 of 50 | | Graph agent, the 20 faults from classes its prompts never name | 20 of 20 | | Full catalog in the prompt, 5 models | 15 to 27 of 50 | | Vector RAG, gpt-6-luna with text-embedding-3-small | 4 of 50 | | Vector RAG, 4 Claude models with a local hashing embedder | 5 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 https://app.falkordb.cloud/signup?cta=incident-commander-snapshot . 2. Find the commit that broke the deploy Kaizen · Kamran Pathan, Sanskar Joshi, Akshay Nazare, Yash Chandnani · See the code https://github.com/akkki007/kaizen · Blog https://www.akkki.tech/blog/kaizen-graph-root-cause 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. 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. php 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. | Method | Right commit first, 18 held-out | Right commit first, all 28 | Confidently wrong, all 28 | |---|---|---|---| | Kaizen graph score | 83% | 89% | 0% | | Same score without shortestPath | 39% | 57% | 11% | | Keyword search BM25 | 44% | 39% | 61% | | Latest commit | 28% | 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 https://github.com/Ya-shh/ravenhold · Use the app https://ravenhold.onrender.com · Blog https://yash-work.com/blog/ravenhold/ 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. 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. | Test | Result | |---|---| | Right root cause, 3 storms with 3 runs each | 9 of 9 | | Right person paged | 9 of 9 | | Unrelated alarm flagged | 9 of 9 | | Time and model cost per investigation | Median 26 s, about $0.05 | | Slowest tool on a generated 20,000-service company, no model calls | 911 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 https://www.falkordb.com/blog/code-knowledge-graph-claude-code/ and a company brain with fixed read-only queries https://www.falkordb.com/blog/company-brain-ai-agents-graph/ . 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 https://app.falkordb.cloud/signup?cta=cta-bottom Not ready to build yet? Join the FalkorDB Discord https://discord.gg/Y2mMT9VdMy to get help from our engineers, share what you build, and hear about the next Graph Hacks first.