[v2] Documentation: Add AI policy
diff mbox series

Message ID 20261122212946.2941473-1-laurent.pinchart@ideasonboard.com
State New
Headers show
Series
  • [v2] Documentation: Add AI policy
Related show

Commit Message

Laurent Pinchart Nov. 22, 2026, 9:29 p.m. UTC
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 <laurent.pinchart@ideasonboard.com>
Acked-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Reviewed-by: Stefan Klug <stefan.klug@ideasonboard.com>
Acked-by: Jai Luthra <jai.luthra@ideasonboard.com>
---
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

Patch
diff mbox series

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 <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 <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 <ai-policy>`.
+
 Mailing List
 ------------
 
@@ -164,4 +185,5 @@  By making a contribution to this project, I certify that:
    :hidden:
 
    Code of Conduct <code-of-conduct>
+   AI Policy <ai-policy>
    Coding Style <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',