Defect prevention in AI-DLC
AI-DLC shortens the build. An unclear requirement still has to be paid for somewhere. This guide follows one through the AWS workflows, stage by stage, and shows why the first gate is the cheapest place to stop it.
The short answer: catch the unclear requirement before the AI builds from it
Defect prevention means stopping a defect from being introduced, instead of finding it after it exists. It has been a documented part of disciplined software development for decades, and the reasoning has not changed: work that does not have to be redone is the quickest work there is.
AI-DLC, the AI-Driven Development Life Cycle, is AWS's method for building software with an AI agent in the lead and a person approving each stage. Prevention matters more in it, for three reasons.
- The research is old and consistent. Boehm and Basili reported in 2001 that fixing a problem after delivery often costs around 100 times what it costs during requirements and design, and that projects spend 40 to 50 percent of their effort on avoidable rework.
- AI-DLC has its own names for rework. A change request at a gate, a loop-back, a re-approval, a verdict of Not Met. Each one is time the method's speed does not buy back.
- The first gate is the cheapest. When an unclear requirement is caught before it is approved, nothing has been built on it yet.
If AI-DLC is new to you, read What is AI-DLC? first.
Defect prevention has been standard practice for decades
The idea that it is cheaper to stop a defect than to find one has a long record in software engineering.
Four milestones, 1976 to 2001
Reviews before testing
Michael Fagan at IBM describes formal inspections of design and code, which move defect finding ahead of testing.
A formal process at IBM
IBM publishes its Defect Prevention Process: causal analysis meetings, an action team, stage kickoff meetings, and data collection.
A sign of a mature team
Version 1.1 of the Capability Maturity Model lists Defect Prevention as a key process area at Level 5, its top level.
The cost figures
Boehm and Basili publish the Software Defect Reduction Top 10 List, with the 100 times figure and the rework findings.
Sources are listed at the end of this page.
IBM's 1990 paper describes defect prevention as a way to raise both quality and productivity by keeping defects out of a product in the first place. It reports the process in use in IBM organizations for more than six years by then.
The research: late fixes cost far more, and much rework is avoidable
Boehm and Basili's list is the most quoted source, and usually for one line. Five of its findings bear on prevention.
- Late fixes cost more. Finding and fixing a problem after delivery is often about 100 times more expensive than during requirements and design. On small, non-critical projects the ratio is closer to 5 to 1.
- Rework is a large share of the work. Projects spend about 40 to 50 percent of their effort on avoidable rework.
- A few defects cause most of it. About 80 percent of avoidable rework comes from 20 percent of the defects.
- Requirements are a named source. Hastily specified requirements are one of two major sources of avoidable rework. The other is design for the nominal case only.
- Introduction rates can be cut. Disciplined personal practices can reduce the rate at which defects are introduced by up to 75 percent.
These figures come from projects where people wrote the code. Requirements quality and defect prevention goes through them in more detail.
Why prevention matters more when AI does the building
1. The build is no longer the slow part
AWS's post measures a Bolt, the method's work cycle, in hours or days. When the build takes hours, what remains is the time people spend answering, reading and approving, and the time spent going back. Prevention works on the second of those.
2. The AI builds whatever was approved
An agent does not push back on a requirement it was told to build. If the requirement is wrong, the agent builds the wrong thing faithfully. In the AI-DLC workflows the tests come out of the same plan as the code, so they can pass on it too.
3. The automated checks confirm structure, not whether a requirement is right
The automated check at the end of Inception confirms that every story traces to a requirement and that the architecture covers every story. Whether the requirement is right is the approver's call, made on a document an agent drafted in minutes.
AI-DLC makes building fast. It makes building the wrong thing fast too. Prevention is how a team keeps the first without the second.
What happens to one unclear requirement, stage by stage
Take a requirement of the kind every backlog has: search results load fast. Nobody has said how fast, on what device, or for how many results. The table follows it to each point where it could be caught.
The later it is caught, the more has been built on it
| Where it is caught | What happens next | What has already been built on it |
|---|---|---|
| In Requirements Analysis, by the agent | The agent reads each answer for vague wording, contradictions and missing detail, and asks a follow-up question. One more answer settles it. A confident wrong answer passes this check. | Nothing. |
| At the requirements approval gate, by the approver | The approver requests changes. The requirement is revised and comes back to the same gate. | Nothing after it. |
| After Inception is approved | Whatever was approved on top of the requirement has to be revisited. Under a strict Guard Policy, an edited plan or Testing Contract goes back for approval. | Stories, domain design, units of work and the delivery plan. |
| In Build and Test | Only if a target exposes it. A requirement with no number gives the stage no target to miss. Where there is one and it is marked Not Met, the stage allows two fixes in place, limited to test and build setup. It then classifies the cause, can loop back unattended up to three times when Construction runs autonomously, and stops to ask a person: retry, accept the failure, or abort. A repaired plan needs a fresh approval. | All of the above, plus code and tests for every unit. |
| After deployment | Where the scope runs the Operation phase, Performance Validation compares the running application with its non-functional targets. That also needs a number. Otherwise a user finds it. | Everything, plus a release. This is the case the 100 times figure describes. |
Two things stand out. Each row down the table has more built on the requirement than the row above. And the last two rows only happen if something exposes the problem. A test written to the same unclear requirement can pass.
The same requirement, caught late and caught early
Caught late · what can happen
- Unclear requirement
- Approved at the gate
- Built onStories and designCode for every unitTests from the same plan
- Build and TestNot Met, or a pass
- Loop-back or releasefound late
Caught at the first gate
- Unclear requirement
- Checked before approval
- DecidedOpen question raisedAnswered by a named personDecision recorded
- Approved at the gate
- Built onceto what was decided
The first path is a risk, not a certainty. The second is one question, asked before anything is built.
AI-DLC already does some prevention itself
The workflows do real prevention work, and it is fair to say so.
- Questions before requirements. In Requirements Analysis the agent writes its questions to a file with lettered answer options, and it does not proceed on partial answers.
- Follow-ups. It reads the answers for vague language, contradictions and missing detail, and asks again where it finds any.
- Story checks. User stories are checked against INVEST and carry acceptance criteria.
- Trace checks. Automated checks between phases confirm that artifacts exist and trace to each other.
- Targets that hold. A target is never lowered to make a step pass.
Three things stay with the approver. Whether a confident answer is the right one. Whether the requirement agrees with something decided last quarter, for another team's feature. And whether it conflicts with a rule in another backlog, which a check on this run's answers will not see.
Five practices stop a defect before approval
Five practices do most of the work, whatever tool carries them out.
- Score every requirement before it is approved, against measures that are written down.
- Send each open question to a named person with the authority to decide it.
- Keep the decision, with who made it and when, so the next requirement does not ask again.
- Check new requirements against each other and against what was already decided.
- Write the tests from the requirement, so a pass means what was asked for.
Defect prevention for AI-DLC: seven things to require turns these into criteria you can hold any tool to. The approval gate checklist has the questions to ask at each gate.
Where Spec2TestAI fits: it carries out the five practices on your requirements
Spec2TestAI is our product. It is independent of AWS and of AI-DLC, and it is not an AI-DLC integration. It carries out the five practices above on the requirement, before an agent builds from it.
- Score. Requirements Intelligence checks every story on 32 quality measures, in about 60 seconds, and finds the conflicts across stories.
- Fix. It does not stop at a flag. One click rewrites the story without the defects it found, and each resolution is recorded.
- Decide. What it leaves open becomes a question for a person who can decide. The answer is kept in the project knowledge base, with who decided and when. That record is Specification Intelligence.
- Deliver. Spec2Code AI delivers the approved requirement, your standards and your security policy into the coding tool over MCP, so the agent builds from what was approved.
- Verify. Tests and synthetic test data are generated from the requirement, and Spec2RunAI runs them in plain English against the live application.
At a major financial regulator, this approach was associated with approximately 90% fewer requirements-phase defects. We report that as an engagement result, not an industry figure.
Start by having one backlog scored
The Quality Risk Audit is the way to see this on your own requirements. You send one backlog. We score it on 32 measures, find the conflicts and dependencies across it, and return a report scored against the Defect Debt Index™ in about a week. The standard audit is $9,500. Dollar figures in the report are projections, not realized savings.
Common questions
What is defect prevention in software development?
Defect prevention means stopping a defect from being introduced, instead of finding it after it exists. IBM's 1990 paper on its Defect Prevention Process describes it as a way to raise both quality and productivity by keeping defects out of a product in the first place.
What is the difference between defect prevention and defect detection?
Detection finds a defect that already exists, through review, scanning or testing. Prevention removes the cause before the defect is made. In practice the two overlap: a check on a requirement before it is approved prevents every defect that would have been built from it.
Does AI-DLC include defect prevention?
Yes, in part. The AI-DLC workflows have the agent ask clarifying questions, refuse partial answers and follow up on vague or contradictory ones. Automated checks between phases confirm that artifacts trace to each other. Whether a requirement is right is left to the person approving it.
Why does defect prevention matter more with AI coding agents?
An agent builds quickly from whatever requirement is approved, and in AI-DLC the tests come out of the same plan as the code. A wrong requirement can be built faithfully and pass its own tests. The earlier it is caught, the less has been built on it.
How much software rework could be avoided?
Boehm and Basili reported in 2001 that software projects spend about 40 to 50 percent of their effort on avoidable rework, and named hastily specified requirements as one of two major sources. Their figures predate AI coding agents.
Where should a team start?
With the requirements the agent will build from. Score them before the approval gate, send each open question to a person who can decide, and keep the answer. Our approval gate checklist lists what to ask, and the Quality Risk Audit scores one backlog for a fixed fee.
What we have not measured
We know of no published, measured comparison of AI-DLC runs with and without a requirements check, and we have not published one. The case on this page rests on three things: long-standing research that predates AI agents, what AWS's documentation says happens when work goes back, and one engagement result of ours, which we do not present as an AI-DLC result.
The 100 times figure is Boehm and Basili's “often”, and their own paper puts small, non-critical projects closer to 5 to 1.
Prevention does not replace testing. It changes what testing is for: confirming that what was built matches what was decided.
Sources
- Boehm, B. & Basili, V., “Software Defect Reduction Top 10 List”, IEEE Computer 34(1), January 2001, pp. 135–137. About 100 times, and closer to 5 to 1 on small non-critical projects; 40–50% of effort on avoidable rework; 80% of avoidable rework from 20% of defects; hastily specified requirements; disciplined personal practices.
- Mays, R., Jones, C., Holloway, G. & Studinski, D., “Experiences with Defect Prevention”, IBM Systems Journal 29(1), 1990, pp. 4–32. The definition; the four elements of the Defect Prevention Process; more than six years of use within IBM.
- Paulk, M., Curtis, B., Chrissis, M. & Weber, C., Capability Maturity Model for Software, Version 1.1, Software Engineering Institute, CMU/SEI-93-TR-024, February 1993. Defect Prevention as a Level 5 key process area.
- Fagan, M., “Design and code inspections to reduce errors in program development”, IBM Systems Journal 15(3), 1976.
- SP, R., “AI-Driven Development Life Cycle: Reimagining Software Engineering”, AWS DevOps & Developer Productivity Blog, 31 July 2025. The definition; bolts measured in hours or days.
- AWS Labs, AI-DLC workflows stage reference, “Inception”, “Construction” and “Operation”, and guide, “Phases and Stages”. Checked 4 December 2026. Requirements Analysis questions and follow-ups; INVEST; the phase checks; the Guard Policy; Build and Test and its failure steps; Performance Validation.
- Regulator outcome: AgileAI Labs engagement result, not an industry figure.
More on AI-DLC
- What is AI-DLC?. The method, its phases and gates, and what they leave to the approver.
- What is the AI SDLC?. AI in every phase of the software life cycle: the names sorted, and what a person still decides.
- AI SDLC vs AI-DLC. One is a general term and the other is AWS's named method. The two side by side.
- Defect prevention for AI-DLC: seven things to require. Seven criteria to hold any tool to, and what each kind of tool says it checks.
- AI-DLC glossary. The method's terms in plain English, each defined from AWS's own pages.
- How testing works in AI-DLC. The six points where testing happens, the test strategy levels and what each verdict means.
- AI-DLC vs spec-driven development vs Agile. What each one is, who checks the requirement in each, and how they fit together.
- The AI-DLC approval gate checklist. Thirty questions to ask before you approve, grouped by phase.
- AI-DLC readiness check. Ten questions, scored in your browser, on whether your approvers have what they need.
- AI SDLC ROI calculator. What avoidable rework costs in one backlog, and what prevention returns, on your own numbers.
- AI-DLC tools and services compared (2026). Who sells what around the method, from each vendor's own page.
- Quality for the AI SDLC. Where quality sits across an AI-driven lifecycle.
Get your backlog scored
Send one backlog. We score it on 32 measures, find the conflicts across the stories, and list the questions nobody has answered yet. Fixed fee.
See the Quality Risk Audit