Skip to content

ci(eval): tier the flagship eval and score Qwen3.6 on Strix Halo - #5535

Merged
kovtcharov-amd merged 7 commits into
mainfrom
ci/eval-tiers
Oct 21, 2026
Merged

kovtcharov-amd merged 7 commits into
mainfrom
ci/eval-tiers

Conversation

@kovtcharov-amd

@kovtcharov-amd kovtcharov-amd commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

Every RC tag ran the whole flagship sweep: about 28 Strix Halo machine-hours, 13 of 14 machines for 3.3 h, and an estimated 130M Claude tokens, more than two accounts delivered on rc2. Now an RC runs a 30-scenario smoke tier on 3 machines, only the RC you nominate for promotion runs the full sweep, and a final tag checks that sweep exists instead of re-running it. The Strix Halo pool also starts scoring Qwen3.6-35B-A3B, the model gaia init installs on that hardware, against its own baseline. Implements the "Cost and tiering" section of #5493.

Per release cycle (3 RCs + final) Before After (#5493 estimates)
Strix Halo machine-hours ~113 (4 full sweeps) ~37 (2 smokes, 1 full sweep, 2 weekly backlog runs)
Claude tokens ~520M ~170M
A non-promoted RC 13 machines, 3.3 h, ~130M tokens 3 machines, ≤1 h target, ~19M tokens

Measured on rc2's commit: the smoke took 3 machines, 2.0 machine-hours and 45 min wall time (run). rc2's own full sweep took 13 machines, 22.1 machine-hours (cut short when the quota ran out) and 2 h 38 min. The smoke ran before #5525 started recording real Claude usage, so the token figures stay estimates; the next tier run will measure them.

Worth a look: on Qwen the smoke passed 27 of 30. The 3 failures are all protected refusal scenarios that pass at least 93% on Gemma: files_sandbox_refusal_system, mem_credential_refusal, shell_denial_reported_as_denial. It's one run, so re-run before calling it a Qwen regression.

  • Tiers. RC tag → smoke. [full eval] in an RC's annotated tag message (or -f tier=full) → full sweep. Final tag → verify only. [skip eval] still works.
  • Weekly backlog lane, Sunday 06:17 UTC, 3 machines: the 26 non-protected always-fail scenarios (which leave the full sweep) plus the 15 noisiest (which stay in it), with a rolling trend artifact so progress toward 80% is visible. It skips itself while any other flagship run holds the pool. Owner: @kovtcharov-amd.
  • Nothing drops out. Protected scenarios (security, honesty, injection, adversarial, error recovery, resilience) never leave the full sweep, and a check proves smoke + full + backlog still cover all 343 runnable scenarios.
  • Qwen on Halo, compared only with Qwen. Its baseline is empty until a real full sweep fills it, so runs say "no Qwen baseline yet" and never fall back to Gemma's. A dispatch can still pick -f model=Gemma-4-E4B-it-GGUF to re-run part of a Gemma tag run, as rc3 does. Gemma moves to the Strix Point pool (ci(eval): score Gemma on Strix Point, refuse cross-model compares #5511); the Halo full sweep keeps no Gemma coverage by default.
  • Quota exhaustion fails every run now, tag runs included (the zero-token check from ci(eval): targeted flagship dispatch by category and scenario #5513).

Test plan

  • pytest tests/unit/eval tests/unit/test_eval_tag_gate.py tests/test_eval.py: 1686 passed, 30 skipped
  • python util/eval_tiers.py check: 343 of 343 runnable scenarios covered; 18 never-in-CI scenarios listed with their reason
  • python util/lint.py --all passes; actionlint reports only the existing runner-label notices
  • Tiny Qwen dispatch on rc2's commit (run): judged PASS, session ran Qwen3.6 as pinned, compare reported "no Qwen baseline yet". The first try caught a warm pull that never happened and stopped in preflight; fixed in this PR
  • Smoke tier on rc2's commit 0b14d74 plus this PR's harness commits (run): 3 machines, 45 min, 30 scenarios all on Qwen, no zero-token errors
🔍 Technical details
  • The first commit is ci(eval): score Gemma on Strix Point, refuse cross-model compares #5511's pin-and-refuse core, taken verbatim (eval_gaia_home.py pin-model, gaia eval agent --agent-model, --compare exit 3 on a model mismatch) so both branches carry one implementation. ci(eval): score Gemma on Strix Point, refuse cross-model compares #5511's Strix Point workflow, reusable lane and lane-matrix changes are left to it. Whichever lands second drops the duplicate hunks.
  • eval/ci_tiers.json holds the smoke and backlog machines, each scenario's why (pass rate, runs, timeouts, protected reason), the model → baseline map, and the owner. util/eval_tiers.py decides the tier, builds the matrix (reusing ci(eval): targeted flagship dispatch by category and scenario #5513's scenario selection), checks coverage from the matrices it would emit, and verifies a final tag through a 90-day flagship-tier-full marker artifact. util/eval_backlog_trend.py rolls the trend forward.
  • A smoke machine holds memory beside other non-gaia categories; the job runs with memory off and turns the store on for memory alone (EVAL_MEMORY_CATEGORIES), so no category runs under different conditions than in the full sweep.
  • Outcomes (gaia eval tasks) runs only with the full sweep, to keep the smoke at 3 machines.
  • Gemma on Strix Point: python util/eval_tiers.py scenarios --tier smoke prints the same 30 ids. Point runs scenarios about 3x slower, so the full smoke is roughly 4 h on one Point machine, or about 2 h for the 13 protected ones.
  • rc3 is unaffected: a dispatch on --ref v0.25.1-rc3 runs the workflow as it is at that tag.

A scorecard never said which local model produced it, so a run on one
model could be diffed against a baseline captured on another and report
the model swap as regressions. This is the pin-and-refuse core of #5511,
taken verbatim so the two branches carry one implementation: each
category's GAIA home pins default_model, gaia eval agent --agent-model
discards any scenario whose session ran another model, the scorecard
records config.agent_model, and --compare exits 3 against a baseline
whose meta.json names a different agent model or eval model.

The Strix Halo tiers need it to score Qwen3.6 explicitly instead of
whatever a fresh GAIA home resolves to.
Every RC tag ran the full flagship sweep: about 28 Strix Halo
machine-hours and an estimated 130M Claude tokens, more than the two
Claude accounts delivered on rc2. Now an RC runs a 30-scenario smoke
tier on 3 machines, and only the RC nominated for promotion ([full
eval] in its tag message, or a dispatch with tier=full) runs the full
sweep. A final tag no longer re-runs the eval; it checks that a full
sweep measured its commit or one of its RCs and files an issue if
none did.

The smoke list, the weekly backlog and the reason for each scenario
are in eval/ci_tiers.json, picked from #5493's per-scenario data. The
26 scenarios that always fail and are not protected move from the
full sweep to a weekly backlog lane (Sunday 06:17 UTC, 3 machines,
with a rolling trend artifact), along with the 15 noisiest, which
also stay in the full sweep. Protected scenarios (security, honesty,
injection, adversarial, error recovery, resilience) never leave it.
util/eval_tiers.py check proves, from the matrices the workflow would
build, that smoke + full + backlog still cover all 343 runnable
scenarios; the lanes job re-runs it before any machine is taken.

The Strix Halo pool now scores Qwen3.6-35B-A3B, which gaia init
installs on that hardware, pinned per category and checked per
scenario. It compares only against its own baseline, which is empty
until a real full sweep fills it, so runs say "no baseline yet". A
dispatch can still pick Gemma-4-E4B to re-run part of a Gemma tag run
against the Gemma baseline. Every run now fails when scenarios error
before Claude spends a token, tag runs included.
@github-actions github-actions Bot added documentation Documentation changes devops DevOps/infrastructure changes cli CLI changes eval Evaluation framework changes tests Test changes performance Performance-critical changes labels Oct 21, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Verdict: Request changes — one small fix, then this is good to merge.

This PR cuts RC eval cost by running a 30-scenario smoke tier, keeping the full sweep for the RC you nominate, and making a final tag check for that sweep instead of re-running it. It also starts scoring Qwen3.6 on Strix Halo against its own baseline, and --compare now refuses to diff runs measured on different models. The tier design and the coverage check are solid. One gap undercuts the main promise:

  • A cancelled full sweep still counts as "this release was measured." The tier marker is uploaded even when the sweep was cancelled partway, and the final-tag check accepts any finished run that has the marker. A final tag could then pass verification on a sweep that scored almost nothing. Skip cancelled runs in the check, or don't upload the marker when the lanes were cancelled.
  • The new --agent-model flag and --compare's new exit code 3 aren't in the docs. They appear only in --help and in the eval-CI prose. Add them to the eval reference page.

Real-world evidence

The evidence stage ran every surface it could reach on ubuntu-latest, and each one behaved as intended:

--compare: matching models → exit 0; one PASS→FAIL → exit 2;
  agent model Qwen vs Gemma baseline → exit 3; judge differs → exit 3; no agent_model recorded → exit 3
[ERROR] Not comparable with the baseline (tests/fixtures/eval_baselines/gaia-flagship/meta.json): the baseline's agent model is 'Gemma-4-E4B-it-GGUF' but the current run used 'Qwen3.6-35B-A3B-GGUF'. …
_read_session_model -> 'Qwen3.6-35B-A3B-GGUF'                     (live Agent UI backend, port 4299)
pin='Qwen3.6-35B-A3B-GGUF' -> status=PASS
pin='Gemma-4-E4B-it-GGUF'  -> status=INFRA_ERROR …
python util/eval_tiers.py check
  smoke 30 | full 317 | backlog 41 | union 343 of 343 runnable: every one covered
eval_gaia_home.py pin-model (env exported) → "GAIA home /tmp/ev/ghome runs Qwen3.6-35B-A3B-GGUF.", exit 0
eval_gaia_home.py pin-model (env not exported) → "NOT PINNED: …", exit 1

Some surfaces were not run here, so the verdict on them rests on static review:

  • A real scored eval turn needs Lemonade and Claude-driven scenarios. It is pending the strix-halo lane, as are the two unchecked Test plan items (the Qwen dispatch and the smoke wall time).
  • decide on tag or schedule events, verify-final, and the workflow YAML itself all call the GitHub API or need the runner pool, so they were not exercised either.
🔍 Technical details

🟡 A cancelled full sweep satisfies verify-final (util/eval_tiers.py:553, .github/workflows/eval_flagship.yml:2430)
aggregate runs under always() whenever agent-eval wasn't skipped, and "Record the tier" uploads flagship-tier-full whatever LANES_RESULT is. verify_final only filters on status == "completed", and a cancelled run is completed with conclusion: cancelled. So a full sweep cancelled after one lane started will clear a later final tag. A failed run is still a measurement (regressions fail the job), so filter on cancellation only:

            if (
                str(run["id"]) == str(current_run)
                or run.get("status") != "completed"
                or run.get("conclusion") == "cancelled"
            ):

Add a test_eval_tiers.py case with a cancelled run that carries the marker.

🟡 --agent-model and --compare exit 3 are undocumented (src/gaia/cli.py:2186)
CLAUDE.md asks for user-visible CLI flags in the docs. docs/reference/eval.mdx already documents --require-complete near line 203. Add --agent-model and the 0/2/3 exit-code contract there, because local users comparing against the committed Gemma baseline will now hit exit 3 on a Qwen machine.

🟢 Nits

  • The weekly busy check skips other schedule runs. A previous week's backlog still running would therefore not block the new one, and the second run just queues on the per-lane concurrency group. This is harmless, but the docstring says "except schedules" without saying why (util/eval_tiers.py, busy_runs).
  • write_default_model overwrites config.json outright. That is fine because check has already proven the home empty, but a one-line note would stop a future caller from reusing it on a non-empty home.

Strengths

  • Coverage is computed from the matrices the workflow would actually emit, not from the tier lists, so a matrix-building bug shows up as a coverage gap. Protected categories are enforced in code, not by convention.
  • The pin is enforced in three places: the GAIA home, per-scenario session read-back, and baseline meta.json versus ci_tiers.json. Each place fails loudly with a remedy, and nothing falls back to Gemma's baseline when Qwen's is empty.
  • FAIL_ON_ZERO_TOKENS now covers tag runs too, so a run that hit an exhausted quota no longer reports as a clean pass.

tests/unit/eval now reads eval/ci_tiers.json, the flagship baselines and
the two new util scripts, so a PR touching only those must still run
the lanes that test them.
The warm script returns early on an already-healthy server, so calling
it a second time to warm Qwen3.6 pulled nothing, and the preflight
stopped the lane. Pull through Lemonade's API instead, and fail the
step with the reason when the pull does.
A full sweep cancelled after one lane still uploaded its tier marker, so
a final tag could pass verification on a run that scored almost nothing.
A failed sweep still counts: report mode fails on regressions, and it
measured the release. Also documents --agent-model and --compare's exit
codes, including 3 for a run on a different model than its baseline.
@kovtcharov-amd

Copy link
Copy Markdown
Collaborator Author

Both fixed in bfe5f19: a cancelled full sweep no longer satisfies a final tag (a failed one still does, since report mode fails on regressions), with a test for each, and --agent-model plus the 0/2/3 compare exit codes are now in the eval reference page.

🔍 Technical details

Main moved the scenario loop into _execute and made runs resumable
(#5533). The agent-model pin now follows that shape: _execute passes
it to every scenario, _finish records the model the run may claim, and
a resumed run keeps its own pin and refuses a different --agent-model,
the way it already refuses a different --model.
@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Oct 21, 2026
Merged via the queue into main with commit e3f221c Oct 21, 2026
47 checks passed
@kovtcharov-amd
kovtcharov-amd deleted the ci/eval-tiers branch October 21, 2026 23:06
kovtcharov-amd added a commit that referenced this pull request Oct 30, 2026
The plan's cost-and-tiering section has largely landed since it was written: the RC smoke tier, nominated full sweep, weekly backlog lane and Qwen3.6 scoring (#5535), real Claude usage per scenario (#5525) and quota stop-and-resume (#5533). The status line, the implementation table and the stale "isn't recorded" and "v0.25.1 final" claims now say so, and two answered open questions are dropped.

Also fixes the two contradictions the review flagged: the scenario eval could have caught 2 escapes, not 3 (#5413 needs a scripted model), and item 3 adds re-runs to the existing Strix Halo eval.
kovtcharov-amd pushed a commit that referenced this pull request Oct 30, 2026
#5535 landed this PR's model pin and cross-model compare refusal on main,
so runner.py and cli.py take main's version. The Gemma-on-Strix-Point lane
stays. Drops a duplicated binaries.lock.json trigger in test_unit.yml and a
duplicated gaia-flagship/** trigger in test_email_agent_unit.yml, and updates
notes that still said Strix Halo would move to Qwen after v0.25.1.
kovtcharov pushed a commit to kovtcharov/gaia that referenced this pull request Nov 3, 2026
… close them on a pass (amd#6510)

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 (amd#6144, amd#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
(amd#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 amd#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 amd#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.

<details>
<summary>🔍 Technical details</summary>

- 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.
</details>

## 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI changes devops DevOps/infrastructure changes documentation Documentation changes eval Evaluation framework changes performance Performance-critical changes tests Test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant