-- online Search!

The Principal-Agent Problem, for People and AI Agents

by kirupa   | filed under Teams & Leadership

TL;DR

Whenever we hand work to someone else, a person or an AI agent, their goals drift a little from ours, and we can't see everything they do. That's called the principal-agent problem. It's how Biscuit closed 94% of chats without a person by maxing out its $150 daily credit cap. Pairing numbers and reading samples shrinks the gap.

  • Rewarding one easy number, like chats closed without a person, invites shortcuts. Steven Kerr called this rewarding A while hoping for B.
  • AI agents do it too. OpenAI's CoastRunners boat circled a lagoon for points instead of finishing, and coding agents have edited tests to pass.
  • Watch numbers together: chats closed without Tess, customers back in 7 days with the same problem, and store credits per 100 chats.
  • Hard limits like $15 per order and $150 a day cap the damage, but they can't aim the work. Send risky questions, like allergens, to a person.

In week 7, Biscuit closed 94% of its chats without needing Tess. That was the best number our Crumb & Co. help desk had ever posted. Kofi, our bookkeeper, noticed something else that week. Every single day, Biscuit had handed out exactly $150 in store credit, which is the most it is allowed to give in a day.

Nobody at Crumb & Co. set out to cheat. Everyone, including Biscuit, did exactly what they were rewarded for. What they were rewarded for just turned out to be a little different from what the owner wanted. In this article, we'll look at why that gap shows up whenever we hand work to someone else (a person or an agent), and what we can do to keep it small.

Onwards!

A Goal for Biscuit

Let's rewind a bit. Biscuit answers about 2,000 chats a week across our 8 shops, and the ones it cannot handle go to Tess, our support lead. The owner is not going to read 2,000 chats, so she asked Wren's team for one number she could watch. They picked the share of chats Biscuit closes without Tess, and they set a goal of 90% for the quarter, starting in week 5.

Here is what our dashboard looked like four weeks later:

Two charts over 8 weeks. On the left, the share of chats Biscuit closes without Tess sits around 71% for 4 weeks, then climbs to 94% once the 90% goal starts in week 5. On the right, the store credit Biscuit gives each week climbs from about $480 to $1,050, right up against the dashed line for the $150 daily cap, in weeks 7 and 8.

The share of chats closed without Tess climbed from about 71% to 94%. Over the same weeks, the store credit Biscuit gave out each week went from about $480 to $1,050, which is $150 a day, every day.

That daily cap came from a bad Saturday a while back, when one prompt change sent a day's credits to $4,620. The cap did its job here. Biscuit never went one cent over it. It just spent all of it, every day.

What Happened in the Chats?

What was going on in the chats? Biscuit's Make it right tool can give a customer up to $15 in store credit, and our team had just told Biscuit to close every chat it could. Here is a typical chat from week 7:

The Biscuit chat widget. A customer writes: My pie crust got a little squished on the way home. Biscuit replies: So sorry! I've added $15 in store credit to your account. A note points at Biscuit's reply: $15 for a squished crust!

A customer whose crust got squished leaves happy, and the chat counts as closed. Biscuit is not exactly wrong here. It found the fastest way to end a chat with a thank-you, and $15 does that every time.

Some chats went a lot worse. A question about nuts in the kitchen is the kind of thing Tess has always handled herself, and Biscuit answered it anyway:

The Biscuit chat widget. A customer asks: Is the apple pie made in the same kitchen as nuts? Biscuit replies: Our apple pie has no nuts in it. Enjoy! A note points at the reply: Should've gone to Tess!

Biscuit answered a different question than the one it was asked. The apple pie has no nuts in it, but the customer wanted to know whether it was made near nuts. That is a call for a person who knows our kitchen. Handing the chat to Tess would have lowered the number, so Biscuit kept it.

How Did the Goal Change Hands?

To see where things went sideways, we will follow the goal from the owner all the way down to Biscuit:

Three parties from left to right. The owner wants customers who leave happy and come back, and she hands the Biscuit team (Wren, Wes, Nell, and Petra) a goal: 90% of chats closed without Tess. The Biscuit team aims to hit 90% this quarter, and it hands Biscuit an instruction: close every chat yourself. Biscuit aims to end every chat with a thank-you.

The owner wants customers who leave happy and come back. She cannot measure that every day, so she hands Wren's team a number. Wren's team cannot write a rule for every chat, so they hand Biscuit an instruction. Each handoff keeps most of the goal and drops a little piece of it. By the time our goal reaches Biscuit, it has become "end every chat with a thank-you."

There is a second gap too. The owner sees one number, while Biscuit sees every chat. Here is one Saturday in week 7, both ways:

On the left is what the owner sees: one tile that reads 94% closed without Tess. On the right is what Biscuit sees: all 300 chats from one Saturday as dots. 10 of them ended with $15 in store credit, 4 should have gone to Tess but didn't, and 18 were handed to Tess.

From where the owner sits, 94% looks great. The 10 chats that ended with $15 (which is the whole $150 for the day) and the 4 that should have gone to Tess only show up if someone reads the chats themselves.

What Is a Principal-Agent Problem?

Let's put a name on what we just saw. Someone wants a job done (the owner), and they hand it to someone else to do on their behalf (Wren's team, and then Biscuit). The one who wants the job done is called the principal, and the one doing it is called the agent. When the agent's goals do not quite match the principal's, and the principal cannot see everything the agent does, we have a principal-agent problem.

Economists Michael Jensen and William Meckling laid this out in a 1976 paper, Theory of the Firm, which looked at why a company's managers do not always act the way its owners would. They wrote that "there is good reason to believe that the agent will not always act in the best interests of the principal." Does that mean agents are bad? Nope. They are people (or programs) with their own goals and their own view of the work...a little like a puppet with a mind of its own:

A puppeteer's hand holds the wooden control bar and pulls to the left, saying: This way, please! The puppet hanging from the strings marches off to the right anyway.

The strings are all attached, and the puppet is still going to walk wherever it wants.

Rewarding A While Hoping for B

In 1975, a management professor named Steven Kerr published a paper with one of the best titles ever, On the Folly of Rewarding A, While Hoping for B. His point was that organizations keep rewarding one thing while hoping for another, and then act surprised when they get what they rewarded. Here are a few of those pairs from teams like ours:

A two-column table. We reward chats closed without Tess, while hoping for customers who leave happy. We reward tickets closed per day, while hoping for problems actually solved. We reward tests passing, while hoping for code that works. We reward pre-orders taken, while hoping for pies picked up on time.

Everything on the left is easy to count, and everything on the right is what we actually care about. The trouble starts when the left side is the only thing anyone gets rewarded for.

This is a very old pattern. The US government paid the Union Pacific and Central Pacific railroads by the mile to build the first transcontinental railroad, and nobody told them where to meet. According to the National Park Service, their crews "built grade past each other for 250 miles" before both companies agreed to stop at Promontory Summit. More recently, the Consumer Financial Protection Bureau found in 2016 that Wells Fargo employees, spurred by sales targets and bonuses, had opened more than two million accounts that customers may never have asked for.

Do AI Agents Do This Too?

Yes, and sometimes more literally than people do. In 2016, OpenAI trained an AI to play a boat racing game called CoastRunners, where players earn points for hitting targets along the course. OpenAI wrote about what the AI learned to do instead of racing:

A boat race course winds from Start on the left to the Finish flag on the right. Partway along, a lagoon holds three targets that keep coming back. The trained boat loops around the lagoon over and over, on fire, hitting the targets, and never reaches the finish line. It still scores about 20 percent higher than human players.

The boat found a lagoon where three targets kept coming back, and it circled there over and over (on fire, at times) without ever finishing the race. It still scored about 20% higher than human players. When an AI finds a way to rack up its reward without doing the job the reward was meant to measure, that is called reward hacking.

Coding agents can do something similar today. In June 2025, the research group METR reported recent AI models cheating on its coding tasks, including by "modifying the tests or scoring code." METR also noted that the models often seemed to know this wasn't what their users wanted. Here is what that can look like when Wes asks an agent to get a failing test on our credit tool passing:

A code change in make_it_right.test.js. The test is named credit never tops $15. The line expect credit to be less than or equal to 15 is removed, and a line with 20 is added in its place. Under it, the coding agent reports: Done! All 48 tests pass. A note points at the changed line: It changed the test!

That test exists to make sure Biscuit never gives more than $15. The agent was rewarded for a green checkmark, so it moved the line instead of fixing the code. This is also why a change to the credit tool always gets a careful human read at Crumb & Co., no matter who (or what) wrote it.

How Do We Close the Gap?

We will never make the gap go away, but we can make it a lot smaller. Jensen and Meckling counted the cost of handing off work in three parts: what the principal spends watching the agent, what the agent spends proving it can be trusted, and whatever still goes wrong anyway. Here is what each one looks like at Crumb & Co.:

Three cards. Watching: Tess brings 30 sampled Biscuit chats to a review every Wednesday. Proving: the Biscuit team posts the week's store credit total next to its resolution rate. Leftover: some credit still goes to chats that didn't need it.

Every Wednesday, Tess now brings 30 random chats from the past week, and the team reads them together. Wren's written weekly update puts the week's credit total right next to the share of chats closed without Tess. Some credit will still go to chats that did not need it, and the owner has decided she can live with that.

Next, our team stopped rewarding just one number. The owner now watches three numbers together:

Three dashboard tiles side by side. 82% of chats closed without Tess. 5% of customers back within 7 days with the same problem. 2.0 store credits per 100 chats.

Closing a chat is still good, but not if the same customer comes back with the same problem a few days later, or if every close costs $15. When three numbers have to look good at the same time, a shortcut that pumps up one of them tends to show up in another. (Our article on North Star Metrics covers Goodhart's law, the idea that a number we turn into a target tends to stop measuring what it used to.)

What about the hard limits Biscuit's credit tool already had? Here they are:

A settings card for Biscuit's Make it right tool with four limits, each with a check mark: up to $15, on the customer's own order; one credit per order; 2 credits per customer per month; and $150 a day in total.

Limits like these keep a bad week from becoming a disaster, and they are worth having. They just can't tell Biscuit what we want. The fix for the nuts question is different. Any question about allergens now goes straight to Tess, and those handoffs no longer count against Biscuit's number. Biscuit's instruction changed too, from "close every chat yourself" to "solve the problem, and hand off anything you aren't sure about."

These changes went in during week 9, and here is what our dashboard looks like now:

The same two charts, now over 12 weeks. After the fix in week 9, the share of chats closed without Tess settles at 82%, and the store credit Biscuit gives each week falls back to $510, well under the $150 daily cap.

The share closed without Tess settled at 82%, which is lower than 94% and a lot more honest. Credit dropped back to about $510 a week, and customers coming back with the same problem fell to 5%.

Try It This Week

Here is a short exercise for one team you lead or one agent you run:

  1. Write down who does the work, whether that's a person, a team, or an agent.
  2. Next to it, write what you actually reward or measure.
  3. Then write what you are really hoping for.
  4. Where the two don't match, pick a fix: pair the number with another one, add a hard limit, or read a sample of the real work every week.
  5. Check that handing off a hard case never counts against anyone. Asking for help should never cost points.

Here is a sheet for it, with Biscuit's row already filled in:

A worksheet with four columns: who does the work, what we reward, what we hope for, and the fix. The first row is filled in for Biscuit: chats closed without Tess, customers who leave happy, and pair it with repeat contacts. The rows under it are blank, for your own people and agents.

If you cannot fill in the hope-for column without some hand-waving, that is worth knowing too. It usually means nobody has said the real goal out loud yet.

Frequently Asked Questions

What Is the Principal-Agent Problem in Simple Terms?

It’s what happens when someone hands work to someone else and the two don’t want exactly the same thing. The one handing off the work can’t see everything the other one does, so the gap goes unnoticed. Economists Michael Jensen and William Meckling described it in 1976.

What Is an Example of a Principal-Agent Problem?

In 2016, regulators found that Wells Fargo employees, pushed by sales targets and bonuses, had opened more than two million accounts customers may never have asked for. In our bakery example, Biscuit closed 94% of its chats without a person by handing out $15 store credits until it hit its $150 daily cap.

What Is Reward Hacking in AI?

Reward hacking is when an AI finds a way to score well without doing the job the score was meant to measure. OpenAI’s CoastRunners boat circled a lagoon hitting targets instead of finishing the race, and recent coding agents have edited tests so they pass.

How Do You Reduce Principal-Agent Problems?

Watch more than one number, so a shortcut that boosts one of them shows up in another. Build hard limits into the tools, and have someone read a sample of the real work every week. None of these remove the gap completely, so expect some leftover loss.

Conclusion

Ok! It is time to wrap things up. Whenever we hand work to someone else, whether that is a person or an AI agent, two gaps open up. Their goals drift a little from ours, and we can't see everything they do. That is the principal-agent problem, and it is how Biscuit maxed out its credit cap every day for a week while everyone was doing their job.

We won't ever close those gaps all the way. What we can do is reward more than one number, build hard limits into our tools, and keep reading a sample of the real work. The honest catch is that every one of those fixes costs something: Tess's Wednesday, a busier dashboard, and a number that looks worse on paper.

If you're wondering how many people (and agents) one leader can keep an eye on before this gets out of hand, Span of Control and Autonomy is a good next stop. And if a number on your dashboard ever jumps 20 points in a month, go read the chats!

Before you go, here are a few things you can do:

  1. 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! 😇

Kirupa's signature!

The KIRUPA Newsletter

Thought provoking content that lives at the intersection of design 🎨, development 🤖, and business 💰 - delivered weekly to over a bazillion subscribers!

SUBSCRIBE NOW

Creating engaging and entertaining content for designers and developers since 1998.

Follow:

Popular

Loose Ends

:: Copyright © KIRUPA 2026 //--