AI Rewrites and the Future of Open Source Licensing: The chardet Case and Beyond
The world of open source software is facing a fundamental challenge. Recent events surrounding the Python character encoding detector chardet, and a key Supreme Court decision, are forcing a reckoning with how we define authorship, licensing, and the exceptionally future of copyleft in the age of artificial intelligence.
The chardet Relicensing Controversy
For years, chardet existed in a legal gray area. As a port of Mozilla’s C++ code, it was bound by the LGPL, potentially creating complications for corporate users. Maintainers recently attempted to resolve this by using Claude Code to completely rewrite the codebase, releasing v7.0.0 under the more permissive MIT license. However, the original author raised concerns, arguing that even a complete rewrite prompted by the original LGPL code constitutes a derivative work and must remain under the LGPL.
The “Clean Room” Dilemma, Bypassed by AI
Traditionally, a “clean room” rewrite – a legally sound method for creating a recent, independently licensable work – requires a strict separation of knowledge. This involves two distinct teams: one to analyze the original code and create a functional specification, and another, entirely separate team, to write new code based solely on that specification, without ever seeing the original source. The chardet maintainers bypassed this established process by using an AI model trained on the original LGPL code. If the AI “learned” from the LGPL code to generate the new version, the output is arguably a derivative work, triggering the LGPL’s requirements.
A Supreme Court Ruling Adds Fuel to the Fire
Adding another layer of complexity, the U.S. Supreme Court declined to hear an appeal regarding copyrights for AI-generated material on March 2, 2026. This decision effectively reinforces the “Human Authorship” requirement for copyright, creating a legal paradox for the chardet maintainers:
- If AI-generated code cannot be copyrighted, the maintainers may lack the legal standing to license v7.0.0 under MIT.
- If the AI output is a derivative work, the relicensing violates the LGPL.
- If the code is truly a new work created by a machine, it might fall into the public domain, rendering the MIT license irrelevant.
The Potential End of Copyleft?
Accepting AI-rewriting as a valid method for changing licenses could have profound consequences for copyleft licensing models like the GPL. If developers can simply feed GPL-licensed code into an LLM with a prompt to “rewrite it in a different style” and then release it under a permissive license like MIT, the core principles of copyleft – ensuring that derivative works remain open source – are undermined. The legal and ethical boundaries are still being defined, and the chardet v7.0.0 case represents a crucial early test.
What Does This Mean for the Future?
The chardet case highlights a growing tension between the rapid advancement of AI and the established legal frameworks governing software licensing. Several potential outcomes are emerging:
- New Legal Precedents: Future court cases will likely be needed to clarify the legal status of AI-generated code and its relationship to existing copyright laws.
- Revised Licensing Models: Licensing organizations may necessitate to develop new licensing terms specifically addressing AI-assisted development and code generation.
- Technological Solutions: Tools and techniques for detecting AI-generated code and tracing its origins could become increasingly significant for enforcing licensing agreements.
- Community Standards: Open source communities may establish their own norms and guidelines for using AI in software development, independent of legal requirements.
FAQ
Q: What is relicensing?
A: Relicensing is the process of changing the license under which a software project is distributed.
Q: What is copyleft?
A: Copyleft is a licensing approach that requires derivative works to also be licensed under the same terms, ensuring continued openness.
Q: What is the LGPL?
A: The Lesser General Public License (LGPL) is a permissive free software license, allowing linking with proprietary software.
Q: What is the MIT license?
A: The MIT license is a very permissive free software license, allowing almost any use of the software.
Pro Tip: When contributing to open-source projects, always carefully review the licensing terms and understand your obligations.
What are your thoughts on the implications of AI for open-source licensing? Share your perspective in the comments below!
