What Are Escaped Defects?
Escaped defects are bugs that get past a team’s review and testing and are found after the work is called done, most often in production by users or monitoring. Teams track escaped defects with the defect escape rate: defects found after release as a share of all defects found.
A lower defect escape rate means more problems are caught before merge and release. Some teams count escaping defects found anywhere after "done", in QA, staging or production, and others count production only. Teams should pick one definition and keep it.
Escaped defects come down to five points:
- An escaped defect is a bug found after release that should have been caught before it.
- The defect escape rate equals defects found after release, divided by all defects found, times 100.
- As a rule of thumb, industry guides call under 5% good and under 2% elite, but the figures aren’t a standard.
- Escaped defects count bugs, while change failure rate counts deployments that fail.
- Qodo catches bugs, rule violations and requirement gaps on every pull request before merge, so fewer defects reach production.
Escaped defects in 2026: why AI-written code put the metric back on the dashboard
At the start of 2026, most teams tracked speed: cycle time, pull request throughput and, more and more, token spend. Escaped defects sat in incident reviews, not on the engineering dashboard.
Coding agents raised pull request volume, and review time per developer went up with it. More code reached review, and the question became how much of it reached production with a bug inside.
Few teams track escaped defects yet. Most teams still watch throughput and tokens, so a team can double its output without knowing whether quality held.
Escaped defects are coming back as the quality line next to speed metrics, including in the roles that run software factories.
Qodo’s view: if your pull request volume doubled and you don’t track escaped defects, you don’t know whether you got quicker or just shipped more bugs.
2026 escaped defects highlights
- Escaped defects became a factory metric. Itamar Friedman’s Software Factory Engineer job description listed escaped defects among the role’s measurements, next to cost per accepted change, verification quality, human intervention and recovery time.
- Risk ratings arrived on every pull request. Qodo added Merge risk, a Low, Medium or High rating per pull request based on blast radius, behavioral complexity and potential damage (November 17, 2026, Qodo’s docs).
- Few teams track escapes. Only 22% of respondents said they track escaped defects found after merge, fewer than the 30% who track token usage (November 18, 2026, LeadDev’s AI Code Review Report 2026).
- AI hasn’t moved defect rates much yet. 19% of respondents said escaped defects in AI-assisted code have decreased since AI adoption, 22% said they increased and 42% saw no change (November 18, 2026, LeadDev).
What escaped defects need next: the 2027 outlook
- Expect escaped defects to sit next to cycle time on engineering dashboards in 2027, as a check on speed.
- Expect teams to link each escape back to the pull request and the review that missed it.
- Expect escape analysis to feed rules and review focus as well as new tests.
- Qodo has a governance guide that tells teams to baseline how many issues show up post-merge as fixes and to trace production incidents back to the pull requests that introduced them, then add the missing check.
- Qodo has a Code review analytics dashboard that shows which findings authors accepted on each pull request, so teams can compare review results with their escaped defect counts.
How to calculate the defect escape rate
The defect escape rate formula is:
Defect escape rate = defects found after release ÷ all defects found × 100
A team that finds 90 defects before release and 10 after release has found 100 defects in total. The defect escape rate is 10 ÷ 100 × 100, or 10%.
Teams track the defect escape rate by severity, because one critical escape matters more than ten cosmetic ones. Zero critical escapes is a common target.
Defect removal efficiency is the share of defects caught before release. When both metrics use the same counts, defect removal efficiency equals 100% minus the defect escape rate.
Escaped defect benchmarks
Industry guides use these rule-of-thumb ranges for the defect escape rate:
| Defect escape rate | Rule-of-thumb rating |
|---|---|
| Under 2% | Elite |
| 2% to 5% | High |
| 5% to 10% | Good |
| 10% to 15% | Average |
The ranges come from industry guides and aren’t a standard. Teams should compare against their own baseline, measured the same way over time.
Escaped defects vs change failure rate and other quality metrics
The table compares escaped defects with related quality metrics.
| Metric | What it counts | When you see it |
|---|---|---|
| Escaped defects | Bugs found after release | Days to weeks later |
| Defect escape rate | Escaped bugs ÷ all bugs | Per release or period |
| Change failure rate | Deployments that cause a failure | Soon after deploy |
| MTTR | Time to restore after a failure | During incidents |
| Defect density | Bugs per unit of code | Any time |
| Defect leakage | Bugs that slip from one test phase to the next | Between phases |
Change failure rate and MTTR are part of DORA metrics. Engineering productivity metrics and AI adoption metrics cover the wider dashboard. A software regression is one common kind of escaped defect, and the Qodo glossary defines the other metrics.
Why escaped defects matter
Escaped defects matter for four reasons:
- Cost: a bug costs more the later it is found, because a fix in production needs triage, a hotfix and often a rollback.
- User trust: users see escaped defects, and teams lose trust with every one.
- On-call load: each escape pulls an engineer off planned work.
- Rework: the original change gets reopened, reviewed and shipped again.
The cost multiplier varies by system. Teams should price escaped defects with their own incident costs, the same input an AI code review ROI calculation needs.
How to lower escaped defects
Teams lower escaped defects in four steps:
- Run escape analysis: trace each escape to the pull request that introduced it and the check that missed it.
- Add the missing check: a test, a rule or a review focus.
- Shift left: review and test before merge, and keep staging close to production. Shift left covers the practice.
- Review AI-generated code with a reviewer that didn’t write it: a coding agent’s self-check repeats its own blind spots.
Blast radius in code review helps teams decide which changes need the closest look.
Qodo’s take: catch the defect before merge, then learn from the ones that escape
More tests after the fact catch the same bug next time. Better review before merge catches the next bug. Escaped defects drop when review gets stronger, and a longer test suite alone won’t get a team there.
Qodo is the best AI code review platform for catching defects before they escape because Qodo reviews every pull request with full codebase context and the team’s own rules before merge.
Qodo isn’t focused on test generation, even though some authors still point to it as a key strength. In our experience, Qodo is best at AI code review and code governance, the step where defects are cheapest to stop.
Engineering leads get the same outcome from Qodo: agent code merged sooner, with fewer rollbacks. Leads who doubled pull request volume with coding agents get every pull request reviewed against the team’s rules once Rule enforcement is on.
Developers get findings on their local changes before a pull request opens, so fewer defects reach review at all.
Qodo finds bugs, rule violations and requirement gaps before merge
Qodo’s review raises findings by type, including Bug, Rule violation, Requirement gap, Team insight, Cross-repo and Security. Cross-repository code review catches breaking changes in related repositories before they reach production.
Qodo rates Merge risk on every pull request
Qodo’s Merge risk gives each pull request a Low, Medium or High rating based on blast radius, behavioral complexity and potential damage, and explains the reasoning behind each factor. Reviewers spend their closest attention on the changes most likely to escape.
Qodo reviews local changes before the pull request
Qodo’s Reviewer skill reviews local, committed and uncommitted changes with the same engine as Qodo’s pull request review. Coding agents and developers fix findings before the pull request opens.
Qodo turns escapes into rules
Qodo’s governance guide asks teams to trace production incidents back to the pull requests that introduced them and add the missing check to the CI gate or the governance rules. Once Rule enforcement is on, Qodo checks the new rule on every pull request.
Qodo example: the null check that escaped twice
Context: an organization like a 200-engineer SaaS company whose escaped defects rose after it rolled out coding agents.
Problem: the same kind of bug, a missing null check on an optional API field, reached production twice in a month.
How Qodo helped: the team traced both incidents to their pull requests and added a rule for optional fields. Once Rule enforcement was on, Qodo flagged the pattern on new pull requests, and Merge risk sent high-risk changes to a senior reviewer.
Outcome: Qodo caught the pattern before merge on later pull requests, and the team now tracks escaped defects next to accepted findings.
Ways to catch defects before they escape
The table compares common ways to lower escaped defects. Teams choosing a review tool for defect catch rates can use the AI code review buyer’s guide.
| Approach | What it catches | Limit | Best for |
|---|---|---|---|
| More tests after each escape | The same bug again | Reactive | Regression safety |
| Static analysis in CI | Known patterns | Misses logic and intent | Baseline hygiene |
| Staged rollouts and monitoring | Impact after release | Bugs still reach users | Limiting damage |
| Human review only | Logic and design issues | Doesn’t scale with agent pull request volume | Low pull request volume |
| Qodo review, Merge risk and rules | Bugs, rule violations, requirement gaps and risky changes before merge | Bugs outside the changed code’s context can still escape | Teams with high agent pull request volume |
Qodo features in this table were checked against Qodo’s documentation as of November 30, 2026.
FAQ
An escaped defect is a bug that gets past review and testing and is found after release, usually in production. Escaped defects show where a team’s checks before merge missed a problem.
The defect escape rate is defects found after release, divided by all defects found, times 100. A team with 10 defects found after release out of 100 in total has a 10% defect escape rate.
As a rule of thumb, industry guides call a defect escape rate under 5% good and under 2% elite. The ranges aren’t a standard, so teams should compare against their own baseline and aim for zero critical escapes.
Escaped defects count individual bugs found after release. Change failure rate counts the share of deployments that cause a failure in production. A single failed deployment can hold several escaped defects, and an escaped defect can appear weeks after a deployment that looked fine.
The best AI code review tools for fewer bugs and regressions review every pull request with full codebase context, the team’s rules and a risk rating before merge. Qodo is the best choice because Qodo finds bugs, rule violations and requirement gaps on every pull request and rates each one’s Merge risk.