Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Anchored Review Findings: Reject Model Comments That Cite No Diff Line

Описание и применение

Валидация выводов модели по реальным строкам diff снижает время ревью.

Задача

Model reviews often produce findings that reference lines or code not present in the actual diff, wasting maintainers’ time.

Результат

The gate removes all findings that do not anchor to a real added line, reducing reviewer effort and improving review quality.

Рабочий процесс

  • Export a zero‑context diff with git diff -U0 limited to source files.
  • Send the diff and a review prompt to an OpenAI‑compatible chat endpoint, receiving JSON output.
  • Strip any code fences from the model’s response.
  • Run the anchor_gate.py script to verify each finding’s file, line number, and quote against the diff; drop findings that fail the checks.
  • Proceed with the remaining findings for human review.

Доказательства

A review with ten findings and four invented anchors is worse than no review. Maintainers spend the first ten minutes disproving fiction.

Источник

That check is a script. It verifies file path, line number, and quoted text against the diff. Findings that fail are dropped before any human reads them.

Источник

The workflow below keeps the normal open‑source loop: reproduce the bug, patch it, test it. It adds one deterministic check to the review step.

Источник

  • Дата записи: 2026-10-26T13:11:36.715Z