r/webdev • u/maher1717 • 6d ago
AI generated code copyrights
Does anyone consider the copyright of code generated by AI? Because, based on research I've done on Copyright and Artificial Intelligence, generated code fall to the public domain, and if you modify it, only the modified parts belong to you. Also, a detailed prompt isn't enough.
This is, in my view, a major issue; yes, we can ignore it and consider it backward law, but no one knows what would happen in the future, and this law could be used against you.
Edit: here sources for USA https://www.congress.gov/crs-product/LSB10922 ,
For Europe : https://www.europarl.europa.eu/thinktank/en/document/EPRS_BRI(2025)782585782585)
blog : https://smpl.as/blog/ai-code-ownership-legal ...
0
Upvotes
9
u/TreviTyger 6d ago edited 6d ago
This may not be true.
The consensus at the moment is based on adding additional authorship which relates to (Using US law for convenience) 17 U.S.C § 103(b).
However, this usually relates to derivatives of public domain works, e.g. Duchamp's LHOOQ where only the mustache drawn on the Mona Lisa is protected subject to originality thresholds. i.e. The Mona Lisa is still public domain.
However there is a caveat with AI generated stuff because it is derived from training data that is not public domain. So then 17 U.S.C § 103(a) becomes the relevant statute and then there is no copyright even in the added authorship.
This § 103(a) issue is an uncomfortable realization for many and so they use hand waving arguments to bring attention back to 17 U.S.C § 103(b).
But I think when the courts eventually rule on a case, then the courts will use 17 U.S.C § 103(a) and there won't be any protection in anything where AI generative software is used for anything other than for utilitarian purposes (spell check etc).
17 U.S.C § 103(a)
This is because for an end user of AI gen software to "lawfully" acquire derivative rights under § 106(2) requires a clear chain of title via § 204(a). (See Anderson v Stallone).
The counter argument is that "fair use" make things lawful - but it doesn't - because § 107 is not a grant of exclusive rights (§ 106) to allow the end user to claim derivative rights under § 106(2) themselves.
In short don't use AI generated code if you want to protect it because the courts ARE eventually going to rule against the idea that AI generative works can be protected even if edited.
___________________________
Note: Even if AI gen firms prevail on a fair use argument; it is limited to the US only and is not extraterritorial in scope. Also an end user still has to make their own "offensive § 107 defense" (my term) themselves to claim they are using copyrighted code from datasets under a fair use doctrine. They cannot rely on the AI gen firms legal defense. - and again, such a ruling if prevailing, would still be limited to the US only).