Repository navigation
Description
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 asnobody(tests/test.sh:57-59). Afterwards every.jsonfile in/tmp/nobody/results, a foldernobodyowns (:56), is copied in (:65), andtests/check-tests.mjstakes passed test names from all of them (:25-35) to check the expected list (:44-46). Top-level code in the agent'sDocumentHistoryModal.tsxruns in the Jest worker before the tests are defined, so it can replace the globaldescribewithdescribe.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 sametests/check-tests.mjsand 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
/testsunreadable tonobody.
- 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
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 settests_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
NisargIO commentedon Nov 20, 2026
thank you will fix!