While checking pull requests I noticed a discussion about the use of AI tools for supporting coding:
Personally, I think AI is a great tool, but the implications are not clear.
Since no direct correlation can be found between proposed source code and material used for training, it’s literally impossible (as of today) to relate the code generated with any specific training material, and therefore its license.
Most jurisdictions (US, EU, UK) require human authorship for copyright. If code is generated entirely by an AI with minimal human creativity, it typically cannot be copyrighted.
Once a human performs editing/modifications, review and further detailed guidance to the tool, preparation of submission, … the human contribution can be copyrighted.
When code comprises copyrighted snippets, in that case (provided the snippets are substantially representative and not generic like variable += increment !) the original copyright applies. Is this practically possible, or common? no idea.
@koconnor I think the contributing guidelines should be amended no matter the direction Klipper decides to take.
Personally I would explicitly request a mention of AI-aided coding when AI is used as a tool to support development, and signing off by the human who defined the requirements/goals for the AI, performed the review after automatic generation, adaptation upon need of the AI-generated code, and who submitted the commits and pull request .
Explicitly forbid only fully automatic code generation and submission, where no human contributed to the final pull request, which is a grey area … of a darker shade of grey, so to say.
(I’m using likely wrong terminology for pulls and commits, you get the idea)
All commits must include a Signed-off-by line:
Signed-off-by: Your Name your@email.com
By signing off on a commit, you certify that:
You have the right to submit the work under the project license.
The contribution is your original work or appropriately licensed.
The contribution does not knowingly violate third-party intellectual property rights.
Use of AI-assisted tools
AI-assisted development tools (e.g. code generation systems) may be used as long as at least some human intervention takes place from the definition of the features to the final pull request.
Contributors are responsible for the code they submit.
When using AI-generated code, you must ensure that:
• The code has been reviewed and understood by the contributor
• The code does not contain copied material from third-party sources with incompatible licenses
• The contributor has verified that the generated code is appropriate for the projectMaintainers may request modifications or removal of generated code if licensing or originality concerns arise.
This should protect Klipper to a sufficient extent for several years.