Repository navigation
fix(eval): give gaia_* scenarios their staged files, keep answers out of reach - #4641
Conversation
…ers out of reach A UI session's file scope, when nothing is attached, is GAIA's documents folder plus the backend's working directory. The gaia_* lanes started the backend from the repo checkout, so the files scenarios name under ~/gaia-eval were "not in allowed paths" (and the eval cannot answer the approval prompt), while every scenario's expected answer under eval/scenarios was readable. The backend now runs from ~/gaia-eval in all three gaia_* workflows, and staging copies only what a user would have there: sales.csv, mini_repo, media, capture and the meeting-notes doc the contract lists. Ground truth, generators, the fixture README and harness data are no longer staged. The scorecard-refresh workflow now stages through the same script instead of its own copy of the steps.
|
Verdict: Approve In the nightly eval, the agent couldn't reach the fixture files the gaia_* scenarios point it at, but it could read the scenario files that hold the expected answers. This PR fixes both: the eval backend now starts inside the staged
The real proof is the nightly re-run listed in the test plan. That item and the re-score are still unchecked, so check the gaia-* lanes' Real-world evidenceN/A: this PR only changes CI workflows and test fixtures, and no evidence bundle was produced. The verdict rests on static review alone. The PR description cites the failing run (37110051697) that shows the bug, but no run after the fix has happened yet. 🔍 Technical detailsIssues 🟢 Tests weren't run here. pytest isn't installed in the review sandbox, so this review didn't run 🟢 The "nothing that holds an answer" test only checks the top level for stray Checked and fine
Strengths
|
In the nightly eval, the agent could not read the files the gaia_* scenarios point it at, but it could read the scenarios' expected answers. Those lanes started the Agent UI backend from the repo checkout, and a session with nothing attached gets the backend's working directory as its file scope. So
~/gaia-eval/mini_repoand~/gaia-eval/csv/sales.csvwere "not in allowed paths": a user would approve the access prompt, but the eval can't. Meanwhile, every scenario YAML undereval/scenarioswas in scope. After this change the backend runs from the staged~/gaia-evalfolder, and only the files a user would actually have are staged there.Evidence from run 37110051697:
gaia_code(0/4) failed on access, e.g.code_find_class_method: "the path … mini_repo is outside allowed_paths, causing Access denied". Backend log:Not granting …\gaia-eval\mini_repo: tools are pre-approved, nobody asked.data_region_breakdown,select_data_bundle,select_memory_vs_data,task_dataexplore_*,task_coding_mini_repo,voice_t2_code_plain_then_technical,mcp_builtin_fits_better: same access denial on~/gaia-eval.data_total_revenue: with the staged file blocked, the agent searched the checkout and answered fromsales_data_2025.csv($340,000 vs $18,600).email_t1_read_offsite_details: "obtained this by reading the eval scenario YAML file (email_t1_read_offsite_details.yaml) via filesystem tools — not by reading Priya's email."🔍 Technical details
_compute_allowed_paths(ui/_chat_helpers.py) returns{managed documents, cwd}when nothing is attached. Since feat(security): ask before denying a path outside the session's scope #4579, a pre-approved run denies every out-of-scope path without asking.test_gaia_agent_eval.yml's comment ("GaiaAgent pins allowed_paths=[home]") described a scope that no longer exists.-WorkingDirectorychanges:eval_flagship.yml:~/gaia-evalforGAIA_FIXTURES=1lanes only. The other lanes keep the checkout because their scenarios nameeval/corpus/....test_gaia_agent_eval.ymlandgaia_scorecard_refresh.yml:~/gaia-eval.stage_eval_env.pynow stages an allowlist:csv,mini_repo,media,capture(without_gen_*,ground_truth.json,__pycache__), plusdocuments/meeting_notes_q3.txt. GAIA_FIXTURE_VALUES.md lists that last file as staged, but nothing staged it;files_find_read_summarizeonly passed because the agent found the corpus copy in the checkout.email/(the mailbox is read throughGAIA_EVAL_MAILBOX),fake_gh/,fixture_hub/,web/,rss/,mcp_stub/, thresholds, README. Each of those is used from the checkout already.gaia_scorecard_refresh.ymlnow callsstage_eval_env.pyinstead of its own copy of the steps. That copy also pre-installedrss-digest, which the contract says must start uninstalled.files_write_then_read,files_sandbox_refusal_systemturn 3,web_download_file). feat(security): ask before denying a path outside the session's scope #4579 never offers the home folder as a grant, so those scenarios need re-pointing in a separate change.stage_eval_env.py,eval_flagship.ymlandtest_gaia_agent_eval.yml. The conflicts are small; whichever merges second needs a rebase.Test plan
pytest tests/unit/eval/test_stage_eval_env.py tests/unit/test_gaia_eval_fixtures.py: staging includes the agent-facing files and excludes anything that holds an answer.eval_flagship.ymland confirm noNot granting …\gaia-eval\…lines in the gaia-* lanes'backend.out.log.gaia_code,gaia_data,gaia_tool_selection,gaia_skills_tasks,gaia_mcp,gaia_voice,gaia_files,gaia_email,gaia_media,gaia_skills_capture.