libcamera’s AI Policy

libcamera’s AI Policy#

Usage of generative AI is widespread throughout the software industry. In response to the impact of AI-generated contributions, libcamera has adopted the policy described herein.

Scope#

In the context of this document, the term “AI” refers to the use of neural networks (whether LLMs, diffusion models or otherwise) for the purpose of generating code, text, images or other forms of media (“Generative AI”).

The use of human language translation tools, when the original text is written by a human, is not covered by this policy.

Rationale#

Generative AI tools have shown technical abilities that led to their rapid adoption. They also come with negative consequences that impact free software ecosystems, open-source communities, and the world in general. Those two realities are indissociable from each other.

Usage of generative AI threatens the sustainability of free software ecosystems by increasing pressure on projects and their maintainers. This impacts libcamera directly.

To help projects grow, free software maintainers invest their time in new contributors. The typical deal is to offer reviews, guidance and expertise, and expect in return that some of the new contributors will stay around, learn and grow in the project. AI usage breaches that contract:

  • New contributors using AI tend to tackle more complex problems and submit code that they do not understand. At first sight, the submissions give the illusion of expertise. They then consume larger amounts of maintainer time to identify their flaws and propose solutions.

  • Unlike developers, AI models do not directly learn from reviews. The time maintainers invest in reviewing AI-generated submissions does not help improving the contributor’s skills. The balance between maintainer investment and return for the project worsens.

  • The ease of generating seemingly good contributions suddenly and significantly increases the number of submissions without scaling the number of reviewers proportionally. This leads to quick maintainer burnout.

  • Developing code, testing it, writing commit message, and debugging problems are all part of a continuous learning process. Delegating those cognitive tasks to machines hinders learning for new contributors, and over time tends to decrease experienced contributors’ understanding of the code base. This increases maintainer burden further.

Finally, while libcamera’s primary goal is technical, the project does not exist in a vacuum, and neither does its community. We cannot ignore the ethical issues of AI technology, nor its impact on society and the internet. As those issues have been discussed at length and are widely documented, they will not be detailed here.

Policy#

Due to the negative impact on maintainers and the threat to the sustainability of libcamera, and taking other ethical and technical issues into consideration, the project does not accept contributions made with generative AI.

In particular, libcamera does not accept

  • Usage of AI to generate code, documentation, commit messages, bug reports or any other material used in human-to-human communication, in full or in part. Any material meant to be received, read or otherwise consumed by a human must be developed entirely by a human, without AI assistance.

  • Usage of AI agents to interact with the project’s infrastructure (mailing lists, chat rooms, Git forges, …). Automation of tasks such as filling bug reports, answering e-mails, sending patches or submitting pull requests with AI agents is not allowed.

Contributors to libcamera are also encouraged to avoid usage of AI for other libcamera development tasks, such as debugging issues, or pre-reviewing patches before submitting them. The concerns outlined in the rationale apply to those tasks as well.

Maintainers and reviewers shall always presume good intent and treat contributors politely, in accordance with the Contributor Covenant Code of Conduct.

Note

This policy is not set in stone. It will evolve as new patterns emerge in the community. Contributors are encouraged to ask for clarification where needed.