freenode
AnalysisDesktop & Graphics

The review bill comes due for generated patches

From Emacs to LLVM and the kernel, the argument has shifted from whether machine-written code can be right to who must absorb the cost of checking it.

The question on maintainer lists is no longer whether a model can emit a patch that compiles. It is who has to read it, how many of them arrive at once, and what paperwork is supposed to make that reading cheaper. In the same stretch of late November, an Emacs package submission, a late-cycle filesystem pull, a documentation proposal, and an LLVM policy draft all treated generated code as a review-capacity problem rather than a novelty.

Augusto Stoffel asked to put vibe-spell, described as a slop-rewrite of Hunspell and Nuspell in pure Elisp, into Non-GNU ELPA. The package is a library, not a user interface, and Stoffel framed it as both a practical spellchecker for people who do not want a compiled module and an experiment in how far Elisp can be pushed. The thread that followed, running to well over a hundred messages and drawing in Richard Stallman, barely stayed on the spellchecker. Stallman wrote that the project should "adopt stricter rules for verifying that the LLM-generated code is comprehensible and maintainable, at least for the first few years of accepting any LLM-generated code," and added, "We should be cautious, and not rush."

Philip Kaludercic, who has opposed an outright ban provided the legal side is sorted, answered that there is "no need to rush, but likewise there is no need to stall." His preferred rule, once copyright is "decided not to be an issue," would accept such contributions "intentionally without making it convenient." That phrase is the Emacs version of a position showing up everywhere else: do not forbid the tool, but do not subsidize volume either. Dr. Arne Babenhauserheide refused the temporary framing. "LLM generated changes may violate copyright and as such cause liability to lawsuits," he wrote, and the discussion should wait until "the GNU lawyers find out that it's legally safe." A correspondent hoped the picture would be clearer in two or three years, and warned that copyright law, which the GPL has long treated as slow-moving, may shift under industry pressure. Maintainability rules and copyright clearance are different gates. Both are being asked to do the same job: slow the inflow until someone other than the submitter has a reason to trust the diff.

On the kernel side the same tension arrived as a pull request, not a policy draft. Theodore Ts'o sent ext4 updates for 7.4-rc5 and said the bulk of the new lines came from KUnit tests, which "makes it safer to validate AI generated patches." He also described a large set of bug fixes, "most of which were AI generated," covering fast-commit recovery, flush error handling, and related journal paths, alongside smaller performance changes. Linus Torvalds merged the pull and then said the tests did not belong at that stage of the cycle. "This whole notion of "anything that is a fix goes in -rc" is bogus." The tests, he argued, should have stayed on a side branch until the next merge window. The sharper point was not about tests as such. "STOP THINKING THAT YOU - OR AI - NEVER ADD BUGS WHEN YOU FIX SOMETHING." If the bugs being fixed were subtle enough that they sat unnoticed, the fixes are themselves candidates for new bugs, and tens of thousands of inserted lines do not become safe because most of them will not be compiled into a production kernel. Ts'o apologized and noted the tests had been placed at the end of the branch so they could be dropped. Torvalds left the merge in place, said he had not run the tests, and treated the episode as a warning rather than a reversal. The episode is a concrete instance of the review-cost argument: a test suite meant to make generated fixes safer became, at rc5, another large change that a release manager had to absorb under time pressure.

A parallel kernel thread tried to legislate the prose instead of the code. Sasha Levin proposed that AI-assisted submissions carry a short changelog and, even for a single patch, a cover letter holding the evidence a reviewer actually needs. The motivation was a chorus of maintainer complaints. Greg Kroah-Hartman's line, quoted in the cover letter, is typical: "LLMs love to write a lot. Please always rewrite the changelog text to be sane and concise." Levin's series would park investigation narrative, full logs, and checklists in the cover letter, which stays in the list archive and can be reached from the applied commit, while the commit message itself stays direct. He argued that assistants can write better changelogs than most human authors if expectations are spelled out.

Reviewers did not buy the mechanism. Vlastimil Babka "strongly object[ed] to the 'single patch has a cover letter' approach," and Randy Dunlap agreed. Lorenzo Stoakes (ARM) said the proposal conflated succinctness with correctness and that, in his inbox, "commit messages and comments are consistently appalling." More than half of his review work, he wrote, is now of AI-generated patches. The failure modes he listed are familiar to anyone who has tried to extract a rationale from a model: restating the code in English, assuming the reader holds a deep stack of context, and walls of text that cannot be grasped at a glance. Telling frontier models to be shorter, he reported, produces "more succinct nonsense." Leon Romanovsky asked why the AI era should require cover letters that the pre-AI era survived without, and offered a shorter creed: less text is better, no to AI prose, and do not hide basic information. He also wanted quoted backtraces handled carefully, citing cases where a trimmed log concealed that a crash came from an out-of-tree module written to provoke it. Levin dropped the single-patch cover-letter rule. What remains is the complaint, not the fix: generated text optimizes for completeness as the assistant sees it, and reviewers optimize for a glance.

LLVM's proposal is blunter because the flood is easier to count. Reid Kleckner (rnk), after discussion at the US LLVM developer meeting and in earlier policy threads, asked to enable pull-request limits for people without write access. The target pattern is a newcomer opening many pull requests at once, waiting out a rate-limit window, and opening more, in search of a reviewer willing to stamp small, functionally correct fixes. "Fixing bugs is useful," he wrote, "but the fixes are clogging our open PR dashboards and causing maintainer burnout." He had started from closing all non-contributor pull requests, slept on it, and landed on a limit of two open pull requests at a time, with a hope of enabling something before the next project council meeting and adjusting later. Drafts, in the follow-up, would not count, so stacked incremental work could still exist off the main dashboard.

The objections are specific, not rhetorical. zerico2005 described arriving at commit access with a large set of open, AI-assisted pull requests spread across floating-point intrinsics, and only about two reviewers who could look at that work. A cap below three, that account said, would have been a barrier, or would have forced unrelated fixes into fewer, harder-to-review bundles. David Blaikie answered that three open requests in the same area may be exactly what to discourage: the same reviewer then sees the same mistakes three times instead of teaching them once. A newer contributor, karouzakisp, pointed at the other side of the queue. Years of work on a sign-extension pass produced an initial pull request and then silence; waiting on review while doing other useful work already meant several active requests. A hard cap answers the dashboard. It does not answer a reviewer who has not replied. Tanya Lattner (tonic) asked that a revised proposal go back to the community before the project council, because the thread had not yet converged on what would actually change.

Read together, the four threads are one argument with four instruments. Emacs is debating a comprehensibility rule and a legal precondition, and a preference for acceptance that is deliberately inconvenient. The ext4 pull shows what happens when generated fixes and the tests meant to police them land inside a stabilization window: the release manager becomes the reviewer of last resort. The changelog series tries to move evidence out of the commit message and then collides with reviewers who do not want a new required document, and who do not believe the models can be prompted into writing the "why." LLVM's limit tries to cap concurrency so that a functionally correct trickle cannot outrun the people who must still say yes. None of these is a claim that generated code is always wrong. Torvalds's warning, Stallman's maintainability test, Stoakes's review-time accounting, and Kleckner's dashboard complaint all assume the opposite risk: code that looks finished and still costs someone else a careful read.

What is unsettled is where the line is drawn, and by whom. Copyright clearance for GNU projects is explicitly unfinished. The kernel has no agreed substitute for the cover-letter rule Levin withdrew. LLVM has a number on the table, two, and a process objection that the number is not yet a decision. Late-cycle test additions have a warning attached and a merge that already happened. The through-line is that maintainers are no longer waiting to discover whether the patches can be correct. They are deciding, in public and in incompatible ways, how much of the checking they are still willing to do.