Engineering record

Software · 2025

AI-Assisted Defect Localisation

Using a local model as a first-pass reviewer to narrow suspect regions in a large codebase, with human verification of every suggestion.

debuggingstatic-analysisllm

Context

A intermittent failure in a large repository had no reliable reproduction. Manual reading was slow and the suspect surface was broad.

Method

The failure signature and stack traces were fed to a local model along with ranked candidate files selected by symbol proximity and recent churn. The model proposed hypotheses with file and line references.

Each hypothesis was converted into a concrete check — an assertion, a log injection or a narrowed reproduction. Only hypotheses surviving a check advanced.

Outcome

Candidate narrowing dropped from days of reading to hours. The model's top suggestion was wrong; its fourth led to the real defect, a lifetime bug in a callback registration path. The regression test reproduces it reliably now.

Notes

Local inference kept proprietary source on-premises. Human verification remained mandatory throughout.