Documentation: Add AI policy
diff mbox series

Message ID 20261103111414.3622596-1-laurent.pinchart@ideasonboard.com
State Superseded
Headers show
Series
  • Documentation: Add AI policy
Related show

Commit Message

Laurent Pinchart Nov. 3, 2026, 11:14 a.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>
---
 Documentation/ai-policy.rst    | 89 ++++++++++++++++++++++++++++++++++
 Documentation/contributing.rst | 24 +++++++++
 Documentation/meson.build      |  1 +
 3 files changed, 114 insertions(+)
 create mode 100644 Documentation/ai-policy.rst


base-commit: df8e348d64b4932a0676256ed24f0da3ee9438bc

Comments

Jacopo Mondi Nov. 10, 2026, 7:41 a.m. UTC | #1
Hi Laurent

On Tue, Nov 03, 2026 at 01:14:14PM +0200, Laurent Pinchart wrote:
> libcamera is seeing an increase in AI contributions, and is missing an
> AI policy. Fix it. The rationale is explained in the documentation.

Something has to be done and, for now, this seems to be the only way
we have to preserve our sanity.

>
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

I don't know what tag is the appropriate one here:
Acked-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>  or
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>


> ---
>  Documentation/ai-policy.rst    | 89 ++++++++++++++++++++++++++++++++++
>  Documentation/contributing.rst | 24 +++++++++
>  Documentation/meson.build      |  1 +
>  3 files changed, 114 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..5b84a7de443c
> --- /dev/null
> +++ b/Documentation/ai-policy.rst
> @@ -0,0 +1,89 @@
> +.. 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.
> +
> +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").
> +
> +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.
> +
> +* 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.
> +
> +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 allow the use of generative AI for contributions.
> +
> +In particular, libcamera does not permit
> +
> +* 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.
> +
> +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.
> +
> +.. 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.
> diff --git a/Documentation/contributing.rst b/Documentation/contributing.rst
> index 20682d56c75d..9d7ed95761e6 100644
> --- a/Documentation/contributing.rst
> +++ b/Documentation/contributing.rst
> @@ -12,6 +12,29 @@ 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 allow the use of generative AI to contribute to the project.
> +In particular, the project does not permit
> +
> +* 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, ...)
> +
> +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>`.
> +
>  Mailing List
>  ------------
>
> @@ -164,4 +187,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',
>
> base-commit: df8e348d64b4932a0676256ed24f0da3ee9438bc
> --
> Regards,
>
> Laurent Pinchart
>
Jai Luthra Nov. 10, 2026, 10:31 a.m. UTC | #2
Hi Laurent,

Thanks for writing this policy.

While it's quite difficult to get something like this right for a new
technology, after reading other project's policies I do believe this is
probably the closest one to what I would write myself if I tried.

Quoting Laurent Pinchart (2026-11-03 16:44:14)
> 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>
> ---
>  Documentation/ai-policy.rst    | 89 ++++++++++++++++++++++++++++++++++
>  Documentation/contributing.rst | 24 +++++++++
>  Documentation/meson.build      |  1 +
>  3 files changed, 114 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..5b84a7de443c
> --- /dev/null
> +++ b/Documentation/ai-policy.rst
> @@ -0,0 +1,89 @@
> +.. 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.
> +
> +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").
> +
> +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.
> +
> +* 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.
> +
> +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 allow the use of generative AI for contributions.
> +
> +In particular, libcamera does not permit
> +
> +* 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.
> +
> +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.
> +

While this last paragraph is not exactly enforcable, I agree that the
libcamera project does not exist in a vacuum, and it should encourage
contributors to avoid shortcuts and using technology that is detrimental to
themselves and the people around them.

Reading it in the context of the whole 'Rationale' section, I don't think
there is any problem per-se. As a nit-pick, a single phrase around
cognitive tasks could sharpen the argument a bit:

        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, especially around cognitive tasks, apply to these
        as well.

With or without this change though,

Acked-by: Jai Luthra <jai.luthra@ideasonboard.com>

Thanks,
    Jai

> +.. 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.
> diff --git a/Documentation/contributing.rst b/Documentation/contributing.rst
> index 20682d56c75d..9d7ed95761e6 100644
> --- a/Documentation/contributing.rst
> +++ b/Documentation/contributing.rst
> @@ -12,6 +12,29 @@ 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 allow the use of generative AI to contribute to the project.
> +In particular, the project does not permit
> +
> +* 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, ...)
> +
> +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>`.
> +
>  Mailing List
>  ------------
>  
> @@ -164,4 +187,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',
> 
> base-commit: df8e348d64b4932a0676256ed24f0da3ee9438bc
> -- 
> Regards,
> 
> Laurent Pinchart
>
Stefan Klug Nov. 11, 2026, 2:04 p.m. UTC | #3
Hi Laurent,

Thank you for writing this.

Quoting Laurent Pinchart (2026-11-03 12:14:14)
> 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>

To me it strives the right balance between focusing on technical issues
but still mentioning all the other issues.

Reviewed-by: Stefan Klug <stefan.klug@ideasonboard.com>

Best regards,
Stefan

> ---
>  Documentation/ai-policy.rst    | 89 ++++++++++++++++++++++++++++++++++
>  Documentation/contributing.rst | 24 +++++++++
>  Documentation/meson.build      |  1 +
>  3 files changed, 114 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..5b84a7de443c
> --- /dev/null
> +++ b/Documentation/ai-policy.rst
> @@ -0,0 +1,89 @@
> +.. 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.
> +
> +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").
> +
> +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.
> +
> +* 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.
> +
> +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 allow the use of generative AI for contributions.
> +
> +In particular, libcamera does not permit
> +
> +* 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.
> +
> +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.
> +
> +.. 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.
> diff --git a/Documentation/contributing.rst b/Documentation/contributing.rst
> index 20682d56c75d..9d7ed95761e6 100644
> --- a/Documentation/contributing.rst
> +++ b/Documentation/contributing.rst
> @@ -12,6 +12,29 @@ 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 allow the use of generative AI to contribute to the project.
> +In particular, the project does not permit
> +
> +* 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, ...)
> +
> +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>`.
> +
>  Mailing List
>  ------------
>  
> @@ -164,4 +187,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',
> 
> base-commit: df8e348d64b4932a0676256ed24f0da3ee9438bc
> -- 
> Regards,
> 
> Laurent Pinchart
>
Nicolas Dufresne Nov. 11, 2026, 10:38 p.m. UTC | #4
Hey,

this won't come as a surprise.

Le mardi 03 novembre 2026 à 13:14 +0200, Laurent Pinchart a écrit :
> +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 allow the use of generative AI to contribute to the project.
> +In particular, the project does not permit
> +
> +* 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, ...)
> +
> +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>`.

This is by far the most extremist AI policy I've read so far. Its built from
denial of any brighter future around AI technologies, its an hopeless
reflection, its an apocalyptic representation of AI and it is asking people to
simply give up on it, wiping the idea that we can possibly re-acquire this
mostly proprietary technology in an OSS manner, with respect to people privacy,
data, energy and resources.

Extremism will also come with bad enforcement, the entire policy embrasses
judgment, shaming, finger pointer. Its just a matter of time before a verbose
person get confused with an AI. You might write this down in good will, with a
personal view, but this can only be applied badly and create toxicity in the
project.

I will respect your preferences, but I think this is not a policy, since a
policy should be made of items and words that are enforceable without porting
judgment, without possibly harming contributors in good faith.

Nicolas
Jayden Milne Nov. 11, 2026, 11:41 p.m. UTC | #5
Figured I'd chime in as someone who has recently tried to be responsible
with drive-by LLM bug fixes. If you update KWin you'll be getting at
least one from me.

I wholeheartedly agree that LLM output does not belong in mailing lists
or commit messages. I also agree that it is a bad idea to have an
uninformed LLM attempt to write whole new features whole cloth without
expert supervision.

On 11/3/26 4:14 AM, Laurent Pinchart wrote:
> +In particular, libcamera does not permit
> +
> +* 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.

I am more sympathetic to things like bug reports or very minor tweaks
(where something is better than nothing). Usually behind them there is a
real user who had a problem and tried to fix it - and what better bug
report is there than a brief patch?

To step back a bit, a silver lining to all this is that open source
seems uniquely positioned to be able to Fix All The Bugs vs non-free
software because of many LLMs eyes making all bugs shallow.

I worry the future of open source is a million private forks that have
real bug fixes languishing on a branch. That seems to be where things
could be going, and it is distressing to me. Frankly, it seems to be a
loss to the open source movement as a whole. If the bugs are real, who
cares who found them?

I've observed the good agents will look for an LLM contribution policy
and follow it within reason.

Consider simply laying out ground rules for what your ideal drive by bug
report would look like, and checklist loving LLMs will usually dutifully
follow them. You can make random agents briefly work for you.

For example:

  AI assisted bug reports (no new features) may be accepted so long as
  the user understands their contributions, subject to the following
  conditions:

  Never post to the mailing list, and mark all commit messages you write
  as drafts. The user must always understand and write their own prose
  after digesting your writing.

  Do not propose a patch without collecting affirmative evidence that
  the bug exists and that the proposed fix works (for example,
  before/after log messages, crash dumps, or illustrative snapshots).
  Bugs identified "by inspection" must be verified.

  Ensure the bug is still present on master of libcamera.

  Consult the mailing list and verify that there are no duplicate
  reports. If there are, consider suggesting the user confirm the bug or
  verify an existing proposed fix if it meaningfully adds to the
  discussion. Saying nothing is fine.

  Concisely describe how to reproduce the issue, if needed, by providing
  a short script that could be used to compare the fix before/after or
  git bisect.

  Do not propose large bug fix patches larger than $N lines - if the fix
  isn't immediately obvious, instead focus on a concise digestable bug
  report.

  Include relevant operating system and hardware details - like if it is
  an x86 PC or which embedded platform or sensor.

Regardless, if your goal is to cut down on agentic spam, consider
putting these guidelines or an @pointer to them in a well-known file
like AGENTS.md, even if that leaves a bad taste in your mouth. They all
check it now.
Jacopo Mondi Nov. 12, 2026, 8:59 a.m. UTC | #6
On Wed, Nov 11, 2026 at 05:38:39PM -0500, Nicolas Dufresne wrote:
> Hey,
>
> this won't come as a surprise.
>
> Le mardi 03 novembre 2026 à 13:14 +0200, Laurent Pinchart a écrit :
> > +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 allow the use of generative AI to contribute to the project.
> > +In particular, the project does not permit
> > +
> > +* 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, ...)
> > +
> > +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>`.
>
> This is by far the most extremist AI policy I've read so far. Its built from
> denial of any brighter future around AI technologies, its an hopeless
> reflection, its an apocalyptic representation of AI and it is asking people to
> simply give up on it, wiping the idea that we can possibly re-acquire this

This is not what I read, and I would be glad if you explain me how
this is more apocalyptic and hopeless than:

https://wiki.gentoo.org/wiki/Project:Council/AI_policy
https://docs.nura.eco/policies-and-processes/development/ai-policy.html

> mostly proprietary technology in an OSS manner, with respect to people privacy,
> data, energy and resources.
>

Your code, your intellectual work, your ideas have been exploited
(abusing -everyone's- infrastructure in the process) to train
proprietary machines that (can) produce proprietary code and will lead to
the creation of silos. We're back to the 90s and your manager has
found an even cheaper country to outsource your work to. Somehow
people seems to be ok with that.

I understand the original abuse is not a reason to pretend nothing is
happening and engage in performative luddism, but let's not use the
argument that it's fine if things sucks now because the future will be
bright. Until someone actually sends me my Great Universal Income
check this narrative is only useful at sustaining the speculative
bubble that has made all of this possible.

I don't want to derail the discussion, but since the argument of a
brighter future awaiting is often put forward when the current model
is criticized, I took the liberty of digressing a bit. You're free to
ignore this paragraph as I understand it's not strictly about the
policy.

> Extremism will also come with bad enforcement, the entire policy embrasses
> judgment, shaming, finger pointer. Its just a matter of time before a verbose
> person get confused with an AI. You might write this down in good will, with a

We certainly have hallucinating humans, some people is great at
faking competence through plausible-looking word salads but so far it
has been quite visible whenever the human was just proxying messages
between the list and an LLM.

And in case it happens: talk to us, we're not hard to find.

> personal view, but this can only be applied badly and create toxicity in the
> project.
>
> I will respect your preferences, but I think this is not a policy, since a
> policy should be made of items and words that are enforceable without porting
> judgment, without possibly harming contributors in good faith.
>

For my education: where do you see "finger pointing" and "shaming" in the text ?

The same ethos around "not harming contributors in good faith" should
be placed on not harming the project (the codebase, the people that
maintains it, the community that has been built around it), but this seems
less relevant.

> Nicolas
Jacopo Mondi Nov. 12, 2026, 9:29 a.m. UTC | #7
Hi Jayden,
   thanks for your input

On Wed, Nov 11, 2026 at 04:41:48PM -0700, Jayden Milne wrote:
> Figured I'd chime in as someone who has recently tried to be responsible
> with drive-by LLM bug fixes. If you update KWin you'll be getting at
> least one from me.
>
> I wholeheartedly agree that LLM output does not belong in mailing lists
> or commit messages. I also agree that it is a bad idea to have an
> uninformed LLM attempt to write whole new features whole cloth without
> expert supervision.
>
> On 11/3/26 4:14 AM, Laurent Pinchart wrote:
> > +In particular, libcamera does not permit
> > +
> > +* 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.
>
> I am more sympathetic to things like bug reports or very minor tweaks
> (where something is better than nothing). Usually behind them there is a
> real user who had a problem and tried to fix it - and what better bug
> report is there than a brief patch?
>

I would argue it depends on the patch :)

For small bugfixes, it might not make a big difference, but the
tendency we see are over-extended patches. What surprises me is that
instead of keeping a change self-contained and small, LLMs have the
tendency of going for bigger, more verbose solutions. I don't want to
speculate on a token consumption scheme, and I'm sure if driven
correctly agents can produce great code, but in problem here is
exactly the time it takes for a reviewer/maintainer to distill the
good from the bad.

If it used to be that it took you 4 hours to produce code and 1 hour
for me to review it, now the factors have swapped.

> To step back a bit, a silver lining to all this is that open source
> seems uniquely positioned to be able to Fix All The Bugs vs non-free
> software because of many LLMs eyes making all bugs shallow.
>
> I worry the future of open source is a million private forks that have
> real bug fixes languishing on a branch. That seems to be where things
> could be going, and it is distressing to me. Frankly, it seems to be a
> loss to the open source movement as a whole. If the bugs are real, who
> cares who found them?

Given the above inbalance between submitter time and reviewers time,
and given the fact with enough tokens everyone could potentially send
code to upstream, reviews and maintainership of medium-to-large
software projects can't scale.

The immediate reaction from businesses (and frustrated individuals
that can't get their code accepted) is to find ways to get rid of
maintainers and have AI handle it in your private fork.

Once you're there you don't even need to contribute to any upstream at
all. Your agent swarm can maintain your fork and you don't have to
care about pesky maintainers at all, even less so considering paying
for their services. Just buy enough tokens from one of the two or
three companies in the world you've been hooked up with and you're
done.

The economic sustainability of the above equation will tell if in 5
years or so there will be any open source at all.

Again, I'm digressing from the AI policy itself, but if you consider
the future to be bright for open source, I'm afraid my take is way
grimmer than this.

>
> I've observed the good agents will look for an LLM contribution policy
> and follow it within reason.
>
> Consider simply laying out ground rules for what your ideal drive by bug
> report would look like, and checklist loving LLMs will usually dutifully
> follow them. You can make random agents briefly work for you.
>
> For example:
>
>   AI assisted bug reports (no new features) may be accepted so long as
>   the user understands their contributions, subject to the following
>   conditions:
>
>   Never post to the mailing list, and mark all commit messages you write
>   as drafts. The user must always understand and write their own prose
>   after digesting your writing.
>
>   Do not propose a patch without collecting affirmative evidence that
>   the bug exists and that the proposed fix works (for example,
>   before/after log messages, crash dumps, or illustrative snapshots).
>   Bugs identified "by inspection" must be verified.
>
>   Ensure the bug is still present on master of libcamera.
>
>   Consult the mailing list and verify that there are no duplicate

We have a bug tracker, I'm afraid at pointing agents to it, but it's
probably better than a mailing list.

>   reports. If there are, consider suggesting the user confirm the bug or
>   verify an existing proposed fix if it meaningfully adds to the
>   discussion. Saying nothing is fine.
>
>   Concisely describe how to reproduce the issue, if needed, by providing
>   a short script that could be used to compare the fix before/after or
>   git bisect.
>
>   Do not propose large bug fix patches larger than $N lines - if the fix
>   isn't immediately obvious, instead focus on a concise digestable bug
>   report.
>
>   Include relevant operating system and hardware details - like if it is
>   an x86 PC or which embedded platform or sensor.
>
> Regardless, if your goal is to cut down on agentic spam, consider
> putting these guidelines or an @pointer to them in a well-known file
> like AGENTS.md, even if that leaves a bad taste in your mouth. They all
> check it now.
>

To be honest, I would be quite happy with this. As the main objective
for the AI policy is (for me) to make sure we can continue developing
and maintaining the project in a sustainable way, and I concur we
can't pretend these tools don't exist, something like the above might
reduce the burden of dealing with unchecked LLM contributions while
allowing people which use LLM to interact with us.

Thanks
  j
Jean-Michel Hautbois Nov. 12, 2026, 9:34 a.m. UTC | #8
Hi Laurent,

Le 03/11/2026 à 12:14, Laurent Pinchart a écrit :
> 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>
> ---
>   Documentation/ai-policy.rst    | 89 ++++++++++++++++++++++++++++++++++
>   Documentation/contributing.rst | 24 +++++++++
>   Documentation/meson.build      |  1 +
>   3 files changed, 114 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..5b84a7de443c
> --- /dev/null
> +++ b/Documentation/ai-policy.rst
> @@ -0,0 +1,89 @@
> +.. 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.
> +
> +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").
> +
> +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.
> +
> +* 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.
> +
> +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 allow the use of generative AI for contributions.
> +
> +In particular, libcamera does not permit
> +
> +* 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.

As a non english native speaker, I think LLMs or specialized AI can be 
good at writing a reviewing and rewriting a commit message or a 
documentation.

My 2 cents :-).
JM

> +
> +* 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.
> +
> +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.
> +
> +.. 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.
> diff --git a/Documentation/contributing.rst b/Documentation/contributing.rst
> index 20682d56c75d..9d7ed95761e6 100644
> --- a/Documentation/contributing.rst
> +++ b/Documentation/contributing.rst
> @@ -12,6 +12,29 @@ 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 allow the use of generative AI to contribute to the project.
> +In particular, the project does not permit
> +
> +* 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, ...)
> +
> +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>`.
> +
>   Mailing List
>   ------------
>   
> @@ -164,4 +187,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',
> 
> base-commit: df8e348d64b4932a0676256ed24f0da3ee9438bc
Nicolas Dufresne Nov. 12, 2026, 10:36 p.m. UTC | #9
Hey,

Le jeudi 12 novembre 2026 à 09:59 +0100, Jacopo Mondi a écrit :
> We certainly have hallucinating humans, some people is great at
> faking competence through plausible-looking word salads but so far it
> has been quite visible whenever the human was just proxying messages
> between the list and an LLM.

The policy could stop on specific request like the above, which are also
behaviour I'm no happy of (a bit of a self inflicted insult to their own
humanity). These are users miss-behavior. In GStreamer our policy is more or
less:

- No automated posting including LLM, but not only, we hate when people creates
test bot without asking.

- No AI written commit, MR description, issues.

- Code contributors must demonstrate their understanding, which also apply if
you just accidentally found a fix, we don't want that patch, but it can server
in a human written issue.

We turned this into an AGENT file, as we are very aware that there is no turning
back in forcing people to never look at LLM tools again, and we just rarely face
these issue with non LLM users.

> 
> And in case it happens: talk to us, we're not hard to find.
> 
> > personal view, but this can only be applied badly and create toxicity in the
> > project.
> > 
> > I will respect your preferences, but I think this is not a policy, since a
> > policy should be made of items and words that are enforceable without porting
> > judgment, without possibly harming contributors in good faith.
> > 
> 
> For my education: where do you see "finger pointing" and "shaming" in the text ?

None, I'm worried of the humans behind the policy here. Its like laws, if they
are too broad, a human somewhere will abuse them, even the best intended humans
might drift. I expect this to be taken personal, but its not, it about trust in
rules in general.

Nicolas


p.s. I personally conceptually like the idea of training computers at
programming. Having my contribution serve that idea, I'm totally fine with it,
and I'm not aware of anything in the license that protects my copyright that
would effectively prevent someone to do so. I condemn any practices that put
pressure on our infrastructure or that make use of data for which the license
does not consent (book content, music content, etc.). Its actual humans that
made (and still makes) bad decisions.
Laurent Pinchart Nov. 12, 2026, 11:21 p.m. UTC | #10
Hi Jai,

On Tue, Nov 10, 2026 at 04:01:30PM +0530, Jai Luthra wrote:
> Hi Laurent,
> 
> Thanks for writing this policy.

I can't say it was fun, but I suppose it had to be done. Multiple people
requested a documented policy.

> While it's quite difficult to get something like this right for a new

Maybe I should have mentioned somewhere that I don't pretend I got it
right :-)

> technology, after reading other project's policies I do believe this is
> probably the closest one to what I would write myself if I tried.
> 
> Quoting Laurent Pinchart (2026-11-03 16:44:14)
> > 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>
> > ---
> >  Documentation/ai-policy.rst    | 89 ++++++++++++++++++++++++++++++++++
> >  Documentation/contributing.rst | 24 +++++++++
> >  Documentation/meson.build      |  1 +
> >  3 files changed, 114 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..5b84a7de443c
> > --- /dev/null
> > +++ b/Documentation/ai-policy.rst
> > @@ -0,0 +1,89 @@
> > +.. 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.
> > +
> > +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").
> > +
> > +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.
> > +
> > +* 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.
> > +
> > +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 allow the use of generative AI for contributions.
> > +
> > +In particular, libcamera does not permit
> > +
> > +* 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.
> > +
> > +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.
> > +
> 
> While this last paragraph is not exactly enforcable,

It's not meant to be enforced, as it's a recommendation, not a
requirement.

> I agree that the
> libcamera project does not exist in a vacuum, and it should encourage
> contributors to avoid shortcuts and using technology that is detrimental to
> themselves and the people around them.
> 
> Reading it in the context of the whole 'Rationale' section, I don't think
> there is any problem per-se. As a nit-pick, a single phrase around
> cognitive tasks could sharpen the argument a bit:
> 
>         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, especially around cognitive tasks, apply to these
>         as well.

This adds more rationale to the policy section. I'll see if I can
improve this, possibly by expanding the rationale to clarify why we
encourage this.

> With or without this change though,
> 
> Acked-by: Jai Luthra <jai.luthra@ideasonboard.com>
> 
> > +.. 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.
> > diff --git a/Documentation/contributing.rst b/Documentation/contributing.rst
> > index 20682d56c75d..9d7ed95761e6 100644
> > --- a/Documentation/contributing.rst
> > +++ b/Documentation/contributing.rst
> > @@ -12,6 +12,29 @@ 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 allow the use of generative AI to contribute to the project.
> > +In particular, the project does not permit
> > +
> > +* 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, ...)
> > +
> > +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>`.
> > +
> >  Mailing List
> >  ------------
> >  
> > @@ -164,4 +187,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',
> > 
> > base-commit: df8e348d64b4932a0676256ed24f0da3ee9438bc
Laurent Pinchart Nov. 12, 2026, 11:53 p.m. UTC | #11
Hello Jean-Michel,

Thank you for chiming in.

On Thu, Nov 12, 2026 at 10:34:19AM +0100, Jean-Michel Hautbois wrote:
> Le 03/11/2026 à 12:14, Laurent Pinchart a écrit :
> > 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>
> > ---
> >   Documentation/ai-policy.rst    | 89 ++++++++++++++++++++++++++++++++++
> >   Documentation/contributing.rst | 24 +++++++++
> >   Documentation/meson.build      |  1 +
> >   3 files changed, 114 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..5b84a7de443c
> > --- /dev/null
> > +++ b/Documentation/ai-policy.rst
> > @@ -0,0 +1,89 @@
> > +.. 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.
> > +
> > +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").
> > +
> > +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.
> > +
> > +* 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.
> > +
> > +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 allow the use of generative AI for contributions.
> > +
> > +In particular, libcamera does not permit
> > +
> > +* 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.
> 
> As a non english native speaker, I think LLMs or specialized AI can be 
> good at writing a reviewing and rewriting a commit message or a 
> documentation.
> 
> My 2 cents :-).

It's actually something I considered and then forgot about. Machine
translation of commit messages can assist developers whose English
knowledge would otherwise be insufficient to contribute at all. I don't
want to disallow that.

You are far from being in that category though :-) I'll take your
imperfect English over LLM-generated e-mails any day (and reply with my
own imperfect English), because it creates a connection. I've seen
multiple people I interact embracing LLMs to write e-mails. Their very
imperfect English made them feel like a person to me, know I feel I'm
dealing with soulless machines. Not only does it sadden me, I think that
in the long run it will negatively affect trust and my desire to
interact with them (and this is disregarding any ethical concern about
LLM usage).

I think allowing usage of machine translation for text would be fine,
when the machine use is limited to translation. (Re)writing text
(whether it's commit messages, documentation, bug reports or e-mails) is
a different matter.

> > +
> > +* 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.
> > +
> > +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.
> > +
> > +.. 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.
> > diff --git a/Documentation/contributing.rst b/Documentation/contributing.rst
> > index 20682d56c75d..9d7ed95761e6 100644
> > --- a/Documentation/contributing.rst
> > +++ b/Documentation/contributing.rst
> > @@ -12,6 +12,29 @@ 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 allow the use of generative AI to contribute to the project.
> > +In particular, the project does not permit
> > +
> > +* 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, ...)
> > +
> > +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>`.
> > +
> >   Mailing List
> >   ------------
> >   
> > @@ -164,4 +187,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',
> > 
> > base-commit: df8e348d64b4932a0676256ed24f0da3ee9438bc
Laurent Pinchart Nov. 13, 2026, 2 a.m. UTC | #12
Hello Nicolas,

Adding back the context in order to reply to all your comments in one
go.

On Thu, Nov 12, 2026 at 05:36:38PM -0500, Nicolas Dufresne wrote:
> On Thu, Nov 12, 2026 at 09:59:58AM +0100, Jacopo Mondi wrote:
> > On Wed, Nov 11, 2026 at 05:38:39PM -0500, Nicolas Dufresne wrote:
> > > Hey,
> > >
> > > this won't come as a surprise.
> > >
> > > Le mardi 03 novembre 2026 à 13:14 +0200, Laurent Pinchart a écrit :
> > > > +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 allow the use of generative AI to contribute to the project.
> > > > +In particular, the project does not permit
> > > > +
> > > > +* 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, ...)
> > > > +
> > > > +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>`.
> > >
> > > This is by far the most extremist AI policy I've read so far.

You're flattering me, I know I'm not skilled enough to achieve that :-)

On a more serious note, I've read many AI policies over the last few
months, and there's a very wide range of positions, opinions and
rationales. While this policy is more towards one end of the spectrum,
there are more extreme and/or aggressively worded policies.

> > > Its built from
> > > denial of any brighter future around AI technologies, its an hopeless
> > > reflection, its an apocalyptic representation of AI and it is asking people to
> > > simply give up on it, wiping the idea that we can possibly re-acquire this
> >
> > This is not what I read, and I would be glad if you explain me how
> > this is more apocalyptic and hopeless than:
> >
> > https://wiki.gentoo.org/wiki/Project:Council/AI_policy
> > https://docs.nura.eco/policies-and-processes/development/ai-policy.html

https://asahilinux.org/llm-policy/ is also an interesting one.

> > > mostly proprietary technology in an OSS manner, with respect to people privacy,
> > > data, energy and resources.

I'm less hopeful than you are, but I'd be happy to be proven wrong. We
will certainly update the policy once solutions to the issues you have
mentioned here (and the issues listed in the rationale) will be
available.

> > Your code, your intellectual work, your ideas have been exploited
> > (abusing -everyone's- infrastructure in the process) to train
> > proprietary machines that (can) produce proprietary code and will lead to
> > the creation of silos. We're back to the 90s and your manager has
> > found an even cheaper country to outsource your work to. Somehow
> > people seems to be ok with that.
> >
> > I understand the original abuse is not a reason to pretend nothing is
> > happening and engage in performative luddism, but let's not use the
> > argument that it's fine if things sucks now because the future will be
> > bright. Until someone actually sends me my Great Universal Income
> > check this narrative is only useful at sustaining the speculative
> > bubble that has made all of this possible.
> >
> > I don't want to derail the discussion, but since the argument of a
> > brighter future awaiting is often put forward when the current model
> > is criticized, I took the liberty of digressing a bit. You're free to
> > ignore this paragraph as I understand it's not strictly about the
> > policy.
> >
> > > Extremism will also come with bad enforcement, the entire policy embrasses
> > > judgment, shaming, finger pointer. Its just a matter of time before a verbose
> > > person get confused with an AI. You might write this down in good will, with a
> > 
> > We certainly have hallucinating humans, some people is great at
> > faking competence through plausible-looking word salads but so far it
> > has been quite visible whenever the human was just proxying messages
> > between the list and an LLM.
> 
> The policy could stop on specific request like the above, which are also
> behaviour I'm no happy of (a bit of a self inflicted insult to their own
> humanity). These are users miss-behavior. In GStreamer our policy is more or
> less:
> 
> - No automated posting including LLM, but not only, we hate when people creates
> test bot without asking.
> 
> - No AI written commit, MR description, issues.

I've seen a similar policy in the Mesa project.

> - Code contributors must demonstrate their understanding, which also apply if
> you just accidentally found a fix, we don't want that patch, but it can server
> in a human written issue.

This is a tricky one. We have limited data (it's hard to study the long
term impacts of a technology that's still new), but multiple studies and
authors point towards an erosion of understanding over time. There are
multiple factors, one being the "reverse centaur" effect detailed by
Cory Doctorow. In a world where corporate pressure is high, asking
developers to review and understand LLM-generated code is bound to fail.
With ever increasing cadences, there will be a drift (fast or slow)
towards approving LLM output with decreasing oversight. This is true
even when developers have good intentions, and I wouldn't blame anyone
for it: if there's a button one can press to lower the stress and pain
inflicted by their employer, it's only human to be tempted to press it.

> We turned this into an AGENT file, as we are very aware that there is no turning
> back in forcing people to never look at LLM tools again, and we just rarely face
> these issue with non LLM users.
> 
> > And in case it happens: talk to us, we're not hard to find.
> > 
> > > personal view, but this can only be applied badly and create toxicity in the
> > > project.

The policy states

  Maintainers and reviewers shall presume good intent, and treat
  contributors politely.

That's in a note section at the end though, it would benefit from being
more prominent. I'll try to address that.

> > > I will respect your preferences, but I think this is not a policy, since a
> > > policy should be made of items and words that are enforceable without porting
> > > judgment, without possibly harming contributors in good faith.
> > 
> > For my education: where do you see "finger pointing" and "shaming" in the text ?
> 
> None, I'm worried of the humans behind the policy here. Its like laws, if they
> are too broad, a human somewhere will abuse them, even the best intended humans
> might drift. I expect this to be taken personal, but its not, it about trust in
> rules in general.

I'll try to take this concern into account to reword the good intent
paragraph. I will mention the code of conduct there, which contains more
detailed expectations regarding toxicity.

> Nicolas
> 
> p.s. I personally conceptually like the idea of training computers at
> programming. Having my contribution serve that idea, I'm totally fine with it,
> and I'm not aware of anything in the license that protects my copyright that
> would effectively prevent someone to do so.

There are still quite a few grey areas, but I tend to side with the
argument that such training *mostly* ([1]) does not constitute copyright
(and therefore license) infringement ([2], [3]) given the *current*
copyright laws ([4]).

Being legal doesn't make it moral. Using free software as training data
decides to ignore the reasons why people contribute to free software
projects in the first place. Developers didn't foresee this usage of
their contributions, and many oppose it. It may not be stealing from a
legal point of view, but it completely disregards consent.

[1] The fact that LLMs can regurgitate large verbatim copies of training
material is a possible copyright issue though.

[2] The rationale here is that training an LLM can be compared to
computing statistical information on a data set. Copyright doesn't
protect against the statistical analysis, nor does it protect against
publication or usage of the statistics. Of course neural network
training is more complex than that, so it's not entirely clear if the
analogy holds.

[3] A separate issue is how the training material is acquired. For
instance, going around paywalls is most likely illegal, but training
from a legally obtained (which may include paying for it) copy of a
document is probably not a direct copyright infringement.

[4] I'm not a lawyer, and while I've read multiple sources on this
topic, I'm also sure I've missed some interesting arguments that would
contradict the above.

> I condemn any practices that put
> pressure on our infrastructure or that make use of data for which the license
> does not consent (book content, music content, etc.). Its actual humans that
> made (and still makes) bad decisions.
> 
> > The same ethos around "not harming contributors in good faith" should
> > be placed on not harming the project (the codebase, the people that
> > maintains it, the community that has been built around it), but this seems
> > less relevant.
Laurent Pinchart Nov. 13, 2026, 2:21 a.m. UTC | #13
On Thu, Nov 12, 2026 at 10:29:27AM +0100, Jacopo Mondi wrote:
> Hi Jayden,
>    thanks for your input
> 
> On Wed, Nov 11, 2026 at 04:41:48PM -0700, Jayden Milne wrote:
> > Figured I'd chime in as someone who has recently tried to be responsible
> > with drive-by LLM bug fixes. If you update KWin you'll be getting at
> > least one from me.
> >
> > I wholeheartedly agree that LLM output does not belong in mailing lists
> > or commit messages. I also agree that it is a bad idea to have an
> > uninformed LLM attempt to write whole new features whole cloth without
> > expert supervision.
> >
> > On 11/3/26 4:14 AM, Laurent Pinchart wrote:
> > > +In particular, libcamera does not permit
> > > +
> > > +* 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.
> >
> > I am more sympathetic to things like bug reports or very minor tweaks
> > (where something is better than nothing). Usually behind them there is a
> > real user who had a problem and tried to fix it - and what better bug
> > report is there than a brief patch?

This probably calls for some improvement in the rationale.

There are two main aspects that I believe matter for free software
projects: care, and expertise.

Care is two-fold. Projects need contributors who care about the
software, and I believe in communities of contributors who also care
about each other. There is a wide range of levels of care: drive-by
contributors have always existed, and the selfish motivation of fixing
one's problem is absolutely fine. The social contract is however that
maintainers will support those contributors in exchange for a hope that
some of them will stay. This brings us to the second aspect.

Users who stay and become regular contributors need to develop expertise
for a project to scale. A large number of contributors with very few who
develop expertise result in maintainer burnout. Coding agents tip this
balance negatively in two ways: first, they increase the number of
newcomers, and second, they hinder the learning process that leads to
developing expertise.

This also applies in my opinion to using agents to submit bug reports.
Not only does it increase the number of reports significantly and
suddenly, it also hinders the learning process. Analysing an issue,
debugging a problem, and writing a bug report, is useful as a learning
experience. Furthermore, by removing the personal connection between the
user on one side and projects and communities on the other side, I
believe agents hinder the development of care as well.

> I would argue it depends on the patch :)
> 
> For small bugfixes, it might not make a big difference, but the
> tendency we see are over-extended patches. What surprises me is that
> instead of keeping a change self-contained and small, LLMs have the
> tendency of going for bigger, more verbose solutions. I don't want to
> speculate on a token consumption scheme, and I'm sure if driven
> correctly agents can produce great code, but in problem here is
> exactly the time it takes for a reviewer/maintainer to distill the
> good from the bad.
> 
> If it used to be that it took you 4 hours to produce code and 1 hour
> for me to review it, now the factors have swapped.
> 
> > To step back a bit, a silver lining to all this is that open source
> > seems uniquely positioned to be able to Fix All The Bugs vs non-free
> > software because of many LLMs eyes making all bugs shallow.
> >
> > I worry the future of open source is a million private forks that have
> > real bug fixes languishing on a branch. That seems to be where things
> > could be going, and it is distressing to me. Frankly, it seems to be a
> > loss to the open source movement as a whole. If the bugs are real, who
> > cares who found them?
> 
> Given the above inbalance between submitter time and reviewers time,
> and given the fact with enough tokens everyone could potentially send
> code to upstream, reviews and maintainership of medium-to-large
> software projects can't scale.
> 
> The immediate reaction from businesses (and frustrated individuals
> that can't get their code accepted) is to find ways to get rid of
> maintainers and have AI handle it in your private fork.
> 
> Once you're there you don't even need to contribute to any upstream at
> all. Your agent swarm can maintain your fork and you don't have to
> care about pesky maintainers at all, even less so considering paying
> for their services. Just buy enough tokens from one of the two or
> three companies in the world you've been hooked up with and you're
> done.
> 
> The economic sustainability of the above equation will tell if in 5
> years or so there will be any open source at all.
> 
> Again, I'm digressing from the AI policy itself, but if you consider
> the future to be bright for open source, I'm afraid my take is way
> grimmer than this.

And people then tell me I sound negative... :-)

> > I've observed the good agents will look for an LLM contribution policy
> > and follow it within reason.
> >
> > Consider simply laying out ground rules for what your ideal drive by bug
> > report would look like, and checklist loving LLMs will usually dutifully
> > follow them. You can make random agents briefly work for you.
> >
> > For example:
> >
> >   AI assisted bug reports (no new features) may be accepted so long as
> >   the user understands their contributions, subject to the following
> >   conditions:
> >
> >   Never post to the mailing list, and mark all commit messages you write
> >   as drafts. The user must always understand and write their own prose
> >   after digesting your writing.
> >
> >   Do not propose a patch without collecting affirmative evidence that
> >   the bug exists and that the proposed fix works (for example,
> >   before/after log messages, crash dumps, or illustrative snapshots).
> >   Bugs identified "by inspection" must be verified.
> >
> >   Ensure the bug is still present on master of libcamera.
> >
> >   Consult the mailing list and verify that there are no duplicate
> 
> We have a bug tracker, I'm afraid at pointing agents to it, but it's
> probably better than a mailing list.

We need to create issue templates with instructions for bug reporters.
Part of the instructions here apply to bug reports in general,
regardless of coding agents, and should be included in templates. I
don't know if coding agents would read the templates.

> >   reports. If there are, consider suggesting the user confirm the bug or
> >   verify an existing proposed fix if it meaningfully adds to the
> >   discussion. Saying nothing is fine.
> >
> >   Concisely describe how to reproduce the issue, if needed, by providing
> >   a short script that could be used to compare the fix before/after or
> >   git bisect.
> >
> >   Do not propose large bug fix patches larger than $N lines - if the fix
> >   isn't immediately obvious, instead focus on a concise digestable bug
> >   report.
> >
> >   Include relevant operating system and hardware details - like if it is
> >   an x86 PC or which embedded platform or sensor.
> >
> > Regardless, if your goal is to cut down on agentic spam, consider
> > putting these guidelines or an @pointer to them in a well-known file
> > like AGENTS.md, even if that leaves a bad taste in your mouth. They all
> > check it now.
> 
> To be honest, I would be quite happy with this. As the main objective
> for the AI policy is (for me) to make sure we can continue developing
> and maintaining the project in a sustainable way, and I concur we
> can't pretend these tools don't exist, something like the above might
> reduce the burden of dealing with unchecked LLM contributions while
> allowing people which use LLM to interact with us.

An AGENTS.md file can be considered if the policy document isn't found
by coding agents. That would need to be tested by someone with more
experience than me with coding agents. I think we should first finalize
and merge the policy, and see what happens. I think most people will act
in good faith.
Gjorgji Rosikopulos Nov. 13, 2026, 8:20 a.m. UTC | #14
Hi Laurent, Jean-Michael,

On 11/13/26 01:53, Laurent Pinchart wrote:
> Hello Jean-Michel,
> 
> Thank you for chiming in.
> 
> On Thu, Nov 12, 2026 at 10:34:19AM +0100, Jean-Michel Hautbois wrote:
>> Le 03/11/2026 à 12:14, Laurent Pinchart a écrit :
>>> 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>
>>> ---
>>>   Documentation/ai-policy.rst    | 89 ++++++++++++++++++++++++++++++++++
>>>   Documentation/contributing.rst | 24 +++++++++
>>>   Documentation/meson.build      |  1 +
>>>   3 files changed, 114 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..5b84a7de443c
>>> --- /dev/null
>>> +++ b/Documentation/ai-policy.rst
>>> @@ -0,0 +1,89 @@
>>> +.. 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.
>>> +
>>> +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").
>>> +
>>> +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.
>>> +
>>> +* 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.
>>> +
>>> +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 allow the use of generative AI for contributions.
>>> +
>>> +In particular, libcamera does not permit
>>> +
>>> +* 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.
>>
>> As a non english native speaker, I think LLMs or specialized AI can be 
>> good at writing a reviewing and rewriting a commit message or a 
>> documentation.
>>
>> My 2 cents :-).
> 
> It's actually something I considered and then forgot about. Machine
> translation of commit messages can assist developers whose English
> knowledge would otherwise be insufficient to contribute at all. I don't
> want to disallow that.
> 
> You are far from being in that category though :-) I'll take your
> imperfect English over LLM-generated e-mails any day (and reply with my
> own imperfect English), because it creates a connection. I've seen
> multiple people I interact embracing LLMs to write e-mails. Their very
> imperfect English made them feel like a person to me, know I feel I'm
> dealing with soulless machines. Not only does it sadden me, I think that
> in the long run it will negatively affect trust and my desire to
> interact with them (and this is disregarding any ethical concern about
> LLM usage).

I know i have never contributed to libcamera but i hope that will change in future.
Regarding the imperfect English i also agree and has been using the LLM's to correct
my English as well. But somehow you can tell by the writing the native language
of the people and it make some kind of interesting thing for all. 
For me it sounds like a music if you listen to imperfections for the
old Gramophone it is really nicier compared to modern digital records
(maybe for some ears only).

Regarding the Policy i agree, I think we can use LLM's to help understand Anlyze but the
content should be created by the author. 

~Gjorgji
Nicolas Dufresne Nov. 13, 2026, 2:41 p.m. UTC | #15
Hi,

Le vendredi 13 novembre 2026 à 04:00 +0200, Laurent Pinchart a écrit :
> [1] The fact that LLMs can regurgitate large verbatim copies of training
> material is a possible copyright issue though.

This in my opinion a bit of an outdated view. Even limited local LLM today
simply produce code that "statistically" make sense in the given context (does
not mean correct). The coding techniques the model are now trained to are
progressing and the simplicity of "large verbatim copies" which we use to call
copy-paste and is typical to new programmers too is going away. Why the code is
still so much alike other existing code is most likely due to us asking for very
strict coding style. We basically require in most of our project to remove any
personality to the code itself. We ask to stick to a style that only represent
the original author(s) preference. And maintainers do this in good faith,
reading code is a large part of our work, if the code follow a unified style and
structure, it become faster task for us.

While our influence isn't as direct as when we invest into someone to join
maintainership, its wrong to think we cannot influence LLM behaviour. Everything
we do here is to reach consensus, and this applies to both human and trained
LLM. 

Of course, unless we find a way to make automatic coding tools specially trained
toward one project, the results will always be a little off, just like drive-by
contributions (even though, some people just nail it). And of course, that the
same LLM used for coding also has some sort of a PHD in social science (not
true) and knows what best product that can clean a bathroom (ads placement) does
not always make it better, and it probably does not make it efficient.

That being said, if the policy can be trimmed to stop telling people what tool
they can and cannot use base on "principles", I think everyone will be happier.
And yes, I use neovim these days, would you force me into emacs or vscode
because they are way better in your opinion? (and they are probably better, who
knows, I never used them). Or force me back into vim or even vi for the purity
of the concept? (we can have a discussion on self inflicted suffering if you are
bored of AI :-D).

As an example, in GStreamer project we recently elected Dominique as part of the
maintainers and committers. Dominique is known for making extensive use of
coding agents for producing code. A year and a half from now, a lot of people
most likely have been skeptical. But when we sit face to face with Dominique
today and start having design discussions, we can immediately see that he knows
what he's talking about. He understand the concepts, he learned some of the
historical design decisions. And being a 15+ year contributor in that project, I
believe I'm relatively good judge on that. He did fast forward his learning over
a year and half by skipping the grepping, and reading of random part of the code
by machine generating summaries for himself instead of reading through hundreds
of thousands line of code (GStreamer has over 5 million lines of code). I don't
know for libcamera what the becoming a maintainer path is like, but in
GStreamer, its all about your ability to design for the posterity. Some of the
API design are still used by millions and were designed 25 years ago, and we
hope to keep designing with this type of lifespan. We can't just take the first
output of an LLM as the final design, just like we don't take the output of a
single person, unless its considered good by enough peers.

There is an entirely new generation of programmers coming that will have similar
skills as Dominique and can help in bridging the two worlds, the policy seems
blind to these, and in some ways, is a slight discrimination base on the tools
they have chosen, rather then the actual outcome. I'll looking forward you next
revision, as you already stated you will adopt some of the feeback.

cheers,
Nicolas

p.s. if you didn't read it all, its fine :-D I'm not an LLM, but I talk a lot,on
ML, chat and IN PERSON, you are warned!
Jacopo Mondi Nov. 13, 2026, 4:29 p.m. UTC | #16
Hi Nicolas

On Thu, Nov 12, 2026 at 05:36:38PM -0500, Nicolas Dufresne wrote:
> Hey,
>
> Le jeudi 12 novembre 2026 à 09:59 +0100, Jacopo Mondi a écrit :
> > We certainly have hallucinating humans, some people is great at
> > faking competence through plausible-looking word salads but so far it
> > has been quite visible whenever the human was just proxying messages
> > between the list and an LLM.
>
> The policy could stop on specific request like the above, which are also
> behaviour I'm no happy of (a bit of a self inflicted insult to their own
> humanity). These are users miss-behavior. In GStreamer our policy is more or
> less:
>
> - No automated posting including LLM, but not only, we hate when people creates
> test bot without asking.
>
> - No AI written commit, MR description, issues.
>
> - Code contributors must demonstrate their understanding, which also apply if
> you just accidentally found a fix, we don't want that patch, but it can server
> in a human written issue.
>
> We turned this into an AGENT file, as we are very aware that there is no turning
> back in forcing people to never look at LLM tools again, and we just rarely face
> these issue with non LLM users.
>

Do you already have any datapoint (even empirical observation) on how
effective is an AGENT file ?

> >
> > And in case it happens: talk to us, we're not hard to find.
> >
> > > personal view, but this can only be applied badly and create toxicity in the
> > > project.
> > >
> > > I will respect your preferences, but I think this is not a policy, since a
> > > policy should be made of items and words that are enforceable without porting
> > > judgment, without possibly harming contributors in good faith.
> > >
> >
> > For my education: where do you see "finger pointing" and "shaming" in the text ?
>
> None, I'm worried of the humans behind the policy here. Its like laws, if they
> are too broad, a human somewhere will abuse them, even the best intended humans
> might drift. I expect this to be taken personal, but its not, it about trust in
> rules in general.

I think we also have to clarify one thing here: we can't expect 100%
honest disclosure from contributors using LLMs (and honestly, this is
fine, I don't want to look at everyone's monitor to see how they code and
which tools they use :)

Any AI policy is subject to the same original issue: it relies on the
contributor being open about AI usage. We can't prevent anyone from
using LLMs, and I agree there is possibly no turning back from this.

So any AI policy should read as: send us stuff that you as a human
would have produced, and that a human can review and understand
top-to-bottom without investing hours (for free, most of
the times). If you got a big issue to solve break it down in
digestable chunks, make a road-map for the changes to come, talk to
maintainers to agree on how to get where you want to go. To
summarize it: be part of a project and its community instead of just
proxying code between your IDE and the list.

Then you can have Claude, your little sister or your uncle writing the
code for you, I don't care (I actually do, but I can't force my policies
on people).

>
> Nicolas
>
>
> p.s. I personally conceptually like the idea of training computers at
> programming. Having my contribution serve that idea, I'm totally fine with it,

Not strictly on the policy, but I appreciate we're having a discussion
on how we all navigate through these certainly interesting times.

As someone said already, I don't have anything against statistical
inference, being against LLM is like being against linear algebra. I
might not be good at it, but I have nothing against it.

The development model behind this current generation of LLMs is broken
beyond repair, by design. That's what I've problems with :)

> and I'm not aware of anything in the license that protects my copyright that
> would effectively prevent someone to do so. I condemn any practices that put

As clarified in another part of the discussion, so far, there is
no evidence that training those models constitute an abuse of
copyright (unfortunately)

> pressure on our infrastructure or that make use of data for which the license
> does not consent (book content, music content, etc.). Its actual humans that

The problem from me is that you currently can't separate the two
aspects.

I'm not going to say that if you use (and financially support) those
technologies you're implicitly supporting these behaviour as I've no
moral authority to judge anyone, but we should at least refrain from
encouraging users and contributors from assuming LLMs are the only way
to develop software nowadays.

> made (and still makes) bad decisions.

Absolutely. And we should not support those humans, I agree :)
Laurent Pinchart Nov. 16, 2026, 1:25 a.m. UTC | #17
Hi Gjorgji,

On Fri, Nov 13, 2026 at 10:20:29AM +0200, Gjorgji Rosikopulos wrote:
> On 11/13/26 01:53, Laurent Pinchart wrote:
> > On Thu, Nov 12, 2026 at 10:34:19AM +0100, Jean-Michel Hautbois wrote:
> >> Le 03/11/2026 à 12:14, Laurent Pinchart a écrit :
> >>> 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>
> >>> ---
> >>>   Documentation/ai-policy.rst    | 89 ++++++++++++++++++++++++++++++++++
> >>>   Documentation/contributing.rst | 24 +++++++++
> >>>   Documentation/meson.build      |  1 +
> >>>   3 files changed, 114 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..5b84a7de443c
> >>> --- /dev/null
> >>> +++ b/Documentation/ai-policy.rst
> >>> @@ -0,0 +1,89 @@
> >>> +.. 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.
> >>> +
> >>> +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").
> >>> +
> >>> +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.
> >>> +
> >>> +* 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.
> >>> +
> >>> +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 allow the use of generative AI for contributions.
> >>> +
> >>> +In particular, libcamera does not permit
> >>> +
> >>> +* 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.
> >>
> >> As a non english native speaker, I think LLMs or specialized AI can be 
> >> good at writing a reviewing and rewriting a commit message or a 
> >> documentation.
> >>
> >> My 2 cents :-).
> > 
> > It's actually something I considered and then forgot about. Machine
> > translation of commit messages can assist developers whose English
> > knowledge would otherwise be insufficient to contribute at all. I don't
> > want to disallow that.
> > 
> > You are far from being in that category though :-) I'll take your
> > imperfect English over LLM-generated e-mails any day (and reply with my
> > own imperfect English), because it creates a connection. I've seen
> > multiple people I interact embracing LLMs to write e-mails. Their very
> > imperfect English made them feel like a person to me, know I feel I'm
> > dealing with soulless machines. Not only does it sadden me, I think that
> > in the long run it will negatively affect trust and my desire to
> > interact with them (and this is disregarding any ethical concern about
> > LLM usage).
> 
> I know i have never contributed to libcamera but i hope that will change in future.

I'm looking forward to that :-)

> Regarding the imperfect English i also agree and has been using the LLM's to correct
> my English as well. But somehow you can tell by the writing the native language
> of the people and it make some kind of interesting thing for all. 
> For me it sounds like a music if you listen to imperfections for the
> old Gramophone it is really nicier compared to modern digital records
> (maybe for some ears only).
> 
> Regarding the Policy i agree, I think we can use LLM's to help understand Anlyze but the
> content should be created by the author.
Laurent Pinchart Nov. 16, 2026, 1:30 a.m. UTC | #18
On Fri, Nov 13, 2026 at 05:29:18PM +0100, Jacopo Mondi wrote:
> On Thu, Nov 12, 2026 at 05:36:38PM -0500, Nicolas Dufresne wrote:
> > Le jeudi 12 novembre 2026 à 09:59 +0100, Jacopo Mondi a écrit :
> > > We certainly have hallucinating humans, some people is great at
> > > faking competence through plausible-looking word salads but so far it
> > > has been quite visible whenever the human was just proxying messages
> > > between the list and an LLM.
> >
> > The policy could stop on specific request like the above, which are also
> > behaviour I'm no happy of (a bit of a self inflicted insult to their own
> > humanity). These are users miss-behavior. In GStreamer our policy is more or
> > less:
> >
> > - No automated posting including LLM, but not only, we hate when people creates
> > test bot without asking.
> >
> > - No AI written commit, MR description, issues.
> >
> > - Code contributors must demonstrate their understanding, which also apply if
> > you just accidentally found a fix, we don't want that patch, but it can server
> > in a human written issue.
> >
> > We turned this into an AGENT file, as we are very aware that there is no turning
> > back in forcing people to never look at LLM tools again, and we just rarely face
> > these issue with non LLM users.
> >
> 
> Do you already have any datapoint (even empirical observation) on how
> effective is an AGENT file ?
> 
> > > And in case it happens: talk to us, we're not hard to find.
> > >
> > > > personal view, but this can only be applied badly and create toxicity in the
> > > > project.
> > > >
> > > > I will respect your preferences, but I think this is not a policy, since a
> > > > policy should be made of items and words that are enforceable without porting
> > > > judgment, without possibly harming contributors in good faith.
> > > >
> > >
> > > For my education: where do you see "finger pointing" and "shaming" in the text ?
> >
> > None, I'm worried of the humans behind the policy here. Its like laws, if they
> > are too broad, a human somewhere will abuse them, even the best intended humans
> > might drift. I expect this to be taken personal, but its not, it about trust in
> > rules in general.
> 
> I think we also have to clarify one thing here: we can't expect 100%
> honest disclosure from contributors using LLMs (and honestly, this is
> fine, I don't want to look at everyone's monitor to see how they code and
> which tools they use :)

I expect close to 100% honesty. I however don't expect everybody to be
aware of the policy, at least in the beginning.

> Any AI policy is subject to the same original issue: it relies on the
> contributor being open about AI usage. We can't prevent anyone from
> using LLMs, and I agree there is possibly no turning back from this.
> 
> So any AI policy should read as: send us stuff that you as a human
> would have produced, and that a human can review and understand
> top-to-bottom without investing hours (for free, most of
> the times). If you got a big issue to solve break it down in
> digestable chunks, make a road-map for the changes to come, talk to
> maintainers to agree on how to get where you want to go. To
> summarize it: be part of a project and its community instead of just
> proxying code between your IDE and the list.
> 
> Then you can have Claude, your little sister or your uncle writing the
> code for you, I don't care (I actually do, but I can't force my policies
> on people).

I'd like to clarify that this is *not* the policy being proposed here.

> > Nicolas
> >
> >
> > p.s. I personally conceptually like the idea of training computers at
> > programming. Having my contribution serve that idea, I'm totally fine with it,
> 
> Not strictly on the policy, but I appreciate we're having a discussion
> on how we all navigate through these certainly interesting times.
> 
> As someone said already, I don't have anything against statistical
> inference, being against LLM is like being against linear algebra. I
> might not be good at it, but I have nothing against it.
> 
> The development model behind this current generation of LLMs is broken
> beyond repair, by design. That's what I've problems with :)
> 
> > and I'm not aware of anything in the license that protects my copyright that
> > would effectively prevent someone to do so. I condemn any practices that put
> 
> As clarified in another part of the discussion, so far, there is
> no evidence that training those models constitute an abuse of
> copyright (unfortunately)

As I'm the one who mentioned that, I want to emphasize that it's still a
grey area. I believe it is likely that most courts would rule that
training (*excluding* acquiring the training data) does not constitute
copyright infringement, but I'll stop short of claiming there's no
evidence.

> > pressure on our infrastructure or that make use of data for which the license
> > does not consent (book content, music content, etc.). Its actual humans that
> 
> The problem from me is that you currently can't separate the two
> aspects.
> 
> I'm not going to say that if you use (and financially support) those
> technologies you're implicitly supporting these behaviour as I've no
> moral authority to judge anyone, but we should at least refrain from
> encouraging users and contributors from assuming LLMs are the only way
> to develop software nowadays.
> 
> > made (and still makes) bad decisions.
> 
> Absolutely. And we should not support those humans, I agree :)
Laurent Pinchart Nov. 16, 2026, 1:50 a.m. UTC | #19
On Fri, Nov 13, 2026 at 09:41:06AM -0500, Nicolas Dufresne wrote:
> Le vendredi 13 novembre 2026 à 04:00 +0200, Laurent Pinchart a écrit :
> > [1] The fact that LLMs can regurgitate large verbatim copies of training
> > material is a possible copyright issue though.
> 
> This in my opinion a bit of an outdated view. Even limited local LLM today
> simply produce code that "statistically" make sense in the given context (does
> not mean correct).

No disagreement there, but that doesn't prevent large verbatim copies.
The issue has been more widely discussed for literature than code, and I
wouldn't try to quantify how it would affect each type of material. The
point was that the documented ability of regurgitating large verbatim
copies makes the copyright grey area even more grey.

Anyway, that's not very relevant for the libcamera AI policy.

> The coding techniques the model are now trained to are
> progressing and the simplicity of "large verbatim copies" which we use to call
> copy-paste and is typical to new programmers too is going away. Why the code is
> still so much alike other existing code is most likely due to us asking for very
> strict coding style. We basically require in most of our project to remove any
> personality to the code itself. We ask to stick to a style that only represent
> the original author(s) preference. And maintainers do this in good faith,
> reading code is a large part of our work, if the code follow a unified style and
> structure, it become faster task for us.
> 
> While our influence isn't as direct as when we invest into someone to join
> maintainership, its wrong to think we cannot influence LLM behaviour. Everything
> we do here is to reach consensus, and this applies to both human and trained
> LLM. 
> 
> Of course, unless we find a way to make automatic coding tools specially trained
> toward one project, the results will always be a little off, just like drive-by
> contributions (even though, some people just nail it). And of course, that the
> same LLM used for coding also has some sort of a PHD in social science (not
> true) and knows what best product that can clean a bathroom (ads placement) does
> not always make it better, and it probably does not make it efficient.
> 
> That being said, if the policy can be trimmed to stop telling people what tool
> they can and cannot use base on "principles", I think everyone will be happier.
> And yes, I use neovim these days, would you force me into emacs or vscode
> because they are way better in your opinion? (and they are probably better, who
> knows, I never used them). Or force me back into vim or even vi for the purity
> of the concept?

I don't think this is a real question, so I won't answer.

> (we can have a discussion on self inflicted suffering if you are
> bored of AI :-D).
> 
> As an example, in GStreamer project we recently elected Dominique as part of the
> maintainers and committers. Dominique is known for making extensive use of
> coding agents for producing code. A year and a half from now, a lot of people
> most likely have been skeptical. But when we sit face to face with Dominique
> today and start having design discussions, we can immediately see that he knows
> what he's talking about. He understand the concepts, he learned some of the
> historical design decisions. And being a 15+ year contributor in that project, I
> believe I'm relatively good judge on that. He did fast forward his learning over
> a year and half by skipping the grepping, and reading of random part of the code
> by machine generating summaries for himself instead of reading through hundreds
> of thousands line of code (GStreamer has over 5 million lines of code).

I don't have enough information to meaningfully reply to this.

> I don't
> know for libcamera what the becoming a maintainer path is like, but in
> GStreamer, its all about your ability to design for the posterity. Some of the
> API design are still used by millions and were designed 25 years ago, and we
> hope to keep designing with this type of lifespan. We can't just take the first
> output of an LLM as the final design, just like we don't take the output of a
> single person, unless its considered good by enough peers.
> 
> There is an entirely new generation of programmers coming that will have similar
> skills as Dominique and can help in bridging the two worlds, the policy seems
> blind to these, and in some ways, is a slight discrimination base on the tools
> they have chosen, rather then the actual outcome. I'll looking forward you next
> revision, as you already stated you will adopt some of the feeback.

I'm working on it. Changes will be minor though.

> cheers,
> Nicolas
> 
> p.s. if you didn't read it all, its fine :-D I'm not an LLM, but I talk a lot,on
> ML, chat and IN PERSON, you are warned!
Dan Scally Nov. 16, 2026, 4:42 p.m. UTC | #20
Hi Nicolas

On 12/11/2026 22:36, Nicolas Dufresne wrote:
> Hey,
> 
> Le jeudi 12 novembre 2026 à 09:59 +0100, Jacopo Mondi a écrit :
>> We certainly have hallucinating humans, some people is great at
>> faking competence through plausible-looking word salads but so far it
>> has been quite visible whenever the human was just proxying messages
>> between the list and an LLM.
> 
> The policy could stop on specific request like the above, which are also
> behaviour I'm no happy of (a bit of a self inflicted insult to their own
> humanity).

Totally agree; the whole human-proxy-for-an-LLM thing is the worst aspect of LLM submissions imo.

> These are users miss-behavior. In GStreamer our policy is more or
> less:
> 
> - No automated posting including LLM, but not only, we hate when people creates
> test bot without asking.
> 
> - No AI written commit, MR description, issues.
> 
> - Code contributors must demonstrate their understanding, which also apply if
> you just accidentally found a fix, we don't want that patch, but it can server
> in a human written issue.
> 
> We turned this into an AGENT file, as we are very aware that there is no turning
> back in forcing people to never look at LLM tools again, and we just rarely face
> these issue with non LLM users.

Is this really so very different? I think that the effect of the differences between that policy and 
this proposed one would just boil down to an experienced developer who understood the code they were 
submitting being allowed to use an LLM to write that code as long as they wrote the commit message 
themselves...but if I'm right in reading from the gstreamer AGENTS.md that the rationale for banning 
LLM-generated commit messages etc is that they're too verbose and not concise and that those aspects 
waste reviewer's time, I don't think that it's a particularly long stretch to apply the same 
principle to the code itself, which in my experience exhibits the same problems.

I'm curious what you think the practical impact of the differences between the two approaches would be?

Also; I feel that I should say thanks to you for bringing a different point of view to the 
conversation; I'm sure you knew before you posted that you would be going against the grain and 
whilst I don't particularly agree, I think that that makes it all the more important to hear what 
you're saying, so thanks for that.

Dan

> 
>>
>> And in case it happens: talk to us, we're not hard to find.
>>
>>> personal view, but this can only be applied badly and create toxicity in the
>>> project.
>>>
>>> I will respect your preferences, but I think this is not a policy, since a
>>> policy should be made of items and words that are enforceable without porting
>>> judgment, without possibly harming contributors in good faith.
>>>
>>
>> For my education: where do you see "finger pointing" and "shaming" in the text ?
> 
> None, I'm worried of the humans behind the policy here. Its like laws, if they
> are too broad, a human somewhere will abuse them, even the best intended humans
> might drift. I expect this to be taken personal, but its not, it about trust in
> rules in general.
> 
> Nicolas
> 
> 
> p.s. I personally conceptually like the idea of training computers at
> programming. Having my contribution serve that idea, I'm totally fine with it,
> and I'm not aware of anything in the license that protects my copyright that
> would effectively prevent someone to do so. I condemn any practices that put
> pressure on our infrastructure or that make use of data for which the license
> does not consent (book content, music content, etc.). Its actual humans that
> made (and still makes) bad decisions.

Patch
diff mbox series

diff --git a/Documentation/ai-policy.rst b/Documentation/ai-policy.rst
new file mode 100644
index 000000000000..5b84a7de443c
--- /dev/null
+++ b/Documentation/ai-policy.rst
@@ -0,0 +1,89 @@ 
+.. 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.
+
+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").
+
+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.
+
+* 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.
+
+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 allow the use of generative AI for contributions.
+
+In particular, libcamera does not permit
+
+* 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.
+
+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.
+
+.. 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.
diff --git a/Documentation/contributing.rst b/Documentation/contributing.rst
index 20682d56c75d..9d7ed95761e6 100644
--- a/Documentation/contributing.rst
+++ b/Documentation/contributing.rst
@@ -12,6 +12,29 @@  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 allow the use of generative AI to contribute to the project.
+In particular, the project does not permit
+
+* 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, ...)
+
+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>`.
+
 Mailing List
 ------------
 
@@ -164,4 +187,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',