In short
Measuring developer productivity keeps failing when engineering metrics count one activity, such as lines of code, story points, tickets or AI tokens. Measure the output of the work, not the activity, and pair every measure with a second one that shows when people overdo the first.
Once people are ranked or rewarded by a single count, they raise the number instead of doing better work.
The same mistake showed up in a weekly form at Apple in 1982 and in an AI leaderboard at Amazon in 2026.
Andy Grove, then the president of Intel, described that fix in 1983.
The rest goes through those cases, the counts teams use today, and what a fair ranking of engineers needs.
What happened to Amazon's AI token leaderboard?
In May 2026, Amazon closed an internal leaderboard of AI use. Business Insider reported the reason: it "encouraged some staff to perform tasks that didn't necessarily solve problems, just so they could climb the ranks."
Business Insider described it as an employee-made leaderboard that "tracked AI token use." The leaderboard counted the AI tokens each person used.
In June 2026, 404 Media, an independent news site, reported that some employees said they had "deliberately cheated to climb the leaderboard's ranks."
Amazon isn't the first company to count the wrong thing. Some managers at Apple made the same mistake in 1982.
Lines of code at Apple in 1982
A rewrite that made the code faster and shorter counted as a negative number. The managers soon stopped asking its author for the count.
In early 1982, some managers at Apple asked every engineer to report, each week, how many lines of code they had written.
Bill Atkinson, the main designer of the user interface of Apple's Lisa computer, had just rewritten part of his code with a simpler method. The new version was almost 6 times faster and about 2,000 lines shorter. When he reached the lines-of-code field, he "thought about it for a second, and then wrote in the number: -2000." After a couple more weeks, the managers stopped asking him to complete the form.
Are story points, tickets, pull requests and AI tokens any better?
Story points, tickets, opened pull requests and tokens work for their own job, but stop measuring real work once teams or people are compared on them.
Many teams estimate their work in story points. Ron Jeffries, the first coach of Extreme Programming, a team style of building software, has written about where they came from.
A story point was a renamed "ideal day": the time a pair of programmers would need for a piece of work if nobody interrupted them. The points had one job, which was helping a team decide how much work to plan. In 2019, Jeffries wrote: "I may have invented story points, and if I did, I'm sorry now." He also wrote that comparing teams on their estimates, or on the points they finish, is harmful.
Tickets and pull requests have the same problem. In 2026, a paper from Microsoft's Engineering Thrive team described the pattern. Engineering Thrive is Microsoft's own system for measuring the conditions its developers work in. The paper says: "Organizations often track activities (lines of code, pull requests, tasks) and treat them as proxies for outcomes (value delivered, speed, quality)." Companies often count what people do and then treat the count as if it were the result.
Pull requests show the difference. A pull request someone opened is activity. A merged pull request whose code is still there months later is much closer to a result. Counting the activity means measuring the paperwork. Measure the work, not the paperwork. The mistake is measuring people through the ticket tracker.
The newest single count is AI tokens. Business Insider also reported that Amazon "does track AI token usage to measure costs." That's the right use for them. A token count is a fuel bill, not an achievement. Like the counts before it, it stopped measuring real work the moment people were ranked by it.
What did McKinsey propose in 2023, and why did engineers object?
McKinsey proposed new ways to measure developers, and Gergely Orosz and Kent Beck answered that nearly every measure it added counted effort or output.
In August 2023, the management consulting firm McKinsey published an article called "Yes, you can measure software developer productivity." McKinsey wrote that, compared with functions such as sales, "software development is perennially undermeasured," meaning it gets measured less than those other functions. As most companies become software companies to some degree, it argued, their leaders need to know they're using their most valuable people well. And McKinsey itself warned against overly simple measures such as lines of code.
McKinsey said in 2023 that its approach was in use at "nearly 20 tech, finance, and pharmaceutical companies." It kept measures from well-known research and added its own. One of them, which it called contribution analysis, assessed each person's contributions to the team's backlog. The backlog is the list of planned work, and the analysis started from data in tools such as Jira.
Later that month, Gergely Orosz and Kent Beck published a response. Orosz writes The Pragmatic Engineer, a newsletter for software engineers and engineering managers. Beck created Extreme Programming and test-driven development.
They split software work into 4 stages:
- Effort: the planning and the coding.
- Output: what that produces, such as the feature and its code.
- Outcome: how customers behave differently because of it.
- Impact: the value the company gets back, such as revenue.
They also wrote that "the act of measurement changes how developers work, as they try to 'game' the system." To game a system is to raise its numbers without doing better work.
Kent Beck gave an example from Facebook. A developer survey there was meant to show how things were going. "Then those scores became goals," and managers started bargaining with their engineers for better scores.
In Beck's account, one offer went like this: "Give me a 5 & I'll make sure you get an 'exceeds expectations'." That's a strong rating in a performance review. In the end, Beck and Orosz wrote, the company knew "even less about how things are going". Things were also getting worse "because people are now gaming the system."
McKinsey asked a fair question and answered it with the wrong measures. Leaders do need to know where engineering time and money go, but they can't learn it by counting how busy people look.
Can developer productivity be measured at all?
Yes: measure the work that shipped and lasted, not how busy people were, and check each measure against a second one that catches its side effects.
Kent Beck says no. In part 2 of the 2023 response to McKinsey, he wrote a section alone. His answer was: "Measure developer productivity? Not possible."
Behind that answer is Goodhart's law. Charles Goodhart, an adviser at the Bank of England, described it in 1975. Its best-known short form comes from Marilyn Strathern, a professor of social anthropology at Cambridge. Strathern wrote in 1997: "When a measure becomes a target, it ceases to be a good measure."
I think Beck and Goodhart are right about one kind of measure. Count one activity and reward it, and people will raise that number without doing better work. But measuring people changes how they work, and that isn't always bad. It's the reason to measure at all. Which way it changes them depends on what you count.
In 1983, Andy Grove published a book called High Output Management. Grove was the president of Intel at the time. On page 18, he wrote that "a genuinely effective indicator will cover the output of the work unit and not simply the activity involved." His example was a salesman: "you measure a salesman by the orders he gets (output), not by the calls he makes (activity)."
Grove also gave a second rule. Because measures direct what people do, he wrote, you should pair them, "so that together both effect and counter-effect are measured." His example came from software: track when each part of a program will be ready next to what it can do. Watching both should help a team avoid building "the perfect compiler that will never be ready," and also avoid "rushing to finish one that is inadequate."
DORA, short for DevOps Research and Assessment, is Google's research program on how teams deliver software, and it works the same way today. It puts how fast a team ships next to how often its changes fail. DORA's guide to these measures was last updated in January 2026. It says that "speed and stability are not tradeoffs" and that for most teams the two are correlated: they rise and fall together.
What does a fair ranking of engineers need?
A fair ranking counts the work that shipped and lasted, and checks it against quality. Then the way to climb it is to do better work. It follows these rules:
- Count the work that shipped and how long it lasted.
- Pair every speed measure with a quality measure.
- Remove points when the work breaks, and more when it breaks sooner.
- A number can show you where to look. It can't tell you why. So before you act on a number about a person, ask them.
With a ranking built like this, being measured still changes how people work, but in the direction you want. One way to climb is to write clean code that ships and doesn't need fixing soon after. Reviews count too: own the code you approve as well as the code you write, and don't keep your teammates waiting for a review.
I founded Aidealy, which makes software that measures the work engineering teams ship. Its ranking of engineers, the Aidealy Productivity Rank, follows these rules. Among other things, it counts each engineer's merged pull requests. Points come off when that code has to be fixed after the merge, and more when it breaks sooner. Reviewing other people's work earns credit, and keeping a teammate waiting for a review costs points. The lines an engineer writes earn no points, and neither do tokens: Aidealy counts tokens, but doesn't rank by them.
What to take to your next leadership meeting about developer productivity
Count one activity, and people will learn to cheat it. So rank on shipped work that lasted, and pair speed with quality. Remove points when the work breaks, and ask the person before you decide anything based on their number.
No ranking can tell you whether the work was worth doing. A rank shows how the work went. Whether it was worth doing is a judgment, and that judgment stays with you.
| Case | What was counted | What happened |
|---|---|---|
| Apple's Lisa team, 1982 | The lines of code each engineer wrote that week | A rewrite that made the code almost 6 times faster went on the form as -2000, and the managers stopped asking for that engineer's count |
| Story points, Ron Jeffries in 2019 | Story points, a renamed "ideal day" of work | The man who may have invented them wrote that, if he did, he's sorry now, and that comparing teams on them is harmful |
| Facebook's developer survey, told by Kent Beck in 2023 | A developer survey score | Managers bargained with engineers for better scores, and the company knew even less than before |
| McKinsey's framework, 2023 | Its own added measures, such as each person's contribution to the team's backlog | Orosz and Beck wrote that nearly every one counted effort or output |
| Amazon's AI leaderboard, 2026 | How much AI each employee used, in tokens | It encouraged some staff to do tasks that did not necessarily solve problems, and Amazon closed it in May 2026 |
Sources
- Brent D. Griffiths, Business Insider, Amazon says it shut down a token leaderboard, 2026
- Emanuel Maiberg, 404 Media, Amazon Shuts Down Internal AI Leaderboard After Employees Cheated, 2026
- Andy Hertzfeld, -2000 Lines Of Code, folklore.org, 1982
- Ron Jeffries, Story Points Revisited, 2019
- Houck and others, EngThrive: Make It Fast and Easy to Do Great Work, ACM Queue, 2026
- McKinsey, Yes, you can measure software developer productivity, 2023
- Gergely Orosz and Kent Beck, Measuring developer productivity? A response to McKinsey, 2023
- Kent Beck and Gergely Orosz, part 2, 2023
- Marilyn Strathern, 'Improving ratings': audit in the British University system, European Review, 1997
- Andrew S. Grove, High Output Management, Random House, 1983, page 18
- DORA (DevOps Research and Assessment), software delivery performance metrics guide, 2026
Watch the video on YouTube: Why measuring developer productivity keeps failing
Opens in a new tab
