Read what the film says
Our three-gate review for every AI-generated function Drafted by the model in 4 seconds — not “done” yet.
Automated security scan: Checked against the OWASP Top 10 categories. Senior engineer review: A person reads it line by line, not the model. Tested on real data: Real, not synthetic, inputs before sign-off.
How often models failed to defend against: Log injection 88%, Cross-site scripting 86%.
Slower than shipping straight from the model (Scan time on every change; A senior engineer's attention; Real data has to be available) Versus: No security incidents reported from shipped code to date (Known flaw classes caught by the scan; Logic errors caught by a person; Edge cases caught by real inputs)
= “Done” Only after all three gates pass.
Every function a model writes for us passes three gates before it ships: an automated security scan, a review by a senior engineer, and a test on real data. Until all three pass, the code is a draft, however well it runs.
def match_invoice(invoice, ledger):
# drafted by the model in 4 seconds — not "done" yet
Checked against the OWASP Top 10 categories.
A person reads it line by line, not the model.
Real, not synthetic, inputs before sign-off.
Gate 1: automated security scan
The scan checks each change against the OWASP Top 10 categories. It exists because generated code fails in predictable ways.
How often models failed to defend against
These are exactly the faults a scanner is good at finding and a hurried reader is bad at. Running the scan first means the human reviewer's time is not spent on what a machine can catch.
Gate 2: senior engineer review
A person reads the function line by line. Not a second model. The reviewer is checking things a scanner cannot know: whether the function does what the business needs, whether it handles the cases the prompt never mentioned, and whether it fits the code around it. A model asked to review its own kind of output tends to share its blind spots.
Gate 3: tested on real data
Generated code is usually tried on the clean example that was in the prompt. Real records have missing fields, duplicate IDs and formats nobody documented. The third gate runs the function on real inputs, not synthetic ones, before anyone signs it off. What this gate catches would otherwise be found by a client.
What it costs
- Scan time on every change
- A senior engineer's attention
- Real data has to be available
- Known flaw classes caught by the scan
- Logic errors caught by a person
- Edge cases caught by real inputs
The process is slower than shipping what the model produced, and we accept that. The speed of generation is still there: a draft in seconds instead of an hour. What the gates remove is the assumption that a draft that runs is a draft that is finished.
Questions
How should AI-generated code be reviewed?
Treat it as a draft and pass it through three checks: an automated security scan against known vulnerability categories, a line-by-line review by an experienced engineer, and a test on real rather than synthetic data.
Why not have an AI model review AI-generated code?
A model reviewing generated code tends to share the blind spots of the model that wrote it. A person can judge whether the code does what the business needs and handles cases the prompt never mentioned.
Sources
- Veracode, press release on the 2025 GenAI Code Security Report, 30 July 2025 (cross-site scripting 86%, log injection 88% of relevant cases; 45% overall). Source
- OWASP Top 10 project. Source
- The statement that no security incidents have been reported from shipped code is Synexian's own record, as of the publication date.
First published as a Synexian Build Log post on 11 November 2026. Figures are quoted from the sources above; follow the links for their methods and limits.