Skip to content

ci(eval): file eval-failure issues only for measured regressions, and close them on a pass - #6510

Merged
kovtcharov-amd merged 2 commits into
amd:mainfrom
kovtcharov:kalin/actionable-eval-notices
Nov 3, 2026
Merged

kovtcharov-amd merged 2 commits into
amd:mainfrom
kovtcharov:kalin/actionable-eval-notices

Conversation

@kovtcharov-amd

@kovtcharov-amd kovtcharov-amd commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Release eval issues were filed whenever the eval job wasn't green, and each one held the same template: a run link and a runbook. Most of those runs hadn't measured anything. Lanes were skipped, Claude was out of quota, or a final tag had no full sweep (#6144, #6138). None of the issues said what broke, and none closed on their own. Now an issue is filed only for a measured drop: a breached quality bar, or a scenario in the stable smoke set (each passed 90%+ of 10+ runs) that passed in the baseline and now fails. It lists each one with baseline and current scores and the judge's root cause, and a later clean run closes it. Flips outside the stable set appear in the job summary as "watch", because the baseline is a single run and about 18% of scenarios flip (#5493). A run that measured nothing files nothing; its summary says what wasn't measured and why.

Each target (flagship, agent package) gets one issue, updated in place, so issues stop piling up one per tag. The agent release eval now compares against the flagship baseline (same pool, Gemma model and judge) instead of a directory that never existed.

Closes #5197

Deliberate changes (maintainer-approved):

  • A final tag with no full sweep no longer files an issue; it's a summary line now. This reverses ci(eval): tier the flagship eval and score Qwen3.6 on Strix Halo #5535.
  • A passing run also closes the old per-tag eval-failure issues, up to its own version line.
  • Flagship tag runs score Qwen3.6, whose baseline (gaia-flagship-qwen) has no scorecards yet. Until one is committed they report "No verdict" by design, and never file or close.
🔍 Technical details
  • The verdict comes from compare_scorecards, the same diff that gaia eval agent --compare prints. Fixtures are trimmed from real public artifacts: flagship runs 41148504198 (rc1) and 41353279225 (rc3), a PASS→FAIL dispatch pair, and agent-pkg-gaia-v0.3.3.
  • The stable set is eval/ci_tiers.json's smoke tier.
  • Judge text reaches the issue only through a file (new body-file input on auto-issue). Pipes, HTML, backticks, links, images, URLs, issue references and @-mentions are all neutralised.
  • Both jobs run with contents: read + issues: write, a per-target concurrency group, and a pip cache keyed on setup.py.
  • A failed outcome-tasks gate is reported but not filed: gaia eval tasks gate uses the same exit code for a missed expectation and an unreachable backend.

Test plan

  • python -m pytest tests/unit/eval/test_eval_failure_notice.py tests/unit/test_auto_issue.py tests/unit/eval/test_eval_tiers.py tests/unit/test_eval_tag_gate.py passes
  • python util/lint.py --black --isort --flake8 --workflow-triggers --workflow-ancestor-skip --test-lanes --ci-paths --doc-versions passes
  • On the next RC tag, the File (or close) the release eval issue job writes a verdict line to its summary, and opens no issue unless a stable-set scenario regressed

… close them on a pass

Release eval issues fired whenever the eval job was not green, with a template body that named nothing, so runs that measured nothing (skipped lanes, no Claude quota, a final tag without a full sweep) filed issues like amd#6144 and amd#6138 that never closed.

util/eval_failure_notice.py now reads the run's scorecards, diffs each category against its committed baseline with compare_scorecards, and decides: regressed (file or update the target's one issue, listing each PASS->FAIL scenario with its scores and the judge's root cause), passed (close it, plus the old per-tag issues), or no verdict (summary only, naming what was not measured). eval_flagship.yml and release_agent_gaia.yml use it, with one issue per target edited in place, a concurrency guard, and judge text reaching the issue only through a body file (new auto-issue body-file input).
@kovtcharov-amd kovtcharov-amd added this to the v0.25.4 milestone Nov 3, 2026
@github-actions github-actions Bot added devops DevOps/infrastructure changes tests Test changes labels Nov 3, 2026
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Verdict: Request changes

The new rule is a clear improvement. Release evals will file an issue only when a scenario that passed in the baseline now fails, or when the quality bar is breached. The issue names each failing scenario, keeps one issue per target, and closes itself on a later pass. The decision logic is careful and well tested against real run artifacts. One thing blocks merge: the eval docs still describe the old "file an issue whenever it didn't pass" behaviour.

  • Update the eval docs in the same change. Three places in the eval reference, plus the scorecard reference, still say a tag run that doesn't pass files an issue named for the tag or release. They also say a final tag files an issue when no full sweep exists, and that a failing outcome-tasks gate files one. None of that is true after this PR. The repo rule is that a behaviour change updates every doc that describes it.
  • Decide on purpose whether a final release with no full sweep should stay silent. Before this PR, that case filed an issue (added in ci(eval): tier the flagship eval and score Qwen3.6 on Strix Halo #5535). Now it shows up only as a job-summary line, and the workflow's old comment said those annotations go unread. That may be the right trade, but the PR should say so, and the release-hardening plan that cites ci(eval): tier the flagship eval and score Qwen3.6 on Strix Halo #5535 should match.

Real-world evidence

N/A: this changes CI workflows, a CI helper script, and tests, with no user-facing CLI, API, MCP, or UI surface. There's no evidence bundle, and these jobs only run on tag pushes, so this verdict rests on static review alone. I couldn't run the test suite here because pytest isn't installed in this review environment. The PR's own test plan item for the next RC tag is the real end-to-end check.

🔍 Technical details

🟡 Stale docs that contradict the new behaviour

  • docs/reference/eval.mdx:136-140: "if it does not pass, files an issue named for the tag … a run that does not pass files an issue named for the release". Now: one issue per target, filed only on a measured PASS→FAIL or a breached bar, closed on a clean comparison.
  • docs/reference/eval.mdx:149 (verify row): "files an issue if none did". It no longer does.
  • docs/reference/eval.mdx:462: "a failing tag run files an issue naming the suite". The outcomes gate is now reported but never filed.
  • docs/reference/eval-scorecard.mdx:56: "a run that does not pass files an eval-failure issue, which a later passing release on the same major.minor line closes".
  • docs/plans/release-eval-hardening.mdx:190 says verify-final files an issue. Either update it, or add a dated note that this PR superseded it.
  • Also worth one sentence in eval.mdx: until the Qwen baseline and the gaia-gemma-4-e4b baseline are committed, flagship tag runs always end in "no verdict", so they never file and never close. That includes the legacy per-tag issues.

🟢 Final-tag "no full sweep" lost its issue (util/eval_failure_notice.py, the tier == "verify" branch). verify=failure now only adds a not_measured line. If that case is meant to stay loud, file it under its own key (say eval-unmeasured/flagship), separate from the regression issue, so it doesn't reintroduce the noise this PR removes.

🟢 Job-level concurrency can drop a verdict. cancel-in-progress: false still lets GitHub keep only one pending run per group. If three tag runs reach release-escalation together, the middle one is cancelled and its result is never recorded. That's unlikely with the current tag cadence, so a comment noting it is enough.

🟢 Dead filter (add_diff): sid in base_rows is always true for only_in_baseline, because compare_scorecards builds that list from the baseline map. The scenario_filter / not_run split already gives the behaviour the comment describes, so the filter and comment can go.

    missing = list(diff.get("only_in_baseline") or [])

Strengths

  • Untrusted judge text reaches the issue only through body-file and clean(). That escapes table pipes and HTML, neutralises @ mentions, and caps length, and tests pin each of those.
  • The verdict reuses compare_scorecards, the same diff gaia eval agent --compare prints, so CI and local comparisons can't disagree. ScorecardMismatchError becomes "not compared" rather than a false pass.
  • Fixtures are trimmed from real public runs (rc1, rc3, agent v0.3.3), so the no-verdict cases (quota stop, missing lanes, missing baseline) are tested against real data.

…al to the flagship baseline

A lone PASS->FAIL against a one-run baseline is often noise (~18% of scenarios flip, amd#5493), so an issue is now filed only when a scenario in the stable smoke set (eval/ci_tiers.json) regresses, or the quality bar is breached. Other flips are listed as "watch" in the job summary.

- The agent release eval and test_gaia_agent_eval.yml compare against tests/fixtures/eval_baselines/gaia-flagship (same pool, Gemma model and judge) instead of a directory that never existed (amd#5197).
- Judge text can no longer plant links, images, URLs or issue references in the issue body.
- The pip caches key on setup.py.
- The eval docs and release plans describe the new filing rules, including that a final tag with no full sweep reports in its summary instead of filing.
@github-actions github-actions Bot added the documentation Documentation changes label Nov 3, 2026
@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Nov 3, 2026
Merged via the queue into amd:main with commit 33c2bd8 Nov 3, 2026
28 checks passed
@kovtcharov-amd
kovtcharov-amd deleted the kalin/actionable-eval-notices branch November 3, 2026 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devops DevOps/infrastructure changes documentation Documentation changes tests Test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The flagship's release eval never compares against its baseline, so regressions go unflagged

1 participant