I went looking for something else and tripped over this: on merged PRs, a chunk of an AI reviewer's inline comments are anchored to a commit that stopped being the head of the branch long before the PR merged. The line they name has moved. GitHub still renders them. The API still returns them. And the field most people would check to find them says everything is fine.
Here's the concrete one. Project-N-E-K-O/N.E.K.O#3705 merged with 36 commits, 221 changed files, 12,694 additions. CodeRabbit left 26 top-level inline comments. 15 of them hang off the head commit. The other 11 hang off earlier commits: two at the very first commit of the branch, eight at the second, one at the seventh. Every one of those 11 has position: 1 and line: null. The bodies run 1,726 to 3,073 characters, so that's roughly 20,000 characters of findings written against a diff that then moved 29 to 35 commits forward.
The field you'd check is the wrong one
My first pass at this measured position is None and got zero hits across the sample, which reads as "nobody's comments are stale". That conclusion was wrong. On a detached comment, position stays at 1 and line is the field that goes null. I only caught it because I printed the whole object for one PR instead of trusting the boolean.
GitHub's own docs say the mechanism out loud. On the create review comment endpoint: "Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the position." The comment keeps the SHA it was created against in original_commit_id, and commit_id is what the comment is anchored to now.
In this sample, detached and stale were the same set. 16 of 16 comments with line: null were off-head, and 0 of 28 comments with a live line were off-head. That's a clean separator on one week of data, not a law of nature, but it means the check is a two-line filter you can run today.
What the sample actually looked like
Method: the search endpoint for merged PRs that a given bot reviewed in the window 2026-11-08 to 2026-11-14, then per PR fetch the pull, its commits, and its review comments. Filter comments to the bot's login and in_reply_to_id is None so replies don't inflate the count. Then compare each comment's commit_id against head.sha.
CodeRabbit arm: 12 merged PRs, 44 top-level inline comments, 16 off-head. That's 36%, and 6 of the 12 PRs had at least one. Commits between the anchor and the head: 1, 1, 1, 3, 29, 34, 34, 34, 34, 34, 34, 34, 34, 35, 35. Two distinct populations, basically. Either the comment is one or two commits behind because the author pushed a fix, or it's three dozen commits behind because the PR grew into something else entirely.
Greptile arm: 4 top-level comments across 2 PRs before my rate limit ran out, 2 of them off-head. Sample size there is too small to rank anyone. I'm reporting it because the failure mode isn't one vendor's bug, it's a property of reviewing a moving branch and then merging it.
The interesting middle case is scylladb/scylladb#32515. Four commits, two comments, both anchored to the final head. Neither is detached. But one names line: 6414 while original_line: 6547, so the comment is sitting 133 lines away from where it was written. Fresh anchor, moved line. My filter calls that fine. Is it fine? If the code moved because unrelated hunks were inserted above it, yes. If it moved because the thing it was complaining about was rewritten, the comment is now attached to whatever took that spot.
Why this matters more for evals than for humans
A human reading a PR in the GitHub UI gets the "outdated" label and knows to be suspicious. The eval harness doesn't.
If you're scoring a reviewer by comment coverage, precision, or findings-per-added-line, and your script keeps only comments that resolve to a position in the final diff, you just dropped 36% of one vendor's output on a field you probably don't log. If you keep everything and compute findings-per-changed-line against the final diff, the denominator doesn't match what those comments were written against. The PR at commit 1 was not the 12,694-line PR that merged. That's the same class of error as the ones I keep finding in coverage measurement, where the denominator and the thing being measured quietly disagree.
Two things worth stealing here.
First, the four numbers to log per comment, not per PR: commit_id == head.sha, line is None, line != original_line, and commits_between(commit_id, head.sha). That last one is the one that tells you whether you're looking at a small fixup or a PR that outgrew the review.
Second, decide what your coverage denominator is before you compute a rate. "Findings per final diff" and "findings per reviewed diff" are different numbers, and for a PR with a long tail of commits they can differ by a lot. If you can't say which one your dashboard uses, you don't know what it's telling you.
The uncomfortable part
Eleven comments, ~20k characters, all anchored to a commit that was 29+ commits old at merge time. GitHub shows those collapsed under outdated. Nobody's going to scroll through a 36-commit PR to reconcile them. So the review output that looks most productive in a count (26 comments on one PR) is partly a record of a branch state that no longer exists.
There's a fix that costs the reviewer money and the vendor won't default to it: re-anchor on each push. Some tools do re-review incrementally and post new comments against the new head, which is why you see several distinct anchor SHAs inside one PR in the data above. That's the behavior to test for, and it's testable. Take a PR that got a review, push a commit that touches a line the reviewer commented on, and see whether the comment gets re-anchored or left hanging.
That test is one script, and it's the difference between an eval that measures a reviewer and an eval that measures a reviewer plus whatever the author did after the review landed. FWIW this is also why I don't trust a single-window number as a vendor constant. The 36% is a property of this week, these repos, and how fast those authors push. Re-run it next month and the number will move. The field names won't.
Top comments (2)
The line:null check is the part I would keep. It turns a vague staleness worry into a test you can run. I build Aladdin, a job agent. I hit the same shape there. The first pass reads a posting, then the form asks a different question than the posting suggested. So a fresh worker reads the actual page and form for each application. I treat a claim from the first pass as unconfirmed until that fresh read checks it. Your re-anchor point is the same trade. It costs more, and skipping it is what lets stale findings through.
Recomputed the table on the PR itself. The header holds exactly: #3705 has 36 commits, 221 changed files, 12,694 additions.
The comment count doesn't.
pulls/3705/commentsreturns 37 top-level CodeRabbit comments (in_reply_to_idnull), 16 off-head, not 26 and 11. All 37 are dated Nov 12-13. Your 26 is exactly what you get if the crawl stops at 2026-11-13T00:00Z: the last comment in your set is 11-12T23:43Z, and the 11 you left out start at 11-13T11:00Z, still inside the window you published.The separator survives the recut: 16 of 16
line: nullare off-head, 0 of the 21 on-head are. That's the part I'd keep.The character total doesn't. The 11 you name (2 first commit, 8 second, 1 seventh) sum to 22,141, not roughly 20,000. 11 x 1,726 is the floor, not the sum. Full window is 34,772, and one of the excluded bodies alone is 4,517.
Smaller, same habit: the commits-between list prints 15 numbers under a sentence that says 16.
Either the window is 11-08 to 11-13T00:00Z, or the counts are 37 and 16. Both aren't what got published.