Post

The performance metrics that survive AI

The performance metrics that survive AI

A team doubled its merged pull requests per week after rolling out AI assistance. Three months later, delivery had not improved: lead time was flat, incidents were up, and the same files were being rewritten every fortnight.

The dashboard was not lying. It was measuring activity, and activity had become cheap.

This is the central problem of engineering measurement in the AI era. Volume metrics are easy to inflate, and AI inflates them automatically. The metrics worth keeping are the ones that measure instability and waiting, because those are much harder to fake.

What the evidence says

Four data points frame the problem.

  • Activity inflates: commits, pull request volume, churn and tickets closed all rise with agent assistance, so they stop distinguishing good teams from busy ones.
  • Adoption is near universal: DORA’s 2025 report puts AI adoption at 90% of software professionals, and links it to higher throughput but also higher delivery instability.
  • Perception diverges from measurement: in METR’s 2025 randomised trial, 16 experienced developers took 19% longer with AI on 246 real issues while believing they were about 20% faster.
  • Code quality signals shift: GitClear’s analysis of 623 million changed lines reports more churn and duplication and less refactoring between 2023 and 2026, though the study is vendor research and should be read as a signal, not proof.

The conclusion is not that AI is bad. It is that measurement has to move from how much we produce to how predictably we deliver and how often we break things.

The filter

Keep what AI cannot easily inflate. Drop what it can.

Of the ten candidate metrics commonly used, four survive that filter.

1. DORA four keys. Lead time for changes, deployment frequency, change failure rate, and failed deployment recovery time. DORA now groups them into throughput and instability. Read the instability side first: deployment frequency alone increasingly reflects tool adoption rather than engineering maturity.

2. DORA rework rate. The share of deployments that are unplanned fixes for earlier ones. This is where AI’s cost shows up most directly, because rework is the tax on accepting generated code without review capacity to match.

3. Cycle time breakdown. Total cycle time shrinks with AI and can hide the real bottleneck, which is often humans verifying code they did not write. Splitting the time into stages (refinement, first commit, coding, review, merge, deploy) shows where the waiting actually sits.

4. Rework and churn. The share of lines in a merged change that are rewritten or deleted within a short window, two weeks being a common convention. It catches maintainability damage that deployment level metrics miss.

Demoted or dropped:

  • Flow metrics overlap with the cycle time breakdown, and throughput is the weakened half.
  • The Flow Framework needs consistent work item typing that most teams do not have yet.
  • SPACE is a guardrail against single number thinking, not a scoreboard.
  • Developer experience surveys are useful quarterly context, but perception can diverge from measurement.
  • Weighted throughput fails because size is exactly what AI inflates.
  • Value based throughput is the right idea, but it needs tagging discipline first.

How to apply it

One chart, one team, weeks along the bottom. Each weekly bar is stacked by median days spent per stage, from backlog to released. A line on top shows rework rate.

Three practical rules:

Use medians and P85, not averages. A single stalled item can distort an average for weeks.

Bucket by release week, not by commit week. Otherwise you measure when work started, not when it reached production.

Read speed and stability together. Any speed metric can be gamed. A team that ships more and breaks more has not improved.

Caveats worth stating out loud

The evidence is early and mixed. METR studied 16 developers on early 2025 tooling. GitClear is vendor research. DORA is survey based. None of this is settled science, and treating any single number as truth is the mistake the AI era punishes fastest.

What is settled is the direction: optimise for predictability and stability, and treat volume as a symptom rather than a goal.

If you run this next quarter, start with the cycle time breakdown. It needs the least new instrumentation, and it will tell you whether your bottleneck is where you think it is.

A worked example

A platform team tracks one service for a quarter. Cycle time falls from 11 days to 8, which looks like a win. The breakdown shows the drop came entirely from coding time, while review time rose from two days to four. Rework rate climbed from 6% to 11% in the same period.

Read together, the story is clear: generation got faster, verification became the bottleneck, and quality dropped. The right intervention is review capacity and smaller changes, not more generation.

That is the pattern to look for. A falling total hides a rising stage. A stable total can hide two stages moving in opposite directions.

When the numbers move

If lead time rises but deployment frequency is flat, work is queuing before release. Look at approvals and environment availability.

If change failure rate rises while cycle time falls, the team is trading quality for speed. Slow down review, not generation.

If rework rate rises with no change in cycle time, generated code is being accepted faster than it can be understood.

Each signal points at a different fix. A single composite score would hide all three.

References


To test my projects, I use Railway. If you want $20 USD to get started, use this link.

This post is licensed under CC BY 4.0 by the author.