Background¶
Why graders get hacked¶
Models optimise the grader, not the task. The hacks are documented and they are cheap:
- objects whose
__eq__always returnsTrue,sys.exit(0)before the asserts, and aconftest.pythat patches pytest's reports (Anthropic, arXiv 2511.18397); exit(0)and raisingSkipTestin coding tasks during frontier training (Baker et al., arXiv 2503.11926);- overriding equality, stubbing the evaluator and reading the grader's answer off the call stack (METR, June 2025);
- test modification and operator overloading on impossible tasks (ImpossibleBench, arXiv 2510.20270);
- a
conftest.pyhook that passes every SWE-bench Verified task (BenchJack, arXiv 2605.12673).
hackfloor's probes are the publicly documented minimal forms of these hacks, plus answer enumeration, prompt echo, judge injection, and answer keys left in the sandbox or in git history.
OpenEnv RFC 008¶
OpenEnv's RFC 008 asks that "a panel of
non-solving policies (null, degenerate, grader-injection, reward-search) scores at or below
the empty-trajectory floor". OpenEnv 0.14 grades Harbor tasks for semantic.oracle_max,
semantic.floor_gap and author-supplied canaries (semantic.canary_floor), while
statistical.adversarial_floor is listed in its severity policy with no grader yet.
hackfloor is a working, standalone version of that panel, and its card uses the same check ids. See Integrity card and OpenEnv check results.
Design choices¶
- Runs against the real grader. Every finding is a scored attempt you can replay.
- Matched controls.
AlwaysEqualis compared withreturn None, a patchedconftest.pywith an empty one, a written max reward with a written min. - Statistics where they matter. Exact sign test with Holm correction across probes for 5 or more tasks; deterministic replay for fewer. Clopper-Pearson intervals on hack-pass rates, and a gameability check (point-biserial correlation and AUROC between solved and reward). See Statistics.
- Integrity cards. A JSON record with a schema,
NOT_MEASUREDwherever hackfloor has no test, and an export to OpenEnvCheckResultrecords. - Plugin probes. Subclass
Probe, register it, or ship it through thehackfloor.probesentry point. - CI-ready. A GitHub Action, a pre-commit hook and a pytest fixture, with exit code
1when a finding meets--fail-on(defaulthigh) and a Markdown report for the job summary. See CI.