The honest view from inside technical leadership
Analysis

Leadership

Field notes on how engineering leaders keep control of systems as AI changes how software gets built.

Leadership · Response

AI Code and Production Outages: Why Debugging Hours Belong to the Change

AI code speeds up writing but debugging now takes 16.9 hours a week. Here is how to charge incident and debugging hours back to the change that caused them.

Line-art illustration of a stopwatch beside a tall stack of code changes and a magnifying glass, representing AI code production outages and debugging time

AI code production outages follow a simple pattern: teams write code faster than they can understand it, and the cost moves into debugging. A recent article by Chris Stokel-Walker reports that engineers spend 16.9 hours a week debugging against 9.8 hours producing code, and this piece extends that finding into a measurement proposal for engineering leaders.

The article finds that faster code generation moved the bottleneck into debugging

Stokel-Walker reports on a survey of 300 senior engineering leaders at large US and UK companies that build mission-critical software, run for the debugging company Undo in July and August 2026. According to the article, 81% of respondents had a production incident or outage linked to AI coding tools in the last six months, 93% had a root cause wrongly diagnosed because of an AI hallucination, and 35% said AI-generated code reaches production before the team fully understands it. Some 79% said their release cycles are no faster than before AI.

The article’s conclusion is that "Faster code isn’t faster releases." It suggests leaders measure defect rates and time to resolution instead of lines of code when they judge whether AI is speeding up delivery.

The two weekly figures describe a team that spends most of its time on rework

The 9.8 hours of producing code and the 16.9 hours of debugging add up to 26.7 hours a week. Debugging is about 63% of that combined time, a ratio I calculated from the reported averages. A delivery dashboard that tracks how quickly changes merge and deploy sees only the first 9.8 hours. The 16.9 hours land in a different place: incident channels, on-call rotations, and unplanned work. Nobody reads that bucket next to the change that caused it.

The result is that a change which took two hours to generate and forty hours to untangle looks fast in the metric that gets reported and slow in the one that does not. The cost of a change includes everything it later demands from the team, and most current reporting stops at deployment.

Charging incident and debugging hours back to the originating change makes the cost visible

I propose a ledger with three steps. First, record at merge whether a change was substantially AI-generated, using a field the author fills in. Second, when an incident or bug is closed, record which change introduced it and how many engineer hours went into diagnosis. Third, report debugging hours per hundred changes each quarter, split by that provenance field, next to the existing time-to-resolution figure. The comparison shows whether AI-assisted changes cost more or less to live with than the rest, in your own codebase, rather than in a survey average.

The ledger answers a question the survey cannot: whether the 35% of AI-generated code that reaches production before it is fully understood is the same code that later consumes the debugging hours. If it is, an understanding check before release is cheaper than the diagnosis afterwards. If it is not, the problem sits elsewhere, perhaps in tests or review capacity, and the team can look there instead.

The survey is vendor-commissioned and self-reported, so the numbers are signals

InfoQ’s coverage of the research says the independent firm Coleman Parkes ran the survey for Undo, a company focused on AI-powered root-cause analysis, and that most respondents work with C and C++. That sample is senior leaders in mission-critical environments, answering from memory about the past six months. A vendor with a debugging product has an interest in the topic. None of this makes the figures wrong, and it does mean they describe a particular population. A web application team with strong automated tests may see a smaller debugging penalty, and I have not found primary data that measures it.

DORA’s 2025 research shows the same stability pattern in a broader sample

Google Cloud’s announcement of the 2025 DORA report draws on nearly 5,000 technology professionals. It reports a positive relationship between AI adoption and delivery throughput, and it also states that AI adoption continues to have a negative relationship with software delivery stability. The report calls AI an amplifier and links the instability to rising change volume without robust control systems.

This is a counter-case to the survey’s 79% figure on release speed. DORA finds throughput gains and Undo’s respondents report none, so the two samples disagree on speed and agree on strain. That tension is a reason to build the ledger. Whether your team sits closer to one result or the other is something only your own data can say.

Why This Matters for Engineering Leadership

Leaders approve AI tooling on the evidence of speed, and speed is the easiest number to collect. The debugging hours arrive later, spread across incidents, and are rarely tied back to a decision someone made. A ledger that charges those hours to the originating change gives leaders a cost they can compare against the speed gain, and it gives teams a reason to build understanding into review. From an AI governance angle, a team should be able to say what a change cost to run, as well as what it cost to write. Leaders who start the ledger this quarter will have an evidence base by the time the next tooling budget is set.

FAQ

Does AI-generated code cause more production outages?

One survey of 300 senior engineering leaders, run for Undo, found 81% had a production incident or outage linked to AI coding tools in six months. The figures are self-reported by leaders in mission-critical software.

How much time do engineers spend debugging?

The survey reports an average of 16.9 hours a week debugging against 9.8 hours producing code, as reported by Chris Stokel-Walker.

Does faster AI coding mean faster releases?

Not in that survey, where 79% of leaders said release cycles are no faster than before AI. DORA’s 2025 research found a positive link between AI adoption and throughput, so results differ by sample.

What does DORA say about AI and software stability?

The 2025 DORA report states that AI adoption continues to have a negative relationship with software delivery stability, and it ties this to rising change volume without strong control systems.

What is a debugging ledger?

It is this piece’s proposal. Teams record which change introduced each incident or bug, log the engineer hours spent on diagnosis, and report debugging hours per hundred changes split by whether the change was AI-generated.

What metrics did the article suggest leaders use?

The article suggests measuring defect rates and time to resolution rather than lines of code.

Source: AI code causes real world production outages by Chris Stokel-Walker, LeadDev, 12 October 2026.

Read more news & analysis