Hi Recently I saw that Baptiste submitted a PR that is at least partly generated by Claude Code (https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/26023). I haven't had reason to be too worried about this issue until now, because the MXF- related PRs I've seen that have involved generated code have been trivial. This PR is different because it is non-trivial. I have no opinion about the code itself. My concerns are legal, political and philosophical, which I will express in this short essay.
There was one thread about this issue back in 2025 (https://ffmpeg.org/pipermail/ffmpeg-devel/2025-July/346041.html). My overall impression of the thread is that there are some contributors that understand the political nature of the problem, and those who falsely believe that the issue is purely technical. The technical is irrelevant for this discussion. If anything, progress in the quality of generated code has brought the political issue to the forefront. I disagree with Michael's assessment that a policy is "premature" (https://ffmpeg.org/pipermail/ffmpeg-devel/2025-July/346284.html). Because of the risk of poisoning the codebase, now is the time to enact a policy, not later. We should and *must* think about if the use of tools require a "pariah mark" on patches because of the political nature of this project, and of the entire free software movement. It is the *lack* of policy that is incompatible with free software. That some contributors might use these tools anyway is no excuse against enacting policy. I also don't care whether these tools ease the workload on developers. Arguably that is reason enough to ban their use, since it is our job to understand the code that we're writing. The desire to pump out slop is a productivist one. I don't like it. ## Legal >From a legal standpoint my argument is one of long-term safety. The following settled cases are quite relevant for this discussion: * GEMA v. OpenAI (Germany): https://ailawsuittracker.com/cases/gema-v-openai/ - "The court held that encoding the lyrics in model weights is a reproduction even though the data is technically transformed, drawing an analogy to lossy MP3 compression" * Bartz v. Anthropic (U.S.) https://ailawsuittracker.com/cases/bartz-v-anthropic/ - Training models on pirated books is copyright infringement. Training on legally acquired copies on the other hand is OK. There is also an open class action case against Microsoft and OpenAI that is very relevant: * Doe v. GitHub (Copilot) (U.S.): https://ailawsuittracker.com/cases/doe-v-github-copilot-4-22-cv-06823-9th-cir-24-6136/ - Most claims dismissed, but those concerning licensing still stand, even if there may be no damages awarded My assessment is that the copyright issue is very much up in the air at the moment. For this reason alone we should disallow or segregate all "AI" generated patches until there is a clear ruling. The reason why is because there is a non-zero chance that a future ruling makes generated code not (A/L)GPL compatible. If this were to happen, and if we have no policy in place, then the work necessary to purge the project of offending patches would be immense, and all the more immense the longer a policy has not been put in place. Alternatively, perhaps we'll need to relicense all code with generated patches in them to the least permissive license used on the input code that Anthropic et al have used. That's assuming the resulting code is free. It may be that conflicting licenses are involved, which would make all parts of the project touched by slop non-free. ## Political and philosophical One thing that has been pointed out to me recently is that the current "AI" push is just another attempt by the ruling class to enclose the commons. The GPL exists in order for the commons to have "teeth". What OpenAI, Anthropic and others are doing amounts to plagiarism. The strategy is this: claim that these programs are "intelligent", that they are political subjects rather than objects. Programs thus become capable of performing labour, and therefore transformative work. That way they can launder GPL'd code, effectively defanging the commons. It is very important not to anthropomorphize these programs. Both from a philosophical standpoint, but also from a political one. Programs are capital. They are dead labour. Programs are not participants in human society. What appears to be people interacting with programs, or programs with other programs, is really people interacting with other people. When someone says "Claude generated this", they are mistaken as to who actually generated the code, which are the following: * the person who put in the prompt * the people who work at Anthropic * the people who write the libre code which Anthropic uses for statistical regression ("training") * the people running the servers on which Anthropic's code is running * the people running the electrical grid, including the power stations * the people mining the materials from which all of these things are made * and so on This entire network of people, of workers, of useds, all work together to generate the output. At no point did "Claude" participate in the process, because Claude is a program. Programs are *things*, not people. What worries me most is code generation. But the "read-only" use of these systems is also a concern. In paying for their use, one contributes to Anthropic et al's attempt at enclosure. One might ask "how is this enclosure?". The reason is simple: enclosure is the process of taking what was once free, and putting a fence around it. These systems take free software, defang it, then sell access to laundered copies of it. I will also note here that the GPL is a brilliant legal hack. It uses bourgeois copyright law against the bourgeoisie. The AGPL is particularly impressive for how mad it makes Google and the like. But these licenses are entirely dependent on copyright enforcement. Without enforcement the commons have no teeth. Porky can just take all that programmer labour, for free, and contribute nothing back. ## Technical One positive thing I will say is that these programs are pretty good at finding bugs. But there are other ways to accomplish the same tasks without resorting to "AI". I have written before on this list about the need for formal methods. By using value analysis things like signed overflow or out-of-bounds accesses can be caught at verification time. We should also look at using Fil-C, which is a memory safe C implementation. That is perhaps not reasonable for the compute-heavy parts of the project, but certainly an option for lavf. I am not opposed to LLMs on technical grounds. If there are libre alternatives, where the license situation of the input data is clear, then that is something I see no legal or political problem with using. ## Policy I should hopefully have made the need for a policy clear. Even if one disagrees with the political, there is still the legal. But what policy should be enacted? I see a number of options: 1) Ban generated code entirely 2) Only ban generated code where the license situation is unclear 3) Maintain two forks: one pristine, and one where generated code is allowed. Feel free to bikeshed over names. I'm partial to "pristine" and "robot_hell" 4) Similar to 3 but pristine also allows code that obeys 2 Option 1 is simplest. Option 2 allows the use of libre models. Option 3 gives downstream the option of choosing. The present state of things is just 3 but without pristine, which again opens us up to legal issues. Option 4 is probably not worthwhile because the successful use of libre models would mean there's no need to maintain a fork. I will also direct readers to NLnet's AI policy: https://nlnet.nl/foundation/policies/generativeAI/2.0/ . TL;DR: It's a ban on generated code, documentation etc.. Read-only use is fine. I am in favor of option 1 due to its simplicity, and because it fights laziness. Option 2 is also permissible because it solves the legal issue, but still less desirable because it encourages vibe coding and discourages understanding. I am less concerned about read-only use. It's technically useful (Forgejo_Fairy is good at finding bugs), but I also don't like the political aspects of *being used* by non-free models. This text can be considered words of caution. Feel free to ignore it. But if no policy is enacted, and if the courts rule unfavorably towards Anthropic, OpenAI and the rest, then I will cackle with schadenfreude from within my nest of I-told-you-so's. /Tomas _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
