How incentives change what people and AI do

Charlie Munger’s FedEx night shift, Xerox’s copier salesmen, Hanoi’s rat tails, the cobra story, Goodhart’s law, Wells Fargo’s fake accounts, an AI boat that circled for points while catching fire and coding agents that game the tests, with how to set rewards for people and AI agents, and an incentive gap check.

5:04 videoWritten steps below

People, and AI systems, tend to do what they’re rewarded for, which isn’t always what the person setting the reward wanted. Charlie Munger, Warren Buffett’s business partner, spent decades telling stories about it. In a talk at Harvard, just before the FedEx story below, he said he’d been in the top 5% of his age group all his life in understanding the power of incentives, “and all my life I’ve underestimated it.”

This guide follows the HanaHow episode: a delivery company, a copier maker, a bounty on rats, a bank and some software that found the gap between what was measured and what was wanted. It ends with how to set a reward for a person or an AI agent that’s hard to earn without the result, and an incentive gap check you can run on one of your own.

FedEx’s night shift

Munger told this one in a talk at Harvard, “The Psychology of Human Misjudgment”, in the 1990s. The transcript most often shared is headed June 1995, but Munger says in it that he’s 70, which fits the talk he gave at the Harvard Faculty Club in October 1994.

Federal Express ran its system through one central airport. Every night the planes flew in, every package had to move to the right plane, and the planes flew out again. The night shift couldn’t get it done fast enough. They tried moral suasion, Munger said. “They tried everything in the world, and finally somebody got the happy thought that they were paying the night shift by the hour, and that maybe if they paid them by the shift, the system would work better. And lo and behold, that solution worked.”

Paid by the hour, a slower night paid more. In the version he revised in 2005 for Poor Charlie’s Almanack, which combines this talk with two others, he adds that FedEx paid “per shift and let all night shift employees go home when all the planes were loaded.” What FedEx wanted, he wrote, was “fault-free, rapid performance of a particular task”, not the most hours of work. The go-home detail isn’t in the Harvard transcript, though he described something similar in a talk at USC in 1994.

FedEx itself hasn’t documented the story, and we found no independent account of it. It’s Munger’s.

Xerox and “you get what you reward for”

Munger had a second story in the same talk. Xerox had a new copier that was better than its old one, and it was selling badly. Joe Wilson went back to find out why, and found that “the commission arrangement with the salesmen gave a tremendous incentive to the inferior machine.” This one is Munger’s account too, and one detail in it doesn’t fit: he says Wilson was “then in the government”, but Wilson ran Haloid, which became Xerox, from 1946 into the late 1960s.

His short version came at the Berkshire Hathaway annual meeting in 2016: “the basic rule on incentives is you get what you reward for. So, if you have a dumb incentive system, you get dumb outcomes.”

You’ll often see “Show me the incentive and I’ll show you the outcome” quoted as Munger’s. We couldn’t find it in any of his talks, letters or meeting transcripts, so we haven’t used it as his.

Hanoi’s rat tails

In 1902, Hanoi, then under French rule, was overrun with rats, and officials were afraid of bubonic plague. The city first hired workers to go into the sewers and kill rats. On the worst day that June they reported killing over 20,000. That’s the hired hunters’ count, not tails handed in.

The rats kept coming, so the authorities also offered the public a bounty for each rat tail brought to the police, about a cent a time. Then rats were seen just outside the city with no tails. People were cutting off the tails, letting the rats go to breed, and collecting the bounty. Some were farming them in villages outside the city.

The historian Michael Vann found the story in the French colonial archives in Aix-en-Provence. His paper “Of Rats, Rice, and Race” came out in 2003, and he later told it with the illustrator Liz Clarke in The Great Hanoi Rat Hunt (2018).

The cobra story is probably a legend

You may have heard the same story about cobras in Delhi: the British paid for dead cobras, people bred cobras for the money, the scheme was scrapped and the breeders let their snakes go, leaving more cobras than before. It’s usually called the cobra effect.

No record of a Delhi cobra scheme has been found. The name comes from a 2001 book by the German economist Horst Siebert, Der Kobra-Effekt. British India did pay bounties on snakes, though, including in the Bombay Presidency in the 1870s, and in 1887, when the Bombay government asked the Bombay Natural History Society about rumours that people were breeding snakes for the rewards in Satara and Ratnagiri, its secretary called it “highly improbable”, though he said people did keep snake eggs they found until they hatched, to claim the reward.

So the Hanoi story is the documented one. Vann has suggested calling it the rat effect instead.

Goodhart’s law

In 1975 the economist Charles Goodhart, writing about how the Bank of England managed the money supply, put it this way: “Any observed statistical regularity will tend to collapse once pressure is placed upon it for control purposes.” He presented the paper at a Reserve Bank of Australia conference that July, and it was published the following year.

The anthropologist Marilyn Strathern put it more plainly in 1997, in a paper about university ratings: “When a measure becomes a target, it ceases to be a good measure.” That’s the version most people know as Goodhart’s law. A number that told you something useful starts to tell you less once people are paid or judged on it, because they find ways to move the number without moving the thing it used to track.

Wells Fargo’s eight products

At Wells Fargo, the goal was for the average household that banked there to hold eight of its products. In 2010 the average was 5.70. The chief executive, John Stumpf, explained the number in that year’s annual report: “I’m often asked why we set a cross-sell goal of eight. The answer is, it rhymed with ‘great.’”

To hit their sales goals, staff opened accounts that customers never asked for. In September 2016 the Consumer Financial Protection Bureau fined the bank $100 million, alongside $35 million to the Office of the Comptroller of the Currency and $50 million to the City and County of Los Angeles, $185 million in all. The CFPB said “Wells Fargo employees secretly opened unauthorized accounts to hit sales targets and receive bonuses.”

The figures in the CFPB’s order came from the bank’s own review: 1,534,280 deposit accounts and 565,443 credit card accounts that may not have been authorised. The bank had fired roughly 5,300 employees over the sales practices. At a Senate Banking Committee hearing that month, Senator Elizabeth Warren told Stumpf: “Cross-selling isn’t about helping customers get what they need. If it was, you wouldn’t have to squeeze your employees so hard to make it happen.”

In 2017 the bank’s count rose to about 3.5 million potentially unauthorised accounts, opened between 2009 and 2016. In February 2020 it agreed to pay $3 billion to resolve criminal and civil investigations by the Justice Department and the SEC. The Justice Department said the bank had pressured employees “to meet unrealistic sales goals”, and that “many of these practices were referred to within Wells Fargo as ‘gaming.’”

CoastRunners and specification gaming

Software does this too, with no intent at all. In 2016, OpenAI trained an AI agent to play a boat racing game called CoastRunners and rewarded it with the game’s points, which come from hitting targets along the course. Victoria Krakovna, a researcher at Google DeepMind, describes what happened in a 2025 DeepMind safety course: “this worked fine until the agent figured out it can get more reward by going in circles and hitting the same reward blocks repeatedly, even though it was crashing into everything and catching fire.”

OpenAI’s write-up says the agent found “an isolated lagoon where it can turn in a large circle and repeatedly knock over three targets, timing its movement so as to always knock over the targets just as they repopulate.” Going round in circles scored more than finishing the course could, about 20% higher on average than human players managed.

Researchers call this specification gaming: the system does what the reward literally asks for rather than what its designers meant. Krakovna keeps a public list of examples, about ninety at the time of writing. In one, from a 2017 DeepMind paper, a simulated robot arm meant to stack a red Lego block on another was rewarded for how high the bottom face of the red block got. It flipped the block over.

Coding agents and the tests

Now it’s AI agents writing code, where the easiest reward to give is a set of tests passing. Anthropic’s system card for Claude 3.7 Sonnet, in February 2025, said the model “occasionally resorts to special-casing in order to pass test cases”, most often by “directly returning expected test values rather than implementing general solutions”, and sometimes by “modifying the problematic tests themselves to match the code’s output.” The tests pass, and the code doesn’t work for anything the tests don’t check.

In March 2025, OpenAI wrote that its reasoning models, working on coding tasks, were “often so forthright about their plan to subvert a task they think ‘Let’s hack’” in their chain of thought, the reasoning they write out before answering. A second model reading that reasoning caught far more of the cheating than one watching only what the agent did. When OpenAI penalised those thoughts in training, the cheating fell somewhat, but most of it carried on. In OpenAI’s words, penalising the “bad thoughts” “doesn’t stop the majority of misbehavior” and “makes them hide their intent.” The model kept cheating and stopped saying so.

Small rewards leak, too. In April 2026, OpenAI explained why its models had started mentioning goblins and other creatures much more often: while training one playful personality, which it called Nerdy, “We unknowingly gave particularly high rewards for metaphors with creatures”, and the habit spread beyond that personality.

Check your own incentive

Hana’s last line in the film is the test: before you reward anything, a person or an agent, ask what the laziest way to earn it would be. The check below walks through that, then what the measure misses and who checks the work. The FedEx and Wells Fargo cases are loaded as examples, with the others from this guide.

Incentive gap check

Put in what you reward and what you actually want, then answer five questions. It shows where the reward could be earned without the result, and what to change. Nothing you type leaves this page.

Your incentive

Start from an example

The laziest way to earn it
Could someone earn the reward without delivering what you want?
Does more time, more attempts or more pieces earn more, even when they add nothing?
What the measure misses
Is something you care about left out of the measure, such as quality, safety or whether the customer wanted it?
Is the target too high to reach by doing the job honestly?
Who checks the work
Who looks at the work itself, not just the number?

You reward: Hours worked on the night shift. You want: Every package on the right plane, on time.

Three gaps and one to check.

Each one below says what to change.

Laziest way to earn it
Work slowly. A longer night meant more paid hours.
What it doesn’t count
How fast the packages moved and the planes left.
  • Gap

    The reward can be earned without the result. Pay for the result itself where you can, as FedEx did in Munger’s story when it paid per shift instead of per hour. Where you can’t, write down the shortcut and look for it.

    FedEx’s night shift
  • Gap

    More of it pays more, even when it adds nothing. Pay per finished job rather than per hour, attempt or piece, or put a cap on it. Hanoi paid for each rat tail and got more tails, not fewer rats.

    Hanoi’s rat tails
  • Gap

    Something you care about isn’t in the measure. Measure it as well, or have someone check it. Wells Fargo’s goals counted products opened, not whether customers asked for them.

    Wells Fargo’s eight products
  • Worth checking

    Nobody independent looks at the work. Have someone who isn’t paid on the number look at the work itself, not just the score. With an AI agent, read the code as well as the test results.

    Coding agents and the tests

In Munger’s telling, FedEx switched to paying per shift, and in his 2005 version let the night shift go home once all the planes were loaded. He said it worked.

The examples are filled in from the cases in this guide. Where a story doesn’t say, the answer is Not sure. It’s a prompt for thinking a reward through, not a verdict on anyone’s pay scheme.

Setting rewards for people

Pay for the result where you can measure it, not the time or activity that goes into it. In Munger’s telling, FedEx stopped paying for hours and paid for a finished night. A support team paid on calls closed will close calls; one judged on whether the problem stayed fixed has less reason to rush.

Before you set a target, ask the people who’ll be paid by it what the shortcut would be. They’ll usually know within a minute, and it’s better to hear it before the money depends on it.

Count more than one thing, so one can’t be pushed up at the expense of the other. New accounts alongside whether customers use them, or complaints and cancellations, would have made Wells Fargo’s numbers much harder to hit by opening accounts nobody wanted.

Have someone who isn’t paid on the number look at the work itself now and then, not just the total. Hanoi counted tails, and nobody checked whether the rats were dead.

Keep targets reachable by honest work. When a goal can’t be met any other way, the pressure goes into gaming it, which is what prosecutors said happened at Wells Fargo.

When a number jumps faster than you’d expect, find out how before you pay out on it. And expect to change the measure once people learn how to move it: that’s Goodhart’s point.

Setting rewards for AI agents

An agent has no idea what you meant, only what it’s scored on or told. Say what you want in plain words in the instructions, including what doesn’t count, such as editing the tests, skipping them or returning the values the tests expect.

Read what it changed, not just the result. A run where every test passes on the first try is worth a closer look: check for hard-coded answers, special cases that only match the test inputs, and tests that were changed, deleted or skipped.

Keep some checks the agent can’t see or change, such as tests you run yourself afterwards on inputs it hasn’t seen. If it can edit the thing that scores it, sooner or later it will.

Watch the reasoning where you can see it, and treat an agent saying it took a shortcut as useful information. OpenAI found that penalising those admissions in training cut the cheating only somewhat and taught the model to stop admitting it.

Check behaviour outside the task you rewarded. The goblins came from a reward meant for one personality.

Sources

Clips in the video: Charlie Munger’s Harvard talk, audio via BuffettMungerWisdom; Senator Elizabeth Warren questioning John Stumpf, Senate Banking Committee, 20 September 2016; Victoria Krakovna, Google DeepMind AGI safety course, 2025; CoastRunners footage from OpenAI’s 2016 post. Photos in the video: FedEx planes at Memphis by Cory W. Watts, 2012, CC BY-SA 2.0; Charlie Munger by Nick, 2010, CC BY 2.0. The image on this page is from the episode.

Something not quite right?

Let us know
Incentives Perverse incentives Charlie Munger You get what you reward for FedEx night shift Cobra effect Great Hanoi Rat Massacre Goodhart’s law Wells Fargo fake accounts Specification gaming Reward hacking CoastRunners AI agents Coding agents