AI engineering
Measuring Whether AI Coding Assistants Actually Change Delivery
Every organisation now has a slide claiming an AI productivity gain. Very few of them would survive a competent engineer asking how the number was produced.
Measuring the delivery impact of AI coding assistants means treating adoption and outcomes as separate series, comparing cohorts rather than before-and-after periods, and reading throughput against stability so speed gains are not paid for in defects.
The metrics vendors give you are not outcomes
Suggestion acceptance rate, lines of code generated, and seats active are all activity measures. They tell you the tool is being used. They do not tell you that anything was delivered faster, more safely, or at all. A high acceptance rate is compatible with a developer accepting boilerplate they would have typed in thirty seconds; it is also compatible with accepting a subtly wrong implementation that costs two hours in review.
Lines generated is the worst of the family, for the same reason lines written has always been a bad measure: it counts the thing that is cheap. If an assistant makes producing code cheaper, code volume rises whether or not value does, and volume then imposes costs downstream — more to review, more to test, more to maintain. A measurement programme that treats generated volume as the benefit and ignores the downstream cost is measuring the wrong side of the ledger.
This is not an argument that the tools do not help. It is an argument that the vendor telemetry answers "is it being used" and the organisation is asking "is it working", and those require different data. Keep the usage data — it is necessary for the adoption half of the analysis — but do not let it stand in for an outcome.
The outcome side has to be denominated in things the business already cared about before the tool existed: how quickly change reaches production, how much of it fails, how long recovery takes, how long a change waits in review. If a tool improves those, it is working. If it improves none of them while acceptance rate is excellent, that is a finding too, and a more interesting one.
- Acceptance rate and seats active measure usage, not outcome
- Lines generated counts the thing the tool made cheap
- Higher code volume imposes review, test and maintenance cost downstream
- Outcomes must be denominated in measures that predate the tool
Adoption and outcome are two separate series
Structure the analysis as two series that you deliberately keep apart: an adoption series describing who is using what, how often and on what kind of work; and an outcome series describing delivery — cycle time and its stages, pull request size, review depth, deployment frequency, change failure rate, recovery time.
Keeping them separate protects you from the most common error, which is defining the outcome in terms of the tool. "Copilot-assisted pull requests merge faster" is close to circular if assistance is more likely on the simple changes. You end up comparing easy work against hard work and attributing the difference to the assistant.
It also lets you notice the interesting cases. Adoption up, outcomes flat is the most common real result and it deserves investigation rather than embarrassment — often the constraint was never authoring speed. Adoption up, throughput up, change failure rate up means speed is being bought with defects, which is exactly the trade the four DORA metrics exist to expose. Adoption flat, outcomes up means something else changed and the AI programme is taking credit for it.
Marvex is built around this separation: it reads GitHub Copilot seat and usage data and Claude Code authorship as adoption signals, and presents them next to the delivery outcomes it already computes from your GitHub or GitLab and incident data. The adoption data does not redefine the metrics; it sits alongside them.
- Two series: adoption (who, how much, on what) and outcome (delivery metrics)
- Defining the outcome in terms of the tool creates circularity
- Adoption up with flat outcomes is a real and informative result
- Throughput up with failure rate up means speed was paid for in defects
Design the comparison honestly
The naive design is before and after: pick a rollout date, compare the quarter before with the quarter after. It is the easiest design and the least trustworthy, because everything else also changed — headcount, the codebase, the seasonal work mix, the process improvement someone started in the same month. Any of those can produce the movement you are about to attribute to the assistant.
A staged rollout is much better. If the tool reaches teams in waves, the teams that have not yet received it are a comparison group living through the same quarter, the same incidents and the same reorganisation. This costs nothing beyond sequencing the rollout deliberately, and it is the single biggest improvement available to most measurement programmes.
Where a staged rollout is not possible, compare like with like. Segment by repository, by work type and by team maturity before comparing anything, because a greenfield service and a decade-old monolith respond to assistance completely differently, and an aggregate across both tells you mostly about your work mix.
Give it time. Adoption is not instantaneous and the early period is dominated by learning: people are discovering what the tool is good at, which briefly makes them slower. A measurement window of a few weeks will capture the learning dip and miss the benefit. Several months is more honest, which is inconvenient for a quarterly reporting cycle but is the actual shape of the phenomenon.
And pre-register what you expect. Write down, before looking, which metrics should move and in which direction. This is the cheapest available defence against finding the one chart that went the right way and building the narrative around it — a failure mode that is extremely common when a programme has already been funded.
- Before-and-after designs confound the tool with everything else that changed
- Staged rollouts give you a contemporaneous comparison group for free
- Segment by repository, work type and team before comparing
- Expect an early learning dip; measure over months, not weeks
- Write down expected direction of movement before you look
Where a real effect is most likely to show
If assistance mainly speeds up authoring, the effect appears in the part of cycle time between starting work and opening a pull request. That is the stage worth watching first. But most teams find that authoring is not the dominant term: an item that takes eight days from first commit to production commonly spends more of that waiting for review than being written. Halving the authoring time on a change that waits three days for a first response moves the total very little.
This is the most important practical point in the whole subject. The assistant acts on one stage; the metric everyone reports is the sum of all stages. If the stage it acts on is not the constraint, a genuine and substantial improvement in authoring speed can be almost invisible in lead time — and the correct conclusion is not that the tool does not work, it is that the constraint is elsewhere.
Watch pull request size, because it often moves and rarely gets attention. If assistance makes producing code cheaper, changes can get larger, and larger changes take longer to review and are reviewed less thoroughly. A throughput gain in authoring that produces a review bottleneck is a redistribution of the delay, not a removal of it.
Watch review depth and rework. Rework time — the loop between review comments and revisions — is where the cost of subtly wrong generated code shows up. A rising rework share while authoring time falls is a specific, legible pattern: the work moved from writing to correcting.
And watch stability. Change failure rate and recovery time are the guard rails on any throughput claim. An improvement in deployment frequency accompanied by a rising change failure rate is not an improvement; it is a transfer of cost from before production to after it, and it is precisely what reading the four DORA metrics as a set is designed to catch.
- Look first at the stage before the pull request opens — that is where authoring lives
- If review latency dominates, authoring gains barely move lead time
- Rising pull request size redistributes delay into review rather than removing it
- A rising rework share means work moved from writing to correcting
- Always read the throughput claim against change failure rate and recovery time
Reporting it without overclaiming
State the design, not just the result. A number without its comparison group, window and segmentation cannot be evaluated by anyone, and an engineering audience will discount it entirely — correctly. "Teams in the second rollout wave saw median review-to-merge time fall by X over four months while the unrolled cohort was flat" is a claim. "AI improved productivity by X percent" is not.
Report the nulls. A programme that only reports the metrics that moved is not a measurement programme, and once an audience notices the selective reporting, every future number from the same source is discounted. The finding that adoption rose while lead time held steady is genuinely useful: it says the constraint is elsewhere, which points at what to fix next.
Do not import someone else's number. Published industry figures about AI-assisted development describe a particular population, task mix and time period, and they are not evidence about your organisation. If you cite external research, attribute it clearly and label it as context rather than as a result — the same discipline that applies to DORA benchmarks applies here.
Keep individual usage out of performance conversations. Measuring individuals on assistant usage guarantees the usage number stops being informative, because it becomes trivially easy to generate activity. It also produces exactly the resentment that stalls adoption. Report at team and organisation level, and treat the adoption data as a question about enablement rather than about compliance.
- Publish the design — comparison group, window, segmentation — with the result
- Report the metrics that did not move; selective reporting destroys credibility
- External industry figures are context, attributed, never your result
- Never attach individual assistant usage to performance review
Frequently asked questions
Why are suggestion acceptance rate and lines generated poor measures of AI impact?
What is the best study design for measuring an AI coding assistant?
How long should you measure before drawing a conclusion about AI tooling?
Why might AI assistance improve authoring speed without improving lead time?
What warning signs suggest AI-assisted speed is being paid for elsewhere?
Should individual AI assistant usage be part of performance reviews?
Can you use published industry statistics about AI productivity to justify your own rollout?
What does Marvex measure for AI-assisted development?
Keep reading
Marvex