Inquest: Log-Guided Root-Cause Code Localization with a Staged Agent
Yuvraj Sehgal, Sneh Patel, Mahsa Panahandeh, Naser Ezzati-Jivan
Abstract
When a production issue is reported, engineers get a description and some logs, but no failing test and no way to reproduce the fault. The logs show where the failure was noticed, not where it was caused: in 49% of the real reports we study, the text names none of the files that the fix later changed. We built a benchmark for this setting from two public datasets and 27 open-source projects (Apache, Red Hat, MongoDB, MariaDB, Qt and Sakai). It holds 38,001 resolved issue reports with their pasted logs, the code as it was while the bug was still present, and the files the fix changed. We present INQUEST, an agent that finds the faulty code using a 27B open-weights model. Code, not the model, controls the procedure. It first gathers the evidence, including the files fixed in similar past issues that were resolved before the report was filed. The model then makes only three bounded decisions: which files to open, what role each file plays in the failure, and how to rank them. On 26,544 evaluation reports, INQUEST ranks a changed file first for 68.6% and in the top five for 85.9%, names the correct module for 90.2%, and ranks a changed function first for 53.8%. On the reports that name no faulty file, it reaches 52.8% and 73.6%. A free agent loop with the same model and tools finds files equally well, but names the faulty function 14 points less often. On a 1,000-report sample, INQUEST beats our reimplementations of two published agents by 7 and 20 points of top-1 accuracy (4 and 16 counting only the reports those agents answered), and the same model used as a re-ranker by 6. We report the cost of every system and the results that go against us, and we release the benchmark, both systems and every run transcript.
Create a lesson
Related papers
CLEW: Log-Anchored Backward Tracing for Root-Cause Code Localization
Shared title terminology · Wenji Bai, Muhammad Waseem, Jaakko Peltonen et al.
FlowPlan: Reducing the Token Cost of Coding Agents with Abstraction-Guided Planning and Verification
Shared title terminology · Melika Sepidband, Jiho Shin, Song Wang et al.
Markdown Is Not a Firewall: four coding agents, one rules file, four boundaries
Shared title terminology · Sandeep Dhuri
How developers split roles among them and a coding agent and what "collaboration" means
Shared title terminology · Linus Ververs, Helya Dadkhah, Lutz Prechelt
SWE-Recreation: Benchmarking Coding Agents for Software Recreation
Shared title terminology · Zhiyao Xu, Zhanjie Ding, Hongyao Yu et al.
Characterizing and Detecting Unfaithful Work Reports by Coding Agents
Shared title terminology · Wenhao Yang, Runzhi He, Minghui Zhou et al.