freenode
Databases & Infrastructure

QEMU moves to allow limited AI-assisted code, not AI-written reviews

Paolo Bonzini's revised provenance policy drops the blanket ban but still demands human cover letters, commit messages, and replies, a line some maintainers say they cannot enforce.

QEMU is set to drop its blanket refusal of contributions that include or derive from AI-generated content, replacing it with a narrower rule: limited AI assistance is allowed, but the text maintainers actually read must still be written by a person.

Paolo Bonzini posted the revised code-provenance policy on the QEMU development list and said he plans to send it as a pull request next week. Until now the project declined any patch believed to include or derive from model output. That ban was easy to keep while the tools rarely produced usable code on their own. As models improved, a hard line also blocked work the project already treated as legitimate, including review suggestions and test cases meant to show whether a bug was present.

The new text, which Bonzini says reflects community consensus and goes further than GCC's allowance for small changes and tests, treats QEMU's copyleft as enough of an answer to the copyright questions that drove the old policy. He cites the Software Freedom Conservancy's view that "Copyleft Everything" remains the safest approach for free software that uses these tools. The practical burden therefore shifts to maintainers. Cover letters, commit messages, replies to review comments, and issue text must be human-written. Coding agents are to be steered, via project instructions modeled in part on GStreamer's, toward asking the contributor to choose among design alternatives rather than handing over a finished patch.

Bonzini is not sold on the compromise. He wrote that the intermediate step "all but encourages the same 'don't ask, don't tell' behavior" the project already had, and that dropping the copyright rationale no longer explains why large AI-assisted series stay out. Permission for pre-arranged large contributions was left for later. He is more worried about a flood of small patches with no path to consolidate them than about a few big ones.

Peter Xu argued the human-authorship rule cannot be carried out, because maintainers cannot reliably tell model prose from a person's, and that it will mainly burden contributors who disclose AI use and then rewrite a usable commit message. Peter Maydell answered that what he wants is "the human intent behind the change," not a robot's summary of the diff. Markus Armbruster compared the rule to laws that are hard to police: useful as a statement of expected conduct, and as something to point to when rejecting slop. Bonzini agreed with that parallel, while noting the hole it leaves for maintainers who do not want ignoring the policy to look acceptable so long as nobody is caught.