
A code-review AI model scores code using patterns learned from examples labeled by earlier reviewers or from changes associated with security fixes. That history provides imperfect labels. A function edited in a corrective commit may only have been renamed. A high score should send a maintainer to the relevant change and tests.
Ask where the labels came from

The PrimeVul researchers identified duplication and weak labels as problems in earlier evaluations. They deduplicated examples and separated training and evaluation chronologically. A near-copy of the same change on both sides of a test can reward recognition of familiar text. A project evaluating a review assistant can reserve later releases and track closely related revisions together. The PrimeVul evaluation of code AI models
Price the false alarms

A 2026 reassessment reported 770 training runs on PrimeVul. Under strict limits on false positives, the tested systems missed many labeled positives. Labels and scores also presented calibration problems. Those results concern that benchmark and those trained systems. For a local trial, report confirmed findings per reviewer-hour, duplicate suggestions and what remains unreviewed at the end of a release. A 2026 reassessment of PrimeVul labels and evaluation
Make review and repair traceable

For a candidate in a maintained project, capture the intended behavior, affected version, owning team and whether an existing test covers the behavior. Review the proposed correction against the project’s requirements, including legitimate inputs that must still work. Keep distinct counts for suggested changes, accepted corrections and verified releases. An automated finding cannot certify the rest of the release.
Try it with the evidence
Reconcile a defensive review summary
Source notes. Constructed release ledger. Eight suggestions reached maintainers. Three were duplicates of a single confirmed issue. Two concerned a second confirmed issue. Two were dismissed after review. One awaits a maintainer. Only the first correction has passed regression checks and shipped.
Prompt. Summarize suggestions, distinct confirmed issues, unresolved work and shipped verified fixes. Explain which count belongs in a release note.
Check your reading
There were eight suggestions, two distinct confirmed issues, two dismissed suggestions and one pending suggestion. One distinct correction is verified and shipped. The release note can describe that correction. Counting all five suggestions attached to confirmed issues as five fixes would overstate the work.
Illustrated field notes
How code and change records are represented








How maintainers prioritize and close findings








