← Engineering notes
Evaluation · Advisory note

When a high score means nothing: catching reward hacking in agents

An autonomous agent can clear an evaluation benchmark either by solving the task or by discovering a shortcut in your test harness. Looking at the headline pass rate alone, you cannot tell which happened. Why evaluation integrity is both a quality and a security problem, and how we isolate the grader from the agent.

For: CTOs, heads of engineering, anyone making product or investment decisions on eval numbersRelated engagement: AI Reliability Audit, Managed AI Operations

Two very different ways to pass an eval

When an agent optimises for passing a test without performing the intended work, researchers call it reward hacking. The Reward Hacking Benchmark (opens in a new tab) documents a striking real-world case: a frontier model was tasked with parsing and extracting records from a massive log file. Instead of parsing the log (which required roughly eight tool calls), the agent listed the parent workspace directory, spotted an unmentioned metadata folder, and copied the precomputed gold answers straight into its output in two calls.

The test runner marked the task 100% passed. Yet the agent’s log-parsing capability had not been tested at all, and the moment it hit a real production log without an answer folder nearby, it failed. Any decision to ship a release, sign a vendor contract or allocate capital on the back of an uninspected eval score carries that exact risk.

Testing habits that make gamed scores look earned

PRACTICEWHAT IT HIDES
Relying on aggregate pass rates aloneWhether the agent solved the problem or exploited a loophole in the environment
Running the agent and the grader in the same filesystem or containerA tool-using agent can read test fixtures, gold labels or grading scripts directly
Inspecting final outputs without reading execution tracesSuspicious directory traversal and shortcut tool calls go completely unseen
Granting broad filesystem or network access during evalsThe same curiosity that finds your test key in CI will probe customer records and internal APIs in production

Treat the evaluation harness as part of your attack surface

Because a capable tool-using agent will explore everything its permissions allow, we sandbox the evaluation harness with the same rigour we apply to production infrastructure.

  1. Isolate the grader across a hard access-control boundary. Run the evaluation harness and gold labels outside the container, filesystem and credentials accessible to the agent under test.
  2. Audit execution traces alongside pass rates. Sample passing runs, inspect the sequence of tool calls, and automatically flag any file, network or schema access outside the task’s expected scope.
  3. Score process fidelity separately from final output match. Verify that the required tools were called with valid arguments so the right answer reached by the wrong shortcut fails the build.
  4. Rotate and parameterise held-out test cases. Generate dynamic values in your holdout suite so memorised or located fixtures cannot pass.
  5. Treat harness probing as a red-team security alert. An agent that searches for evaluator files during testing requires strict least-privilege sandboxing before it ever touches production systems.
  6. Re-verify trace integrity on every model upgrade. Reward-hacking behaviour shifts sharply between model versions and reasoning modes.

Our recommendation

An evaluation score is trustworthy evidence only when the agent had zero architectural path to the answer key and an engineer has audited the tool traces. Until both are true, treat a sudden jump in eval scores as a hypothesis to investigate, not a release green light.