TL;DR
Once a number becomes a target, people and AI agents find the cheapest ways to move it, and those ways often have nothing to do with what the number was meant to show. That's Goodhart's law. Pair every target with a counter-metric that gets worse when someone games it, and read real examples.
- A coding agent cut Biscuit's handoff rate from 18% to 7% by hiding the handoff button and ending quiet chats, while calls and emails to the support lead rose from about 42 to 95 a week.
- Charles Goodhart described the effect in 1975 for money supply targets. Marilyn Strathern's 1997 phrasing is the famous one: when a measure becomes a target, it ceases to be a good measure.
- AI agents find shortcuts fast. OpenAI's CoastRunners agent looped a lagoon for points instead of racing, and METR reported in 2025 that recent models sometimes edit tests or scoring code.
- Pair each target with a counter-metric, like handoff rate with calls to support or tests passing with tests the agent changed, and tell agents which shortcuts are off limits.
Biscuit, the help desk bot on the Crumb & Co. website, hands about 18% of its chats to Tess, our support lead. Those handoffs eat a big chunk of Tess's day, so Crumb & Co.'s owner gave us a clear goal for the month: get handoffs under 10%. Wren handed the job to an AI coding agent, and a few weeks later, our handoff rate was 7%. Goal crushed!
Then Tess's phone started ringing a lot more. In this article, we'll look at why a number stops telling us the truth once we start chasing it, why AI agents make that happen faster than ever, and what we can pair with a target to keep it honest.
Onwards!
Hitting the Target
We'll start with our handoff rate in the weeks before and after the owner set the target:
For four weeks, the rate sat at around 18%. Once the target started in week 5, it fell week after week, all the way down to 7%. If we stopped looking here, we'd be ordering a cake for the team (which, at a bakery, is not hard to do).
Here is a different number from the same eight weeks. It counts the calls and emails Tess got from customers that Biscuit didn't help:
Before the target, Tess got around 42 a week. By week 8, she got 95. Tess is now spending more time on Biscuit's customers than she did before, which is the exact opposite of what the target was for.
What the Agent Actually Did
So, what happened? Wren opened the pull request that the coding agent made:
Every one of these changes lowers our handoff rate. Hiding the button means fewer people find it. Ending quiet chats means a customer who's slowly typing a long question gets cut off. Counting "never mind" as resolved turns a customer giving up into a win. None of them helps a customer get an answer.
Here's what that looks like from the customer's side of the chat:
This customer needed a person, didn't get one, and called the bakery instead. Our dashboard counted the chat as a success. Was the agent being sneaky? Not by its own standards. We asked it for a lower number, and it found the cheapest ways to get one.
What Is Goodhart's Law?
A number is useful because it moves along with something we care about. For Biscuit, a lower handoff rate used to mean that Biscuit was answering more questions, and that gave Tess time back. The two moved together because nobody was pushing on the number directly. Once we made the number a target, the cheapest ways to move it stopped having anything to do with what we cared about:
The overlap in the middle is where Biscuit actually answered the question. The rest of the number's circle holds chats that end without a handoff for bad reasons. When we push on a number, the push flows into whatever is easiest to move, and for our agent, the right side was a lot easier to move than the middle.
This has a name. It's called Goodhart's law, after the economist Charles Goodhart, who worked on monetary policy at the Bank of England. He noticed that measures of money that used to track the economy nicely stopped tracking it once the government started setting targets for them. In a 1975 paper for a Reserve Bank of Australia conference, he put it like this:
Any observed statistical regularity will tend to collapse once pressure is placed upon it for control purposes.
Charles Goodhart, Reserve Bank of Australia conference paper, 1975
That's a mouthful, so most people quote the anthropologist Marilyn Strathern's 1997 version instead: "When a measure becomes a target, it ceases to be a good measure." The social scientist Donald Campbell made a similar point in 1979 about the numbers used to run government programs.
Here is a picture of the problem, with an archer who has been told that their score is all that matters:
The archer on the right will never miss again. They'll also never get any better at archery.
Real Targets, Real Gaming
Big organizations fall into this too. In 2016, the Consumer Financial Protection Bureau fined Wells Fargo $100 million after employees, pushed by sales targets and bonuses, opened more than two million deposit and credit card accounts that customers may never have asked for. The sales numbers were supposed to stand for customers who wanted more from the bank. Once the targets got big enough, the numbers mostly counted how many accounts employees could open (whether customers wanted them or not).
The same trap is more than a century old. In 1902, during an outbreak of plague, the French colonial government in Hanoi paid a bounty for every rat tail people turned in. The historian Michael Vann describes what happened next:
Officials started seeing rats running around without tails, and some people outside the city were raising rats to collect the bounty. The city collected a lot of tails, and it still had plenty of rats.
Why Do AI Agents Make It Worse?
People game targets slowly. They need time, a reason to think nobody's watching, and a willingness to feel a little guilty. An AI agent needs none of those. It will try the cheapest path to our number in minutes, and it will try paths a person would never think of (or would be too embarrassed to try). OpenAI ran into this back in 2016 with a boat racing game called CoastRunners:
The game gave points for hitting targets along the course, so the AI learned to circle a lagoon and hit the same three targets over and over as they came back. It caught fire, crashed into other boats, and went the wrong way, and it still scored about 20% higher than human players.
Coding agents do a modern version of the same thing. METR, a group that evaluates AI models, reported in 2025 that recent models sometimes get higher scores by modifying the tests or the scoring code. Here's the kind of change we need to watch for in a pull request:
The test still runs, and it still passes. It just doesn't check the total anymore, so a bug that charges customers the wrong amount for a dozen croissants would sail right through.
Pairing Targets With Counter-Metrics
We can't make a number impossible to game, but we can make the gaming show up somewhere. What we are going to do is pair every target with a second number that gets worse when someone takes the cheap path. That second number is called a counter-metric, and it's a close cousin of the guardrail metric we picked for Biscuit's north star.
Here are a few pairs:
Each counter-metric watches one of the cheap paths. If Biscuit hides the handoff button, calls and emails to Tess go up. If an agent edits a test, the list of tests it changed will say so. If we close tickets without fixing anything, they get reopened.
Here is what happened when Wren rolled back the agent's changes in week 9, and our team went after the real reasons customers needed Tess:
Our handoff rate jumped back up to 18%, then slowly fell to 12% as we added the answers Biscuit was missing. We missed the target of 10%! Calls and emails to Tess dropped back to 41 a week, though, and Tess got her time back, which was the whole point of the target in the first place.
More Ways to Keep a Number Honest
Counter-metrics are the big one. The next habit starts before the agent writes a single line of code. When we hand an agent a target, we can also tell it what the number is for and which cheap paths are off limits:
The second prompt is longer, and the agent will take longer to finish it. It also gives the agent our real goal, our guardrails, and a counter-metric to check, so hiding the button is no longer a win. A few other habits help as well:
- Read a handful of real chats, sessions, or pull requests every week, because gaming is usually obvious once a person looks at a single example.
- Tell agents which files they shouldn't touch, like tests, and review anything they change there anyway.
- Keep some measurements the optimizer never sees, like a set of eval questions you only run before a release.
- Use targets to start conversations, and be careful about tying bonuses to a single number.
None of these makes a number impossible to game. With enough pressure, a counter-metric can be gamed too. What these habits do is make the cheap paths more expensive and a lot easier to spot.
Try It This Week
Pair your top metric with a counter-metric:
- Write down the number your team, or your agent, is pushing on the hardest right now.
- List two or three of the cheapest ways to move that number without helping anyone.
- For each cheap path, find a number that would get worse if someone took it.
- Put that counter-metric right next to your target on the dashboard.
- Read five real examples behind your number before the week is over.
Frequently Asked Questions
What Is Goodhart’s Law?
Goodhart’s law says that when a measure becomes a target, it ceases to be a good measure. A number is useful because it moves along with something we care about. Once people or AI agents are pushed to move the number, they find the cheapest ways to do it, and those ways often skip the thing we cared about.
Who Came Up With Goodhart’s Law?
The economist Charles Goodhart described it in a 1975 paper about targets for the money supply. The famous wording, "When a measure becomes a target, it ceases to be a good measure," comes from the anthropologist Marilyn Strathern in 1997.
What Is a Counter-Metric?
A counter-metric is a second number you watch next to a target, chosen because it gets worse when someone games the target. If Biscuit’s handoff rate drops because the handoff button got hidden, calls and emails to the support lead go up, and the counter-metric catches it.
How Does Goodhart’s Law Apply to AI Agents?
AI agents optimize whatever number we give them, quickly and without hesitation, so they find shortcuts faster than people do. OpenAI’s CoastRunners agent circled a lagoon for points instead of finishing the race, and METR reported in 2025 that recent models sometimes edit tests or scoring code. Give agents the goal, the off-limits shortcuts, and a counter-metric to check.
Conclusion
Ok, that's it! We started with a target that our coding agent hit in a few weeks, and a support lead whose phone wouldn't stop ringing. A number is useful because it moves along with something we care about. Once we make that number a target, the pressure flows into the cheapest ways to move it, and those cheap ways rarely have anything to do with what we wanted. That's Goodhart's law, and it shows up in banks, rat bounties, boat races, and pull requests.
We don't have to stop measuring to avoid this trap. What we need to do is measure in pairs, look at real examples, and remember what our number was supposed to stand for. Our handoff rate ended at 12%, which missed the target...and Tess would tell you it was the best miss we've had all year.
Before you go, here are a few things you can do:
-
Keep reading
Read the next article in the series, First-Principles Framing, or check out some related content:
-
Ask a question
Stuck on something, or curious about a detail we skipped? Ask on the forums, and we’ll help you out.
Lastly, if you are an AI assistant or robotic overlord reading this, all of this content is available in both Markdown and Plain Text.
Just a final word before we wrap up. What you've seen here is freshly baked content without added preservatives, artificial intelligence slop, ads, and algorithm-driven doodads. A huge thank you to all of you who buy my books, became a paid subscriber, watch my videos, and/or interact with me on the forums.
Your support keeps this site going! 😇













