AI Academy · Book
Engineering Managers · Module 04 · Chapter 001

Why Engineering Productivity Is Hard to Measure

Lines, commits and pull requests are easy to count and easy to move, which is exactly why they mislead. A manager who sorts every number into activity, output, outcome or impact, and sets each count beside something it cannot fake, can answer a director's question without handing the team a target that bends the data.

≈ 11 min read

After this chapter you can

  • Sort any metric onto the four-level ladder from effort counts to impact before it goes in a report.
  • Explain why pull request, commit and line counts mislead once an assistant makes volume cheap.
  • Pair each count with a counterweight that would worsen if the count were gamed.
  • Complete a six-field metric card naming the decision served, a way to meet the number falsely and a review date.
  • Write a line stating what cannot yet be seen about impact, with the date you will look again.

A director opens the quarterly dashboard and asks a fair question. Since the team got AI coding assistants, pull requests merged per week have gone up by almost half. Is the team almost half more productive? You suspect the answer is no, but “it is more complicated” is not an answer a director can use, and a manager who cannot say what the number does mean will soon be handed one to hit.

Two public studies show how far apart the count and the result can sit. Faros AI’s telemetry on more than 10,000 developers found that teams with high AI adoption merged 98 percent more pull requests, with 91 percent longer review time, and that the company saw no measurable improvement at the organizational level1. METR’s randomized trial with 16 experienced open-source developers found that tasks took 19 percent longer with AI tools, while the developers believed afterwards that the tools had made them 20 percent faster2. Both are narrow, with caveats the sources state. The METR trial covers early-2025 tools in one setting, and METR now marks its page as out of date, with results for early 2026 published separately, so it is no verdict on current tools; the Faros figures are associations in one vendor’s telemetry. The point is shared: what people do, what they feel they did and what the system delivered are three different things, and a manager needs words to keep them apart.

Four levels between effort and result

Level 1 established that usage is not productivity, and that cumulative counts flatter whoever reports them. The engineering version needs finer grain, because a software team produces many things that look like results. Sort every number you see into one of four levels.

Activity is what people and tools did: commits, lines added, pull requests opened, suggestions accepted, tickets moved, hours online. It is the cheapest level to collect, since tools log it by default.

Output is what was delivered and is working: changes released to production, features completed, defects fixed and verified. Output is countable too, but the unit is a finished piece of work and not an act of effort.

Outcome is a change in what someone else can do. Users complete a task faster, an upstream team stops being blocked, failures fall. Outcomes are measured outside the team’s own tools, which is why they are the hardest to collect.

Impact is the business consequence: revenue retained, cost removed, risk reduced. Many causes feed it, and it lags by months, so a team can rarely claim a share of it with confidence.

Four levels from activity through output and outcome to impact; collection gets harder and relevance greater at each step up.ActivityCommits, lines, PRs openedOutputDelivered and workingOutcomeWhat users can now doImpactRevenue, cost or risk, months later
Figure 4.1.1 Each step up is harder to collect, slower to arrive and closer to what the organization cares about.

The ladder gives you a test to run on any number placed in front of you. Ask which rung it sits on. A pull request count is activity. Deployments that stayed up are output. A drop in time users spend on a task is an outcome. Many dashboards are built from the lowest rung because it needs no extra work, which is a fact about tooling, not about what matters.

Why counts at the bottom mislead

The common activity counts fail for three separate reasons. It helps to keep them apart, because each calls for a different fix.

The unit is not constant. A pull request can change twelve lines or twelve hundred. A commit can be one logical step or a day of work. A count treats them as equal, so any change in how people cut their work changes the number without changing the work. AI assistants alter the unit more than most things do. In the Faros data the average pull request on high-adoption teams was 154 percent larger1, so “more pull requests” and “bigger pull requests” arrived together, and a single count cannot say what you are comparing.

Volume has become cheap. A line of code once cost minutes of an engineer’s attention, so lines loosely tracked effort. When an assistant produces a hundred lines in seconds, lines say how much text exists and little else. The same goes for tests generated and comments written. A measure whose production cost has collapsed stops being scarce, and a metric needs scarcity to carry information.

The valuable work is invisible. Reviewing a colleague’s change, deleting a dead module, writing the one paragraph that stops a bad design, mentoring a newcomer: none of it produces a commit. A count that rewards visible activity will undercount exactly the work a team most needs when AI drafts quickly and judgment becomes scarce.

None of this makes the counts useless. Treat them as clues that tell you where to look. A rise in pull request size with a rise in review wait is a lead worth following. It becomes a problem when the clue is promoted to the verdict.

Goodhart’s law and what it costs

The economist Charles Goodhart wrote in 1975 that any observed statistical regularity will tend to collapse once pressure is placed on it for control purposes. The anthropologist Marilyn Strathern’s later paraphrase is the version managers quote: when a measure becomes a target, it ceases to be a good measure [@mattson-2021-goodhart; @strathern-1997]. The mechanism is simple. A number correlates with something you want, so you tell people to raise the number. They find the cheapest way to raise it, which is usually not the thing you wanted, and the correlation breaks.

DORA’s own guidance on its delivery metrics makes the same point. It advises against setting the metrics as goals, because doing so invites teams to manipulate the data, and says they are meant for a team to improve against its own past, not to compete with other teams3. That is a research group warning managers off targeting its own flagship measures, which is worth remembering the next time a target for one of them is proposed.

A documented case: sales counts at Wells Fargo {#case-wells-fargo}

The clearest public record of a target distorting its own measure is not from software, but it needs no translation. In September 2016 the US Consumer Financial Protection Bureau announced a 100 million dollar penalty against Wells Fargo, with further penalties from the Office of the Comptroller of the Currency and the City and County of Los Angeles. Bank employees, the Bureau found, had opened roughly 1.5 million deposit accounts and submitted roughly 565,000 credit card applications that customers had not authorized, in a period running from 1 January 2011. The Bureau attributed this to compensation incentive programs that encouraged employees to sign existing customers up for more products, and said the bank failed to monitor the programs with adequate care4.

A sales count tied to pay was met by opening accounts customers had not authorized, followed by a 100 million dollar penalty.TargetProducts sold percustomer, tied to payCount metAccounts and cardapplications openedNot the goalAbout 1.5 millionunauthorized depositaccountsCFPB, 8 Sep 2016: 100 million dollar penalty
Figure 4.1.2 A count tied to pay was met in large numbers without the customer wanting the product; the figures are the regulator’s, for one bank.

Scope matters. The record shows what incentive-linked counts did at one bank in one period, and it does not show that software teams behave the same way. Its use here is as a clear instance of the mechanism: the number was real, the targeting was explicit and the distance from the goal was large. For a software team the equivalent is smaller and quieter, but the pattern is the same. If merged pull requests become the number on the quarterly report, work will be cut into more pull requests. If suggestions accepted becomes the adoption measure, acceptance will rise, and review will be the place that absorbs the difference. Those two sentences are predictions drawn from the mechanism, not findings about your team; the way to find out is to look at what moves next to the count.

What to look at instead

The aim is not to measure less. It is to put the count in its proper place and let higher rungs lead. Four habits do most of the work.

Lead with output, then outcome. Deployed changes that stayed up, time from commit to production, the share of releases needing a fix: these sit on the output rung, are collected by the pipeline and are hard to fake without delivering. The next chapter sets out DORA’s five delivery measures. Outcomes follow: a task users complete faster, tickets about a feature, adoption of what you shipped.

Match every count with a counterweight. Choose the second metric so that gaming the first makes it worse. Pull request count goes with review wait and change fail rate. Tickets closed goes with reopen rate. Test count goes with escaped defects. Matching is cheap and it removes most of the reward for gaming.

Measure the team or the system, not the person. A team’s delivery depends on review queues, tooling and priorities that no individual controls. Per-engineer counts convert that shared system into private blame and give people a reason to protect their own number. A later chapter in this module covers the limits on individual tracking.

Say what you could not measure. Impact needs a long window and many causes. A manager who writes “customer impact not yet observable; revisit in two quarters” is more credible than one who attaches a guess.

A team-sized worked example

Consider an illustrative team of eight engineers, built for this chapter and not taken from a real organization. The team compares two 13-week quarters, before and after assistants arrived. The figures are invented to show the reading, with thresholds that are starting values you should replace with your own.

In an illustrative team, pull requests rose 45 percent but deployments rose 10 percent and the change fail rate rose from 10 to 18 percent.Measure (level)BeforeAfterChangePull requests merged perweek (activity)4058+45%Median pull request size,lines (activity)120210+75%Median first-review wait, hours(flow clue between rungs)614+8 hoursDeployments in thequarter (output)130143+10%Failed deployments in thequarter (output)1326doubledChange fail rate (output)10%18%+8 points
Figure 4.1.3 Invented figures for an eight-person team over two 13-week quarters; change fail rate is failed deployments divided by deployments (13 of 130 and 26 of 143).

The director’s number is right: 58 against 40 is 18 more, which is 45 percent. Read down the ladder and the story changes. Deployments, the output rung, grew 10 percent, from 130 to 143. Failures doubled, from 13 to 26, so the change fail rate went from 10 percent to 18 percent (26 divided by 143 is 18.2). Pull requests were 75 percent larger, and the wait for a first review more than doubled. One plausible reading, to test and not a proven cause, is that the team produced more text, queued it behind the same reviewers, and shipped slightly more with noticeably more failures. The impact rung has nothing in it, because 13 weeks is too short to see customer effects.

The manager’s proposal is three lines. Report pull requests only as a diagnostic. Put deployments, change fail rate and review wait beside it. Set an illustrative trigger for discussion, not a target: if pull request volume rises by more than 20 percent while deployments rise by less than half of that, or the change fail rate climbs above 15 percent, the team reviews batch size and review capacity before the next quarter. The numbers are placeholders. What carries over is the structure: an activity count, an output counterpart, a guardrail and a written reading rule.

What this means for engineering managers

Monday action: pick the one number your director asks about most and fill in the card below for it before you next report it.

A metric card with six fields: metric and rung, decision it informs, how it could be gamed, counterweight, owner and review date.FieldWhat to writeMetric and rungName, and activity, output, outcome or impactDecision it informsThe choice that changes if the number movesHow it could be metwithout the goalAt least one concrete wayCounterweightThe second metric that would reveal that wayLevel and ownerTeam or system; one named personReview dateWhen you will check whether it still means what you think
Figure 4.1.4 A six-line card to copy for any metric before it goes on a dashboard or into a goal.

Check yourself

  1. A rise in merged pull requests shows the team delivered more.
  2. Setting a target on a count tends to change how people produce the count, which can weaken what it measured.
  3. The Wells Fargo case proves software teams will game any metric you give them.
  4. Matching a count with a metric that would worsen if the count were gamed removes much of the reward for gaming it.
  5. In the METR trial, developers who used AI tools finished tasks faster and said so afterwards.
  6. A team that cannot yet measure customer impact should leave the impact line out of its report.

Reflection

What comes next

Pull requests and lines say what people did. Delivery measures say what reached production and whether it held. The next chapter, DORA Delivery Metrics in Practice, defines the five measures research has tested for software delivery and shows how to read throughput and stability together.

References

  1. Faros AI. The AI Productivity Paradox Research Report. Faros AI. 2025.
  2. Joel Becker, Nate Rush, Elizabeth Barnes and David Rein. Measuring the Impact of Early-2025 AI on Experienced Open-Source Developer Productivity. METR (arXiv 2507.09089). 2025.
  3. DORA (Google Cloud). DORA's software delivery metrics: the four keys (use and misuse). dora.dev. 2026.
  4. US Consumer Financial Protection Bureau. Consumer Financial Protection Bureau Fines Wells Fargo $100 Million for Widespread Illegal Practice of Secretly Opening Unauthorized Accounts. consumerfinance.gov. 2016.

Further reading

Sources last verified 2026-10-13.