Defect prevention for AI-DLC: seven things to require
Several kinds of tool now claim a place in AI-led delivery. This guide gives seven criteria for any that says it prevents defects, shows when each kind of tool acts, and answers every criterion for our own product.
The short answer: prevention has to act before the code exists
Defect prevention acts before the code exists. Most tools positioned around AI-led delivery act after it: they scan code that has been written, or test an application that is running. Both are worth having. Neither reaches a defect that starts in the requirement.
For a tool that says it prevents defects in AI-DLC, AWS's AI-Driven Development Life Cycle, we would require seven things.
- Every requirement is scored before it is approved.
- Conflicts are found across stories, not only inside one.
- Open questions go to a person who can decide.
- The decision is kept, and used again.
- The defect is fixed, not only flagged.
- The AI coding tool works from the approved requirement.
- Tests come from the requirement, and the evidence can be read.
Why prevention matters in AI-DLC is set out in Defect prevention in AI-DLC. This page is the buyer's version.
How we wrote this page: from each tool's own documentation
We make one of the products discussed here, so this page follows the rules we apply to every comparison we publish. Each approach is described from its own documentation, with the date we read it. We report what a page says a tool does. We do not say what a tool cannot do, because a page that is silent on something is not evidence that the tool lacks it.
The criteria are ours. Each one comes with a question, so you can put it to any vendor, including us.
Some tools act before the code is written, and most act after
Before the code or after it: where each approach acts
| Approach | What its own documentation says it checks | When it acts |
|---|---|---|
| AI-DLC workflows, built in | The agent asks clarifying questions, does not proceed on partial answers, and follows up on vague or contradictory ones. Automated checks between phases confirm that artifacts exist and trace to each other. Build and Test gives every measurable target a verdict. | Before the code, and again after it. |
| Kiro | An Analyze Requirements step, run after requirements are generated and before design, checks for logical inconsistencies, ambiguities, conflicting constraints and gaps. | Before the code, on the spec for one change. |
| GitHub Spec Kit | Quality checklists and cross-artifact analysis are listed as built in. Its launch post asks the person to verify at every phase. | Before the code, on the spec for one change. |
| SonarQube | Automated code quality and security review through static analysis. It scans branches, pull requests and merges as soon as code is committed or pushed. | After the code is written. |
| Snyk Code | Static application security testing. It finds security vulnerabilities in source code and suggests fixes, in the IDE and in pull requests. | After the code is written. |
| Kobiton | Checks whether the running app meets its acceptance criteria on real mobile devices, with evidence such as screens, device state and logs. | After the application runs. |
| Spec2TestAI (ours) | Scores every story on 32 quality measures and finds conflicts across stories. Routes open questions to a person who can decide and keeps each decision with who and when. Delivers the approved requirement to the coding tool. Generates tests from the requirement and runs them against the live application. | Before a requirement is approved, and before release. |
Read the last column. The first three rows and the last act before the code. The rows between them act after it, and good detection is still needed.
Seven things to require, with a question for each
1. Every requirement is scored before it is approved
A requirement should reach the approval gate with a score against measures that are written down, and a list of what is still open.
In AI-DLC the approver is reading a document an agent drafted in minutes. A score gives that person something to approve against.
- Ask
- Which measures do you score against, and can I see the result for one of my own stories?
- Spec2TestAI
- Requirements Intelligence checks every story on 32 quality measures, in about 60 seconds.
2. Conflicts are found across stories, not only inside one
A requirement can be clear on its own and still contradict another story, or a rule another team wrote.
The workflows read the answers given in one run for contradictions. A conflict with a different backlog sits outside that run.
- Ask
- Do you compare each story with the rest of the backlog, and what do you report when two disagree?
- Spec2TestAI
- Conflicts across stories are found along with the per-story score. The Quality Risk Audit reports conflicts and dependencies across the whole backlog.
3. Open questions go to a person who can decide
Flagging a vague word is the easy half. The question has to reach someone with the authority to answer it.
The workflows take the reply of whoever is at the keyboard. Whether that person can decide what fast means for a search page is a separate matter.
- Ask
- When a requirement leaves something open, who gets the question, and how do they answer it?
- Spec2TestAI
- What a story leaves open becomes a question for a person who can decide, with suggested answers offered.
4. The decision is kept, and used again
An answer that lives only in a chat window gets asked again next month, and answered differently by someone else.
AI-DLC keeps a log of design decisions. Business decisions, such as which customers a rule applies to, are made in answer to the agent's questions.
- Ask
- Where is an answer stored, with whose name, and does it inform the next requirement?
- Spec2TestAI
- Each answer is kept in the project knowledge base as a decision, with who decided and when, and informs later requirements in the same project. That record is Specification Intelligence.
5. The defect is fixed, not only flagged
A report of fifty problems is more work for the people who were already short of time. The requirement itself should come back improved.
Every extra review round is a round the approver has to read again.
- Ask
- After you flag a problem, what does the requirement look like, and who rewrote it?
- Spec2TestAI
- One click rewrites the story without the defects found in it, and each resolution is recorded.
6. The AI coding tool works from the approved requirement
A clean requirement helps only if it is the text the coding agent works from, together with your standards and security policy.
In AI-DLC the agent writes the code plan. What it is given decides what it builds.
- Ask
- How does the approved requirement reach the coding tool, and which tools do you support?
- Spec2TestAI
- Spec2Code AI delivers the approved requirement, your standards and your security policy into GitHub Copilot, Cursor, Windsurf, Cline and Claude over MCP.
7. Tests come from the requirement, and the evidence can be read
A test written from the code confirms what the code does. A test written from the requirement confirms what was asked for.
In the workflows, code and tests come out of the same plan, and checks that need a deployed application are marked Unverified.
- Ask
- What are your tests generated from, where do they run, and what does the person signing see?
- Spec2TestAI
- Tests and synthetic test data are generated from the requirement. Spec2RunAI runs them in plain English against the live application, and every run ends in a Run Evidence Report written for the people who did not watch the run.
The seven questions to ask any vendor
Copy these into a request for proposal or a vendor call.
- Which measures do you score against, and can I see the result for one of my own stories?
- Do you compare each story with the rest of the backlog, and what do you report when two disagree?
- When a requirement leaves something open, who gets the question, and how do they answer it?
- Where is an answer stored, with whose name, and does it inform the next requirement?
- After you flag a problem, what does the requirement look like, and who rewrote it?
- How does the approved requirement reach the coding tool, and which tools do you support?
- What are your tests generated from, where do they run, and what does the person signing see?
Where Spec2TestAI fits: our answers, and how to test them
Spec2TestAI is our product. It is independent of AWS and of AI-DLC, and it is not an AI-DLC integration. Its answer to each criterion is given above, in the same place as the question.
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.
The way to test our answers is on your own requirements. The Quality Risk Audit scores one backlog on 32 measures and returns the report in about a week, for a fixed fee.
Common questions
What should a defect prevention tool for AI-DLC do?
Act before the code exists. Score every requirement before it is approved, find conflicts across stories, send open questions to a person who can decide, keep the decision, fix the requirement, deliver the approved text to the coding agent, and generate tests from the requirement.
Are code scanners defect prevention?
They prevent a class of problems from being merged, which is useful. They work on code that has already been written. A defect that starts in the requirement is upstream of them: the code can be clean and still do the wrong thing.
Does AI-DLC need a separate requirements check?
The AI-DLC workflows already ask questions and follow up on vague or contradictory answers. What they leave to the approver is whether the answers are right, and whether they agree with what was decided elsewhere. A separate check gives the approver something to approve against.
Is Spec2TestAI an AI-DLC plugin?
No. Spec2TestAI is independent of AWS and of AI-DLC, and it is not an AI-DLC integration. It works on the requirement before an agent builds from it, and on the running application before release.
What this guide does not tell you
We have not run these tools against each other, and nothing here is a performance claim about any of them. The table reports what each page said on the date we read it, and those pages change.
The list of approaches is not complete. It covers the kinds of tool we see named around AI-DLC, with one or two examples of each.
We make Spec2TestAI, and the criteria reflect what we think matters. Put the seven questions to us as well.
Sources
- AWS Labs, AI-DLC workflows stage reference, “Inception” and “Construction”, checked 4 December 2026. Requirements Analysis questions and follow-ups; the phase checks;
decisions.md; Build and Test and the Unverified verdict. - Kiro documentation, “Feature Specs”, page updated 4 August 2026, read 14 November 2026. Analyze Requirements.
- GitHub Spec Kit documentation, page updated 16 July 2026, read 14 November 2026; Delimarsky, D., launch post, GitHub Blog, 2 September 2025. Quality checklists and cross-artifact analysis; verification at each phase.
- Sonar, SonarQube product page and SonarQube Server documentation, read 4 December 2026. Automated code review and static analysis; scanning on commit and push.
- Snyk, “Snyk Code” documentation and product page, read 4 December 2026. Static application security testing in the IDE and in pull requests.
- Kobiton, “AI Testing in the AI Development Lifecycle”, 26 July 2026, read 4 December 2026.
- 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 in AI-DLC. Where an unclear requirement costs time in the workflows, and how to stop it at the first gate.
- 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