Reward integrity for RL environments
Does your grader pay for wrong answers?
Most reward hacking starts in the grader: a substring check that keyword stuffing beats, a completeness bonus that pays a confident wrong answer, a test runner that trusts the exit code, an agent that runs as root next to the reward file. rewardprobe finds these before you spend GPU hours, without running a model.
Three checks
Reward functions
- 13 wrong-answer attacks: empty, refusal, echo, hedging, candidate lists, keyword stuffing, answer plus junk, "note to the evaluator" injection
- 6 correct-answer rewordings that must keep full reward
- Adapter for verifiers-style rubrics
Code graders
- 10 non-solutions:
exit(0)on import, fake "passed" banners, an object equal to everything, a plantedconftest.py, swallowed exceptions, infinite loops
Harbor task folders
- Agent running as root next to the verifier
- Grader or solution files copied into the agent's image
- Verifiers that only check a file exists; test scripts with no failure reward; downloads during grading
rewardprobe mymodule:reward --cases cases.jsonl # exit code 1 on high findings: put it in CI rewardprobe-harbor path/to/tasks # static, nothing is executed
What it finds on public tasks
A static run on the public Terminal-Bench 2 task folders (89 tasks), read without executing anything:
| Finding | Tasks | What it means |
|---|---|---|
| Agent runs as root in the shared environment | 89 | A common harness trade-off. The agent can touch the reward file and the grader's inputs; hardening, not a proven exploit. |
| Verifier downloads tools during grading | 88 | Results depend on the network and on remote content at grading time. |
| Files from tests/ copied into the agent's image | 4 | 3 carry a comment marking it intentional (the agent may test its work); 1 to review. |
rewardprobe treats a COPY with a justifying comment, or rewardprobe: allow, as informational. Our own 2,320 Forgeworks tasks lint clean.
Environment audits
rewardprobe itself is $39 (team licence $249): email enabledapplications@gmail.com and you get the package the same day. For a full audit of an environment or taskset (rubric, harness, tools, sandbox paths, plus a written report with fixes) email enabledapplications@gmail.com with a link to the repository or the Hub listing. Earlier audits found keyword stuffing that passes 95 of 107 tasks in one public benchmark and a rubric that pays wrong answers 0.2 in another; both were reported privately to their maintainers first.
See also: Forgeworks replica-company environments ยท memdrift long-horizon memory environments.