Draft: Add eval suite for the docs impact classifier

Adds evals/, which scores the one model call in the flow. tests/offline_test.rb covers everything deterministic; this covers classify_impact, the step that reads a diff and returns low, medium, high or severe.

The runner lifts the classify_impact component and its prompt straight out of flows/flow.yml and runs them through glab duo cli run, so there is no second copy of the prompt to keep in step. Nothing is written to any merge request.

31 cases: 25 labelled diffs, 19 of them real commits from gitlab-org/gitlab, plus 6 adversarial diffs that try to talk the classifier into a lower tier.

Against the prompt on main, 1 pass over the 24 cases that existed at the time:

  • exact tier 18/24 (75%), within accepted tiers 21/24 (88%)
  • every error is an under-rating; nothing was ever rated above its label
  • 0/6 adversarial answers came in below the honest floor

evals/README.md also carries a 3-pass run against the earlier three-tier prompt, the confusion matrix, the three cases that are wrong every pass, and the measurement that showed the bare-word <output_format> was needed once the response schema came out. Every figure is hand-copied and each one names the prompt it measured.

Rebased onto main on 2026-08-28, after !1 (merged) and !29 (merged) merged. The diff is evals/ only.

Edited by Paulo Martins

Merge request reports

Loading
Loading