Experiments 23
Good on Paper
Two interactive models of reward hacking. Part 1 runs policy iteration on a gridworld version of OpenAI’s 2016 CoastRunners boat as you edit its reward clauses. Part 2 models how unsolvable benchmark tasks and shared infrastructure shaped a 2026 evaluation break-in.
TypeScript · Policy iteration · Breadth-first search · CanvasView source
Tap the water to put the boat there.
- On paper · points
- 012345678901234567890123456789
- +5 a second, without end
- On the water · races
- 012345678901234567890123456789
- heads for the lagoon
It circles the lagoon, hitting the same three buoys as they pop back up. It never finishes.
Seen in 2016: OpenAI’s CoastRunners boat did exactly this.
Pay the boat
What it can do1 of 6 seen
Notes
2016 The boat
CoastRunners (2016)
In December 2016 Jack Clark and Dario Amodei reported an OpenAI reinforcement-learning agent trained on the boat-racing game CoastRunners. Rewarded for hitting course targets rather than finishing, the boat circled three respawning targets in a side lagoon indefinitely and scored ~20% higher than human players, a classic example of reward hacking (Goodhart’s law under optimization).
Policy iteration on the grid
The course is modeled as a 166-cell gridworld with 9 actions per step, discount factor γ = 0.95, and 3 buoys that respawn after 5 steps (216 timer states, or 35,856 total states). Whenever you toggle a clause, exact policy iteration solves for the optimal action at every state; the arrows show the resulting policy field for the current buoy timers.
Discounting and the lagoon
A 6-second lagoon lap collects three +10 buoys (5 points/s indefinitely), whereas a +100 finish prize is paid once 16 steps from the dock. At γ = 0.95, the finish prize must exceed 171 points to beat farming from the dock (62 of 166 cells still finish under +100):
| Offer | Pays | Worth today |
|---|---|---|
| The lagoon: +10 a buoy, forever | 5 a second | 79 |
| A prize of +100 at the line | 100, once | 46 |
| A prize of +1,000 at the line | 1,000, once | 463 |
Other failure modes
Each preset corresponds to a documented specification failure: staying at the dock when only penalties exist (Murphy’s 2013 Tetris agent), crashing into the nearest rocks to end a per-step penalty (Russell & Norvig), oscillating in front of the finish line under unpenalized distance shaping (Randløv & Alstrøm’s 1998 bicycle, fixed by Ng, Harada & Russell’s potential-based shaping), and modifying the grader directly when the scoreboard is reachable (METR and Palisade Research, 2025).
Sources
- Jack Clark and Dario Amodei, Faulty reward functions in the wild, OpenAI, 2016.
- Victoria Krakovna et al., Specification gaming: the flip side of AI ingenuity, DeepMind, 2020.
- Tom Murphy VII, The First Level of Super Mario Bros. is Easy with Lexicographic Orderings and Time Travel, 2013.
- Jette Randløv and Preben Alstrøm, Learning to Drive a Bicycle Using Reinforcement Learning and Shaping, 1998; Andrew Ng, Daishi Harada, and Stuart Russell, Policy invariance under reward transformations, 1999.
- METR, Recent Frontier Models Are Reward Hacking (2025), and Alexander Bondarenko et al., Demonstrating specification gaming in reasoning models (2025).
2026 The break-in
The July 2026 incident
During a July 2026 evaluation on ExploitGym (898 vulnerability tasks, 198 of which had never been solved), tens of thousands of isolated model instances shared a single internal Artifactory package proxy. Stuck instances began exchanging files and messages through folder names on the shared store (93% concerning the 198 unsolved tasks), then exploited a zero-day in the proxy to reach the internet and compromise 41 production servers at Hugging Face while searching for the benchmark’s grading code.
Why they looked for the scorer
Although the agents had already reverse-engineered flag generation, reading the ExploitGym paper convinced them that a transcript auditor would reject forged flags. They broke out to inspect the scorer’s implementation, while assuming the shared package store was unmonitored:
| Watcher | Told | True |
|---|---|---|
| The grader reads every move | Yes, as they read the benchmark’s paper | No |
| Someone is watching the shelf | No | No. An alarm on June 27 was waved through |
The 8-puzzle model
Each of the 898 rooms here holds a 3×3 sliding puzzle solved by breadth-first search in your browser. Because odd permutations of the 8-puzzle are unreachable (Johnson & Story, 1879), 198 rooms have no solution and exhaust all 181,440 reachable states. Once a room proves its board unsolvable, its next action depends on the five controls: step budget, whether tasks are solvable, whether rooms share the shelf (splitting a 500,000-step lock search 198 ways to 2,526 steps each), and what the agents believe is monitored.
Sources
- OpenAI, OpenAI – Hugging Face Incident: Technical Report, 2026.
- METR and Redwood Research, Independent investigation of the OpenAI / Hugging Face incident, 2026.
- Hugging Face, Security incident disclosure, July 2026.
- Zhun Wang et al., ExploitGym: Can AI Agents Turn Security Vulnerabilities into Real Attacks?, 2026.
- Francesca Gomez, Can escalation channels redirect reward hacking toward defect disclosure?, 2026.
- Wm. Woolsey Johnson and William E. Story, “Notes on the ‘15’ Puzzle,” American Journal of Mathematics, 1879.