freenode
AnalysisDesktop & Graphics

Who pays when the patches write themselves

Emacs, the kernel, and LLVM have stopped arguing about whether machine-written code will arrive and started arguing about who carries the copyright exposure and the review bill.

The argument is no longer whether machine-written patches will land in free software. They already have. What Emacs, the Linux kernel, and LLVM are fighting over, in the same season, is who bears the cost: the reviewer who must read the flood, and the project that may be asked to stand behind code whose authorship it cannot cleanly swear to.

The three threads look unlike each other. One began as a package submission. One began as a pull request in a release-candidate window. One began as a proposal to cap how many pull requests a newcomer may have open. The through-line is the same scarce resource. Human attention does not scale with the ease of generating a diff, and a project that merges what it has not really reviewed is also the project that may later be asked to defend that code's copyright.

On emacs-devel the spark was small. Augusto Stoffel asked to submit vibe-spell to NonGNU ELPA, calling it "a slop-rewrite of Hunspell/Nuspell in pure Elisp," useful because the existing spellchecker options require a compiled module or the old ispell protocol. The thread blew out into a debate of roughly 240 messages on copyright risk, policy, and precautions, with Richard Stallman and Eli Zaretskii on opposite sides of whether the danger is already concrete enough to act on.

Stallman's case is that waiting for visible harm is how the harm becomes hard to undo. "By that time, avoiding major harm would be difficult. Now is when we must take precautions." The precaution he wants is aimed at an asymmetry others on the thread described: model vendors have a financial interest in making non-LLM maintenance harder, by injected instructions that push models toward lower-level code, by sheer volume so that refactoring itself seems to require a model, by mechanical reformatting that inflates diffs, and by review agents that demand tests which add work without adding safety. A cited kernel episode, a very large late patch series and noisy scripted cleanups, was offered as the shape of that future. Dr. Arne Babenhauserheide tried to check one claim in that telling, that an early cover-letter draft had come from an assistant, and could not confirm it from what Linus Torvalds actually wrote. The example was already slippery. Stallman still treated the pattern as a warning worth acting on before Emacs had bent.

Zaretskii's reply is that a warning you cannot locate in this project's actual practice is not a basis for policy. "These warnings are very abstract and at least those which I followed to the source are IMO not applicable to Emacs development. The corresponding dangers are nowhere close to materialize." He asked Stallman to keep the fears private "until and unless you actually see us bending to those tricks and malevolent practices," and he rejected the idea that later correction would be too late: "Correcting mistakes is part of our process, and has been done before." Precautions against problems that have not happened, he wrote, are "like fighting with eyes shut: the probability to deliver an accurate blow is quite low." The copyright stake sits in the gap between those positions. If the risk is that accepted code cannot be cleanly attributed, or that the project has licensed something it does not have the right to redistribute, then "we will revert it later" is not the same remedy as a buggy algorithm. Zaretskii's point is that inventing a gate for a harm you cannot yet describe will miss, and may burden contributors who are not the problem. Neither side has produced a rule.

The kernel is already past the hypothetical. Theodore Ts'o sent ext4 updates for the 7.4 release-candidate window and said the bulk of the new lines came from KUnit tests, "which makes it safer to validate AI generated patches." He also said a huge number of the bug fixes "were AI generated." The tests were the maintainer's answer to the review problem: if machines write the fixes, machines and new tests should make those fixes safer to take.

Linus Torvalds did not accept that answer at that stage of the cycle. "Honestly, I don't think this was appropriate for this stage." Tests of that size belonged on a side branch until the next merge window. "This whole notion of 'anything that is a fix goes in -rc' is bogus." The sharper claim was about the nature of the bugs. "STOP THINKING THAT YOU - OR AI - NEVER ADD BUGS WHEN YOU FIX SOMETHING." If the defects were subtle enough that they sat unnoticed until an assistant found them, the fixes are "possibly buggy" for the same reason. He objected to treating tens of thousands of insertions as harmless because most of them would not be compiled into a production kernel. He merged the pull anyway, conflicts and all, and warned that the next time he would ignore it. Ts'o apologized and noted the tests had been placed so they could be dropped. The merge stood. Process lost to the calendar, with a threat attached.

A separate kernel series tried to legislate the prose instead of the code. Sasha Levin, collecting a year of maintainer complaints, proposed that AI-assisted submissions carry a cover letter, even for a single patch, and that changelogs stay short. He quoted Greg Kroah-Hartman: "LLMs love to write a lot. Please always rewrite the changelog text to be sane and concise." He quoted Torvalds telling someone they could tell the tool "to be a bit less verbose." Levin's own view was optimistic: "I'd argue that LLMs these days have the capability to write better changelogs and most of our human authors. We just need to be better about laying out our expectations of them."

Reviewers who live in the queue disagreed, and they disagreed from experience rather than from taste. Lorenzo Stoakes wrote that more than half of his review work is now AI-generated patches, "and the commit messages and comments are consistently appalling + seriously painful to deal with." "It feels like something they are fundamentally bad at." The failure modes he listed are the ones that waste a reviewer's first minute: "Restating the code in English rather than explaining why," 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 better, he said, produces "more succinct nonsense." Vlastimil Babka objected outright to a cover letter on every single patch. Randy Dunlap agreed. Leon Romanovsky asked why the AI era should require what the pre-AI era survived without, and offered a shorter list: less text, no AI prose, do not hide basic information. He also warned that quoting only a few log lines is how fake reports get through. Levin dropped the cover-letter approach. A documentation gate that adds work for the people already drowning does not survive contact with those people.

LLVM is trying the quantitative version of the same complaint. Reid Kleckner (rnk), after a contributor-policy discussion and the US LLVM developer meeting, proposed enabling pull-request limits for people without write access. "This is a drastic action, but I think that's what the situation calls for." The abuse pattern is specific: open a batch of small, functionally correct fixes, wait out a rate-limit window, open another batch, and hope someone rubber-stamps them. "Fixing bugs is useful, but the fixes are clogging our open PR dashboards and causing maintainer burnout." He had started from "close all non-contributor PRs," slept on it, and landed on two open pull requests at a time, with draft pull requests not counting, so incremental work could still be stacked. The hope was a decision before the next project council meeting, and a revision later.

The counterargument is that a cap punishes the contributor the project most wants. zerico2005 described arriving at a commit-access application with a large set of open, AI-assisted pull requests, many of them one floating-point intrinsic at a time, because only about two reviewers could look at that work. "I think anything below 3 would've been a barrier to me contributing towards LLVM." A limit might have forced an earlier request for commit access, which Kleckner later treated as a feature, or it might have forced unrelated fixes into fewer, harder reviews. David Blaikie drew a different line: three open pull requests in the same area, in front of the same reviewers, are exactly what a project should slow down, so the second patch can learn from the first instead of repeating the same mistakes. Tanya Lattner (tonic) asked that a revised proposal go back to the community before the council, because the discussion had not converged. And a new contributor, karouzakisp, described the practical trap: years on one pass, a pull request sitting without review, other work ready, four active requests, and the question of what to do while waiting. A limit that assumes reviewers answer promptly does not match a project where they do not.

Set side by side, the positions are not a simple split between enthusiasts and refusers. Stallman wants precautions before the asymmetry is visible in Emacs itself. Zaretskii wants evidence of bending before the project writes rules it does not understand. Ts'o treated new tests as the way to make machine-written fixes safe enough for a late cycle. Torvalds treated that volume, in that window, as proof that the author, human or not, had forgotten that fixes add bugs. Levin wanted written expectations, on the theory that the tools can meet them. Stoakes thinks the tools are bad at the part of a patch a reviewer actually uses to decide whether to read the rest. Kleckner wants a hard cap so maintainers are not asked to rubber-stamp a wide net. The newcomers answering him say the wide net is sometimes how a real series gets done when reviewers are few and slow.

What is unresolved is almost everything operational. Emacs has no new acceptance rule coming out of the vibe-spell fight, only a standing disagreement about whether copyright and lock-in risks can be managed after the fact. The kernel merged the ext4 tests under protest and then failed to agree on a cover-letter requirement, so the review burden is unchanged and the late-cycle warning is personal rather than written. LLVM has a number on the table, two, and a request not to take that number to the council until the community has seen the revision. None of these projects has a way to know, from the diff alone, whether the submitter can defend the copyright of what an assistant produced. All of them already know who pays if the answer is no: the maintainer who has to read it, or refuse it, or revert it after the fact.