Skip to content

ci(eval): run the scenario eval in parallel lanes and upload the evidence - #4097

Merged
kovtcharov-amd merged 8 commits into
kalin/eval-consolidationfrom
kalin/eval-lanes
Sep 25, 2026
Merged

kovtcharov-amd merged 8 commits into
kalin/eval-consolidationfrom
kalin/eval-lanes

Conversation

@kovtcharov-amd

@kovtcharov-amd kovtcharov-amd commented Sep 22, 2026 •

Copy link
Copy Markdown
Collaborator

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-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 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.
  • 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 #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 #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 ci(eval): every eval gate dies in preflight — the judge org is out of monthly spend #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

…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.
@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 Sep 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Skill audit

Skill Verdict Claimed tier Cleared tiers Findings Rules
.claude/skills/gaia-testing ✅ ALLOW experimental experimental, community none —

✅ 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 skill-audit-reports artifact from this run. Offending source text is withheld from CI everywhere — reproduce it locally with gaia skill audit <dir> --show-snippets.

Ovtcharov and others added 2 commits September 21, 2026 19:31
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.
@kovtcharov-amd
kovtcharov-amd changed the base branch from main to kalin/eval-consolidation September 22, 2026 02:44
@kovtcharov-amd

Copy link
Copy Markdown
Collaborator Author

Retargeted this PR's base onto kalin/eval-consolidation (#4096), because that is where it actually branches from — the two share their first two commits, and main squash-merges.

Left as-is, merging #4096 first would squash those shared commits into a single new commit on main, and this branch's own copies of them would then conflict against it line-for-line. That is the same failure that orphaned eleven PRs earlier this week. With the base corrected, GitHub shows only the lane-split diff here, and re-points this PR at main automatically once #4096 lands.

No branch or commit was touched — only the PR's base.

🔍 Technical details

Shared history: 652dea6f9 (score the flagship in every scenario) and 05efee3cb (run every category in CI). The merge base of the two branches is 05efee3cb, which is not an ancestor of main.

Both branches also conflict with main on src/gaia/eval/runner.py after #4092 merged, so each still needs a rebase before it can land.

Merge order: #4096 → main, then this one. Rebasing this branch onto kalin/eval-consolidation will surface one rename/modify conflict on the workflow file; resolve it by taking #4096's corrected monolith content into the lane split, so the install-package fix and the agent-registration preflight guard carry through to every lane.

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.
@kovtcharov

Copy link
Copy Markdown
Contributor
Screenshot 2026-09-22 at 11 25 10 AM

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.
@github-actions github-actions Bot added dependencies Dependency updates talk Talk agent changes chat Chat SDK changes mcp MCP integration changes llm LLM backend changes audio Audio (ASR/TTS) changes electron Electron app changes security Security-sensitive changes cpp website GAIA website (amd-gaia.ai) agents agent::email Email agent changes labels Sep 24, 2026
@github-actions github-actions Bot added tui Go terminal UI (gaia-tui) sidecar Agent sidecar contract / harness labels Sep 24, 2026
Comment thread src/gaia/security.py Fixed
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.
@github-actions

Copy link
Copy Markdown
Contributor

🔴 The lanes job will fail immediately on first run, blocking all four lanes before anything reaches the AMD pool.

eval/ci_lanes.json covers 10 categories, but 13 more live under eval/scenarios/ (added via the stacked #4096 merge): 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. None of these appear in any lane's categories list, and none are in excluded. The lanes validation script exits with an error on any orphan, and test_every_category_is_claimed_or_excluded fails the build for the same reason — so this breaks both the CI gate and the unit test the PR introduces to guard it.

Each of those 13 directories needs to land in a lane's categories, or in excluded with a reason they can't run in CI yet. Until that's done the lanes job never produces a matrix and no eval lane starts.

🔍 Technical details

Repro:

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 lanes job (eval_flagship.yml, Validate the lane map and emit the matrix step) calls sys.exit(f"::error::No lane runs {orphans}…") on any non-empty orphan set — same logic as test_every_category_is_claimed_or_excluded in tests/unit/eval/test_ci_lanes.py.

Fix: add each gaia_* category to an appropriate lane in eval/ci_lanes.json, or add it to excluded with the reason it can't run in CI (e.g. if the tasks-style scenarios don't work with gaia eval agent --category).

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.
@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Sep 25, 2026
Merged via the queue into main with commit 9e3a575 Sep 25, 2026
47 checks passed
@kovtcharov-amd
kovtcharov-amd deleted the kalin/eval-lanes branch September 25, 2026 00:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent::email Email agent changes agents audio Audio (ASR/TTS) changes chat Chat SDK changes cli CLI changes cpp dependencies Dependency updates devops DevOps/infrastructure changes documentation Documentation changes electron Electron app changes eval Evaluation framework changes llm LLM backend changes mcp MCP integration changes performance Performance-critical changes security Security-sensitive changes sidecar Agent sidecar contract / harness talk Talk agent changes tests Test changes tui Go terminal UI (gaia-tui) website GAIA website (amd-gaia.ai)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants