Repository navigation
test(eval): validate every flagship capability at four tiers - #4472
Conversation
d00737f to
313f043
Compare
No eval measured how GAIA talks, so long, jargon-heavy answers with
"Verification:" footers passed every category. `gaia_voice` scores the
voice itself: everyday questions answered briefly in plain English,
"why?" and "tell me more" answered with more depth, and stated style
preferences ("keep it short", "bullet points", "give me the technical
details") kept on later turns and in a new session. This gives amd#4484's
prompt work a before/after number.
- **Coverage:** 12 scenarios, at least two per tier. t1: short, plain
everyday answers. t2: follow-ups get deeper and more technical. t3: a
preference is stored, then applied on later turns and in a fresh
session. t4 (tagged `usability`): a changed preference wins over the old
one, a clearly technical user and a clearly non-technical one each get
answers at their level, and the agent holds up under pressure to
over-explain.
- **Criteria the judge can check:** sentence and word caps, banned tool
names and footer labels, required terms, and explicit FAIL conditions.
- **Wiring:** the `gaia-code` lane runs it, bringing that lane to 33
CI-runnable scenarios. Memory is cleared before each scenario and again
after the ones that store a preference, so a stored "two sentences max"
can't leak into later scenarios.
> [!NOTE]
> These scenarios haven't been judged against a real agent run yet. On
the authoring machine, two other eval backends were using the shared
Lemonade, and `memory_clear(scope=all)` would have wiped the
machine-wide memory store. The last Test plan item covers that run.
<details>
<summary>🔍 Technical details</summary>
- Tagging follows amd#4472: `t1_basic`…`t4_adversarial`, `usability` on t4,
and the "SIMULATOR ACTION BEFORE THIS TURN: create a NEW session" and
`setup.memory_seed` conventions. If amd#4472 merges first, the conflicts
are in `ci_lanes.json` (lane rebalance) and the `known_tags` set in
`tests/test_eval.py`.
- `CAPABILITY_MATRIX.md` is regenerated, and its category pin is updated
with it.
- `test_gaia_agent_eval.yml` and `gaia_scorecard_refresh.yml` still list
13 categories by default. They aren't changed here, because nothing has
scored `gaia_voice` yet.
</details>
## Test plan
- [x] `pytest tests/unit/eval tests/test_eval.py
hub/agents/gaia/python/tests/test_capability_matrix.py`: 1211 passed, 27
skipped
- [x] All 12 load through `find_scenarios(category="gaia_voice")` (t1
×2, t2 ×3, t3 ×3, t4 ×4)
- [ ] `gaia eval agent --category gaia_voice` on a dedicated backend
(`GAIA_MEMORY_ADMIN=1`, fixtures staged); fix any scenario whose failure
is the scenario's fault
Refs amd#4484
81d0b8c to
32228e6
Compare
|
Verdict: Approve with suggestions Four-tier coverage for every flagship capability is a real gain. Git work and "something unexpected broke" situations were untested before, and now each has its own category, with answers the judge checks against planted values. The new code is careful: the git setups ignore the machine's git config, the fixture hub rejects contradictory 🟡 Merge only after the judged run. About 130 new scenarios have loaded and passed the unit tests, but none has been scored against a real agent yet. Until that run happens, a badly written scenario will look like an agent regression in the nightly lanes. The PR already tracks this as its one open test-plan item. Tick it, or drop the broken scenarios, before merging. 🟢 Stray duplicate import in an existing task's workspace. Adding 🟢 Confusing staging error when 🔍 Technical details
|
32228e6 to
692169a
Compare
Most gaia_* categories had a handful of untiered scenarios, and git and unexpected-situation handling had none. Every category now carries at least two scenarios per tier (basic, compound, stress, adversarial), each adversarial one tagged security or usability, with planted fixtures recorded in GAIA_FIXTURE_VALUES.md. New categories: gaia_git and gaia_resilience. Four mechanically graded git/coding outcome tasks join the full suite. Staging builds the git workspaces a commit cannot carry, lanes are rebalanced to 34 scenarios or fewer, and the PR subset keeps gaia_shell's security scenarios.
… matrix The repo-wide downloads/ ignore rule kept the plain-text installer fixture out of git, so its route 404'd on CI. The capability matrix now lists gaia_git and gaia_resilience.
The CACHE task-setup template picked up a stray second `import os` from the same find-replace that added the real one to the module's own imports, giving the flaky-cache outcome task a lint wart it never had. The tiers_resilience fixture builder's "inside a git repository" error only named the checkout as the cause, so a developer with a dotfiles repo at $HOME saw it even while pointed at the correct staged copy.
692169a to
0738914
Compare
A developer with a dotfiles repo at $HOME was told the staged copy was inside "a git repository" without being told which, while already building into the staged copy. The refusal now names the repository it found, and a test covers both the refusal and the blank-identity build.
# Conflicts: # tests/fixtures/gaia/fake_gh/gh.py # tests/fixtures/gaia/stage_eval_env.py # tests/unit/eval/test_stage_eval_env.py
test_every_ci_lane_resolves named gaia-tools, which this PR splits into gaia-repo/gaia-files/gaia-docs/gaia-skills, so it failed with 'No lane named gaia-tools'. Reading the lane names from the file keeps it valid through any later split or rename.
|
Verdict: Request changes This PR roughly doubles the flagship's judged scenarios, adds two new categories (git work, and recovering from blocked situations), and adds the fixtures behind them: a fake
Real-world evidenceN/A — no I couldn't run pytest here (the runner has no test environment), so the PR's own test results are the only test evidence. 🔍 Technical details🟡 Nightly preflight hard-fails
Also check that the integrity gate and the compare step further down tolerate a missing per-category baseline. 🟡 Missing tests for new fixture logic
Ideally also unzip the tampered artifact and assert 🟢 "Every 🟢 PR subset now skips part of Note: Strengths
|
…ot failed The nightly preflight stopped a whole lane when one of its categories had no committed scorecard, so the new gaia_git and gaia_resilience categories would have blocked gaia_code and gaia_files too. Without enforce the category now runs, is flagged as not compared, and its scorecard becomes the baseline candidate; enforce=true still refuses. Also tests the signed-out fake gh host and the 429/503 fixture routes.
# Conflicts: # .gitignore
…#4759) The required Windows unit job times out on `test_restaging_replaces_built_repositories`, which turns it red on PRs that have nothing to do with it (amd#4460's run is the first; any PR updated onto main since amd#4472 can hit it). Staging the eval fixtures takes about 28 seconds on the Windows runner now that it builds the tier repositories, and that test staged twice, landing on the 60-second per-test limit; its neighbour passed at 55 seconds. The file staged the whole environment six times. It now stages once for the read-only checks and once more for a single re-staging test that covers both read-only files and built repositories, so no test comes near the limit and the file is about two minutes faster on Windows. ## Test plan - [x] `pytest tests/unit/eval/test_stage_eval_env.py` passes (7 tests; the POSIX-only fake-`gh` test still runs) - [ ] `Unit Tests (Windows, py3.12)` passes on this PR without a timeout in this file
The flagship's own evals tested most capabilities with a handful of untiered scenarios, and git work and unexpected situations (a signed-out CLI, a missing tool, a denied command) not at all. A capability could regress under stress, or under an adversarial user, without any eval noticing. Now every
gaia_*category is tested at four levels: basic, compound, stress, and adversarial. Each adversarial scenario is taggedsecurity(injection, exfiltration, sandbox escape) orusability(typos, ambiguity, mind changes, missing data), and every answer is a planted value the judge can check.Note
The new scenarios load, their fixtures are tested, and the suite passes. They have not yet been judged against a real agent run: the judge CLI is not signed in on the Strix Halo eval box. That run is the open test-plan item below; if it shows a broken scenario, the fix lands here before merge.
gaia_git(history, blame, conflicts, a regression hunt, hooks and leaked secrets) andgaia_resilience, which measures feat(agent): stop, ask and remember when a tool reports a blocker the agent can't fix #4428 (detect a blocker, bound the workarounds, escalate precisely) with counter-scenarios that fail on over-asking;fullsuite, each with a reference solution and rejected shortcuts.gaia_shell's security scenarios.ghp_…GAIAEVAL…strings are deliberately token-shaped (scenarios test that the agent won't leak them) and fail GitHub's token checksum.Test plan
pytest tests/unit/eval tests/test_eval.py tests/unit/test_gaia_eval_fixtures.py→ 1281 passed, 27 skipped (this branch).find_scenarios(); fixture pins (commit hashes, planted totals, page numbers) asserted bytest_tiers_git_code_fixtures.py,test_tiers_skills_web_fixtures.pyand the fixture generators.python util/lint.py --black --isort.gaia eval agent --category <c>for everygaia_*category on DeepSeek V4.1 Flash via Fireworks, serially; fix or drop scenarios whose failure is the scenario's fault.