The AI code you didn't understand comes back as rework

81% of teams merged AI code they didn't fully understand. Here is how that rework lands in your sprint, and how to plan Capacity for it.

Lazy Scrum teamLazy Scrum · 4 min read
LazyScrum blog cover: The AI code you didn't understand comes back as rework

The merge was fast. The fix came two sprints later.

Earlier this month TestMu AI (formerly LambdaTest) published its State of AI in Quality Engineering 2026 report. One line got shared a lot: 81% of teams say they have merged AI-written code or tests they didn't fully understand.

That number is easy to read as a security story or a QA story. For a Scrum team, it is a planning story. Code nobody fully understood at merge time does not disappear. It comes back as bugs, support tickets and rework, and it lands in a sprint that never planned for it.

What the report says

The survey ran from late July to early October 2026 across the TestMu AI community: testers, developers and QA leaders. It is a vendor survey and the answers are self-reported, so read the numbers as signals, not measurements. Still, the pattern is clear.

  • 81% of teams have merged AI-written code or tests they didn't fully understand.
  • 40% say AI writes more than half of their production code.
  • 44% report more escaped defects or production incidents as AI-generated code grew.
  • Only 41% run any automated check on AI-written code before it is merged.
  • Where AI code reaches QA without separate automated tests in CI, 49% of teams see escaped defects rise, against 38% of teams that run those tests.
  • Only 13% have an incident-response plan for AI mistakes.
Bar chart: 81% of teams merged AI code they did not fully understand, 41% run any automated check before merge, 44% report more escaped defects, 13% have an incident plan for AI mistakes

Why a Scrum Master should care

Most teams measure what AI speeds up: stories closed, pull requests merged, lines shipped. Very few measure what comes back. When 44% of teams see more defects reach production, the cost does not show up in the sprint where the code was written. It shows up later, as unplanned bug fixing that eats Capacity.

So the sprint looks great on paper. Then the next sprint misses its goal, and nobody connects the two. The team blames Estimation. The real cause is rework that was never visible.

This is the gap. AI changed how fast code gets written. It did not change how much attention a team has. If understanding is skipped at merge time, the team pays for it with attention later, usually at a worse moment.

Four things to change in your next Sprint Planning

1. Reserve Capacity for rework, on purpose. Look at your last three sprints. How many hours went to fixing things the team shipped recently? Hold that amount back before you pull new stories. If you don't know the number, that is your first problem to solve.

2. Make "I understand this code" part of Done. Add one line to your Definition of Done: the person who merges can explain what the change does and how it fails. It sounds small. It changes how people review AI output.

3. Add an automated check before merge. The report's gap between 49% and 38% is about separate tests in CI. If AI writes a large share of your code, budget time in the sprint to build those checks. Treat it as real work with real hours, not a side task.

4. Split bug fixing from enhancement in your reports. If both sit in the same velocity number, rework hides inside "progress". Track them apart, sprint by sprint. A rising bug fixing share is the earliest warning you will get.

A question for you

How much of your last sprint went to fixing work from the sprint before? Do you know the number, or is it a feeling? Tell us in the comments or on LinkedIn.

Seeing rework before it eats the next sprint

Point 4 is where most teams get stuck, because bug fixing and new work end up in one number. LazyScrum's Measure report splits bug fixing from enhancement and shows rework sprint by sprint. That is how you tell whether AI saved time or only moved it forward.

Point 1 gets easier too. Sprint Planning runs live on top of Jira, and the hours you hold back for rework sit on each person's 30-minute timeline where the whole team can see them. You can try it on your next sprint with a 7-day free trial at lazyscrum.com.

Sources: TestMu AI, State of AI in Quality Engineering 2026 · PR Newswire release, Nov 13, 2026

Run your next sprint planning in Lazy Scrum

A timed, measured planning session on your Jira or Azure DevOps board. Every plan starts with a free trial; no card needed.

All posts
    AI-written code and rework: plan Sprint Capacity for it · Lazy Scrum