Skip to content

Grader bypasses and verifier gaps in ReactBench v1.2 tasks #13

Open

Description

@evanjolley

While digging through the tasks and verifier setups, we noticed an edge case where an agent can accidentally (or intentionally) get past the grading checks.

We looked at millionco/reactbench at commit 68312a0 (October 2026).

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

  • appflowy-io-appflowy-web-documenthistorymodal: forged test report (full score without passing the hidden tests)

    The hidden tests import the agent's component (tests/test.patch:11) and run as nobody (tests/test.sh:57-59). Afterwards every .json file in /tmp/nobody/results, a folder nobody owns (:56), is copied in (:65), and tests/check-tests.mjs takes passed test names from all of them (:25-35) to check the expected list (:44-46). Top-level code in the agent's DocumentHistoryModal.tsx runs in the Jest worker before the tests are defined, so it can replace the global describe with describe.skip (the spec uses the global, tests/test.patch:119) and write an extra report listing every name in the world-readable /tests/expected-tests.json (tests/Dockerfile:20) as passed. Jest exits 0 with skipped tests and the forged report meets the expected list. Only the React Doctor gate remains (tests/test.sh:29-36), which a cleaned-up component passes. We did not run it. Both tasks we read use the same tests/check-tests.mjs and results handling, and the shared harness suggests all 39 tasks do. How tests are skipped differs by test runner.

    • Suggested fix: Have root collect results through a reporter or pipe the code under test cannot write, require each expected test to pass in that one report, and make /tests unreadable to nobody.

Lower-impact notes

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

Lower-impact notes (1)
  • frankchen021-datastoria-199 (Hygiene only (test-stage infrastructure failures scored as 0)): Any non-zero exit of the test chain (tests/test.sh:54, including the 630 s timeout set at :52) and a missing or malformed test report (:61) both set tests_ok=0, after which the script writes an ordinary reward of 0 (:64). A missing patch or React Doctor report instead exits with an error and no reward (:15, :30), which the runner records as a failed trial rather than a score. Test-stage infrastructure failures are therefore indistinguishable from agent failures. This can only lower scores. Same pattern in both tasks we read; the shared harness suggests all 39 tasks. Suggested fix: Exit with an error and no reward when the test runner times out, crashes on start-up or produces no parseable report.

Activity

  1. NisargIO commented on Nov 20, 2026

    @NisargIO
    Member

    thank you will fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions