Repository navigation
ci(eval): targeted flagship dispatch by category and scenario - #5513
Conversation
A flagship dispatch could only run the whole 343-scenario sweep, about 131M Claude tokens, which exhausted two accounts on v0.25.1-rc2. A dispatch can now name the categories and scenarios to run; only the lanes holding them take a Strix Halo machine, and a typo fails on a hosted runner before anything starts. - `gaia eval agent --scenario` takes several ids (repeatable or comma-separated) and refuses any id that would not run, instead of dropping it. - A targeted scorecard records its selection. --compare and the integrity gate judge only those scenarios and list the rest as not run, and the run summary, lane artifacts and aggregate are labelled as a partial run. - A dispatch fails when scenarios errored before Claude spent a token, the quota-exhaustion signature from rc2. Tag runs keep reporting it as before. - Tag runs are unchanged: no inputs, the full matrix, report mode, the eval gate.
…flat A one-lane targeted run downloads a single artifact, which download-artifact extracts with no per-artifact folder, so the run summary reported a healthy lane as having uploaded nothing.
|
Verdict: Approve with suggestions Targeted dispatch is wired soundly end to end. A bad id fails on the hosted runner before any lab machine is taken, and a partial run is labelled as partial in the summary, the lane artifacts and the scorecard. Compare and the integrity gate judge only the selected scenarios, so a partial run can't read as a full sweep. Tag runs get the untouched full matrix, and a test pins that. I found no correctness problems. Two small suggestions:
🔍 Technical details
|
…laude A driver that failed before its first call also spends zero tokens, so the check now also requires zero API time, and the error names both causes instead of always blaming the quota.
|
Both suggestions are in. The zero-token check now also requires zero API time, and its error says Claude was never reached: usually the quota, otherwise a driver that failed before its first call. The workflow is proven on real runs too:
The first run also showed that the summary called a healthy single lane dead, because 🔍 Technical detailsA real CLI refusal from this branch: Exit code 1, and nothing ran. |
tests/unit/eval/test_eval_lane_matrix.py started reading it in #5513, and the new path-coverage check flagged that the lane running it would not trigger.
The Gemma workflow now selects categories and scenarios through the same inputs and validation as eval_flagship.yml (util/eval_lane_matrix.py), replacing its own --categories mode. It adds one switch, EVAL_ONE_CATEGORY_PER_LANE, so each category gets its own machine, and the lane fails a dispatch on an exhausted Claude quota as the flagship does. The Strix Point pool ran jobs on five hosts on 10-21 and was idle about 97% of the time, so the default grows to tool_selection, error_recovery, context_retention and adversarial on at most three machines (~100 min).
…md#5533) When the Claude account running a flagship eval ran out of quota, every remaining scenario failed in seconds as an ordinary error and the run still went green: v0.25.1-rc2 lost 68 of 343 scenarios that way (amd#5493, section 6.4). Now the run stops the moment Claude's quota or credential gives out (or Claude fails to answer two scenarios in a row): nothing else is launched, the rest are recorded as `NOT_RUN` (never PASS, never an ordinary error), and it exits 3 with the account, the reset time and the command to finish it. `gaia eval agent --resume <run-dir>` then runs only the scenarios without a result and merges them into the same scorecard, each stamped with the commit and time it ran at. Closes amd#5265. Stacked on amd#5525 (Claude usage); I'll rebase onto `main` once that merges. In CI a quota stop already ends the lane (any non-zero exit does), and the integrity gate's `--fail-on-zero-token-errors` now also counts these scenarios, so a dispatch still fails. The lane's run directory doesn't survive the job, so CI re-dispatches the printed `-f scenarios=...` list (amd#5513) rather than using `--resume`. ## Test plan - [x] `pytest tests/unit/eval tests/test_eval.py tests/unit/test_eval_launch_contract.py`: 1579 passed, 30 skipped - [x] `tests/unit/eval/test_quota_resume.py` runs the real runner loop against a fake `claude -p` that runs out of quota after N scenarios: nothing is launched after it, the rest are `NOT_RUN`, exit code 3, the message names account, reset and resume command, and the token never reaches the log - [x] Resume runs only the missing scenarios, keeps earlier results with their commit and time, warns when commits differ, refuses a different `--model`, stops again if the quota runs out again, and is a no-op on a finished run - [x] A single zero-token failure with no quota or credential wording stays resumable but doesn't stop the run; two in a row do - [x] A genuine FAIL, a timeout, a "rate limit" phrase inside a transcript, the scenario's own budget cap, and a driver that forges `claude_outage` or `NOT_RUN` never stop a run - [x] Outage phrases checked against the strings in the installed `claude` CLI (2.1.303): "You've hit your limit", "Usage limit reached", "monthly spend limit", "limit resets" - [x] `PYTHONPATH=src python util/lint.py --all` passes <details> <summary>🔍 Technical details</summary> - `gaia.eval.claude_outage.classify_driver_failure` reads only the CLI's `is_error` result, `api_error_status`, and stderr/stdout when there is no JSON. Its phrase lists extend `judge_outage`'s with the subscription CLI's wording. `util/classify_claude_probe.py` keeps its own copy because it runs in the preflight before GAIA is installed. - A failure with zero tokens and zero API time counts as an outage ("Claude never answered") even without a matching phrase. That was rc2's signature, whose stored errors were cut before the CLI's message. - The run loop moved into `AgentEvalRunner._execute`, which fresh and resumed runs share. The `.progress.json` path it replaces could never resume anything because every run got a new directory. - `--resume` reads the run's own `scorecard.json`, which now carries `config.plan`. CI uploads that file, so a lane that restores its previous artifact could resume too. </details>
…#5535) 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 amd#5493. | Per release cycle (3 RCs + final) | Before | After (amd#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](https://github.com/amd/gaia/actions/runs/39668506957)). 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 amd#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 (amd#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 amd#5513). ## Test plan - [x] `pytest tests/unit/eval tests/unit/test_eval_tag_gate.py tests/test_eval.py`: 1686 passed, 30 skipped - [x] `python util/eval_tiers.py check`: 343 of 343 runnable scenarios covered; 18 never-in-CI scenarios listed with their reason - [x] `python util/lint.py --all` passes; actionlint reports only the existing runner-label notices - [x] Tiny Qwen dispatch on rc2's commit ([run](https://github.com/amd/gaia/actions/runs/39660896807)): 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 - [x] Smoke tier on rc2's commit 0b14d74 plus this PR's harness commits ([run](https://github.com/amd/gaia/actions/runs/39668506957)): 3 machines, 45 min, 30 scenarios all on Qwen, no zero-token errors <details> <summary>🔍 Technical details</summary> - The first commit is amd#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. amd#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 amd#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. </details>
…d#5511) The flagship scenario eval only measured Strix Halo, and a scorecard never said which local model produced it, so a Gemma run could be diffed against a Qwen baseline and report "regressions" that only measure the model swap. This adds a dispatch-only workflow that scores Gemma-4-E4B (what every smaller PC runs) on the Strix Point pool, pins and records the model in every scorecard, and makes `--compare` refuse (exit 3) a baseline captured on another agent model or eval model. It is the first half of amd#5505; moving Strix Halo to Qwen3.6 follows after v0.25.1 final. - **Pool impact:** Strix Point runs scenarios about 3x slower than Halo (error_recovery: 34 min vs 10.6). The pool ran jobs on five hosts on 10-21 and was idle about 97% of the time, so the default runs `tool_selection`, `error_recovery`, `context_retention` and `adversarial`, one category per machine, at most three machines at once and one run at a time: about 100 min wall clock. - **Halo is untouched**, apart from one deliberate change: comparing across two eval models now fails instead of warning. That hits the Halo compare step when a dispatch overrides `eval_model`, and anyone scripting `gaia eval agent --compare` locally across two judges (exit 3). - **No baseline yet.** `gaia-flagship-gemma-stx/` declares its model and holds no scorecards until a real run produces them; until then each category reports NO BASELINE YET, never a pass. Its README has the capture steps. <details> <summary>🔍 Technical details</summary> - Design: a new reusable `eval_scenario_lane.yml` (one lane, parameterised by runner labels, model, categories, baseline dir), called by `eval_flagship_gemma_stx.yml`. `eval_flagship.yml` was left alone because its lane can't be re-validated without dispatching on Strix Halo while v0.25.1 is in flight; it moves onto the reusable lane with the Qwen baseline. - Pin: `util/eval_gaia_home.py pin-model` writes `default_model` into each category's fresh GAIA home and reads it back; `gaia eval agent --agent-model` checks each session's `effective_model` and turns a mismatch into `INFRA_ERROR`; the scorecard gets `config.agent_model`. - Category/scenario selection is amd#5513's (`categories` / `scenarios` inputs, `EVAL_SELECT_*`, multi-id `--scenario`); this PR's own `--categories` mode was dropped in the merge. The only addition is `EVAL_ONE_CATEGORY_PER_LANE=1`, which splits each selected lane into one lane per category. Dispatches fail on zero-token errors (exhausted quota), as in `eval_flagship.yml`. - Proposed, not enabled: `push: tags: ['v*.*.*', 'v*.*.*-rc*']` once the baseline lands (commented in the workflow). - Dispatch needs the file on `main`, so the validation run came from a throwaway branch adding a push trigger to this branch's commit (since deleted). </details> ## Test plan - [x] `python -m pytest tests/unit/eval/ tests/unit/test_eval_tag_gate.py tests/test_eval.py` after merging amd#5513 (1638 passed) - [x] `actionlint` on both new workflows - [x] Real run on strix-point, `error_recovery` (before the amd#5513 merge): https://github.com/amd/gaia/actions/runs/39635423103 (green on SJLAB-STX-1; scorecard and every scenario record `Gemma-4-E4B-it-GGUF`; compare reports NO BASELINE YET) - [x] That scorecard against the Halo Gemma baseline compares (exit 2, time regressions only); the same scorecard relabelled Qwen is refused (exit 3) Refs amd#5505 --------- Co-authored-by: v <v@x>
v0.25.1-rc3 can now be evaluated on just the scenarios that need re-running (rc2's errored and regressed ones, about a quarter of the suite) instead of a full sweep (about 131M Claude tokens, which ran two accounts dry on rc2). A dispatch takes
categoriesandscenariosinputs; only lanes holding a selected category get a Strix Halo machine, and an unknown id fails the dispatch in seconds with the valid ids listed. A partial run is labelled as one everywhere and its compare judges only what ran, and a dispatch now fails when scenarios error with zero Claude tokens, which is how rc2's quota exhaustion went green.Tag runs are unchanged: no inputs, the full matrix, report mode and the
[skip eval]gate.Test plan
pytest tests/unit/eval tests/test_eval.py: 1517 passed, 30 skippedpython util/lint.py --allpasses; actionlint reports only the existing custom runner-label notices-f scenarios=empty_fileon this branch (run): only the conversation lane ran, one scenario, outcomes skipped, and the compare listed the other two as NOT RUN🔍 Technical details
util/eval_lane_matrix.pyvalidates the selection against the scenario YAMLs with stdlib only (a test checks its reading againstyaml.safe_loadfor every file) and emitshas_lanes,targeted,outcomes,selection. With no selection the matrix object is returned untouched.gaia eval agent --scenariois repeatable / comma-separated; the runner exits 1 naming any id that would not run (unknown, wrong category, excluded tag).config.scenario_filter;compare_scorecardsandintegrity_gate.check_categoryrestrict the baseline to it and reportnot_run.--fail-on-zero-token-errors(dispatch only) uses the newdriver_usageon ERRORED results, falling back to the truncated stdout text older scorecards kept.needs: lanesso a targeted dispatch can skip it; non-dispatch events ignore the lanes result there.