river.io/the dark factory
Order 01327 July 20268 minMetrics

Review capacity is the new ceiling for AI-written code

Benchmark data from 8.1 million pull requests shows AI-assisted code merges at less than half the human rate. It also waits 4.6 times longer for review. Generation is now cheap. Verification is not.

In late July 2026, the best data on autonomous software delivery points at one constraint. The constraint is not model capability. It is not specification quality. It is review capacity. LinearB measured 8.1 million pull requests across 4,800 organizations for its 2026 Benchmarks.

AI-assisted pull requests merge at 32.7 percent. Human-authored code merges at 84.4 percent. AI-assisted pull requests also wait 4.6 times longer for a first reviewer. The industry made generation industrial. It did not make sign-off industrial.

The numbers

MetricAI-assistedHumanSource
PR acceptance rate32.7%84.4%LinearB 2026 Benchmarks (8.1M PRs, 4,800 orgs)
PRs needed per merge3.061.18LinearB
Wait for first reviewer4.6x longerbaselineLinearB
PR size~2.6x largerbaselineLinearB and secondary coverage

Two academic studies of agentic pull requests agree. An analysis of the AIDev dataset (arXiv 2606.13468) found that reviewers reject about 46.4 percent of the fixes that agents propose. The agents studied were Copilot, Devin, Cursor and Claude. A second empirical study (arXiv 2605.22534) found that only 15.4 percent of merged agentic pull requests had explicit reviewer participation. Copilot and Devin pull requests get far more reviewer attention than Codex and Cursor pull requests, which usually merge with little interaction.

Read the two studies together. Much agent code merges without examination. The examined part fails often.

The production numbers are no better. Lightrun's 2026 survey reports that 43 percent of AI-generated changes needed manual debugging in production after they passed QA and staging. Zero percent of the surveyed engineering leaders said they were "very confident" that AI code would behave correctly once deployed. This is a vendor survey. Treat it as direction, not as an audit.

Throughput keeps rising at the same time. Developers who use AI merge about 98 percent more pull requests. Pull request review time has risen 91 percent. About 18 percent of merged pull requests in surveyed enterprises now name a coding agent as primary author or pair-coder. Google reported in April 2026 that about 75 percent of its new code is AI-generated and engineer-approved.

Three reference points still hold. Stripe runs about 1,300 agent pull requests per week, and a human reviews every change. StrongDM operates a three-engineer factory with no review. DX's preliminary Q2 figure puts AI-authored code at about 52 percent.

Generation got cheaper. Verification did not. That gap is the whole story.

The state of play

The July 16 model wave is now the baseline. OpenAI shipped GPT-5.5-pro and GPT-5.3-codex. Anthropic shipped Claude Opus 4.7 and Claude Sonnet 4.6. Google shipped the Gemini 3.1 Pro preview. All three shipped coding-agent upgrades in the same window. Repository-wide context and multi-step tool use are now standard.

The framing has moved to persistent, long-horizon agents. Teams orchestrate these agents like junior engineers. GPT-5.5 leads on Terminal-Bench 2.0, which measures running tests, reading failures and iterating without supervision. That is the inner loop of any autonomous factory. These are vendor and aggregator comparisons, so read the leaderboard claims as directional.

The first serious non-US factory stack has also arrived. On July 24, Huawei Cloud launched the CodeArts Agent open beta in Thailand. Huawei Cloud built it on Specification-Driven Development. Its "Agent Team" mode forms a multi-agent development team that runs tasks concurrently. Spec-driven development now ships as a product primitive, not as a methodology essay.

The commercial framing has settled too. iTmethods now markets a "Dark Factory" offering as a governed autonomous SDLC. Nobody sells lights-out. Everybody sells governed lights-out.

Frameworks and specs

Where practice is converging

The practical agreement forming this month is about review economics. It is not about more guardrails.

Risks and failure modes

CVE-2026-22708 is a Cursor terminal allowlist bypass. Cursor fixed it in version 2.3. Any team that uses Cursor Auto-Run must update. Shell built-ins such as export, typeset and declare ran without appearing in the allowlist. An attacker could then poison environment variables. Already-approved commands such as git branch and python3 script.py became arbitrary code execution.

An attacker can reach the flaw through indirect prompt injection. The flaw works even with an empty allowlist. The allowlist made the attack easier, because it auto-approved exactly the commands the attacker needed.

The agent-skill supply chain produced two serious papers. PhantomSkill (arXiv 2606.19191) describes the VulMask technique. The attacker does not put malicious instructions in SKILL.md. The attacker hides the payload in auxiliary scripts/ as vulnerability-shaped code. The code activates only on a trigger the attacker controls.

The payload reads as ordinary insecure code. Reviewers and scanners therefore downgrade it from "malware" to "vulnerability." Snyk was the outlier defender and flagged 98.9 percent as malware. Cisco static analysis and LLM analysis mostly classified it wrongly.

SkillCloak (arXiv 2607.02357) shows payload-preserving evasion. It uses structural obfuscation and self-extracting skill packing. The authors tested it against 1,613 in-the-wild malicious skills. Some cloak variants bypassed more than 90 percent of the surveyed scanners. Cloaked skills ran under Claude Code and Codex with no statistically detectable drop in task success.

The proposed defense is SkillDetonate, a runtime behavioral auditor. It detonates the skill in a sandbox and watches the effects. Static inspection of text loses. Observing effects wins.

SUPPLY CHAIN

The Trivy-Action to LiteLLM PyPI token compromise remains the cautionary case. LiteLLM is the model gateway under CrewAI, DSPy, GraphRAG and many other agent frameworks. One poisoned dependency reaches dozens of downstream factories.

How we apply this at River.io

We run a software factory. It uses native compiled code, zero third-party dependencies, test-driven development, and a GitHub-issue-driven SDLC. This week's findings map directly onto that discipline.


Sources

Vendor and blog figures indicate direction, not audited benchmarks. This includes merge rates, throughput, the percentage of AI-written code, and first-pass-success multipliers. Where a claim comes from a single vendor survey or aggregator, we flag it inline.

← The Dark Factory Subscribe by RSS Reply by email