- In a study of 21,454 agent-authored pull requests, 11.5 percent introduced a vulnerability, close to 12.8 percent for the human sample.
- Only 2.2 percent of vulnerable agent pull requests received any security-related review, and up to 96.4 percent were merged without discussion.
- Vendors now offer agents that approve routine changes against a written policy. The policy is the control.
The evidence
Researchers at the University of Calgary analyzed 21,454 pull requests written by AI coding agents and 8,103 written by people, using static analysis checked against manual labeling. Vulnerabilities appeared in 11.5 percent of agent pull requests and 12.8 percent of human ones 1. The authors found humans introduced more critical-impact issues, while test-related changes from agents introduced notably more security issues than human test changes (12.2 percent of agent vulnerabilities, against 2.2 percent for humans) 1.
The review finding is the one that should worry leaders. Only 2.2 percent of vulnerable agent pull requests and 1.2 percent of vulnerable human ones received any security-related review, and up to 96.4 percent and 98.6 percent respectively were merged without discussion 1. The most common weakness, improper checks for unusual conditions, received no review attention at all 1.
Automated approval arrives
In November 2026, Anthropic launched Claude Ship, which pairs AI code review with an agent that fixes failing checks and another that approves changes against a policy the team writes as a file in the repository. Approvals are in beta, and the company suggests running them in observe-only mode first, starting with one repository and spending limits 2. Other vendors are moving the same way, with agents that open complete pull requests for a person to review 3.
Our read
We do not think the lesson is that AI-written code is uniquely unsafe. The lesson is that review, the control everyone assumes is there, often is not, for any author. Automating review can raise the floor. It also moves accountability into a policy file, so that file deserves the same care as an access control list. Our position is simple: changes that touch sign-in, access rules, payments, secrets, production data or the approval policy itself should always reach a person, and that person should be able to see evidence, not just a summary.
What this means for your team
- Write an approval policy that names the change types that always require a person.
- Protect the approval policy file itself with human review.
- Run automated approval in observe-only mode and compare its decisions with your reviewers' before trusting it.
- Pay special attention to agent changes to tests: a weakened test hides everything after it.
- Measure how many merged changes received any security review at all.
This is Swallowtail Systems™ analysis of public sources. Figures belong to the organizations cited, and we link every one. Nothing here describes a client engagement.