Repository navigation
test(eval): run a CI eval lane locally; stress corpus for hostile files - #4697
Conversation
…tile files A hand-rolled local eval drifted from CI in ways that change scores or do harm: the backend started from the checkout instead of the staged fixtures, the real gh on PATH while gaia_* tool calls are auto-approved, the judge's credentials inherited by the agent under test. util/run_eval_lane.py takes the lane environment from eval_lane_matrix.py and repeats the workflow's setup. util/stress_corpus.py builds the large and adversarial files that found the v0.25 RAG, encoding and search bugs, with its answer key kept outside the folder the agent searches. CLAUDE.md and the testing skill point at both, and CLAUDE.md now warns that worktrees share one stash.
|
Verdict: Approve with suggestions This adds a script that runs a CI eval lane locally with CI's setup, plus a generator for large and hostile test files. Both are useful and the lane setup matches the workflow closely. One thing is worth fixing before people run it on their own machines: unlike CI, the lane script uses the developer's real GAIA profile.
Real-world evidenceN/A: no evidence bundle for this PR. It adds dev tooling under 🔍 Technical details🟡 Lanes run against the developer's real 🟡 MCP stub isn't removed on an abnormal exit (util/run_eval_lane.py:324-338, 351-353) 🟢 No default-agent check, so a missing hub install exits 0 (util/run_eval_lane.py:319) 🟢 🟢 Log file handles are never closed (util/run_eval_lane.py:296, 305) 🟢 40-level nesting exceeds Windows MAX_PATH (util/stress_corpus.py:502-506) Strengths
|
Two Lemonades on one machine share its GPU; a second eval on its own backend still slows both and corrupts every timing. Never bypass the eval lock to run beside another session's eval.
Running a
gaia_*eval locally used to mean copying a few environment variables out ofeval_flagship.yml, and it was easy to get it subtly wrong. Started from the checkout, the backend can't see the staged fixtures. Without the fakeghfirst on PATH, auto-approved triage scenarios send writes to real GitHub. The agent under test inherits the judge's credentials.util/run_eval_lane.py --lane <lane>reuseseval_lane_matrix.py's lane environment and repeats the workflow's setup, so a local score means what a CI score means.util/stress_corpus.pygenerates the large and hostile files used to validate v0.25: a 1,667-page PDF with one buried fact, a 400k-row CSV, a 120 MB log, injection, UTF-16, a 5 MB single line, and hostile filenames. They found #4679, #4686 and #4688. Its answer key is refused if placed inside the corpus, because the agent's content search would otherwise find the answers there. CLAUDE.md and the testing skill point at both. CLAUDE.md also notes that worktrees share one stash list.Test plan
pytest tests/unit/eval/test_run_eval_lane.py tests/unit/eval/test_eval_lane_matrix.py(67 passed)python util/stress_corpus.py --out <dir> --answers <file>builds 110 MB, and refuses--answersinside--outpython util/check_doc_links.py,python util/lint.py --black --isortpython util/run_eval_lane.py --category gaia_honestyon a Strix Halo box produces a scorecard