In this lesson, the pull-request check you wired up in Run Evals on Every Pull Request failed for the first time, on a teammate’s change that sends the model only the reports for the place a hiker asks about. You read the failure case by case against main’s stored results, to tell whether the change made answers worse, the run was noise, or a case is flaky.
Key Points
- A red check is a question, not a verdict. The check marked two lines below their floor: the overall rate at 79.2% against its 93% floor, and the Valbrune ford at 5 of 12 against 75%. That alone can’t say whether the change made answers worse, the run was unlucky, or one case is flaky. Rerunning until the check turns green can’t tell you either. The stored results can.
- Every check saves a results file named after its commit. Each check runs every case three times. Main had three files from unchanged checks, so nine verdicts per case. The pull request’s commit had one file, three verdicts per case.
- Compare the two commits case by case.
evals/diff.jsis your compare script from earlier, reading each commit’s saved files instead of two versions. A file with failed calls is left out, and the script says which and why. It also counts each check on its own, keeping each case’s worst and best. It pairs the cases withshareChanges()from your tests, then marks two things separately: - Flaky on main: the case passed more than 20% and less than 80% of its runs on main, with nothing changed.
- Worse: even the branch’s best check passed the case less often than main’s worst check. Main’s own spread is the yardstick, and a case can be both. Both labels are leads to read, not verdicts.
- Worse cases point at the cause, and the answers confirm it. Three cases went from eight or nine of nine on main to none of three.
reportsFor()keeps a report only when the question contains the first word of its place’s name: the German question asks about “hütte 3”, with no “hut”; the ford question never says “Valbrune”; and “hut 4” pulls in the hut reports, never the ford’s. Their saved answers say there’s no recent report. - A broken safety case blocks a change on its own. Two of those cases are ford hazard questions. A hiker would hear “no report” while the warden’s latest report says the water is above knee height and the crossing isn’t recommended.
- Counts alone can’t blame or clear a flaky case. The dog question at the ford failed once in the branch’s three runs, but it also failed twice in nine on main with nothing changed, so read its saved answer: it had both ford reports, and the judge failed it for the same reason as on main.
- Flaky on main doesn’t clear a case either. The Italian question asking if hut 6 is open was flaky on main too, yet it never passes on the branch: “rifugio” has no “hut”, so the Hut 6 report is never sent. It’s a safety case too, and the Hut 6 slice still passed its tripwire, so a broken safety case blocks the change even when its slice passes. The other flaky lines stayed within main’s range, which is noise.
- Check that the drop holds, and count every run. One check is a small sample. A second check on the pull request’s commit failed again, and the four worse cases stood at 0 of 6, with answers that show why. The Wednesday dinner question dropped from 9 of 9 to 5 of 6, which the script doesn’t mark. Its failed answer had the Hut 3 report, so the change didn’t break it.
- Rerun for evidence, never until green. Rerunning for evidence is fine when every run counts. Rerunning until one passes throws the failures away.
- Worse, noise or flaky:
- A case is worse when even the branch’s best check passed it less often than main’s worst check. Rerun, and when its answers show why, block the change. A broken safety case blocks it on its own, even when its slice passes.
- If a red check shows only flaky lines within main’s range, the run was noise.
- A case that’s flaky with nothing changed needs its answers read. Quarantine it only as a tracked decision, with an owner and a review date, like the Hut 6 slice. It stays in the report, and you still read its safety lines.
These runs are from December 1, 2026. Your numbers will differ, but these cases should still drop for the same reason.