Research 15 / Track 01 / What goes wrong with AI-built software

Who reviews the agent's pull request?

The code is changing faster than the review. Automated approval can help, if someone decides what it may never approve.

Swallowtail Systems™  /  Published November 30, 2026  /  3 min read

Key points
  • 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.

Up to 96.4 percent of vulnerable agent pull requests merged without discussion.University of Calgary study 1
For teams shipping AI-built software

What this means for your team

  1. Write an approval policy that names the change types that always require a person.
  2. Protect the approval policy file itself with human review.
  3. Run automated approval in observe-only mode and compare its decisions with your reviewers' before trusting it.
  4. Pay special attention to agent changes to tests: a weakened test hides everything after it.
  5. 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.

Sources

  1. Le, Vijayanandan et al., "On the Security of Agentic Pull Requests in GitHub: An Empirical Study", University of Calgary
  2. TechCrunch, "Anthropic launches Claude Ship, letting AI agents review, fix, and approve code changes" (Nov 23, 2026)
  3. OpenAI, "Introducing dots" (Sept 29, 2026)
  4. OWASP Top 10:2025

/ Next step

Want this read against your own systems?

In a 30-minute briefing we walk through what we would look for in your environment and what a written scope would include.

Request a briefing