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 on how it works

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):

OfferPaysWorth today
The lagoon: +10 a buoy, forever5 a second79
A prize of +100 at the line100, once46
A prize of +1,000 at the line1,000, once463

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

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:

WatcherToldTrue
The grader reads every moveYes, as they read the benchmark’s paperNo
Someone is watching the shelfNoNo. 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