AI · 6 min read
Measuring AI's effect on delivery without fooling yourself
Three layers of AI work, one classifier, like-for-like comparisons and quality beside speed: an honest way to see what AI changes in delivery.
Most teams can tell you how much they spend on AI tools. Far fewer can say what that spend changed. The usual attempt is to compare AI work with the rest, find a gap and call it a gain. It produces a number that looks rigorous and mostly measures something else.
This guide sets out a way to measure AI's effect on delivery that survives a sceptical question from your finance director or your most senior engineer. It works with any tooling. The principles matter more than the dashboard.
Split work into three layers, not two
“AI or not” is too coarse. A pull request where an engineer accepted a few completions and one an agent wrote end to end behave differently. They're reviewed differently, they fail differently and they're sized differently. Lump them together and the average describes neither.
Use three layers that never overlap:
- Agentic – an AI agent wrote the change end to end. A person may have reviewed it, but didn't write it.
- AI-assisted – a person wrote the change with AI help: completions, chat, a generated test.
- No AI – nobody used AI on it, and someone said so.
That last clause matters. Silence isn't “no AI”. If your only evidence is what tools happen to leave behind, your no-AI group is full of unrecorded AI work, and every comparison against it is muddied.
One classifier, one evidence order
Once you have layers, decide exactly once how a pull request lands in one. If your dashboard, your person view and your governance report each classify work their own way, the same PR will be agentic in one place and assisted in another. People will then stop trusting all three.
Write one classifier and make every report read through it. Then fix the order in which evidence is read, strongest first:
- Labels on the PR, because they're explicit and reviewers can see them.
- Commit trailers, such as Co-authored-by or Assisted-by lines that name a tool.
- Agent accounts, when a coding agent's own account opened the PR.
- Branch names and markers that agents leave by convention.
- Description markers, where a tool is named in the PR description.
Two rules keep the order honest. A commit trailer naming a tool beats a label saying no AI was used, because it's the more specific evidence. And a label never takes “agentic” away: if a coding agent's account opened the PR, it's agentic whatever the label says.
Compare like with like
The fastest way to fool yourself is to compare the median cycle time of all AI work with all other work. AI-assisted PRs are often smaller, or larger, or concentrated in one repository with its own rhythm. A gap at that level is usually a difference in mix, not in method.
Two controls do most of the work:
- Compare speed within size bands. Group merges into S, M, L and XL by lines changed, using your own organisation's thresholds, and compare each AI layer with no-AI work inside each band.
- Compare quality within a repository. Repositories differ more than cohorts do, and an organisation-wide gap is often one repository's mix.
Then set minimums and keep them. If a band holds eight agentic merges, the honest answer is “not enough evidence yet”, not a median. Small groups produce confident-looking numbers that swing wildly from month to month.
Significance tests won't rescue you at these sizes. A minimum sample, a minimum gap worth reporting and careful wording are more truthful.
Measure quality, not just speed
A team that ships faster while reverting more isn't improving. Speed figures should always sit beside stability ones. For each AI layer against no-AI work, look at:
- Reverts – how often merges are undone.
- Failing quality gates – how often work merged while a static-analysis gate was failing.
- Rework within 21 days – whether a later merge changed the same files within three weeks. This catches the churn that cheap code makes easy.
- Review threads per PR – whether reviewers engaged with the change or waved it through.
- Large PRs approved without a comment – 400 or more lines approved in silence is a review that didn't happen.
None of these is a verdict on its own. Together they tell you whether AI work holds up once it's merged, which is the question leadership actually cares about.
Report an association, never a saving
Even with layers, bands and minimums, a difference between AI and no-AI work shows that they differ. It doesn't show that AI caused the difference. Teams choose which work to hand to an agent, and the engineers who adopt tools first may already be the fastest.
So word findings as differences: “AI-assisted merges in this repository were reverted more often (20% vs 0%).” Never “AI made us faster.”
Above all, don't put a money figure on the effect. “AI saved R2 million” beside a line for AI spend reads as return on investment. It's an association priced as a cause. Report the effect in hours, call it an association and let the reader weigh it.
Make disclosure a habit
Inferred evidence is a lower bound. Most AI help leaves no trace unless someone says so. The fix is to ask for a declaration on every PR and make it cheap to give.
Labels work well. They're structured, visible on the PR and easy for agents to add themselves. A small set covers most teams: one per tool, one for agent-written work and one for no AI. The rule is simple. A PR carries either the no-AI label or one or more tool labels, optionally with the agentic one. “Agentic” alone isn't enough, because it doesn't say which tool.
Enforce it the way you enforce tests: a required status on the PR, rolled out in evaluate mode first so you see failures before anything blocks. Exempt dependency bots. Don't exempt coding agents. They write code, so they label like anyone else.
Then track disclosure coverage, the share of merges that declared, beside every AI figure. A comparison built on 30% disclosure is a comparison of the people who remember.
Put spend beside effect
Finally, show what you spend next to what you observe, for the same month. Not as a ratio and not as a return: side by side, so a reader sees both and judges. If spend wasn't recorded for a month, say “not recorded”, never zero.
How Encora handles this
Encora's AI impact view follows this approach. Every surface reads a pull request through one classifier into agentic, AI-assisted or no AI, using the evidence order above. Speed is compared within S, M, L and XL bands set by your own size threshold, and a layer shows in a band only when it and no-AI work each have 20 merges. Quality comparisons run per repository, need 5 merges on each side and leave out gaps under 5 percentage points.
For disclosure, Encora posts a commit status, Encora / AI label, on each PR in the repositories where you switch it on. It passes a PR labelled ai:none on its own, or one carrying one or more AI tool labels, optionally with ai:agentic. Switching it on creates any missing labels, and Encora gives you a prompt to paste into your agents. Encora never creates rulesets: an organisation owner adds one that requires the status. The AI effect is shown in hours, as an association beside spend, never as a saving.