How do you check the quality of AI-generated code when you are not an engineer?

How to check the quality of AI-generated code without reading it: seven checks with a good and a bad result, questions for your builder, and evidence to request.

By Published 8 min read

You check the quality of AI-generated code by asking for evidence about the release, not by reading the code. Seven checks cover it: what the product must do, automatic tests, a second reader, a security scan, a list of third-party components, a way back to the last version, and a named owner. Each one has a result you can see and a good and a bad answer.

AI-generated code quality is the degree to which software written mostly by AI tools keeps doing what its users were promised, safely, release after release.

This article is for a founder, COO or CTO whose team or contractor writes most of the code with AI tools, and who must decide whether customers can depend on it. It is a working method, not legal advice and not a guarantee. The checks lower the chance of shipping a known problem. They do not prove a product has no defects.

Key takeaways

  • Judge the release, not the author. It does not matter who or what typed the code. It matters what can be shown before customers use it.
  • Seven checks, each with a visible result. A dated list, a test run, a change history, a scan report, a component list, a recovery drill, a named owner.
  • Specific answers are the signal. A good builder answers with a document or a demonstration. A weak one answers with reassurance.
  • Run it in an afternoon. Send the request today, read the answers tomorrow, decide go or hold.

Why does AI-written code need its own checks?

Three published findings explain why, and each has limits.

Writing got faster, and delivery did not follow. The 2024 DORA report, from a long-running research program on software delivery, found that AI adoption significantly increases individual productivity, flow and job satisfaction, and that it also negatively affects delivery stability and throughput. The report’s key findings add that small batch sizes and robust testing remain crucial (DORA 2024 report).

Confidence can run ahead of quality. In a user study presented at the ACM Conference on Computer and Communications Security in 2023, participants with an AI code assistant wrote significantly less secure code than participants without one, and were more likely to believe their code was secure (Perry, Srivastava, Kumar and Boneh). The study used a model available in 2022, so take it for the confidence gap, not as a measure of today’s tools.

Newer models are not automatically safer. Veracode, a security vendor, tested more than 100 language models on 80 coding tasks and reported that 45 percent of the test cases produced code with a security flaw. This is the vendor’s own test. It also reported that larger models did not perform significantly better than smaller ones (Veracode, July 30, 2025). That is a rate across its test tasks, not a share of your product.

None of this says AI-written code is bad. It says quality cannot be assumed from the tool, so the checks below look at the release.

The seven checks: what to ask, what good looks like, what bad looks like

You do not need to read code for any of these. You need the builder to show you something.

# Check Ask the builder A good result A bad result
1 What it must do “Show me the list of what the product must do, one line per behavior.” A dated page you can read. Pick three lines and see each one work. “It is in the code.” A list nobody has updated since launch.
2 Automatic tests “Which lines on the list are tested automatically before each release? Show me the last run.” A run from the current version: which lines, pass or fail, date. The builder breaks one behavior on purpose and a test goes red. Tests that have never been seen failing. A test count with no link to the list.
3 A second reader “Show me the last five changes.” Each is small, was read by someone or something other than its author, and has a written comment. One change touching dozens of files. Approvals with no comment. The reader is the same session that wrote it.
4 Security scan “Show me the latest automated security scan and what is still open.” Findings listed by severity and age, each with an owner or a fix date. “We have not run one.” A clean report with no scope or date.
5 What is inside “Give me the list of third-party components and who updates them.” A written list with versions and an update routine. Nobody knows. Components untouched since they were added.
6 A way back “Go back to yesterday’s version on a test copy, with a clock running.” Done in front of you, in minutes, with the time written down. “We would fix it forward.” Nobody has tried.
7 A named owner “Who answers when a customer reports a bug, and where are bugs tracked?” One name, one tracker, the last three bugs each with the check that now guards them. “The team.” The same bug reported twice.

A few notes on the table.

Check 2 has a trap. A tool that writes the code will also write tests that pass. A test that has never failed proves little, which is why the good result includes a red run on purpose.

Check 3: the reader can be a person, or a second review pass started with no memory of the first. The written comment is the proof.

Check 4 and access. Access mistakes are common in all software. Broken access control ranks first in the OWASP Top 10 of 2021: 94 percent of applications were tested for some form of it, with an average incidence rate of 3.81 percent, and the category has more occurrences in the contributed data than any other, over 318,000 recorded occurrences (OWASP A01:2021). OWASP’s first prevention rule is to deny by default, except for public resources. Ask the builder: what can someone read without signing in? The go-live review checks show how to see that.

Check 6 and the two numbers. DORA defines failed deployment recovery time as the time it takes to recover from a deployment that fails and requires immediate intervention, and change fail rate as the ratio of deployments that require immediate intervention after release (DORA metrics guide). Ask for both.

What does a first-pass reading of the answers look like?

The example below is invented. It is a made-up company asking its contractor for the seven items two weeks before opening a new version to paying customers. It is not a client.

# What came back Reading
1 A one-page list, 18 lines, last edited 11 days ago. Green.
2 A test run covering 6 of the 18 lines. One test went red when the builder broke a rule on purpose. Yellow. Real tests, thin coverage.
3 Of the last five changes, one touched 40 files. Two had no reviewer comment. Yellow. Ask for smaller changes.
4 No scan has ever been run. Red.
5 A list exists, no update routine. Yellow.
6 Rollback done on a test copy in 12 minutes. Green.
7 Bugs tracked by one named person. Two of the last three have a check. Green.

The decision in this example is a hold with a date: run a scan and fix what it finds, add checks for the lines where money moves or customer data is shown, then look again in one week.

Use your own colors. A single red on check 4 or check 6 is a reason to hold. Several yellows are a work plan, not a stop.

What should you ask for this week?

  1. Send the seven requests today. Copy the “Ask the builder” column into one message. Ask for documents or a short call.
  2. Ask for the evidence, not a summary.
  3. Mark each one green, yellow or red. Write the date and who showed it to you.
  4. Name two owners for go or hold. One answers for the business risk and one for the technical checks, as in how to define production.
  5. Repeat before each major release. For wider launch questions, see the AI production readiness checklist.

For your builder: forward this

The seven checks in technical terms

  1. Behavior list as a spec. One file in the repository, one line per user-facing behavior, with an ID. The AI tool is told to read it first and to update it with each change.
  2. End-to-end tests per line, run on every pull request. A failing run blocks the merge. Show a test can fail by breaking the behavior on a branch.
  3. Small pull requests with independent review. A person, or a second model session with fresh context, reviews each one and leaves a comment.
  4. Static and dependency scanning in CI. Export open findings by severity and age. No keys in client code. Deny-by-default access on the server for every read.
  5. A software bill of materials or a lockfile report. List components and versions. Automatic update alerts on, fix times set by severity.
  6. Rollback as one rehearsed command. Database changes are reversible. Record change fail rate and recovery time as DORA defines them.
  7. Bug tracker with a regression test per fix. No test, no close.

For a formal frame, NIST’s Secure Software Development Framework groups secure development practices under four headings: prepare the organization, protect the software, produce well-secured software, and respond to vulnerabilities. NIST says it can also help purchasers and consumers communicate with suppliers during acquisition (NIST SP 800-218).

When is “good enough” good enough?

There is no score that makes code good enough in general. Ask what happens to a customer if this fails. A late report costs an apology. A record shown to the wrong customer costs the contract. Start with the lines where money moves, where customer data is shown, and where an action cannot be undone. Before anyone pays, a lighter version is a fair trade. From the day customers depend on the product, all seven should be green or dated.

OrNsoft’s go-live review is a fixed-scope independent review of your app before it goes to real users: a written report with prioritized fixes, plus a 1-hour readout. To start, tell us about the app, the launch date and who signs.

Sources and method

Questions

How do I know if AI-generated code is good enough for customers?
Ask for evidence, not reassurance. Seven items cover it: a written list of what the product must do, a test run that you have seen fail on purpose, a reader other than the author on every change, a security scan with its open findings, a list of third-party components, a rehearsed way back to the previous version, and a named owner for bugs. If you can see all seven, you have a basis for a go or hold decision.
Is AI-generated code less secure than human-written code?
Studies point the same way, with limits. A peer-reviewed study found participants with an AI assistant wrote significantly less secure code and were more likely to believe it was secure. A vendor study of more than 100 models found security flaws in 45 percent of its test cases. Neither measures your product, so check your own release.
Can a non-technical founder check code quality?
Yes, by asking for evidence you can look at: a dated list, a test run, the last five changes, a scan report, a recovery drill. You do not need to read code. You need to hear whether the answers are specific.
Do I need a second developer to review AI-written code?
You need a reader other than the author. That can be a person or a second review pass that starts with no memory of the first. What matters is that the review leaves a written comment on each change and that nothing reaches users without it.
What is the first thing to ask my contractor?
Ask: show me what the product must do, and show me the test that proves each of the three most important lines. A builder who can answer in minutes has a definition of done. A builder who cannot has a code base with no definition of done.

Bring us the problem.

Book a call