Repository navigation
ci(eval): run the scenario eval in parallel lanes and upload the evidence - #4097
Conversation
…idence One serial job running all 82 scenarios takes ~5.8 h expected and 9.2 h at the observed ceiling, and holds the single shared Lemonade slot the whole time -- not something a PR can wait on. The categories now run as four independent lanes on the ephemeral devlab-dispatch pool, roughly 2 h each, finishing together. That is not a weakening of CLAUDE.md's serial rule: the rule is about two evals evicting each other's model out of ONE Lemonade slot, and each lane gets its own machine. Within a lane, categories still run one at a time. The ephemeral pool is also why the artifact policy inverts. That machine is destroyed when the job ends, so "transcripts stay on the runner, reproduce locally" meant every failure this eval found was unreadable. Each lane now uploads its scorecards, per-scenario traces, backend log and Lemonade logs on always(), secret-scanned first because the artifact is public. eval/ci_lanes.json is the one source of truth for the split. A `lanes` job validates it on a hosted runner before anything reaches the AMD pool, and tests/unit/eval/test_ci_lanes.py fails the build on the dangerous edit: a category that belongs to no lane stops being measured while every lane stays green. vision and web_system stay excluded -- they read the runner's screen and clipboard into a public artifact. An aggregate job reports the run as a whole, since no single job sees it, and says plainly that with no committed baseline a green run is not a no-regression verdict. A nightly run 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 bump, a re-quantised model, a driver change -- moves nothing in the repo and triggers nothing; the nightly is the only thing that catches it. It is a schedule trigger on this 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 ran.
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 |
The memory lane could not have measured anything. It inherited GAIA_MEMORY_DISABLED=1 from the workflow, which skips the store's init entirely, so the agent under test had no remember/recall tools and its system prompt never listed them - 25 scenarios that exist to exercise memory, run against an agent that has none. Two more variables the scenarios depend on were never set anywhere: without GAIA_MEMORY_ADMIN the runner's own memory preflight 403s, and without GAIA_MEMORY_MCP_ALWAYS the MCP memory read tools never register, so every scenario's "VERIFY VIA MCP: memory_recall(...)" has no tool to call and the judge scores the reply text alone. The workflow-level default was right for the old design, where every category ran in one process on one shared runner and memory state could bleed from one category into the next one's score. The lanes changed that: each runs alone on an ephemeral machine that is destroyed afterwards, so the memory lane can have the store live without any other category seeing it. The default stays off; only the memory lane overrides it, and the values come from the lanes job rather than a YAML expression because GitHub reads the string '0' as falsy and would hand the memory lane the disabled value. A lane whose memory setup is wrong now fails at a named step before anything runs, instead of producing a low scorecard that reads as a quality regression. The guard re-derives what the lane needs from its own category list, so it catches the wiring itself going wrong. lane-status.json records memory_enabled alongside the scores. The new unit test pins memory alone in its lane - the store is enabled per lane, so a neighbour would silently inherit it and bring the bleed back. This changes what the memory lane measures, not how much: still 25 scenarios, now against an agent that can remember. With no flagship baseline committed, a green memory lane remains "the scenarios ran", not "no regression".
Every scenario runs the flagship `gaia` agent, but the job that runs the scenarios never installed it. `gaia` is not a builtin - it registers only through the `gaia.agent` entry point in the gaia-agent-gaia hub package, which no extra pulls in. Without it POST /api/sessions 422s, every scenario in every lane records INFRA_ERROR, and the eval still exits 0 because it produced a scorecard. The sibling outcomes job already installed it; the scenario job did not. Carries across the same two-part fix made on the consolidation branch, because the one-line install is the part that rots. Five jobs now build their own venv, so there are five places this can silently regress, and each one costs a multi-hour lane to discover. After the backend reports healthy, each lane reads DEFAULT_AGENT_TYPE from gaia.eval.config, asks the backend which agents registered, and refuses to start if the default is not among them - naming the registered ids and the exact install line to fix. Reading the id rather than asserting a literal "gaia" keeps the check tracking the default instead of becoming a second place to update.
|
Retargeted this PR's base onto Left as-is, merging #4096 first would squash those shared commits into a single new commit on No branch or commit was touched — only the PR's base. 🔍 Technical detailsShared history:
Both branches also conflict with Merge order: #4096 → |
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.
The lane split renamed test_eval_agent_gemma_consolidation.yml to eval_flagship.yml but left the two guards that read it pointing at the old path, so Unit Tests failed on every platform with FileNotFoundError. Both assertions are on file content, not the name, so repointing the constant restores them unchanged.
Picks up the corrected agent_type merge on kalin/eval-consolidation. weekly_eval.yml stays deleted (this branch already replaced it with the nightly nightly-patch-release.yml workflow, per this PR's own description) rather than resurrecting the version consolidation still carries.
kalin/eval-consolidation moved again since the last sync. Resolves the same weekly_eval.yml deletion (still superseded by this branch's nightly-patch-release.yml) plus a Windows-checkout executable-bit loss on the fake_gh test fixture.
|
🔴 The
Each of those 13 directories needs to land in a lane's 🔍 Technical detailsRepro: import pathlib, json
d = json.load(open('eval/ci_lanes.json'))
claimed = {c for l in d['lanes'] for c in l['categories']}
excluded = set(d['excluded'])
on_disk = {p.name for p in pathlib.Path('eval/scenarios').iterdir()
if p.is_dir() and any(p.glob('*.yaml'))}
print(sorted(on_disk - claimed - excluded))
# ['gaia_code', 'gaia_core', 'gaia_data', 'gaia_files', 'gaia_honesty',
# 'gaia_memory', 'gaia_rag', 'gaia_shell', 'gaia_skills_capture',
# 'gaia_skills_lifecycle', 'gaia_skills_tasks', 'gaia_tool_selection', 'gaia_web']The Fix: add each |
The merge from kalin/eval-consolidation brought in 13 new gaia_* scenario categories (#3074's flagship corpus) that ci_lanes.json predates, so every lane -- and the CI lane job that validates the map -- failed the orphan-category gate. Splits them across four new lanes, balanced by scenario count (~25-26 scenarios each) to match the parallelism the existing lanes already get.

Stacks on #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-dispatchpool, 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.jsonis 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. Alanesjob validates the map on a hosted runner before anything reaches the scarce AMD pool, and a unit test fails the build on an orphan.visionandweb_systemstay excluded — they read the runner's screen and clipboard into an artifact that is public.memorylane now runs with memory switched on, which it could not do before.GAIA_MEMORY_DISABLED=1was set workflow-wide, so a quarter of the suite was scoring an agent that had noremember/recalltools 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.gaiais 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 ci(eval): consolidate the scenario eval onto the flagship agent and widen CI #4096's branch, carried across rather than reinvented; with five jobs building their own venv, the one-line install is the part that rots.weekly_eval.ymland 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 aschedule:trigger on this same workflow, not a reusable-workflow caller, so it cannot reproduce the phantom-job bug that hadweekly_eval.ymlfiling 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 #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_dispatchonce #4080 clears. In particular the agent-registration guard has never been run against a live backend — its query shape is checked againstAgentListResponseinsrc/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 passactionlint .github/workflows/eval_flagship.yml— clean apart from the pre-existing unknown-self-hosted-label noise (noactionlint.yamlin the repo)python -c "import yaml,glob;[yaml.safe_load(open(f,encoding='utf-8')) for f in glob.glob('.github/workflows/*.yml')]"EVAL_LANES_FILE=eval/ci_lanes.json GITHUB_OUTPUT=/dev/stdout python -with thelanesjob's body — emits 4 lanes covering all 82 scenarios, exit 0visionentry to a lane, or delete a category from the map, and thelanesjob /test_ci_lanes.pyboth refuseCheck the memory environment matches this lanebody underpowershellwith 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)-notcontainsbody underpowershellwith a stubbed/api/agentspayload containinggaia(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/pythonappears in both jobs'install-package, not just the outcomes jobrun:body (a single em dash kills a step at parse time on this pool)workflow_dispatcheval_flagship.ymlon this branch and confirm the four lanes run at once on separate machines, each artifact carriestraces/andbackend.*.log, and the aggregate summary renders with the no-baseline warning