Case Studies · Own product · December 2026
Devscope: What We Changed When Risk Ranking Failed Its Test
Our open-source Devscope case study: a preregistered comparison failed to establish an advantage over size-only review ranking, so we changed the product.
Devscope's update began with a result that changed the product. We built a history-based ranking system, tested it against a simple size baseline, and removed its predictive claim when it failed the predefined gate.
This is a case study of our own open-source tool. The implementation is a Python CLI, local MCP server and GitHub Action. The work described here is repository analysis and evaluation.
The question we tested
Could recent fixes, churn, ownership and co-change history identify the changed files most deserving review better than ranking by size? Those features sound plausible. Plausibility was the reason to run the experiment.
The engineering challenge was to reconstruct the information available when a change landed. A tool that uses future fixes as input can look successful while giving a reviewer information they could never have had.
We built the history index, time-bounded feature layer and replay harness, then preregistered a final comparison. The final P3b protocol used binary changed-file labels, paired rankings on identical units, repository caps and held-out repositories. These decisions made the product's proposed claim testable. Protocol and interpretation
What the final replay measured
The replay covered 24 months of first-parent history. A changed file was labelled when a later fix landing within 12 months blamed it. Each repository contributed at most 40 sampled units. Ten repositories were held out from fitting; seven produced eligible held-out units.
The success condition was fixed beforehand. The 95% repository-stratified paired bootstrap interval for Devscope v2 minus size-only file-level Recall@3 had to be entirely above zero.
The published result was:
- Held-out sample: 165 units in seven repositories.
- Repository-balanced difference: +0.0032.
- 95% interval: −0.0370 to +0.0512.
- Full paired evaluation: 1,060 units in 44 repositories, with 50 wins, 936 ties and 74 losses for v2.
- Full-sample mean Recall@3: approximately 0.668 for v2 and 0.679 for size-only.
The gate failed. The interval includes zero. The result did not justify shipping a prediction of which files would later be implicated in fixes. It also does not establish that repository history can never be useful. Published negative result and paired artifacts
The separate co-change check
We also checked a proposed interpretation of co-change. When a commit omitted a high-confidence partner, a fix touched that partner within 30 days in about 25.6% of events. With the partner included, the rate was about 31.8%. The reported omitted/included ratio was 0.80, with a 95% interval of 0.65 to 0.97.
That association does not show that omitting a partner prevents bugs. Larger or more active changes can confound the comparison. It therefore cannot support a causal warning that omitting the partner creates a defect.
The methodology also records a ratio-aggregation reporting correction and a full restart from empty shards. Raw rankings and partner-event rows were unchanged. Keeping that correction alongside the result makes the published numbers easier to audit.
What we changed in the product
Version 0.4.0 removed predictive ranking and the legacy file_risk tool. The current five read-only MCP tools expose changed-file context, co-change facts, traced fix history, recent owners and import blast radius. A developer or coding agent can inspect the evidence and decide whether it matters to the task.
The CLI also supports onboarding, committed PR review, imported coverage evidence, and searchable offline reports. New-warning gates are opt-in. The optional Stop hook is advisory and fail-open.
This screenshot is the repository's labelled synthetic demo. Its fixture paths and coverage values demonstrate the report format. They are separate from the evaluation corpus.
What version 0.4.1 adds
The patch release fixes the installed console entry point so explicit failing gates preserve exit code 2. That matters when a team deliberately enables review --fail-on-new: a failed policy should remain visible to CI.
The recommended starting point remains advisory review. Teams should inspect findings, agree on configuration and baselines, and then enable only the gates they intend to enforce. Coverage comes from supplied reports for the asserted PR head; unmapped lines remain unknown. Release notes
What this work demonstrates
The outcome is a narrower, inspectable tool and a public record of why its claims changed. The index and replay work still support local history exploration. The benchmark places a boundary on how we describe that information.
For a practical introduction, visit the Devscope product page. For the evaluation lessons, read Before You Trust a Code Risk Score, Compare It with Diff Size.