AI-driven development: How resilience and speed go hand-in-hand

AI-driven development: How resilience and speed go hand-in-hand

Developers began by using AI coding tools to complete individual tasks. Now those tools can write entire modules and services independently, far faster than a person can. While this speed is a benefit, AI-generated code left unchecked means more incidents and a harder job resolving them – which puts an organization’s resilience at risk.

Engineers cannot review every line of AI-generated code. AI tools generate code faster than human engineers can keep up with, so they have to decide what needs human review and what is safe to ship unchecked. The challenge arises when AI-generated code is built from components that no single person has fully mapped. That makes it hard to assess the downstream impact of any change, and change is where most trouble starts. For years, Google’s Site Reliability Engineers have estimated that around 70% of incidents are caused by changes to live systems, so not knowing what a deployment will affect puts resilience directly at risk.

“While this speed is a benefit, AI-generated code left unchecked means more incidents and a harder job resolving them – which puts an organization’s resilience at risk.”

To take back control of code quality, organizations need clear guidelines on which code always requires human review and which code AI can be trusted to manage autonomously. That is the first step towards resilience. The next two are measuring it in terms the business understands and learning from every incident.

How to measure resilience

Many organizations measure how quickly they recover from incidents through mean time to resolve (MTTR). That shows recovery speed, but not what an incident cost or whether it will happen again. As AI increases the volume of change, and with it the number of incidents, executives will want to know the extent of the damage and the likelihood of recurrence, and engineers need metrics to show both.

“Many organizations measure how quickly they recover from incidents through mean time to resolve (MTTR). That shows the speed of recovery, but not what an incident cost or whether it will happen again.”

These metrics show what incidents cost the business, financially and in the strain on developers. They also show which types of incidents keep coming back. They include:

Performance vs. service-level agreements (SLAs): SLA breaches can lead to contractual consequences, including customer refunds. When this happens, resilience failure translates directly into financial loss.

Change failure rate: The percentage of new deployments that either cause a service failure requiring immediate remediation or degrade an existing service. Tracked specifically for AI-generated code, it shows whether that code is causing incidents.

Toil ratio: The percentage of a development sprint spent fixing problems rather than delivering new work. This also has a knock-on effect for developers, causing cognitive fatigue and burnout.

Recurring incident rate: The percentage of resolved IT or operational issues that return within a set time window, indicating whether organizations are learning from incidents.

Investment in resilience is highest where revenue is growing. PagerDuty research found 82% of revenue-growing organizations are increasing their operational resilience budgets, compared with 62% of those with flat or declining revenue. 

How to learn from incidents

Of the four metrics above, recurring incident rate shows whether an organization is actually learning. If the same problems keep returning, post-incident reviews are not doing their job. Yet fewer than half of organizations use these reviews to learn from what went wrong.

“Engineers who fear blame hide mistakes, and a review built on hidden mistakes cannot prevent a repeat.”

Reviews only work if they lead to action. They need to be shared and read, their fixes built into product roadmaps, and every action given an owner and a deadline. They also need to be fully blameless, focusing on why something happened rather than who caused it. Engineers who fear blame hide mistakes, and a review built on hidden mistakes cannot prevent a repeat. Remove the blame and engineers can collaborate on optimizing processes, allowing them to prioritize improving resilience over finding who broke what. 

Resilience makes speed sustainable

The ability to recover from incidents matters just as much as the speed at which code ships. Organizations that adopt AI-driven development without simultaneously investing in resilience are shipping risk they cannot assess. 

Speed and resilience go hand in hand when three things are in place: a clear boundary between the code humans review and the code AI manages autonomously, metrics that show the business what resilience is worth, and post-incident reviews that lead to action.

With all three, organizations keep AI’s speed without risking resilience.

YOUTUBE.COM/THENEWSTACK

Tech moves fast, don’t miss an episode. Subscribe to our YouTube
channel to stream all our podcasts, interviews, demos, and more.

SUBSCRIBE

Group
Created with Sketch.

Daniel Afonso is a Senior Developer Advocate at PagerDuty, SolidJS DX team member, Instructor at Egghead.io, and Author of State Management with React Query. Daniel has a full-stack background, having worked with different languages and frameworks on various projects from…

Read more from Daniel Afonso