What context did each of my 11 cases actually need? Sorting an AI reviewer's results by hand
Nov 29, 2026 · @spacexcx I sorted 10 cases from my AI diff-reviewer experiment, plus one out-of-scope case, by how much context each one needed. The sorting is mine, done after I knew the outcomes, so it is a ledger and not a test. The tool reads a git diff and flags possible logic bugs, quoting th

I sorted 10 cases from my AI diff-reviewer experiment, plus one out-of-scope case, by how much context each one needed. The sorting is mine, done after I knew the outcomes, so it is a ledger and not a test.
The tool reads a git diff and flags possible logic bugs, quoting the line behind each flag. In my earlier post I reported 79 pull requests: four flags that maintainers fixed, all in the first 29 PRs, none in the next 50. One reader suggested the gap came from missing context. This post sorts what I have. It does not test that idea.
Correction to my earlier post. I wrote that the tool only sees the diff. That was wrong for most runs. From v0.1.0 onward, it sends the diff plus the full contents of each changed file up to a size cap. It never sees files the PR did not touch.
The tuning run (Case 1, Godot #102513, on prompt v0.1) ran before full-file context was added, so it saw only the diff. Cases 2–11 ran on v0.1.1–v0.1.3, which send the unified diff and the full text of each changed file. A single file is capped at 40,000 characters, and all full files together are capped at 300,000 characters; past either cap, remaining files fall back to diff-only. (I did not re-measure exact character counts for the larger C/C++ files like Assimp and curl, so large individual files may have hit the 40k fallback.)
The tool never sees unchanged files. A caller in another file, a type definition elsewhere, or a framework contract is invisible to it unless the changed file happens to restate it.
I gave each case one of four labels, based on what a reviewer would need to judge the flag:
I did this by hand, one case at a time, and I already knew each outcome. Some of my reasons leaned on it. I wrote "the code is legitimate" for a case I had already dismissed. That makes these labels a record of my reading, not an independent measurement.
Cases 1–10 are in scope. Case 11 is listed for completeness. Case 10 is a known regression I picked for calibration, so it is not a live PR and was never a fair "did it flag a random PR" test. No author names appear here.
The four cases an author fixed or resolved sit in three of my four classes: two inside the hunk, one in the same file, one needing another file or contract. So the table does not say "the tool only works when the answer is in the diff". With one confirmed case in the external class, I also cannot say it works there. Three cases is too few for a rate.
Three things this cannot separate. First, all four confirmed cases come from the set I picked by hand, so context class and selection are tangled together. Second, I labelled the PyTorch case after the author confirmed it, so I cannot tell whether the full-file context supplied what the tool needed. Third, a reader suggested that feeding in callers would cut false alarms. I never ran the tool with callers, so this table neither supports nor refutes that.
What the table also cannot see is any bug the tool did not flag. Case 10 is the only miss I know about, and I chose it.
The raw table, with no author names, is here: https://github.com/Spacexcx/pr-check/blob/main/cases_context.csv
Next week I will rerun the tool on PRs picked by a script, not by me. I will publish the selection rule before running it, and report every flag, including the dismissed ones. After that I want to rerun the 10 cases above with the calling code added to the input, three runs each, to see whether the output changes.