Possible grader bypasses and verifier gaps in BioPharma-Bench (public 10) tasks

#2
by evanjolley-p - opened

While digging through the tasks and verifier setups, we noticed a spot where an agent may be able to get past the grading checks (we have not proven it yet), as well as one spot where a valid solution gets scored down.

We looked at the Harbor Hub dataset biopharma-bench/biopharma-bench, version 1.0.0, revision 1 (published 2026-09-24). File paths below refer to that Harbor Hub package, which this dataset does not include.

For every row below we read the task files at that version and traced the route from what the agent can touch to what the grader scores. We did not run the tasks unless a row says so.

Paths to reward without doing the work

  • hvn-09: rule to keep the original entries is judged without the original workbook (partial bypass; likely, not proven yet)

    The task says to edit an existing workbook in place and keep the colleague's original entries (instruction.md:3), and rubric items W14-11-R02 and R04 score that. The shared tests/test.sh:9-11 sets BASELINE_ARTIFACT to empty on the assumption that every task writes a new file, so tests/grade.py:809 and :867-869 give the judge no starting copy, although the original ships in tests/sources/. An agent that overwrites the original entries and describes them as corrected can still pass these items, because the judge sees only the edited file. We did not run the judge, and it may catch some cases if the agent's log reaches it. We saw this in 1 of the 3 tasks we read (the others write a new file); the publisher's task list suggests about 2 of 10. tests/test.sh is identical in all 3.

    • Suggested fix: For edit-in-place tasks, set BASELINE_ARTIFACT to the packaged starting file (here tests/sources/STB-AVI401-002_24M_pull_and_update_control.xlsx).

False-negative bugs (valid work scored down)

  • hvn-02: judge tool missing from the verifier image (every trial ends as a verifier error with the first judge credential)

    When the host forwards the first judge credential that tests/grade.py:84-87 checks, the grader picks a harness whose command-line tool the verifier image installs only from a vendored binary (tests/Dockerfile:65-74), and tests/vendor/ holds only .keep. tests/grade_agent.py:756-758 then returns an error for every item, grade.py exits 3 and no reward is written, so each trial ends as a verifier error. The Dockerfile comment relies on the agent adapter installing the tool, which does not happen in a separate verifier. Same in all 3 tasks we read (the verifier image and grader are identical); the shared code suggests all 10.

    • Suggested fix: Install a pinned copy of that tool in tests/Dockerfile, or fall back to the installed harness when it is missing.

Lower-impact notes

These only weaken a check and do not change a score on their own.

Lower-impact notes (5)
  • hvn-09 (Weakens a check (the judge never sees the reference records)): Every item in tests/CHECKS.json lists the records it should be checked against (for example tests/CHECKS.json:7-9), but none sets evidence to attribution. tests/grade.py:353 and :357 pass an item's sources to the judge only in that case, so the judge grades the workbook alone. Items that ask for exact record locators and page citations (W14-11-R03, R15) can then be met with plausible but wrong citations. The rest of each criterion still has to be met, so this weakens these items rather than giving a free score. We saw this in 1 of the 3 tasks we read (the other two list no sources); the publisher's task list suggests about 5 of 10. Suggested fix: Set evidence to attribution on items whose criteria depend on the declared records, or stage the declared sources for every item that lists them.

  • hvn-09 (Unenforced rule (changes to source records and governed systems are not checked)): The task says not to alter source records or update LIMS or other governed systems (instruction.md:5). Grading copies only the deliverable workbook into a slim workspace (tests/slim_workspace.py:47-51) and grades that copy (tests/test.sh:15-16). Nothing compares the exported /app tree or sidecar state (task.toml:82-88) with the start state. A run that edits source files or posts LIMS results is scored the same as one that does not, so the rule has no effect on the reward. We saw this in 1 of the 3 tasks we read; the publisher's task list suggests about 2 of 10. Suggested fix: Diff the exported /app tree and the LIMS event log against the start state and fail the constraint item when a source record or governed-system state changed.

  • hvn-01 (Hygiene only (grading faults are recorded as a score of 0)): tests/grade.py:718-722 withholds the reward only when every item errored; otherwise it averages all items, so an item that ended in ERROR counts as 0. When nothing is graded because of a bad rubric or an extractor failure (tests/grade.py:790-798, :838-844), grade.py exits 2 and tests/test.sh:21 then writes 0, although the comment at tests/test.sh:19-20 says such runs should be left without a reward. Grading faults therefore look like agent failures. This lowers scores; it cannot raise them. Same in all 3 tasks we read (the grader is identical); the shared code suggests all 10. Suggested fix: Leave no reward when any item is ERROR or grade.py exits 2, so Harbor records a verifier error instead of 0.

  • hvn-02 (Hygiene only (no reference solution)): The task ships no solution/ folder and task.toml:90 is an empty [solution.env], so there is no reference deliverable showing that a correct answer earns full marks. This does not let an agent raise its score, but it leaves the top of the scale unchecked for a model-judged rubric. Same in all 3 tasks we read. Suggested fix: Ship a reference deliverable per task and check that it scores full marks while the untouched start scores 0.

  • hvn-01 (Hygiene only (LIMS log and chat state writable by the agent)): environment/docker-compose.yaml:17-19 mounts the downloads and sidecar-state volumes read-write into the agent's container. The LIMS event log lives in downloads (environment/mcp-tools/providers/lims/lims.go:62-73), and environment/service/lims_cli.py:46-60 replays stored events without the checks the live commands apply. The agent can forge or erase LIMS events and chat records with plain file writes. No grader reads these records today, so the score does not change. Same in all 3 tasks we read (the sidecar setup is identical); the shared code suggests all 10. Suggested fix: Keep the LIMS log and chat state on a sidecar-only volume (export it as a sidecar artifact) or mount it read-only in the agent's container, and validate events on replay.

Sign up or log in to comment