Enki

PyTorch's GreenLight lets an AI reviewer approve maintainers' pull requests

By

Published

Reporting from InfoQ AI

More onMeta

An open-source take on Meta's RADAR now approves some PyTorch pull requests. Two approvals flagged as wrong in November show where its limits sit.

What it means for founders

Enki's read: GreenLight is the most useful free reference for AI approval we have seen, because its rules, failures and fixes are all public. Borrow three ideas.

Gate on the author before the diff. On a five-person team, that means the AI stamps only changes the author could already merge with one colleague's nod.

Define approval by what a change is, not by the absence of bugs. Write a short list your reviewer may approve, such as docs, tests and type annotations, and a never list: authentication, billing, performance work, anything without a description.

Make bad approvals easy to report, and turn each report into a rule. Both November reports produced a proposed rule change.

Wait if you have thin tests or no record of reverts. RADAR's gates rest on history, such as a 60-day clean record for automated runbooks. If you cannot count reverts, you cannot tune a threshold.

GreenLight's code costs nothing, but every eligible PR costs a model run, and the pull requests Enki read do not say what that costs PyTorch. Enki's Claude Code vs Codex comparison covers how the paid options handle code review. Then watch PyTorch's wrong-verdict issues, a free log of where AI approval breaks.

What we don't know yet

PyTorch has not published how many PRs GreenLight has approved, its LAND rate or its revert rate. We found no independent check of RADAR's safety figures. OpenAI's approval process is known only from InfoQ's account of a conference talk.

The story

PyTorch has started letting an AI reviewer sign off on pull requests written by its own maintainers. The system, GreenLight, is an open-source rebuild of RADAR, the tool Meta uses internally to merge safe-looking changes with no human sign-off, InfoQ reported on 27 November. Its code is public in PyTorch's test-infra repository.

For founders whose agents out-write their reviewers, the point is that every rule is public. Anyone writing an approval policy for Claude Code or Codex can study an open rebuild of a design Meta runs at scale, and learn from the mistakes PyTorch logs in the open.

Meta's numbers are large, and Meta's own

Meta described RADAR in a paper first posted to arXiv on 28 May. At Meta, the amount of significant code in each diff a person landed grew 105.9% in a year and diff volume per developer rose 51%, with agentic AI behind over 80% of that growth.

RADAR layers eligibility gates, a Diff Risk Score, an LLM reviewer and deterministic checks. The paper says it has reviewed more than 535,000 diffs and landed more than 331,000. RADAR-reviewed diffs are reverted at a third of the rate of other diffs and cause production incidents at a fiftieth. Per InfoQ, the reviewer must also rate its own confidence at 8 out of 10 or more.

Enki's read: those safety figures compare diffs chosen for low risk with everything else, so part of the gap is built in, and we found no independent check of them.

PyTorch trusts the author first

PyTorch said in its May devlog that it planned an open-source version of RADAR, and that "RADAR approves will be limited to PyTorch maintainers who otherwise already have approval rights on the files being changed."

Since early October, a PR gets a binding review only when its author appears on a trusted-authors list and one of PyTorch's merge rules (36 at the time) names that author and spans all the files in the PR. A change opened on 15 September redefined a LAND verdict as safe and trivial: "a human reviewer would have read this, learned nothing, and typed LGTM." It said backtesting had shown earlier approvals were "not filtering on risk in any consistent way".

What we found in the repository

Enki read GreenLight's pull requests and issues on 27 November. InfoQ's account of shadow mode is out of date. A change merged on 12 October stopped reviewing ineligible PRs at all, even in shadow.

It makes mistakes, and maintainers log them. On 17 November a PyTorch developer flagged a LAND on a performance change, saying it "requires benchmarking to say whether this is actually a good idea or not." The proposed fix: distributed performance changes will always need a human. On 23 November Jean Schmidt, who wrote the GreenLight changes Enki read, flagged a LAND on a CUDA memory allocator fix that was approved while the PR had no useful description.

Rivals gate on the change, not the author

InfoQ reports that Brian Yang of OpenAI told QCon San Francisco that ChatGPT Ads has no human-written production code. His team auto-approves routine changes once checks pass, keeps a human on critical ones and targets at least 90% auto-approval for routine PRs. In his QCon session abstract, Yang says OpenAI Ads, built with Codex, passed $100 million in annual recurring revenue in under six weeks.

Anthropic sells the idea: Claude Approvals, in the Claude Ship beta for Team and Enterprise plans, reads a policy file in the repository and bills on tokens, Enki reported on 23 November.

Sonar's 2027 developer survey of 1,026 developers and managers shows the pressure: 76% say AI output arrives faster than they can check it, and just 39% completely agree that AI code is always checked before it is committed. Sonar sells verification tools.

Sources

Reporting

Tools in this story

We may earn a commission if you sign up through our links. It never affects our ratings or which stories we cover.

Claude Code

Anthropic's coding agent, from terminal to IDE to browser

8.9Editor’s scoreVisit Claude Code
Codex

OpenAI's coding agent, included with ChatGPT

8.6Editor’s scoreVisit Codex

More in Research

How Enki covers newsCorrectionsReport an error