Topic 3 of 5 · 4 min read
Delivery metrics for AI-assisted teams
Goal: Pick delivery and quality metrics that show whether AI tools help a team, and reject vanity metrics such as lines generated.
Measure what reaches users and how safely, not how much code the tools produced. Lines generated, suggestions accepted and pull requests opened all count activity. They go up even when the team is slower or shipping more bugs.
Check yourself · 1 of 3
Which metric best shows whether AI tools help a team deliver safely?
Why it matters
When a team adopts Copilot, Claude Code or Cursor, someone will ask "is it working?". If the answer is a count of accepted suggestions, the team will optimise that count. This is Goodhart's law: a measure that becomes a target stops being a good measure. DORA's research on AI is one place to read how delivery performance relates to AI use, and its metrics guide warns against setting a metric as a goal.
The measures to use
DORA names five software delivery metrics. Three describe throughput and two describe instability:
- Change lead time: how long a change takes from commit to running in production.
- Deployment frequency: how often you deploy.
- Failed deployment recovery time: how long it takes to recover when a deployment needs immediate action.
- Change fail rate: the share of deployments that need immediate intervention, such as a rollback or hotfix.
- Deployment rework rate: the share of deployments that were unplanned fixes for a production incident.
Add two local signals the team can see: review time (how long a pull request waits and how long reviewers spend) and escaped defects (bugs found after release). Both show whether faster writing is moving the problem to review or to users.
How to use them
- Take a baseline before the rollout, then compare the same team on the same service over months. DORA says to apply the metrics per application or service and not to compare very different teams.
- Read throughput and instability together. If lead time falls while change fail rate rises, the tool made the team faster at shipping problems.
- Use the numbers to start a conversation about friction, not to rank people.
Before and after
Before: a slide says "Agents wrote 38% of our code this quarter". It says nothing about users.
After: a table for the payments service compares the quarter before and after the rollout: lead time, deployment frequency, change fail rate, rework rate, median review wait. Now the team can ask why review wait doubled.
What goes wrong
- Vanity counts. Lines generated and acceptance rates reward volume.
- Gaming. Splitting one change into ten to raise deployment frequency.
- One metric alone. Speed without stability, or the reverse, hides the trade.
- Ranking engineers. People then hide failures instead of reporting them.
Examples
A baseline table
| Metric | Before rollout | After 3 months |
|---|---|---|
| Change lead time | 4 days | 2 days |
| Change fail rate | 8% | 14% |
| Median review wait | 6 hours | 20 hours |
Lead time halved but the fail rate rose and reviews slowed. The team looks at pull request size before celebrating.
Rejecting a vanity metric
A manager proposes a dashboard of "AI-generated lines per engineer". The team lead replies that the number rewards big diffs, which are the hardest to review, and offers lead time and change fail rate for the service instead.
Key points
- Vanity counts such as lines generated and suggestions accepted measure activity, not value.
- DORA's five metrics cover throughput (lead time, deployment frequency, recovery time) and instability (change fail rate, rework rate).
- Read speed and stability together; faster delivery with a higher fail rate is not an improvement.
- Add review time and escaped defects to see where AI-written code is costing effort.
- Compare the same team and service over time, and never use the numbers to rank individuals.
Common mistakes
- Reporting lines generated or acceptance rate as proof that the tool works.
- Looking at speed metrics without the failure and rework metrics.
- Comparing teams that run very different services.
- Setting a metric as a target, which invites gaming.
Check yourself · 2 of 3
After an AI rollout, change lead time halves and change fail rate doubles. What is the fair reading?
Check yourself · 3 of 3
Why can setting a delivery metric as a team goal backfire?
Practice items, not counted towards your mastery.
Start here
- DORA metrics guide (opens in a new tab)ArticleFree
The five delivery metrics, how to read them, and the pitfalls of using them as targets.
- DORA research: AI (opens in a new tab)ArticleFree
Research on how AI assistance relates to delivery performance and team practices.
- AGENTS.md (opens in a new tab)DocsFree
The open convention for a plain-markdown instruction file that coding agents read.