From patchwork Sun Nov 22 21:29:46 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 29067 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 7704AC3304 for ; Sun, 22 Nov 2026 21:29:50 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 7700A6A981; Sun, 22 Nov 2026 22:29:49 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="O/vDwgnX"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id A73496A932 for ; Sun, 22 Nov 2026 22:29:47 +0100 (CET) Received: from killaraus.ideasonboard.com (2001-14ba-7086-3000--a06.rev.dnainternet.fi [IPv6:2001:14ba:7086:3000::a06]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id CCD69D0 for ; Sun, 22 Nov 2026 22:27:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1795382836; bh=5BwIhq4Ry1oP0JS+PUyz2ERnmGAzmABCjFRBpHdD8q4=; h=From:To:Subject:Date:From; b=O/vDwgnXhsGWOgKyZH6SmZtKCFdGPdjwinr1eiS5hS61fo/V8UX5kYMU2JdYzR/Ix 3rZVv9jVGWsZwhFHx9kYop2/C3vFXli7W7NxVz7BOZLayDFVSFWBCF+Lpee3U697eg o6Duk7Z4HF7AUJ415y1vh3rm9PFUL1sRwi7aLOeI= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Subject: [PATCH v2] Documentation: Add AI policy Date: Sun, 22 Nov 2026 23:29:46 +0200 Message-ID: <20261122212946.2941473-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.56.1 MIME-Version: 1.0 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" libcamera is seeing an increase in AI contributions, and is missing an AI policy. Fix it. The rationale is explained in the documentation. Signed-off-by: Laurent Pinchart Acked-by: Jacopo Mondi Reviewed-by: Jacopo Mondi Reviewed-by: Stefan Klug Acked-by: Jai Luthra --- Changes since v1: - Add a "scope" section header - Add a note about machine translation - Expand rationale to explain why debugging without AI is encouraged - Focus on what we accept instead of what we allow - Drop the paragraph about recommending AI to other users, as this should be evident to any contributor acting in good faith - Expand and make more visible the paragraph about good intent and politeness, and reference the code of conduct - Align wording in policy summary with the longer document Here's the full diff compared to v1: base-commit: adfa719f8ed67d18fd8a0739fc088a1f8b9e7252 diff --git a/Documentation/ai-policy.rst b/Documentation/ai-policy.rst index 5b84a7de443c..a8c39654e365 100644 --- a/Documentation/ai-policy.rst +++ b/Documentation/ai-policy.rst @@ -9,10 +9,16 @@ 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 --------- @@ -44,10 +50,11 @@ grow in the project. AI usage breaches that contract: increases the number of submissions without scaling the number of reviewers proportionally. This leads to quick maintainer burnout. -* In the longer term, delegating cognitive tasks to machines tends to decrease - the ability of experienced contributors to understand the code base and - produce high quality contributions. This decreases code quality and increases - maintainer burden further. +* 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 @@ -60,9 +67,9 @@ 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 allow the use of generative AI for contributions. +the project does not accept contributions made with generative AI. -In particular, libcamera does not permit +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. @@ -74,16 +81,15 @@ In particular, libcamera does not permit reports, answering e-mails, sending patches or submitting pull requests with AI agents is not allowed. -Consequently, we expect community members to refrain from recommending to others -usage of AI to contribute to the project. - 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 :ref:`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. Maintainers and reviewers shall presume good intent, and treat - contributors politely. + needed. diff --git a/Documentation/contributing.rst b/Documentation/contributing.rst index 9d7ed95761e6..7566135700c4 100644 --- a/Documentation/contributing.rst +++ b/Documentation/contributing.rst @@ -20,8 +20,9 @@ AI Policy networks (whether LLMs, diffusion models or otherwise) for the purpose of generating code, text, images or other forms of media ("Generative AI"). -libcamera does not allow the use of generative AI to contribute to the project. -In particular, the project does not permit +libcamera does not accept contributions made with generative AI. + +In particular, the project 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 @@ -29,9 +30,6 @@ In particular, the project does not permit * Usage of AI agents to interact with the project's infrastructure (mailing lists, chat rooms, Git forges, ...) -Consequently, we expect community members to refrain from recommending to -others usage of AI to contribute to the project. - For more information, and the rationale for this policy, see the :ref:`detailed AI policy `. --- Documentation/ai-policy.rst | 95 ++++++++++++++++++++++++++++++++++ Documentation/contributing.rst | 22 ++++++++ Documentation/meson.build | 1 + 3 files changed, 118 insertions(+) create mode 100644 Documentation/ai-policy.rst diff --git a/Documentation/ai-policy.rst b/Documentation/ai-policy.rst new file mode 100644 index 000000000000..a8c39654e365 --- /dev/null +++ b/Documentation/ai-policy.rst @@ -0,0 +1,95 @@ +.. SPDX-License-Identifier: CC-BY-4.0 + +.. _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 :ref:`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. diff --git a/Documentation/contributing.rst b/Documentation/contributing.rst index 20682d56c75d..7566135700c4 100644 --- a/Documentation/contributing.rst +++ b/Documentation/contributing.rst @@ -12,6 +12,27 @@ The project adheres to a :ref:`code of conduct ` that maintainers, contributors and community members are expected to follow in all online and offline communication. +AI Policy +--------- + +.. note:: + 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"). + +libcamera does not accept contributions made with generative AI. + +In particular, the project 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 + +* Usage of AI agents to interact with the project's infrastructure (mailing + lists, chat rooms, Git forges, ...) + +For more information, and the rationale for this policy, see the +:ref:`detailed AI policy `. + Mailing List ------------ @@ -164,4 +185,5 @@ By making a contribution to this project, I certify that: :hidden: Code of Conduct + AI Policy Coding Style diff --git a/Documentation/meson.build b/Documentation/meson.build index a156bd0b9ca7..7d14f413a236 100644 --- a/Documentation/meson.build +++ b/Documentation/meson.build @@ -150,6 +150,7 @@ if sphinx.found() sphinx_conf_dir = fs.parent(sphinx_conf) docs_sources = [ + 'ai-policy.rst', 'camera-sensor-model.rst', 'code-of-conduct.rst', 'coding-style.rst',