Repository navigation
ci(eval): consolidate the scenario eval onto the flagship agent and widen CI - #4096
Conversation
Every scenario pinned its own `agent_type`, and that pin silently beat `--agent-type` on the command line, so the flag did nothing and one run could mix agents. `compare_scorecards` keys on `scenario_id` alone, so it cannot see the mix and happily reports "improved/regressed" across two different agents. Scenarios no longer name an agent. The runner passes one `--agent-type` for the whole run, defaulting to the flagship `gaia` — the agent users actually meet — so a scorecard names a single agent and two scorecards are comparable. A guard test fails if a scenario reintroduces the key. The committed baselines go with it. All three were recorded against the `doc` ChatAgent profile, so diffing a flagship run against them is the cross-agent comparison above, dressed as a verdict. They are deleted rather than reinterpreted; the first honest flagship baseline comes from a real AMD-hardware run. The tool_selection scorecard is kept, moved to tests/fixtures/eval/, because one test reads it as a TTFT parser sample rather than as a quality baseline.
… exists CI measured 3 of 12 scenario categories, so 76 of 91 scenarios never ran on any push. All 10 non-screen-reading categories now run (vision and web_system stay out: they read the runner's clipboard, windows and screen into a public artifact), and the category list lives in one env var instead of the four hardcoded copies that had already drifted apart. The flagship has no committed baseline yet - the old ones scored the doc agent and were deleted rather than diffed against - so this run compares nothing. That is reported, never assumed away: the preflight hard-fails enforce=true with no baseline instead of passing every category by default, the compare step prints "NO REGRESSION VERDICT" and writes it to the job summary, and the integrity gate keeps the checks that do not need a baseline (a scorecard must exist, its scenarios must have produced a measurement) rather than going dark entirely. Budget resized from 19 runs of measured [TIMING] data: 82 scenarios at a 4.23 min/scenario mean is ~5.8 h expected, 9.2 h at the observed per-scenario max, so the eval step goes 400 -> 600 min and the job 450 -> 660. The file's own budget comment was 6x stale, citing a run that took 124 min for work this pool now does in 26. test_eval_rag.yml is removed: disabled pending #1315, never ran successfully, and its one category is covered here.
Skill audit
✅ All audited skills cleared the tier they claim. Per-finding detail is withheld here on purpose. Read it in the Security > Code scanning tab, or download the |
Request changesThis consolidates the scenario eval onto the flagship agent and widens CI from 3 categories to 10 — good direction, and the "no baseline, and we say so loudly" handling is the right call rather than letting a green check masquerade as a no-regression verdict. The blocker is that the eval job never installs the flagship agent. The eval now asks the backend for the Two more worth resolving before the first real run:
One smaller thing: the failure-report code was only half-migrated to the new default, so the repro command it prints still names an agent that doesn't exist. Real-world evidenceNone. The evidence harness errored before producing anything ( 🔍 Technical details🔴 CriticalThe
Without it, The comment block above that line also needs updating — it still says 🟡 Important
The new guard cannot catch the install gap (
🟢 Minor
Strengths
|
…egistered The eval job asked the backend for an agent it never installed, so all 82 scenarios would have died at session creation while the job still finished green. Every scenario now runs the flagship `gaia` agent, but `gaia` is not a builtin -- it registers only through the `gaia.agent` entry point in gaia-agent-gaia, and the eval job's dependency list stopped at gaia-agent-chat. POST /api/sessions answers 422 for an unregistered agent_type, so every scenario records INFRA_ERROR; `gaia eval agent` still exits 0 because it produced a scorecard, and with ENFORCE=false the job reports success having measured nothing. Verified against a live backend: an unknown agent_type returns 422. Two changes, because the install line alone would let the next one through: - Add `-e hub/agents/gaia/python` to install-package, matching the sibling flagship-tasks job, and correct the comment above it -- it still described gaia-agent-chat as supplying "the backend-default agent", which this PR made false. - Add a runtime preflight after the backend reports healthy: read DEFAULT_AGENT_TYPE from gaia.eval.config, and fail the job if that id is absent from GET /api/agents. Healthy is not the same as "can run these scenarios". The source-drift guard in tests/unit/eval/ parses pyproject.toml from the repo tree, so it stays green in exactly the environment where the eval 422s; this check is the one the CI run depends on. It costs seconds and protects a ~6 h slot, and the error names the missing package and the line to edit rather than skipping quietly. The check reads the id from gaia.eval.config rather than asserting a literal "gaia", so it tracks the default instead of becoming a second place to update. All four branches (registered, absent, backend unreachable, unreadable default) were exercised under Windows PowerShell 5.1 against a running gaia.ui.server.
The repro command in every failure report named `--agent-type tool`, an agent nothing resolves to. `run_config` seeded `agent_type` with the pre-consolidation literal `"tool"`, so the `or DEFAULT_AGENT_TYPE` fallback added alongside the flagship switch was dead code -- the seed is always truthy. Anyone pasting the command got a 422 instead of the failure they were trying to reproduce. The report header rendered the same stale literal. Seed both `agent_type` and `model` from gaia.eval.config, and hoist the model into one expression so the printed command and the structured `reproduction` fields cannot name different models -- they had already drifted, the command using DEFAULT_CLAUDE_MODEL while the field hardcoded "claude-opus-5".
…line Row 1 of the "numbers still owed" table read as a runnable instruction pointing at tests/fixtures/eval_baselines/gemma-4-e4b-d71cd914/, which this branch deletes. Anyone following it hits a missing path. That baseline scored the `doc` ChatAgent profile, so diffing a flagship run against it was the cross-agent comparison the consolidation set out to stop. The row now says to run the eval and report what it measured, and names tests/fixtures/eval_baselines/gaia-flagship/ as the path to compare against once a flagship baseline is committed. The rest of the plan is untouched.
|
The eval job would have burned a ~6 h slot measuring nothing, and now it can't. It asked the backend for the flagship agent without ever installing it, so all 82 scenarios would have failed at session creation while the job still reported success. Fixed, plus a runtime check so the next version of this mistake costs seconds instead of a slot. The failure report's repro command and one plan-doc command also named things that no longer exist; both corrected. The 🔍 Technical details🔴 The eval job never installed the flagship (
|
When the embedder fails to load on the eval runner - the common case per #3016 - the job measured 2 scenarios out of 82 and told the reader the other nine categories were skipped because they "answer out of embedder-produced chunks". That is false for memory: 0 of its 25 scenarios index a document, so the embedder was never what stopped them scoring. The degraded lane now runs memory too, taking the run from 2 measured scenarios to roughly 27, and the skip reason no longer asserts a dependence the skipped category may not have. The degraded list was sized when this workflow ran three categories. Widening the healthy list to ten left it behind at tool_selection alone. Individual memory scenarios can still fail on their own - the cross-session ones want the store GAIA_MEMORY_DISABLED turns off. That is the same posture the list already takes for tool_selection, 3 of whose 5 scenarios do index documents: run the category, let the scenario fail, do not call the whole category unmeasurable. Decoupling memory from GAIA_MEMORY_DISABLED belongs to the lane-split work and is deliberately not touched here. Headroom is now the binding constraint on widening further, so it is recorded next to the list: these two categories sum to a 579 min worst case against the eval step's 600 min cap.
|
Fixed, and it turned out to be three copies of the same false claim rather than two. When the embedder is down on this runner - which #3016 says is the normal case, not the edge case - the job was measuring 2 scenarios out of 82 and telling the reader the other nine categories were skipped because they "answer out of embedder-produced chunks". For I did not widen past
Technical details
Embedder dependence measured from the scenario YAML rather than assumed - count of scenarios with a non-empty
Only three of the ten are fully embedder-dependent, so the old blanket reason overclaimed for six categories and was outright false for one. Timeout arithmetic ( Validation, no eval run (#4080 spend cap, and Lemonade is down locally):
|
#4096 strips agent_type from every scenario and adds a guard that fails on the key, so the two branches break each other on main even though both are green alone. Merging rather than rebasing because the branch is already pushed and rebasing it would need a force-push.
#4096 makes the flagship the run-wide default and adds a guard that fails on any scenario carrying the key, so the pin is now both redundant and test-failing. The reason for it still holds -- these scenarios assert load_skill on turn 1 and only the flagship composes SkillLibraryToolsMixin -- it is just no longer something a scenario expresses. Moved that requirement to where it can still be checked: the coverage guard now asserts the eval's default agent type resolves to an agent that actually exposes load_skill. That catches a default flipped back to chat, which is the hazard the pin was standing in for, and it catches it once for the whole suite instead of eight times.
Resolves src/gaia/eval/runner.py against #4092 (0816b01), which added the agent-provenance check while this branch was making the flagship the agent every scenario runs as. The two are complementary: #4092 verifies which agent answered, this branch decides which one is asked for. Resolution keeps #4092's mechanism whole. Its _resolve_scenario_agent_type is restored at both call sites, and each site passes the value that helper computed rather than self.agent_type directly - otherwise _stamp_agent_provenance would compare a requested agent against a session created with a different one and report a mismatch that never happened. That reinstates the per-scenario YAML override this branch had removed in code, which is the better of the two: an override that exists and is honoured beats one silently ignored, and tests/unit/eval/test_scenario_agent_types.py already fails CI loudly if any scenario carries an agent_type key. Enforcement moves from silent to loud, which is the direction the no-silent-fallbacks rule points. The constructor default stays at DEFAULT_AGENT_TYPE rather than None, and that is now load-bearing for #4092 rather than just tidiness: _stamp_agent_provenance returns early when no agent was requested, so a null default would disarm the provenance check for every programmatic runner. Noted in a comment at the default so it does not get "simplified" back.
Carries #4096's corrected eval content into the split workflow. The only conflicting file was eval_flagship.yml, which git matched by rename detection to the monolith #4096 edits, so its hunks arrived as content conflicts. Taken from #4096: memory added to EVAL_CATEGORIES_NO_EMBEDDER, the reworded embedder-down warning and --not-measured-reason (neither now claims a skipped category depends on the embedder), the Claude credential probe classifier, and the default-agent-registered preflight. Kept from the split: the per-lane memory environment and its assertions, and the intersection of EVAL_CATEGORIES_NO_EMBEDDER with the lane's own categories -- taking #4096's whole-list assignment would make every lane run another lane's category. Three clauses only true of the monolith were adapted: scenario counts in two comments, the memory-store caveat the per-lane fix removed, and the timeout arithmetic, which is now per lane. That last one surfaced an inversion in the split: the eval step's cap was still the monolith's 600 min against a 300 min job, so the job cancelled first and the named-step failure that preserves partial results on an ephemeral machine could never fire. Set to the 240 the job's own budget table prices.
|
When #3074 lands, one of your tests goes red and one constructor line needs a two-way merge. That is the whole absorption — closer to half an hour than a day, so nothing here argues for gating #3074 behind this refactor. The test is Nothing else genuinely collides: One thing worth fixing on your side regardless — the guard's failure message says the eval "no longer honours" a scenario's 🔍 Technical detailsTrial-merged One conflicted file, one hunk — # Not None: _stamp_agent_provenance skips a scenario that requested no
# agent, so a null default would silently disarm the provenance check.
agent_type=DEFAULT_AGENT_TYPE, # yours
iterations=1, # theirsKeep both lines. There is no semantic overlap: your entire Auto-merges, no decision needed: Zero overlap: The corpus: 103 added files, no edits to existing scenarios. Thirteen new categories — sed -i '/^agent_type: gaia$/d' eval/scenarios/gaia_*/*.yamlOn the runner/guard disagreement: |
|
Your guard and your runner disagree about whether a scenario can pick its own agent, and the runner wins. So the bug this PR's own commit message describes as fixed — the pin "silently beat The code is the wrong side, not the message. Your commit says the pin no longer wins, the guard's docstring says only one pin remains (the default), and the new What I'd change: reject Not pushing anything — it's your branch and your call. Patch and evidence below. 🔍 Technical detailsConfirmed at The three scenario sources, and which one the guard covers
The guard walks The pin still wins
def _resolve_scenario_agent_type(scenario_data: dict, cli_agent_type):
"""Return the agent a scenario asks for: its own ``agent_type:`` wins."""
return scenario_data.get("agent_type") or cli_agent_typeFour call sites: Repro against this head — one scenario in a
Suggested patch — in if "agent_type" in data:
errors.append(
f"'agent_type' is not honoured — one run scores one agent, set by "
f"--agent-type (default '{DEFAULT_AGENT_TYPE}'). Delete the key; to "
f"measure a different agent pass --agent-type for the whole run."
)Then The softer alternative is to tolerate the key and log a warning. Less disruptive to anyone holding a pinned local scenario, but a warning scrolls past in a long run and you still end up with a scorecard labelled with an agent it didn't score — which is the failure mode the repo's no-silent-fallbacks rule is aimed at. What already passes at this head — |
The consolidation deleted `agent_type:` from the committed scenarios but left the code that reads it, so a scenario loaded from anywhere else — the auto-discovered `~/.gaia/eval/scenarios`, or any `--scenario-dir` — still beat `--agent-type`. That run scored one agent while its scorecard recorded another, which is exactly the mixed-agent comparison `compare_scorecards` cannot detect, since it keys on `scenario_id` alone. `validate_scenario` now rejects the key, covering all three scenario sources at load time rather than only the in-repo corpus the guard test walks. With nothing able to carry the key, `_resolve_scenario_agent_type` is unreachable, so it and its four call sites are gone and the provenance stamp records the run's agent. Note for #3074: it adds 103 scenarios under `eval/scenarios/gaia_*/`, every one declaring `agent_type: gaia`. All 103 fail validation the moment it merges on top of this. `gaia` is already the default, so the key is redundant and the fix is to strip it: sed -i '/^agent_type: gaia$/d' eval/scenarios/gaia_*/*.yaml
|
Fixed and pushed as
#3074 adds exactly 103 scenarios, and every one declares The fix is one line, because Whoever lands #3074 should run that in the merge commit. Nothing else about the absorption changes: still one real conflict, two adjacent kwargs in 🔍 Technical detailsHow the 103 was counted Against #3074's head #3074's tree as a whole shows 158 scenarios carrying the key ( So this PR's strip cleans up every pre-existing pin; the 103 new files are the entire remainder. No file outside What changed here
Test results
|
|
One thing to decide before this lands, not a change request — the PR is fine as it stands. After this, no eval scenario exercises the lean conversational profile any more. That matters because #4103 is being designed right now to fix exactly that profile's cost, and its acceptance criterion asks for "an eval scenario in That is a fair trade if it is a deliberate one: one run scores one agent is the right rule, and honouring per-scenario pins is what made scorecards incomparable in the first place. The choice is whether #4103 gets a flagship-side greeting scenario of its own, or a separate lean-profile run, or whether its acceptance criterion should be reworded to something the corpus can still measure. Worth a decision by someone, rather than discovering it when #4103 goes to verify itself. 🔍 Technical detailsWhat changes. 55 The three Why Not a duplicate of the #3074 absorption thread above — that one is about merge mechanics when #3074 lands. This is about what the corpus can still measure afterwards. |
|
One file in this PR — Just review that one file's diff on its merits rather than reading green as verification. The gap is in the lane, not the change: tracked systemically in #4121, with #4124 adding the guard that flags it automatically. 🔍 Technical detailsThe file calls Receipt from this PR's own
It is not even reported as skipped. The job prints No other lane covers it. |
|
The scenario changes are correct — I checked them offline, since the Gemma lane is dark until the spend cap resets (#4080). All 91 scenarios parse and pass the eval framework's own validator, none points at a retired agent, every tool they reference still exists, and the flagship's tool surface is a strict superset of what the old per-scenario pins needed. The PR's own eval tests pass. The thing worth a reviewer's attention isn't a defect. Roughly 50 scenarios used to be pinned to That's a sequencing fact, not a reason to hold the merge. Nothing here is broken; the comparison point simply arrives after the merge rather than before it. Deleting the standalone RAG lane leaves no coverage hole — 🔍 Technical detailsVerified at head Q1 — parse + schema. Ran all 91 scenarios through this PR's own Q2 — agent and tool existence. The superset argument: Q3 — model / category / baseline references. No scenario pins a model id. Every Q4 — classification of the 56 changed files.
The 50 break down as 39 previously Tests. Scope note. The consolidated lane widens from 3 categories to 10 (82 scenarios), with |
…answer (amd#4133) The code benchmark has been blaming the model for an outage it never saw. When Anthropic refuses a call because the account hit its usage limit, the agent's "answer" is the rejection notice — and `code_bench` scored that as a failed coding task. `_AGENT_ERRORS` exists specifically to stop that, but none of its seven patterns matched the text the API actually returns, so every run during the current weekly limit (amd#4080) is reporting coding failures that are really harness failures. After this, those tasks are marked `agent could not run` and excluded from the solve rate, which is what the scorecard already does for an exhausted credit balance. This only makes the outage legible. It does not restore eval coverage — the limit is real and resets Sep 23. <details> <summary>🔍 Technical details</summary> The live rejection, verbatim from PR amd#4096 run `35706759444` job `106755245481`: ``` You've hit your weekly limit · resets Sep 23, 8am (America/Los_Angeles) ``` Four things in it change between outages, so the pattern deliberately avoids all of them: | varies | why matching it goes blind | |---|---| | the adjective | `weekly` today, `5-hour` or `daily` next month | | the reset date | different every single time | | the apostrophe | sometimes `'`, sometimes U+2019 | | the separator | U+00B7 between `limit` and `resets` — which is why `util/`'s `"limit resets"` pattern never fired either | `"hit your"` is the only span that survives all four, and the match at `code_bench.py:591` is a plain case-sensitive `marker in result.answer`, so a short fragment is the robust shape. `"usage limit"` is added alongside it for the "reached your usage limit" phrasing, which the lead-in misses. On false positives: `"hit your"` is generic enough to be worth a second look, but it does not appear in ordinary benchmark answers — including ones that discuss limits ("the rate limit on the API is 60/min", "clamp the percent at its upper limit"). The failure mode if it ever did fire wrongly is a task excluded from scoring, not a wrong score. This is a *second* copy of outage classification. amd#4120 fixes the other one (`util/classify_claude_probe.py`) and does not touch this file. The canary's issue template is a one-line wording fix in the same class: it told admins to raise "the monthly spend limit", but this is a weekly usage limit that lapses on its own. It now points at the error line rather than naming a period. </details> ## Test plan - [ ] `python -m pytest tests/unit/test_code_bench.py -q` → 52 passed - [ ] The verbatim live string runs end-to-end through `run_task` and comes back as `result.error`, not a failed task - [ ] `test_a_usage_limit_matches_whatever_the_adjective_and_date_are` covers a different adjective, a different date, U+2019, a leading BOM, and the "reached your usage limit" wording - [ ] `test_the_fixture_still_carries_the_separator_that_broke_the_match` fails if anyone normalises the U+00B7 to a hyphen - [ ] `python util/lint.py --black --isort` → clean Co-authored-by: Kalin Ovtcharov <[email protected]>
amd#4120) Five open PRs (amd#4096, amd#4108, amd#3937, amd#3122, amd#3072) are showing a red agent-eval lane for a scorecard that was never produced. The Anthropic account is over its weekly spend cap, and the rejection text changed to a wording the preflight classifier does not recognise, so instead of "quota exhausted, this says nothing about your PR" the job dies in ~37 seconds with "could not be classified" and looks like a measured quality regression. After this change the same outage is named as a quota outage and points at billing rather than at the PR or the repository secrets. The pattern matches on `weekly limit`, not on the reset date the message quotes — that date moves every reset. ## Test plan - [ ] `python -m pytest tests/unit/test_classify_claude_probe.py -q` — 30 passed - [ ] `test_real_weekly_limit_rejection_is_a_quota_problem` feeds the verbatim text from run 35681533582 (job 106629918099), BOM and U+00B7 included, and asserts `quota`; it fails on `main` - [ ] `test_the_weekly_limit_pattern_does_not_depend_on_the_reset_date` pins that a different reset date still classifies - [ ] `python util/lint.py --black --isort --flake8` passes - [ ] The classifier stays pure ASCII (`test_the_classifier_module_is_pure_ascii`), which the PowerShell eval step depends on Co-authored-by: Kalin Ovtcharov <[email protected]>
Reconciles two independent designs in the same region: main added per-scenario iteration repeats (summarize_attempts) while this PR's own tip commit deliberately removed per-scenario agent_type honoring (_resolve_scenario_agent_type) in favor of one agent per run. Kept main's iteration/summarize_attempts mechanism, dropped the now-superseded per-scenario agent_type resolution per this PR's own stated intent.
…ence (amd#4097) Stacks on amd#4096 — review that one first; the two commits below its head are its, not this PR's. The scenario eval was one serial job running all 82 scenarios: ~5.8 h expected, 9.2 h at the ceiling we have actually measured, holding the single shared Lemonade slot the entire time — so in practice nobody waits on it and every other eval on that box queues behind it. It now runs as four independent lanes on the ephemeral `devlab-dispatch` pool, about 2 h each, finishing together. And because that pool destroys the machine when the job ends, each lane now uploads what you need to read a failure — transcripts, judge rationales, failure analysis, the backend log and the Lemonade logs — instead of scores alone. Until now the advice on a red eval was "reproduce it locally", which on a machine that no longer exists is not advice. This does not weaken CLAUDE.md's "run evals serially" rule. That rule is about two evals evicting each other's model out of **one** Lemonade slot; every lane gets its own machine and its own backend, and inside a lane the categories still run one at a time. The rule's wording is sharpened to say so rather than relaxed. Four things a reviewer should look at specifically: - **`eval/ci_lanes.json` is the single source of truth for the split**, because the dangerous edit here is silent: a category assigned to no lane simply stops being measured while every lane still reports green. A `lanes` job validates the map on a hosted runner before anything reaches the scarce AMD pool, and a unit test fails the build on an orphan. `vision` and `web_system` stay excluded — they read the runner's screen and clipboard into an artifact that is public. - **The `memory` lane now runs with memory switched on**, which it could not do before. `GAIA_MEMORY_DISABLED=1` was set workflow-wide, so a quarter of the suite was scoring an agent that had no `remember`/`recall` tools at all — those scenarios could only ever have failed, for a setup reason that reads exactly like a quality regression. The old default was right for one serial job on a shared runner, where memory state bled from one category into the next one's score; separate ephemeral machines make that impossible, so the memory lane can opt back in alone. It stays off for every other lane, and a lane whose memory environment does not match its categories now fails at a named step before anything runs rather than producing a misleading scorecard. - **The scenario job now installs the flagship agent it scores.** `gaia` is not a builtin — it registers only through a hub package that no extra pulls in — so without it every scenario 422s at session creation, records INFRA_ERROR, and the eval still exits 0 having produced a scorecard full of nothing. Each lane now asks the backend which agents registered and refuses to start if the eval's default is missing, naming the install line to fix. This is the same two-part fix already made on amd#4096's branch, carried across rather than reinvented; with five jobs building their own venv, the one-line install is the part that rots. - **The nightly replaces `weekly_eval.yml`** and keeps the one thing it did well: filing an issue when the run does not pass. PR runs are path-filtered, so environment drift (a Lemonade version bump, a re-quantised model, a driver or runner-image change) moves nothing in the repo and triggers nothing — the nightly is the only thing that can catch that class. It is a `schedule:` trigger on this same workflow, not a reusable-workflow caller, so it cannot reproduce the phantom-job bug that had `weekly_eval.yml` filing issues about jobs that never started. With no flagship baseline committed yet, a green run still is not a no-regression verdict, and the new aggregate summary says that out loud rather than letting a row of green checks imply it. ## Not verified end to end, and why **The eval cannot be run right now.** Per amd#4080 the Anthropic org behind the CI judge credential is out of monthly spend, so every eval dies in preflight; the limit resets Sep 23. Nothing below exercises a real lane against real hardware, and I am not claiming otherwise. What is verified is the structure, the Python, and each new PowerShell guard's logic run standalone against stubbed inputs; what is not is any lane against real hardware, which needs a `workflow_dispatch` once amd#4080 clears. In particular the agent-registration guard has never been run against a live backend — its query shape is checked against `AgentListResponse` in `src/gaia/ui/models.py`, not against a running server. ## Test plan - [ ] `python -m pytest tests/unit/eval/test_ci_lanes.py tests/unit/eval/test_lane_summary.py -q` — 15 pass - [ ] `actionlint .github/workflows/eval_flagship.yml` — clean apart from the pre-existing unknown-self-hosted-label noise (no `actionlint.yaml` in the repo) - [ ] Every workflow still parses: `python -c "import yaml,glob;[yaml.safe_load(open(f,encoding='utf-8')) for f in glob.glob('.github/workflows/*.yml')]"` - [ ] The lane validator produces the right matrix: `EVAL_LANES_FILE=eval/ci_lanes.json GITHUB_OUTPUT=/dev/stdout python -` with the `lanes` job's body — emits 4 lanes covering all 82 scenarios, exit 0 - [ ] Break the map on purpose and confirm it fails loudly: add a `vision` entry to a lane, or delete a category from the map, and the `lanes` job / `test_ci_lanes.py` both refuse - [ ] The memory guard is right in both directions: run the `Check the memory environment matches this lane` body under `powershell` with the memory lane's env (exit 0), with the workflow defaults (exit 1, naming all three variables), with a non-memory lane's env (exit 0), and with the variables unset (exit 1) - [ ] The agent-registration guard is right in both directions: run its `-notcontains` body under `powershell` with a stubbed `/api/agents` payload containing `gaia` (exit 0), missing it (exit 1, listing the registered ids), a single-element list (exit 1, no unrolling crash), and an empty list (exit 1, no crash) - [ ] `-e hub/agents/gaia/python` appears in **both** jobs' `install-package`, not just the outcomes job - [ ] No non-ASCII in any PowerShell `run:` body (a single em dash kills a step at parse time on this pool) - [ ] **After amd#4080 clears:** `workflow_dispatch` `eval_flagship.yml` on this branch and confirm the four lanes run at once on separate machines, each artifact carries `traces/` and `backend.*.log`, and the aggregate summary renders with the no-baseline warning --------- Co-authored-by: Ovtcharov <[email protected]> Co-authored-by: probe <probe@local> Co-authored-by: Kalin Ovtcharov <[email protected]>
main renamed test_eval_agent_gemma_consolidation.yml to eval_flagship.yml (amd#4096); this branch's task-judge bump follows it under the new name. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…lanes (amd#4105) GAIA ships sixteen skills and until now not one of them was independently measured. That matters most right now because the chat/doc/file profiles are being retired into skills — `document-brief`, `summarize`, `file-ops` and `data-explore` are the four absorbing that capability, and nothing checked whether they actually do. This adds eight scenarios covering those four, two each: one golden path, one exercising the failure behaviour the skill's own `SKILL.md` claims to handle. They run inside the existing category lanes and cost no new CI wiring — no workflow file changes. All eight land in `rag_quality`, `tool_selection` and `real_world`, each of which the consolidation lane already runs. **No scenario in this PR has been executed.** The CI judge's Anthropic org is out of monthly spend until Sep 23 (amd#4080), and Lemonade is down on this machine, so there is no way to run `gaia eval agent` here. Treat the scenarios as unverified against a live model: the YAML is validated, the assertions are traced to source, but nobody has watched an agent attempt them. First green run should be read as a measurement, not a confirmation. **Two things a reviewer needs to decide, neither of which this PR takes a position on:** - The embedder-down lane is now over its timeout budget. `EVAL_CATEGORIES_NO_EMBEDDER` documents a 579 min worst case against a 600 min cap, with an explicit note not to widen it without redoing the arithmetic. The two `tool_selection` scenarios here add 28.0 min, taking the worst case to 607.3 min. The fix lives in a workflow file owned by another task, so it is reported rather than applied. Real exposure is likely much lower — the same lane's expected cost is ~131 min — but the margin is gone. - amd#4106 — `file-ops`'s `SKILL.md` documents a binary-file refusal the code does not implement. Found while writing these scenarios; the scenario asserts against real behaviour, so this PR is not blocked on it. <details> <summary>🔍 Technical details</summary> **Based on `kalin/eval-consolidation`, not `main`.** amd#4096 adds `test_no_scenario_pins_an_agent_type`, which fails on any scenario carrying the key — these eight originally set it. Both PRs were green alone and `main` would have gone red on whichever landed second, with no CI run able to catch it. That branch is merged in rather than rebased onto, because this one is already pushed and rebasing would require a force-push. GitHub re-points the base to `main` once amd#4096 lands. **How each scenario is made skill-dependent.** The requirement was that a scenario must not score the same with the skill uninstalled. The runner has no skill hook — `setup:` accepts only `index_documents` — so no schema field was invented. Two mechanisms instead: - *Hard*: turn 1's `success_criteria` requires `load_skill` in that turn's tool list. The runner surfaces per-turn tool calls to the judge via `agent_steps[].tool` and the `agent_tools` output slot. Remove the skill and the load fails. - *Soft*: the behavioural assertions are drawn only from `SKILL.md`. The sharpest is `summarize`, where the skill's `brief` ("at most 3 sentences, no bullets") directly contradicts `summarize_document`'s own instruction ("concise 2-3 paragraph summary") — a 3-sentence bullet-free answer cannot come from the tool. Others: the four-heading standing brief, the quote-the-source rule, the `rag_status`-on-index-failure recovery, the `get_file_info`-before-acting confirmation, and the COUNT(*)-against-source verification step. **All eight require the flagship**, which is the run-wide default as of amd#4096. Only `GaiaAgent` composes `SkillLibraryToolsMixin`; `ChatAgent` (the chat/doc/file profiles) has no `load_skill` tool at all, so a default pointed back at it would fail every one of these on turn 1 for a reason unrelated to the skills. Since a scenario can no longer express that, the guard test asserts it once for the suite instead — which also catches the default being flipped back, the hazard the per-scenario pin was standing in for. **Honest notes on the assertions.** - `data-explore`'s `scratch_` prefix rule is also in the `query_data` docstring, so a correct prefix alone does not prove the skill loaded. That scenario leans on the recovery rule and the data-limits step instead, and says so inline. - No scenario writes to disk — no existing one does either. The single write attempt targets a credential dotfile, denied on filename by `src/gaia/security.py` before any I/O, so it is deterministic and creates nothing. **Added runtime, estimated not measured.** At amd#4096's historical 4.23 min/scenario mean, roughly 41 min for all eight. This is why phase 1 stops at four skills — the remaining twelve at the same rate is roughly two hours, a whole extra lane on a suite already being split for length. **Phase 2** is the other twelve skills, each listed in `DEFERRED` in the new guard test with the reason it waits — mostly live connectors, live web fetch, or non-deterministic ground truth. The guard fails if a seventeenth skill arrives with neither scenarios nor a stated reason. </details> ## Test plan - [ ] `python -m pytest tests/unit/eval/test_skill_scenario_coverage.py -q` — 28 pass - [ ] `python -m pytest tests/unit/eval/test_scenario_agent_types.py -q` — 4 pass, confirming amd#4096's guard and this one coexist - [ ] `python -m pytest tests/unit/test_starter_skills.py -q` — 188 pass, unchanged - [ ] All eight YAMLs load through the real `validate_scenario()` and are found by `find_scenarios()` under their categories - [ ] `python util/lint.py --all` — no new findings - [ ] Not verifiable before merge: an actual eval run. Blocked on amd#4080. --------- Co-authored-by: Ovtcharov <[email protected]> Co-authored-by: Kalin Ovtcharov <[email protected]>
…seline (amd#6243) ## Summary Point the email-triage plan's acceptance bar at the flagship baseline that exists today, `tests/fixtures/eval_baselines/gaia-flagship/`, instead of a deleted directory and a "no email category yet" blocker that has since been resolved. ## Why The paragraph under **Acceptance bar** reads as a live gate, not history: it tells whoever decommissions the email agent to compare against `tests/fixtures/eval_baselines/gemma-4-e4b-d71cd914/` (deleted in amd#4096) and says only three categories have committed baselines. Anyone acting on it goes looking for a path that is not there (amd#4131). The flagship baseline now has one scorecard per category, `gaia_email` among them (`gaia_git` and `gaia_resilience` have none yet), and the blocker it cites (amd#2983) was closed on 2026-10-25, so the bar can simply name the real files. Only this paragraph changes. The other stale mentions of the old directory (`docs/plans/gaia-agent-latency.md`, `port-audit-6-agents.md`, `port-triage-thin-infra-agents.md`) describe past runs and read as such, so they are left alone, as the issue suggested. ## Linked issue Closes amd#4131 ## Changes - `docs/plans/email-triage-skill.mdx`, "Acceptance bar": replace the "Blocker first" paragraph with one that names `tests/fixtures/eval_baselines/gaia-flagship/`, notes it has a `scorecard_<category>.json` per category including `gaia_email` (none yet for `gaia_git` and `gaia_resilience`), records that amd#2983 is closed, keeps the single-iteration caveat from the baseline's `meta.json`, and limits the flagship comparison to the `tool_selection` re-run and `gaia_email` once the skill lands. ## Test plan - [x] `git diff --check` (clean) - [x] `tests/fixtures/eval_baselines/gaia-flagship/scorecard_gaia_email.json` exists on `main` - [x] `gemma-4-e4b-d71cd914` no longer appears in `tests/fixtures/eval_baselines/` ## Evidence - **Agent exposed in the Agent UI** — N/A (docs-only change) - **MCP tools / servers** — N/A (docs-only change) - **CLI** — N/A (docs-only change) - **HTTP API / REST** — N/A (docs-only change) ## Checklist - [x] I have linked a GitHub issue above (`Closes #N` / `Fixes #N` / `Refs #N`). - [x] I have described **why** this change is being made, not just what changed. - [ ] I have run linting and tests locally (`python util/lint.py --all`, `pytest tests/unit/`). - [x] I have attached **real-world evidence matched to the surface I changed** (see Evidence above), or marked each surface N/A. - [x] I have updated documentation if user-visible behavior changed (see [CONTRIBUTING.md](../CONTRIBUTING.md)). --------- Co-authored-by: kovtcharov-amd <[email protected]>
Important
This PR ships no baseline, and the eval is non-enforcing until one lands.
The old baselines scored a different agent, so they were deleted rather than
diffed against. Until a real run on AMD hardware produces the first flagship
baseline, CI measures every category and compares none of them — a green check
on this workflow is not a no-regression verdict. The workflow says so in
its annotations and job summary; a reviewer should not read it as one either.
GAIA had three eval systems and the agent users actually meet was barely in any of
them. The scenario eval ran the
docChatAgent profile and CI exercised 3 of its 12categories, so 76 of 91 scenarios never ran on a push and the 15 that did scored an
agent nobody ships. After this, there is one scenario eval, it scores the flagship
gaiaagent, and all 10 non-screen-reading categories run in CI —visionandweb_systemstay out because they read the runner's clipboard, windows and screeninto a publicly downloadable artifact.
Two threads a reviewer can't infer from the title:
compare_scorecardsmatches on scenario ID alone, so diffing a flagship run against a
docscorecardwould have printed confident "improved"/"regressed" lines across two different
agents. All three baseline directories were generated with
--agent-type doc, soall three went.
Sized from the
[TIMING]lines of 19 complete runs plus per-scenario[DONE]timings inside 8 of them: 4.23 min/scenario mean, 6.73 max, and no measurable
per-category overhead. Expected ~5.8 h, ceiling 9.2 h — the eval step goes 400 → 600
min and the job 450 → 660. This job now holds the shared eval slot for ~6 h per run.
Test plan
python -m pytest tests/unit/eval/ -q— 601 passed, 8 pre-existing failures intest_release_scorecard.py(a cp1252UnicodeEncodeErroron Windows thatreproduces unchanged on
main)python -m pytest tests/unit/eval/test_scenario_agent_types.py -q— the guard nowfails if any scenario reintroduces an
agent_type:keypython -m pytest tests/unit/eval/test_integrity_gate.py -q— two new tests pinthat an absent baseline disables one check, not the gate
python util/lint.py --black --isortpython -c "import yaml; yaml.safe_load(open('.github/workflows/test_eval_agent_gemma_consolidation.yml'))"agent_type:pincompare step prints
NO REGRESSION VERDICT, job summary carries bothenforce: trueand no baseline: preflight hard-failsinstead of passing every category by default
No
gaia eval agentrun: Lemonade is down on this box, and CLAUDE.md forbids racingthe shared slot regardless. The first real run is the follow-up that produces the
baseline.