How to detect reward hacking in agent tasks
To detect reward hacking, attack each task before an agent does. Run a no-op and confirm it scores zero, try to pass without doing the work, check whether the agent can read or change the tests, and read transcripts of passing runs for shortcuts. Any route that scores is a flaw in the verifier, and it is fixed there.
Updated
Step by step
In order.
Run a no-op
Submit nothing. If the task passes or scores above zero, the verifier is checking something that is already true.
Try the obvious shortcuts
Write the expected output straight to the file. Hard-code the values the tests look for. Match the output format without computing anything.
Look for what the agent can reach
Can it read the tests or the solution? Can it edit the tests, the grader or the harness? Anything inside the agent’s image is available to it.
Check the checks
Read the verifier and ask what it really asserts. A test that only confirms a function exists will pass an empty function.
Read passing transcripts
Sample runs that passed and read what the agent did. Edits to test files, searches for answer keys and suspiciously short solutions are the signs.
Vary the inputs
Re-run with different values generated at check time. A solution that only works for the original values was memorised or hard-coded.
Fix the verifier, then re-run
Close the route in the check itself. Confirm the reference solution still scores full marks and the cheat now scores zero.
How we do it
Our own answer to the same question.
On our own tasks a deliberate cheat has to score zero before review, and the pod lead tries to cheat the task again.
We run the same audit on tasks and environments you already have, and report every cheat that scored with the change that closes it.
Read next
Related pages.
Want to see it on your own tasks?
We scope it on a call and start with a small paid pilot. You decide on the result.