What changes when an assistant writes the code
Review and testing were designed for code that a person wrote slowly and understood. Code from an assistant differs in ways that matter to QA.
- It reads well and can still be wrong. Names are tidy and comments are confident. A subtle logic error or a misread requirement does not show up on a quick read.
- Nobody holds the whole picture. The developer prompted it and skimmed it. When it breaks, no one remembers why it was written that way.
- Its tests share its blind spots. If the same assistant wrote the code and the tests, the tests often confirm what the code does instead of what it should do.
- Volume goes up. More changes per week means more to review, and review time does not grow with it.
The answer is not slower development. It is checks that run on every change and a second pair of eyes on the code that carries risk.
How the audit tests the tests
A test suite can be green and still protect nothing. The audit finds out by changing the code on purpose, a technique known as mutation testing, and watching which tests fail.
| Deliberate fault | A useful test | A weak test |
|---|---|---|
| Rounding changed from half-up to down | Fails on the invoice total | Passes, because it only checks that a number is returned |
| Permission check removed from an endpoint | Fails for the user without the role | Passes, because it only calls the endpoint as an admin |
| Off-by-one in a date range | Fails on the last day of the month | Passes, because its sample dates are mid-month |
Every fault that no test catches becomes a line in the map of untested behaviour.
What the review covers
| Area | Example checks |
|---|---|
| Requirement match | The code does what was asked, including the cases the prompt did not mention |
| Existing behaviour | A change did not alter something that worked, shown on a regression set |
| Dependencies | Libraries and functions exist, are used as documented and were chosen on purpose |
| Boundaries | Input validation, error handling, permissions and data handling |
| Consistency | The new code follows the structure and conventions of the code base |
For end-to-end coverage of the product built from this code, see end-to-end testing with AI agents; for a review of your whole test process, see QA audit and assessment.