Grader bypasses and verifier gaps in MiMo-V2.6-RL Code (Harbor) tasks

#2
by evanjolley-p - opened

While digging through the tasks and verifier setups, we noticed a few edge cases where an agent can accidentally (or intentionally) bypass the grading checks. Where a route is not proven yet, the row says so.

We looked at the Hugging Face dataset FineEnvs/MiMo-V2.6-RL-harbor-code at revision cf87dbe4 (2026-10-09).

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

  • format-code-task-000140: agent-added test files force a passing exit code (full score without doing the work)

    Before running the hidden tests, tests/test.sh:14-29 restores only the files listed at :24-26 and leaves the rest of the tree as the agent left it, then gives reward 1 whenever the test command exits 0 (tests/test.sh:35-38); the test log is never checked. Here the test command, packed in tests/test.patch:19-38, runs go test on ./disperser/dataapi/. A new _test.go file in that package whose TestMain calls os.Exit(0) ends the run with status 0 before any test runs, so the task scores 1 with no fix; in Python tasks a conftest.py that skips the tests does the same. We did not run this. Same reset logic and exit-code reward in all 4 tasks we inspected.

    • Suggested fix: Score from a machine-readable report that must show each named hidden test as passed, and drop agent-added or agent-edited test files and test config before running. Harbor: A separate verifier does not close this, because the planted files are part of the repository the grader must test.
  • format-code-task-000395: graded program writes the reward file (full score without doing the work)

    The hidden test script runs the agent's wxPython/RunScript.py with python3 (tests/test.patch:16, :224-243) as root (task.toml:25), so that program can write /logs/verifier/reward.json. tests/test.sh writes only reward.txt (:37) and never removes reward.json, which Harbor reads first. A second route avoids a zero: a folder left where the patch adds usercase-test-coderl/usecase.sh makes git apply fail, so tests/test.sh:29-33 exits with no reward and the trial is recorded as an error, not a fail. A root agent can also delete /var/lib/mimo/base (tests/test.sh:8); root is inferred from setup, as the image is not in the task files. We did not run this. Same tests/test.sh in all 4 tasks we inspected, and every task's tests run the agent's code.

    • Suggested fix: Run the test command as an unprivileged user that cannot write /logs/verifier, write the final reward to both reward.json and reward.txt, and keep the base commit id with the uploaded tests rather than in the agent's container. Harbor: A separate verifier does not close the first route, because the tests must run the agent's code; the explicit [verifier] user = "root" (task.toml:25) lets that code write the reward folder.
  • format-code-task-000140: root grader runs agent-controlled git and shell settings (full score without doing the work)

    The grader runs git add -A, git diff, git checkout and git apply as root inside the agent's repository (tests/test.sh:12-30, task.toml:25), using the .git folder that setup leaves in the agent's tree (environment/setup/setup.sh:17-22, :30-51). Settings the agent writes there, such as a core.fsmonitor command or a clean filter in .git/config, run as root during git add -A and can write /logs/verifier/reward.json. The test command also starts a login shell (exec bash -lc, tests/test.patch:38), so in Harbor's default shared container an agent-written /root/.bash_profile that runs exit 0 ends the test command with success. Writing /root needs a root agent, which we infer from setup but cannot see, as the image is not in the task files. We did not run this. Same git steps in all 4 tasks we inspected; 2 of the 4 test commands use bash -lc.

    • Suggested fix: Apply the agent's diff to a fresh, trusted checkout of the base commit instead of running git inside the agent's repository, and start the test command without a login shell. Harbor: Setting environment_mode = "separate" under [verifier] and a non-root [agent] user closes the login-shell route but not the .git route, since the repository travels with the deliverable and the agent must be able to write it.
  • format-code-task-002399: hidden tests compare through a helper in the package under test (full score without doing the work)

    Every new assertion in the hidden tests goes through pp.testing.assert_close from the pypose package the agent edits (tests/test.patch:40-85, :130-155). The grader resets only the two test files and the command script (tests/test.sh:24-26), and the test command reinstalls the agent's package with pip install -e . (tests/test.patch:169). Making assert_close do nothing, and adding a left argument to the in-place functions so the calls do not raise, passes every hidden test without fixing the direction bug. We did not run this.

    • Suggested fix: Compare results in the hidden tests with torch.testing.assert_close or a helper shipped with the tests, not one from the package under test.
  • format-code-task-000140: hosts-file block the root agent can remove (reads the upstream fix; likely, not proven yet)

    task.toml:32 sets network_mode = "public"; the only block on answer sources is 61 host names appended to /etc/hosts during setup (environment/setup/setup.sh:54-57, list in environment/setup/files/blocklist). Direct IP addresses and unlisted mirrors are not blocked at all, and a root agent can delete the lines (setup keeps the original at /var/lib/mimo/hosts.preblock). We infer the agent is root but cannot see it: the image is not in the task files, and with no [agent].user the agent runs as the same default user as setup, which must be root to write /etc/hosts. For tasks built from public repositories this reaches the upstream fix; the task files do not settle whether each task's fix is published. Same network setting and blocklist in all 4 tasks we inspected.

    • Suggested fix: Use network_mode = "allowlist" with only the model API host (and a pinned package mirror where installs are needed) instead of the hosts-file list. Harbor: The agent can edit /etc/hosts only because no [agent].user is set (we infer it is root); a non-root agent would keep the list in place, but unlisted hosts would still be reachable.

Lower-impact notes

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

Lower-impact notes (2)
  • format-code-task-002537 (Weakens a check (test checks only that no warnings were logged)): The test command, packed in tests/test.patch:42-46, runs only the new hidden test (tests/test.patch:9-31), which calls query_history_events() on a mocked fee-bearing movement and asserts only that no warnings or errors were logged (tests/test.patch:30-31). The events it produces are never inspected, so a change that silently drops fee-bearing movements passes. Suggested fix: Assert on the produced history events (asset, amount, fee and type) for both a deposit and a withdrawal.

  • format-code-task-000140 (Hygiene only (timeouts and runner crashes scored as 0)): tests/test.sh:35-38 writes reward 0 for any non-zero exit of the test command, including a timeout kill (status 124) and a failed unpack of the build environment, while only reset and patch failures leave the trial unscored (tests/test.sh:29, :30-34). Grading failures therefore count as agent failures. This can only lower scores. Same in all 4 tasks we inspected. Suggested fix: Treat status 124 and build-environment failures as unscored (exit without a reward), like the reset and patch failures.

Sign up or log in to comment