docs/devel/code-provenance.rst | 123 ++++++++++++++++++++------------- 1 file changed, 75 insertions(+), 48 deletions(-)
Until now QEMU's code provenance policy declined any contribution
believed to include or derive from AI-generated content. A blanket ban
was easy to maintain while LLM output was rarely usable on its own, but
as the tools improved an absolute prohibition has become harder to
justify.
The concern that motivated the policy is unchanged, and it is worth
stating precisely: the DCO is about whether the submitter has the legal
right to contribute the code, not about "creative expression". The
copyright and license status of LLM output remains unsettled, so that
question is still open. What has shifted is the balance of risk:
- projects accepting AI-assisted content have not run into serious
legal trouble so far, which suggests the probability of the risk
materializing is not high;
- other organizations, such as Red Hat[1], have assessed the risk as
acceptable -- though a community of individual developers does not
have the legal backing of a company, and even an unfounded dispute
would be a long-lasting distraction from work on QEMU.
Revise the policy to permit AI assistance where the ramifications of
copyright violations are at least easy to revert and unlikely to spread:
tests, documentation, mechanical changes, and small bug fixes. Core code
that other things depend on, and that cannot simply be thrown away once
a problem is noticed long after the fact, stays off-limits without prior
agreement from a maintainer.
Related to this, and already visible in the incredible uptick in
security requirements, is the question of maintainer burnout and the
shift in effort from the author to the reviewer of the code. AI lowers
the cost of producing a patch but does nothing to lower the cost of
understanding and reviewing one; if anything it raises it, since a
reviewer can no longer assume that the submitter has reasoned through
every line. The limits above work just as much to keep the volume of
review work sustainable.
Furthermore, introduce "AI-used-for:" as a trailer to record where AI
was used, and include other suggestions that help reviewers judge
the result. The standard is slightly different from the more usual
"Assisted-by", which doubles as a check that the author has read the
policy.
In any case, use of AI does not relax any other contribution requirement:
authors still comply with the DCO and take responsibility for the whole
patch via Signed-off-by.
[Commit message largely based on
https://lore.kernel.org/qemu-devel/ahXbxzB4C_lr6b0N@redhat.com/, by
Kevin Wolf. - Paolo]
[1] https://www.redhat.com/en/blog/ai-assisted-development-and-open-source-navigating-legal-issues
Cc: Alex Bennée <alex.bennee@linaro.org>
Cc: Alistair Francis <alistair.francis@wdc.com>
Cc: Daniel P. Berrangé <berrange@redhat.com>
Cc: Kevin Wolf <kwolf@redhat.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Peter Maydell <peter.maydell@linaro.org>
Cc: Warner Losh <imp@bsdimp.com>
Link: https://lore.kernel.org/qemu-devel/20260524083329-mutt-send-email-mst@kernel.org/T/
Signed-off-by: Paolo Bonzini <bonzini@gnu.org>
---
docs/devel/code-provenance.rst | 123 ++++++++++++++++++++-------------
1 file changed, 75 insertions(+), 48 deletions(-)
diff --git a/docs/devel/code-provenance.rst b/docs/devel/code-provenance.rst
index 65b8f232a08..84f9f4a70fb 100644
--- a/docs/devel/code-provenance.rst
+++ b/docs/devel/code-provenance.rst
@@ -1,7 +1,7 @@
.. _code-provenance:
-Code provenance
-===============
+Code provenance and AI usage
+============================
Certifying patch submissions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -288,62 +288,89 @@ content generators below.
Use of AI-generated content
~~~~~~~~~~~~~~~~~~~~~~~~~~~
-TL;DR:
+**Please read the below policy before using AI to contribute code or
+documentation to QEMU. This applies to ChatGPT, Claude, Copilot,
+Llama, and similar tools.**
- **Current QEMU project policy is to DECLINE any contributions which are
- believed to include or derive from AI generated content. This includes
- ChatGPT, Claude, Copilot, Llama and similar tools.**
+The increasing prevalence of AI-assisted software development,
+and especially the use of content generated by `Large Language Models
+<https://en.wikipedia.org/wiki/Large_language_model>`__ (LLMs),
+poses a number of difficult questions.
- **This policy does not apply to other uses of AI, such as researching APIs
- or algorithms, static analysis, or debugging, provided their output is not
- included in contributions.**
+Risks to open source projects include maintainer burnout from an
+increased number of contributions, as well as the risk to the project
+from unintentional inclusion of copyrighted material in the LLM's output.
+In order to mitigate these risks, the QEMU project currently allows
+using AI/LLM tools to produce patches in a limited set of scenarios:
-The increasing prevalence of AI-assisted software development results in a
-number of difficult legal questions and risks for software projects, including
-QEMU. Of particular concern is content generated by `Large Language Models
-<https://en.wikipedia.org/wiki/Large_language_model>`__ (LLMs).
+**Mechanical changes**
+ If you can use a deterministic tool or a script, it is preferred
+ that you use it and not replace it with AI. If you don't know how
+ to do the change deterministically, you can ask the AI for help.
-The QEMU community requires that contributors certify their patch submissions
-are made in accordance with the rules of the `Developer's Certificate of
-Origin (DCO) <dco>`.
+**Small bug fixes**
+ These should be limited to 20 lines of code or less, not including
+ tests. You are still expected to understand and explain your changes
+ and the rationale behind them.
-To satisfy the DCO, the patch contributor has to fully understand the
-copyright and license status of content they are contributing to QEMU. With AI
-content generators, the copyright and license status of the output is
-ill-defined with no generally accepted, settled legal foundation.
+**Tests**
+ Note that you must still confirm that each test actually exercises
+ the intended behavior including, for regression tests, that it
+ fails without the code under test and passes for the right reason.
-Where the training material is known, it is common for it to include large
-volumes of material under restrictive licensing/copyright terms. Even where
-the training material is all known to be under open source licenses, it is
-likely to be under a variety of terms, not all of which will be compatible
-with QEMU's licensing requirements.
+These boundaries do not apply to other uses of AI, such as researching
+APIs or algorithms, static analysis, or debugging, provided the model's
+output is not included in contributions.
-How contributors could comply with DCO terms (b) or (c) for the output of AI
-content generators commonly available today is unclear. The QEMU project is
-not willing or able to accept the legal risks of non-compliance.
+If you wish to send large amounts of AI-generated changes, or any other
+contribution not in the above categories, please get in touch with the
+maintainer beforehand.
-The QEMU project thus requires that contributors refrain from using AI content
-generators on patches intended to be submitted to the project, and will
-decline any contribution if use of AI is either known or suspected.
+**Use of AI does not remove the need for authors to comply with all
+other requirements for contribution.** In particular, the
+``Signed-off-by`` label in a patch submission is a statement that
+the author takes responsibility for the entire contents of the patch,
+certifying that their patch submission is made in accordance with the
+rules of the `Developer's Certificate of Origin (DCO) <dco>`.
-Examples of tools impacted by this policy includes GitHub's CoPilot, OpenAI's
-ChatGPT, Anthropic's Claude, and Meta's Code Llama, and code/content
-generation agents which are built on top of such tools.
+Commit messages for AI-assisted changes
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-This policy may evolve as AI tools mature and the legal situation is
-clarified.
+When AI/LLM tools produce or substantively shape your patch, add an
+``AI-used-for:`` trailer. The text of the trailer could be one or more
+of ``code``, ``tests``, ``docs``, ``research``, possibly followed by an
+explanation in parentheses::
-Exceptions
-^^^^^^^^^^
+ AI-used-for: tests, docs
+ AI-used-for: code
+ AI-used-for: code (refactoring)
+ AI-used-for: code (prototype)
+ AI-used-for: research
-The QEMU project welcomes discussion on any exceptions to this policy,
-or more general revisions. This can be done by contacting the qemu-devel
-mailing list with details of a proposed tool, model, usage scenario, etc.
-that is beneficial to QEMU, while still mitigating issues around compliance
-with the DCO. After discussion, any exception will be listed below.
+The trailer is intended as a clarification of your DCO obligations as
+well as to guide reviewers. It is not intended for minimal presence
+such as autocomplete or asking for a pre-review of the patch, and it
+does not remove your responsibility to understand the changes that you
+are submitting.
-Exceptions do not remove the need for authors to comply with all other
-requirements for contribution. In particular, the "Signed-off-by"
-label in a patch submission is a statement that the author takes
-responsibility for the entire contents of the patch, including any parts
-that were generated or assisted by AI tools or other tools.
+There is no requirement to include your prompts or summarize the
+conversation in the commit message or cover letter, but you may do so
+if you think it helps a reviewer judge the result. For example:
+
+* yes: "move field ``foo`` from ``struct aa`` to ``struct bb``. If a
+ function already has a local variable or parameter of type ``struct
+ bb``, use it instead of accessing ``aa.bb``";
+
+* yes: "add an implementation of the trait for ``Mutex<T: MyTrait>``; for
+ the implementation, take the lock around the calls and forward to ``T``";
+
+* no: "write user-facing documentation for the new tool"
+
+* no: "write testcases for the new functions"
+
+QEMU does *not* use ``Assisted-by`` or ``Generated-by`` trailers. In
+particular, it is not necessary to specify the exact AI model or tool
+used to create the commit.
+
+Deterministic tooling (sed, coccinelle, formatters) is out of scope for
+the trailer, but should be mentioned in the commit message.
--
2.54.0
Paolo Bonzini <pbonzini@redhat.com> writes: > Until now QEMU's code provenance policy declined any contribution > believed to include or derive from AI-generated content. A blanket ban > was easy to maintain while LLM output was rarely usable on its own, but > as the tools improved an absolute prohibition has become harder to > justify. > > The concern that motivated the policy is unchanged, and it is worth > stating precisely: the DCO is about whether the submitter has the legal > right to contribute the code, not about "creative expression". The > copyright and license status of LLM output remains unsettled, so that > question is still open. What has shifted is the balance of risk: > > - projects accepting AI-assisted content have not run into serious > legal trouble so far, which suggests the probability of the risk > materializing is not high; > > - other organizations, such as Red Hat[1], have assessed the risk as > acceptable -- though a community of individual developers does not > have the legal backing of a company, and even an unfounded dispute > would be a long-lasting distraction from work on QEMU. > > Revise the policy to permit AI assistance where the ramifications of > copyright violations are at least easy to revert and unlikely to spread: > tests, documentation, mechanical changes, and small bug fixes. Core code > that other things depend on, and that cannot simply be thrown away once > a problem is noticed long after the fact, stays off-limits without prior > agreement from a maintainer. > > Related to this, and already visible in the incredible uptick in > security requirements, is the question of maintainer burnout and the > shift in effort from the author to the reviewer of the code. AI lowers > the cost of producing a patch but does nothing to lower the cost of > understanding and reviewing one; if anything it raises it, since a > reviewer can no longer assume that the submitter has reasoned through > every line. The limits above work just as much to keep the volume of > review work sustainable. > > Furthermore, introduce "AI-used-for:" as a trailer to record where AI > was used, and include other suggestions that help reviewers judge > the result. The standard is slightly different from the more usual > "Assisted-by", which doubles as a check that the author has read the > policy. > > In any case, use of AI does not relax any other contribution requirement: > authors still comply with the DCO and take responsibility for the whole > patch via Signed-off-by. > > [Commit message largely based on > https://lore.kernel.org/qemu-devel/ahXbxzB4C_lr6b0N@redhat.com/, by > Kevin Wolf. - Paolo] > > [1] https://www.redhat.com/en/blog/ai-assisted-development-and-open-source-navigating-legal-issues > Cc: Alex Bennée <alex.bennee@linaro.org> > Cc: Alistair Francis <alistair.francis@wdc.com> > Cc: Daniel P. Berrangé <berrange@redhat.com> > Cc: Kevin Wolf <kwolf@redhat.com> > Cc: Michael S. Tsirkin <mst@redhat.com> > Cc: Peter Maydell <peter.maydell@linaro.org> > Cc: Warner Losh <imp@bsdimp.com> > Link: https://lore.kernel.org/qemu-devel/20260524083329-mutt-send-email-mst@kernel.org/T/ > Signed-off-by: Paolo Bonzini <bonzini@gnu.org> > --- > docs/devel/code-provenance.rst | 123 ++++++++++++++++++++------------- > 1 file changed, 75 insertions(+), 48 deletions(-) > > diff --git a/docs/devel/code-provenance.rst b/docs/devel/code-provenance.rst > index 65b8f232a08..84f9f4a70fb 100644 > --- a/docs/devel/code-provenance.rst > +++ b/docs/devel/code-provenance.rst > @@ -1,7 +1,7 @@ > .. _code-provenance: > > -Code provenance > -=============== > +Code provenance and AI usage > +============================ > > Certifying patch submissions > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > @@ -288,62 +288,89 @@ content generators below. > Use of AI-generated content > ~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > -TL;DR: > +**Please read the below policy before using AI to contribute code or > +documentation to QEMU. This applies to ChatGPT, Claude, Copilot, > +Llama, and similar tools.** > > - **Current QEMU project policy is to DECLINE any contributions which are > - believed to include or derive from AI generated content. This includes > - ChatGPT, Claude, Copilot, Llama and similar tools.** > +The increasing prevalence of AI-assisted software development, > +and especially the use of content generated by `Large Language Models > +<https://en.wikipedia.org/wiki/Large_language_model>`__ (LLMs), > +poses a number of difficult questions. > > - **This policy does not apply to other uses of AI, such as researching APIs > - or algorithms, static analysis, or debugging, provided their output is not > - included in contributions.** > +Risks to open source projects include maintainer burnout from an > +increased number of contributions, as well as the risk to the project > +from unintentional inclusion of copyrighted material in the LLM's output. > +In order to mitigate these risks, the QEMU project currently allows > +using AI/LLM tools to produce patches in a limited set of scenarios: > > -The increasing prevalence of AI-assisted software development results in a > -number of difficult legal questions and risks for software projects, including > -QEMU. Of particular concern is content generated by `Large Language Models > -<https://en.wikipedia.org/wiki/Large_language_model>`__ (LLMs). > +**Mechanical changes** > + If you can use a deterministic tool or a script, it is preferred > + that you use it and not replace it with AI. If you don't know how > + to do the change deterministically, you can ask the AI for help. > > -The QEMU community requires that contributors certify their patch submissions > -are made in accordance with the rules of the `Developer's Certificate of > -Origin (DCO) <dco>`. > +**Small bug fixes** > + These should be limited to 20 lines of code or less, not including > + tests. You are still expected to understand and explain your changes > + and the rationale behind them. > > -To satisfy the DCO, the patch contributor has to fully understand the > -copyright and license status of content they are contributing to QEMU. With AI > -content generators, the copyright and license status of the output is > -ill-defined with no generally accepted, settled legal foundation. > +**Tests** > + Note that you must still confirm that each test actually exercises > + the intended behavior including, for regression tests, that it > + fails without the code under test and passes for the right reason. > > -Where the training material is known, it is common for it to include large > -volumes of material under restrictive licensing/copyright terms. Even where > -the training material is all known to be under open source licenses, it is > -likely to be under a variety of terms, not all of which will be compatible > -with QEMU's licensing requirements. > +These boundaries do not apply to other uses of AI, such as researching > +APIs or algorithms, static analysis, or debugging, provided the model's > +output is not included in contributions. > > -How contributors could comply with DCO terms (b) or (c) for the output of AI > -content generators commonly available today is unclear. The QEMU project is > -not willing or able to accept the legal risks of non-compliance. > +If you wish to send large amounts of AI-generated changes, or any other > +contribution not in the above categories, please get in touch with the > +maintainer beforehand. > > -The QEMU project thus requires that contributors refrain from using AI content > -generators on patches intended to be submitted to the project, and will > -decline any contribution if use of AI is either known or suspected. > +**Use of AI does not remove the need for authors to comply with all > +other requirements for contribution.** In particular, the > +``Signed-off-by`` label in a patch submission is a statement that > +the author takes responsibility for the entire contents of the patch, > +certifying that their patch submission is made in accordance with the > +rules of the `Developer's Certificate of Origin (DCO) <dco>`. > > -Examples of tools impacted by this policy includes GitHub's CoPilot, OpenAI's > -ChatGPT, Anthropic's Claude, and Meta's Code Llama, and code/content > -generation agents which are built on top of such tools. > +Commit messages for AI-assisted changes > +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > -This policy may evolve as AI tools mature and the legal situation is > -clarified. > +When AI/LLM tools produce or substantively shape your patch, add an > +``AI-used-for:`` trailer. The text of the trailer could be one or more > +of ``code``, ``tests``, ``docs``, ``research``, possibly followed by an > +explanation in parentheses:: > > -Exceptions > -^^^^^^^^^^ > + AI-used-for: tests, docs > + AI-used-for: code > + AI-used-for: code (refactoring) > + AI-used-for: code (prototype) > + AI-used-for: research > > -The QEMU project welcomes discussion on any exceptions to this policy, > -or more general revisions. This can be done by contacting the qemu-devel > -mailing list with details of a proposed tool, model, usage scenario, etc. > -that is beneficial to QEMU, while still mitigating issues around compliance > -with the DCO. After discussion, any exception will be listed below. > +The trailer is intended as a clarification of your DCO obligations as > +well as to guide reviewers. It is not intended for minimal presence > +such as autocomplete or asking for a pre-review of the patch, I'm not sure I understand this sentence. Maybe: "It is not intended to list minimal usage such as..." unless you mean something else. > and it > +does not remove your responsibility to understand the changes that you > +are submitting. > > -Exceptions do not remove the need for authors to comply with all other > -requirements for contribution. In particular, the "Signed-off-by" > -label in a patch submission is a statement that the author takes > -responsibility for the entire contents of the patch, including any parts > -that were generated or assisted by AI tools or other tools. > +There is no requirement to include your prompts or summarize the > +conversation in the commit message or cover letter, but you may do so > +if you think it helps a reviewer judge the result. For example: > + > +* yes: "move field ``foo`` from ``struct aa`` to ``struct bb``. If a > + function already has a local variable or parameter of type ``struct > + bb``, use it instead of accessing ``aa.bb``"; > + > +* yes: "add an implementation of the trait for ``Mutex<T: MyTrait>``; for > + the implementation, take the lock around the calls and forward to ``T``"; > + > +* no: "write user-facing documentation for the new tool" > + > +* no: "write testcases for the new functions" > + > +QEMU does *not* use ``Assisted-by`` or ``Generated-by`` trailers. In > +particular, it is not necessary to specify the exact AI model or tool > +used to create the commit. > + > +Deterministic tooling (sed, coccinelle, formatters) is out of scope for > +the trailer, but should be mentioned in the commit message.
On Thu, 28 May 2026, Paolo Bonzini wrote: > Until now QEMU's code provenance policy declined any contribution > believed to include or derive from AI-generated content. A blanket ban > was easy to maintain while LLM output was rarely usable on its own, but > as the tools improved an absolute prohibition has become harder to > justify. > > The concern that motivated the policy is unchanged, and it is worth > stating precisely: the DCO is about whether the submitter has the legal > right to contribute the code, not about "creative expression". The > copyright and license status of LLM output remains unsettled, so that > question is still open. What has shifted is the balance of risk: > > - projects accepting AI-assisted content have not run into serious > legal trouble so far, which suggests the probability of the risk > materializing is not high; > > - other organizations, such as Red Hat[1], have assessed the risk as > acceptable -- though a community of individual developers does not > have the legal backing of a company, and even an unfounded dispute > would be a long-lasting distraction from work on QEMU. > > Revise the policy to permit AI assistance where the ramifications of > copyright violations are at least easy to revert and unlikely to spread: > tests, documentation, mechanical changes, and small bug fixes. Core code > that other things depend on, and that cannot simply be thrown away once > a problem is noticed long after the fact, stays off-limits without prior > agreement from a maintainer. > > Related to this, and already visible in the incredible uptick in > security requirements, is the question of maintainer burnout and the > shift in effort from the author to the reviewer of the code. AI lowers > the cost of producing a patch but does nothing to lower the cost of > understanding and reviewing one; if anything it raises it, since a > reviewer can no longer assume that the submitter has reasoned through > every line. The limits above work just as much to keep the volume of > review work sustainable. > > Furthermore, introduce "AI-used-for:" as a trailer to record where AI > was used, and include other suggestions that help reviewers judge > the result. The standard is slightly different from the more usual > "Assisted-by", which doubles as a check that the author has read the > policy. > > In any case, use of AI does not relax any other contribution requirement: > authors still comply with the DCO and take responsibility for the whole > patch via Signed-off-by. > > [Commit message largely based on > https://lore.kernel.org/qemu-devel/ahXbxzB4C_lr6b0N@redhat.com/, by > Kevin Wolf. - Paolo] > > [1] https://www.redhat.com/en/blog/ai-assisted-development-and-open-source-navigating-legal-issues > Cc: Alex Bennée <alex.bennee@linaro.org> > Cc: Alistair Francis <alistair.francis@wdc.com> > Cc: Daniel P. Berrangé <berrange@redhat.com> > Cc: Kevin Wolf <kwolf@redhat.com> > Cc: Michael S. Tsirkin <mst@redhat.com> > Cc: Peter Maydell <peter.maydell@linaro.org> > Cc: Warner Losh <imp@bsdimp.com> > Link: https://lore.kernel.org/qemu-devel/20260524083329-mutt-send-email-mst@kernel.org/T/ > Signed-off-by: Paolo Bonzini <bonzini@gnu.org> > --- > docs/devel/code-provenance.rst | 123 ++++++++++++++++++++------------- > 1 file changed, 75 insertions(+), 48 deletions(-) > > diff --git a/docs/devel/code-provenance.rst b/docs/devel/code-provenance.rst > index 65b8f232a08..84f9f4a70fb 100644 > --- a/docs/devel/code-provenance.rst > +++ b/docs/devel/code-provenance.rst > @@ -1,7 +1,7 @@ > .. _code-provenance: > > -Code provenance > -=============== > +Code provenance and AI usage > +============================ > > Certifying patch submissions > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > @@ -288,62 +288,89 @@ content generators below. > Use of AI-generated content > ~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > -TL;DR: > +**Please read the below policy before using AI to contribute code or > +documentation to QEMU. This applies to ChatGPT, Claude, Copilot, > +Llama, and similar tools.** > > - **Current QEMU project policy is to DECLINE any contributions which are > - believed to include or derive from AI generated content. This includes > - ChatGPT, Claude, Copilot, Llama and similar tools.** > +The increasing prevalence of AI-assisted software development, > +and especially the use of content generated by `Large Language Models > +<https://en.wikipedia.org/wiki/Large_language_model>`__ (LLMs), > +poses a number of difficult questions. > > - **This policy does not apply to other uses of AI, such as researching APIs > - or algorithms, static analysis, or debugging, provided their output is not > - included in contributions.** > +Risks to open source projects include maintainer burnout from an > +increased number of contributions, as well as the risk to the project > +from unintentional inclusion of copyrighted material in the LLM's output. > +In order to mitigate these risks, the QEMU project currently allows > +using AI/LLM tools to produce patches in a limited set of scenarios: > > -The increasing prevalence of AI-assisted software development results in a > -number of difficult legal questions and risks for software projects, including > -QEMU. Of particular concern is content generated by `Large Language Models > -<https://en.wikipedia.org/wiki/Large_language_model>`__ (LLMs). > +**Mechanical changes** > + If you can use a deterministic tool or a script, it is preferred I think mentioning sed and coccinelle here would be a good idea assuming the contributor trying to use AI is not familiar with those so would not even know what to ask the AI to help with. > + that you use it and not replace it with AI. If you don't know how > + to do the change deterministically, you can ask the AI for help. > > -The QEMU community requires that contributors certify their patch submissions > -are made in accordance with the rules of the `Developer's Certificate of > -Origin (DCO) <dco>`. > +**Small bug fixes** > + These should be limited to 20 lines of code or less, not including > + tests. You are still expected to understand and explain your changes > + and the rationale behind them. add: in the commit message that should not be AI generated. Requiring to write the commit message without AI may force the contributor to read the patch. (Although they could ignore it and do it with AI anyways or just rephrase what the AI generated or just write the intention with an AI generated patch that does something else but this would still provide information for review. I'm not sure this helps or too restrictive so just a suggestion.) > -To satisfy the DCO, the patch contributor has to fully understand the > -copyright and license status of content they are contributing to QEMU. With AI > -content generators, the copyright and license status of the output is > -ill-defined with no generally accepted, settled legal foundation. > +**Tests** > + Note that you must still confirm that each test actually exercises > + the intended behavior including, for regression tests, that it > + fails without the code under test and passes for the right reason. > > -Where the training material is known, it is common for it to include large > -volumes of material under restrictive licensing/copyright terms. Even where > -the training material is all known to be under open source licenses, it is > -likely to be under a variety of terms, not all of which will be compatible > -with QEMU's licensing requirements. > +These boundaries do not apply to other uses of AI, such as researching > +APIs or algorithms, static analysis, or debugging, provided the model's > +output is not included in contributions. > > -How contributors could comply with DCO terms (b) or (c) for the output of AI > -content generators commonly available today is unclear. The QEMU project is > -not willing or able to accept the legal risks of non-compliance. > +If you wish to send large amounts of AI-generated changes, or any other > +contribution not in the above categories, please get in touch with the > +maintainer beforehand. > > -The QEMU project thus requires that contributors refrain from using AI content > -generators on patches intended to be submitted to the project, and will > -decline any contribution if use of AI is either known or suspected. > +**Use of AI does not remove the need for authors to comply with all > +other requirements for contribution.** In particular, the > +``Signed-off-by`` label in a patch submission is a statement that > +the author takes responsibility for the entire contents of the patch, > +certifying that their patch submission is made in accordance with the > +rules of the `Developer's Certificate of Origin (DCO) <dco>`. > > -Examples of tools impacted by this policy includes GitHub's CoPilot, OpenAI's > -ChatGPT, Anthropic's Claude, and Meta's Code Llama, and code/content > -generation agents which are built on top of such tools. > +Commit messages for AI-assisted changes > +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > -This policy may evolve as AI tools mature and the legal situation is > -clarified. > +When AI/LLM tools produce or substantively shape your patch, add an > +``AI-used-for:`` trailer. The text of the trailer could be one or more > +of ``code``, ``tests``, ``docs``, ``research``, possibly followed by an > +explanation in parentheses:: I'm not sure what a trailer is. Is it a tag like S-o-b or should come after the --- at the end? Maybe this needs some clarfication where to add this tag. > > -Exceptions > -^^^^^^^^^^ > + AI-used-for: tests, docs > + AI-used-for: code > + AI-used-for: code (refactoring) > + AI-used-for: code (prototype) > + AI-used-for: research > > -The QEMU project welcomes discussion on any exceptions to this policy, > -or more general revisions. This can be done by contacting the qemu-devel > -mailing list with details of a proposed tool, model, usage scenario, etc. > -that is beneficial to QEMU, while still mitigating issues around compliance > -with the DCO. After discussion, any exception will be listed below. > +The trailer is intended as a clarification of your DCO obligations as > +well as to guide reviewers. It is not intended for minimal presence > +such as autocomplete or asking for a pre-review of the patch, and it > +does not remove your responsibility to understand the changes that you > +are submitting. > > -Exceptions do not remove the need for authors to comply with all other > -requirements for contribution. In particular, the "Signed-off-by" > -label in a patch submission is a statement that the author takes > -responsibility for the entire contents of the patch, including any parts > -that were generated or assisted by AI tools or other tools. > +There is no requirement to include your prompts or summarize the > +conversation in the commit message or cover letter, but you may do so > +if you think it helps a reviewer judge the result. For example: > + > +* yes: "move field ``foo`` from ``struct aa`` to ``struct bb``. If a > + function already has a local variable or parameter of type ``struct > + bb``, use it instead of accessing ``aa.bb``"; > + > +* yes: "add an implementation of the trait for ``Mutex<T: MyTrait>``; for > + the implementation, take the lock around the calls and forward to ``T``"; > + > +* no: "write user-facing documentation for the new tool" > + > +* no: "write testcases for the new functions" What does yes/no means in the above? Not clear from the text. Regards, BALATON Zoltan > + > +QEMU does *not* use ``Assisted-by`` or ``Generated-by`` trailers. In > +particular, it is not necessary to specify the exact AI model or tool > +used to create the commit. > + > +Deterministic tooling (sed, coccinelle, formatters) is out of scope for > +the trailer, but should be mentioned in the commit message. >
On Thu, May 28, 2026 at 02:12:51PM +0200, BALATON Zoltan wrote:
> On Thu, 28 May 2026, Paolo Bonzini wrote:
> > Until now QEMU's code provenance policy declined any contribution
> > believed to include or derive from AI-generated content. A blanket ban
> > was easy to maintain while LLM output was rarely usable on its own, but
> > as the tools improved an absolute prohibition has become harder to
> > justify.
> >
> > The concern that motivated the policy is unchanged, and it is worth
> > stating precisely: the DCO is about whether the submitter has the legal
> > right to contribute the code, not about "creative expression". The
> > copyright and license status of LLM output remains unsettled, so that
> > question is still open. What has shifted is the balance of risk:
> >
> > - projects accepting AI-assisted content have not run into serious
> > legal trouble so far, which suggests the probability of the risk
> > materializing is not high;
> >
> > - other organizations, such as Red Hat[1], have assessed the risk as
> > acceptable -- though a community of individual developers does not
> > have the legal backing of a company, and even an unfounded dispute
> > would be a long-lasting distraction from work on QEMU.
> >
> > Revise the policy to permit AI assistance where the ramifications of
> > copyright violations are at least easy to revert and unlikely to spread:
> > tests, documentation, mechanical changes, and small bug fixes. Core code
> > that other things depend on, and that cannot simply be thrown away once
> > a problem is noticed long after the fact, stays off-limits without prior
> > agreement from a maintainer.
> >
> > Related to this, and already visible in the incredible uptick in
> > security requirements, is the question of maintainer burnout and the
> > shift in effort from the author to the reviewer of the code. AI lowers
> > the cost of producing a patch but does nothing to lower the cost of
> > understanding and reviewing one; if anything it raises it, since a
> > reviewer can no longer assume that the submitter has reasoned through
> > every line. The limits above work just as much to keep the volume of
> > review work sustainable.
> >
> > Furthermore, introduce "AI-used-for:" as a trailer to record where AI
> > was used, and include other suggestions that help reviewers judge
> > the result. The standard is slightly different from the more usual
> > "Assisted-by", which doubles as a check that the author has read the
> > policy.
> >
> > In any case, use of AI does not relax any other contribution requirement:
> > authors still comply with the DCO and take responsibility for the whole
> > patch via Signed-off-by.
> >
> > [Commit message largely based on
> > https://lore.kernel.org/qemu-devel/ahXbxzB4C_lr6b0N@redhat.com/, by
> > Kevin Wolf. - Paolo]
> >
> > [1] https://www.redhat.com/en/blog/ai-assisted-development-and-open-source-navigating-legal-issues
> > Cc: Alex Bennée <alex.bennee@linaro.org>
> > Cc: Alistair Francis <alistair.francis@wdc.com>
> > Cc: Daniel P. Berrangé <berrange@redhat.com>
> > Cc: Kevin Wolf <kwolf@redhat.com>
> > Cc: Michael S. Tsirkin <mst@redhat.com>
> > Cc: Peter Maydell <peter.maydell@linaro.org>
> > Cc: Warner Losh <imp@bsdimp.com>
> > Link: https://lore.kernel.org/qemu-devel/20260524083329-mutt-send-email-mst@kernel.org/T/
> > Signed-off-by: Paolo Bonzini <bonzini@gnu.org>
> > ---
> > docs/devel/code-provenance.rst | 123 ++++++++++++++++++++-------------
> > 1 file changed, 75 insertions(+), 48 deletions(-)
> >
> > diff --git a/docs/devel/code-provenance.rst b/docs/devel/code-provenance.rst
> > index 65b8f232a08..84f9f4a70fb 100644
> > --- a/docs/devel/code-provenance.rst
> > +++ b/docs/devel/code-provenance.rst
> > @@ -1,7 +1,7 @@
> > .. _code-provenance:
> >
> > -Code provenance
> > -===============
> > +Code provenance and AI usage
> > +============================
> >
> > Certifying patch submissions
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > @@ -288,62 +288,89 @@ content generators below.
> > Use of AI-generated content
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >
> > -TL;DR:
> > +**Please read the below policy before using AI to contribute code or
> > +documentation to QEMU. This applies to ChatGPT, Claude, Copilot,
> > +Llama, and similar tools.**
> >
> > - **Current QEMU project policy is to DECLINE any contributions which are
> > - believed to include or derive from AI generated content. This includes
> > - ChatGPT, Claude, Copilot, Llama and similar tools.**
> > +The increasing prevalence of AI-assisted software development,
> > +and especially the use of content generated by `Large Language Models
> > +<https://en.wikipedia.org/wiki/Large_language_model>`__ (LLMs),
> > +poses a number of difficult questions.
> >
> > - **This policy does not apply to other uses of AI, such as researching APIs
> > - or algorithms, static analysis, or debugging, provided their output is not
> > - included in contributions.**
> > +Risks to open source projects include maintainer burnout from an
> > +increased number of contributions, as well as the risk to the project
> > +from unintentional inclusion of copyrighted material in the LLM's output.
> > +In order to mitigate these risks, the QEMU project currently allows
> > +using AI/LLM tools to produce patches in a limited set of scenarios:
> >
> > -The increasing prevalence of AI-assisted software development results in a
> > -number of difficult legal questions and risks for software projects, including
> > -QEMU. Of particular concern is content generated by `Large Language Models
> > -<https://en.wikipedia.org/wiki/Large_language_model>`__ (LLMs).
> > +**Mechanical changes**
> > + If you can use a deterministic tool or a script, it is preferred
>
> I think mentioning sed and coccinelle here would be a good idea assuming the
> contributor trying to use AI is not familiar with those so would not even
> know what to ask the AI to help with.
No, let's not go there please.
There is nothing so magical about coccinelle and sed, that we should be
asking people who know nothing about either to have AI generate slop
they can not read and then to run *that* themselves.
Nor does the assumption, that said slop will be in the commit message and
the first person to actually read it will be the maintainer, appeal.
--
MST
Paolo Bonzini <pbonzini@redhat.com> writes:
> Until now QEMU's code provenance policy declined any contribution
> believed to include or derive from AI-generated content. A blanket ban
> was easy to maintain while LLM output was rarely usable on its own, but
> as the tools improved an absolute prohibition has become harder to
> justify.
>
> The concern that motivated the policy is unchanged, and it is worth
> stating precisely: the DCO is about whether the submitter has the legal
> right to contribute the code, not about "creative expression". The
> copyright and license status of LLM output remains unsettled, so that
> question is still open. What has shifted is the balance of risk:
>
> - projects accepting AI-assisted content have not run into serious
> legal trouble so far, which suggests the probability of the risk
> materializing is not high;
>
> - other organizations, such as Red Hat[1], have assessed the risk as
> acceptable -- though a community of individual developers does not
> have the legal backing of a company, and even an unfounded dispute
> would be a long-lasting distraction from work on QEMU.
>
> Revise the policy to permit AI assistance where the ramifications of
> copyright violations are at least easy to revert and unlikely to spread:
> tests, documentation, mechanical changes, and small bug fixes. Core code
> that other things depend on, and that cannot simply be thrown away once
> a problem is noticed long after the fact, stays off-limits without prior
> agreement from a maintainer.
>
> Related to this, and already visible in the incredible uptick in
> security requirements, is the question of maintainer burnout and the
> shift in effort from the author to the reviewer of the code. AI lowers
> the cost of producing a patch but does nothing to lower the cost of
> understanding and reviewing one; if anything it raises it, since a
> reviewer can no longer assume that the submitter has reasoned through
> every line. The limits above work just as much to keep the volume of
> review work sustainable.
>
> Furthermore, introduce "AI-used-for:" as a trailer to record where AI
> was used, and include other suggestions that help reviewers judge
> the result. The standard is slightly different from the more usual
> "Assisted-by", which doubles as a check that the author has read the
> policy.
>
> In any case, use of AI does not relax any other contribution requirement:
> authors still comply with the DCO and take responsibility for the whole
> patch via Signed-off-by.
>
> [Commit message largely based on
> https://lore.kernel.org/qemu-devel/ahXbxzB4C_lr6b0N@redhat.com/, by
> Kevin Wolf. - Paolo]
>
> [1] https://www.redhat.com/en/blog/ai-assisted-development-and-open-source-navigating-legal-issues
> Cc: Alex Bennée <alex.bennee@linaro.org>
> Cc: Alistair Francis <alistair.francis@wdc.com>
> Cc: Daniel P. Berrangé <berrange@redhat.com>
> Cc: Kevin Wolf <kwolf@redhat.com>
> Cc: Michael S. Tsirkin <mst@redhat.com>
> Cc: Peter Maydell <peter.maydell@linaro.org>
> Cc: Warner Losh <imp@bsdimp.com>
> Link: https://lore.kernel.org/qemu-devel/20260524083329-mutt-send-email-mst@kernel.org/T/
> Signed-off-by: Paolo Bonzini <bonzini@gnu.org>
> ---
> docs/devel/code-provenance.rst | 123 ++++++++++++++++++++-------------
> 1 file changed, 75 insertions(+), 48 deletions(-)
>
Some purely cosmetic clean-ups:
- use warning block to highlight the please read
- code-block:: none to stop weird syntax hilighting of tags
- re-flow the example prompts instead of raw bullets
--8<---------------cut here---------------start------------->8---
modified docs/devel/code-provenance.rst
@@ -288,9 +288,11 @@ content generators below.
Use of AI-generated content
~~~~~~~~~~~~~~~~~~~~~~~~~~~
-**Please read the below policy before using AI to contribute code or
-documentation to QEMU. This applies to ChatGPT, Claude, Copilot,
-Llama, and similar tools.**
+.. warning::
+
+ Please read the below policy before using AI to contribute code or
+ documentation to QEMU. This applies to ChatGPT, Claude, Copilot,
+ Llama, and similar tools.
The increasing prevalence of AI-assisted software development,
and especially the use of content generated by `Large Language Models
@@ -339,7 +341,9 @@ Commit messages for AI-assisted changes
When AI/LLM tools produce or substantively shape your patch, add an
``AI-used-for:`` trailer. The text of the trailer could be one or more
of ``code``, ``tests``, ``docs``, ``research``, possibly followed by an
-explanation in parentheses::
+explanation in parentheses:
+
+.. code-block:: none
AI-used-for: tests, docs
AI-used-for: code
@@ -357,16 +361,23 @@ There is no requirement to include your prompts or summarize the
conversation in the commit message or cover letter, but you may do so
if you think it helps a reviewer judge the result. For example:
-* yes: "move field ``foo`` from ``struct aa`` to ``struct bb``. If a
- function already has a local variable or parameter of type ``struct
- bb``, use it instead of accessing ``aa.bb``";
+**Helpful prompts**
+ These describe concrete constraints or instructions, making it easy for a
+ reviewer to see how the tool's output was guided:
+
+ * "move field ``foo`` from ``struct aa`` to ``struct bb``. If a
+ function already has a local variable or parameter of type ``struct
+ bb``, use it instead of accessing ``aa.bb``"
+
+ * "add an implementation of the trait for ``Mutex<T: MyTrait>``; for
+ the implementation, take the lock around the calls and forward to ``T``"
-* yes: "add an implementation of the trait for ``Mutex<T: MyTrait>``; for
- the implementation, take the lock around the calls and forward to ``T``";
+**Unhelpful prompts**
+ These are too generic to provide meaningful context:
-* no: "write user-facing documentation for the new tool"
+ * "write user-facing documentation for the new tool"
-* no: "write testcases for the new functions"
+ * "write testcases for the new functions"
QEMU does *not* use ``Assisted-by`` or ``Generated-by`` trailers. In
particular, it is not necessary to specify the exact AI model or tool
--8<---------------cut here---------------end--------------->8---
> diff --git a/docs/devel/code-provenance.rst b/docs/devel/code-provenance.rst
> index 65b8f232a08..84f9f4a70fb 100644
> --- a/docs/devel/code-provenance.rst
> +++ b/docs/devel/code-provenance.rst
> @@ -1,7 +1,7 @@
> .. _code-provenance:
>
> -Code provenance
> -===============
> +Code provenance and AI usage
> +============================
>
> Certifying patch submissions
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> @@ -288,62 +288,89 @@ content generators below.
> Use of AI-generated content
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> -TL;DR:
> +**Please read the below policy before using AI to contribute code or
> +documentation to QEMU. This applies to ChatGPT, Claude, Copilot,
> +Llama, and similar tools.**
>
> - **Current QEMU project policy is to DECLINE any contributions which are
> - believed to include or derive from AI generated content. This includes
> - ChatGPT, Claude, Copilot, Llama and similar tools.**
> +The increasing prevalence of AI-assisted software development,
> +and especially the use of content generated by `Large Language Models
> +<https://en.wikipedia.org/wiki/Large_language_model>`__ (LLMs),
> +poses a number of difficult questions.
>
> - **This policy does not apply to other uses of AI, such as researching APIs
> - or algorithms, static analysis, or debugging, provided their output is not
> - included in contributions.**
> +Risks to open source projects include maintainer burnout from an
> +increased number of contributions, as well as the risk to the project
> +from unintentional inclusion of copyrighted material in the LLM's output.
> +In order to mitigate these risks, the QEMU project currently allows
> +using AI/LLM tools to produce patches in a limited set of scenarios:
>
> -The increasing prevalence of AI-assisted software development results in a
> -number of difficult legal questions and risks for software projects, including
> -QEMU. Of particular concern is content generated by `Large Language Models
> -<https://en.wikipedia.org/wiki/Large_language_model>`__ (LLMs).
> +**Mechanical changes**
> + If you can use a deterministic tool or a script, it is preferred
> + that you use it and not replace it with AI. If you don't know how
> + to do the change deterministically, you can ask the AI for help.
>
> -The QEMU community requires that contributors certify their patch submissions
> -are made in accordance with the rules of the `Developer's Certificate of
> -Origin (DCO) <dco>`.
> +**Small bug fixes**
> + These should be limited to 20 lines of code or less, not including
> + tests. You are still expected to understand and explain your changes
> + and the rationale behind them.
>
> -To satisfy the DCO, the patch contributor has to fully understand the
> -copyright and license status of content they are contributing to QEMU. With AI
> -content generators, the copyright and license status of the output is
> -ill-defined with no generally accepted, settled legal foundation.
> +**Tests**
> + Note that you must still confirm that each test actually exercises
> + the intended behavior including, for regression tests, that it
> + fails without the code under test and passes for the right reason.
>
> -Where the training material is known, it is common for it to include large
> -volumes of material under restrictive licensing/copyright terms. Even where
> -the training material is all known to be under open source licenses, it is
> -likely to be under a variety of terms, not all of which will be compatible
> -with QEMU's licensing requirements.
> +These boundaries do not apply to other uses of AI, such as researching
> +APIs or algorithms, static analysis, or debugging, provided the model's
> +output is not included in contributions.
>
> -How contributors could comply with DCO terms (b) or (c) for the output of AI
> -content generators commonly available today is unclear. The QEMU project is
> -not willing or able to accept the legal risks of non-compliance.
> +If you wish to send large amounts of AI-generated changes, or any other
> +contribution not in the above categories, please get in touch with the
> +maintainer beforehand.
>
> -The QEMU project thus requires that contributors refrain from using AI content
> -generators on patches intended to be submitted to the project, and will
> -decline any contribution if use of AI is either known or suspected.
> +**Use of AI does not remove the need for authors to comply with all
> +other requirements for contribution.** In particular, the
> +``Signed-off-by`` label in a patch submission is a statement that
> +the author takes responsibility for the entire contents of the patch,
> +certifying that their patch submission is made in accordance with the
> +rules of the `Developer's Certificate of Origin (DCO) <dco>`.
>
> -Examples of tools impacted by this policy includes GitHub's CoPilot, OpenAI's
> -ChatGPT, Anthropic's Claude, and Meta's Code Llama, and code/content
> -generation agents which are built on top of such tools.
> +Commit messages for AI-assisted changes
> +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> -This policy may evolve as AI tools mature and the legal situation is
> -clarified.
> +When AI/LLM tools produce or substantively shape your patch, add an
> +``AI-used-for:`` trailer. The text of the trailer could be one or more
> +of ``code``, ``tests``, ``docs``, ``research``, possibly followed by an
> +explanation in parentheses::
>
> -Exceptions
> -^^^^^^^^^^
> + AI-used-for: tests, docs
> + AI-used-for: code
> + AI-used-for: code (refactoring)
> + AI-used-for: code (prototype)
> + AI-used-for: research
>
> -The QEMU project welcomes discussion on any exceptions to this policy,
> -or more general revisions. This can be done by contacting the qemu-devel
> -mailing list with details of a proposed tool, model, usage scenario, etc.
> -that is beneficial to QEMU, while still mitigating issues around compliance
> -with the DCO. After discussion, any exception will be listed below.
> +The trailer is intended as a clarification of your DCO obligations as
> +well as to guide reviewers. It is not intended for minimal presence
> +such as autocomplete or asking for a pre-review of the patch, and it
> +does not remove your responsibility to understand the changes that you
> +are submitting.
>
> -Exceptions do not remove the need for authors to comply with all other
> -requirements for contribution. In particular, the "Signed-off-by"
> -label in a patch submission is a statement that the author takes
> -responsibility for the entire contents of the patch, including any parts
> -that were generated or assisted by AI tools or other tools.
> +There is no requirement to include your prompts or summarize the
> +conversation in the commit message or cover letter, but you may do so
> +if you think it helps a reviewer judge the result. For example:
> +
> +* yes: "move field ``foo`` from ``struct aa`` to ``struct bb``. If a
> + function already has a local variable or parameter of type ``struct
> + bb``, use it instead of accessing ``aa.bb``";
> +
> +* yes: "add an implementation of the trait for ``Mutex<T: MyTrait>``; for
> + the implementation, take the lock around the calls and forward to ``T``";
> +
> +* no: "write user-facing documentation for the new tool"
> +
> +* no: "write testcases for the new functions"
> +
> +QEMU does *not* use ``Assisted-by`` or ``Generated-by`` trailers. In
> +particular, it is not necessary to specify the exact AI model or tool
> +used to create the commit.
> +
> +Deterministic tooling (sed, coccinelle, formatters) is out of scope for
> +the trailer, but should be mentioned in the commit message.
--
Alex Bennée
Virtualisation Tech Lead @ Linaro
On 28/5/26 09:34, Paolo Bonzini wrote: > Until now QEMU's code provenance policy declined any contribution > believed to include or derive from AI-generated content. A blanket ban > was easy to maintain while LLM output was rarely usable on its own, but > as the tools improved an absolute prohibition has become harder to > justify. > > The concern that motivated the policy is unchanged, and it is worth > stating precisely: the DCO is about whether the submitter has the legal > right to contribute the code, not about "creative expression". The > copyright and license status of LLM output remains unsettled, so that > question is still open. What has shifted is the balance of risk: > > - projects accepting AI-assisted content have not run into serious > legal trouble so far, which suggests the probability of the risk > materializing is not high; > > - other organizations, such as Red Hat[1], have assessed the risk as > acceptable -- though a community of individual developers does not > have the legal backing of a company, and even an unfounded dispute > would be a long-lasting distraction from work on QEMU. > > Revise the policy to permit AI assistance where the ramifications of > copyright violations are at least easy to revert and unlikely to spread: > tests, documentation, mechanical changes, and small bug fixes. Core code > that other things depend on, and that cannot simply be thrown away once > a problem is noticed long after the fact, stays off-limits without prior > agreement from a maintainer. > > Related to this, and already visible in the incredible uptick in > security requirements, is the question of maintainer burnout and the > shift in effort from the author to the reviewer of the code. AI lowers > the cost of producing a patch but does nothing to lower the cost of > understanding and reviewing one; if anything it raises it, since a > reviewer can no longer assume that the submitter has reasoned through > every line. The limits above work just as much to keep the volume of > review work sustainable. > > Furthermore, introduce "AI-used-for:" as a trailer to record where AI > was used, and include other suggestions that help reviewers judge > the result. The standard is slightly different from the more usual > "Assisted-by", which doubles as a check that the author has read the > policy. > > In any case, use of AI does not relax any other contribution requirement: > authors still comply with the DCO and take responsibility for the whole > patch via Signed-off-by. > > [Commit message largely based on > https://lore.kernel.org/qemu-devel/ahXbxzB4C_lr6b0N@redhat.com/, by > Kevin Wolf. - Paolo] > > [1] https://www.redhat.com/en/blog/ai-assisted-development-and-open-source-navigating-legal-issues > Cc: Alex Bennée <alex.bennee@linaro.org> > Cc: Alistair Francis <alistair.francis@wdc.com> > Cc: Daniel P. Berrangé <berrange@redhat.com> > Cc: Kevin Wolf <kwolf@redhat.com> > Cc: Michael S. Tsirkin <mst@redhat.com> > Cc: Peter Maydell <peter.maydell@linaro.org> > Cc: Warner Losh <imp@bsdimp.com> > Link: https://lore.kernel.org/qemu-devel/20260524083329-mutt-send-email-mst@kernel.org/T/ > Signed-off-by: Paolo Bonzini <bonzini@gnu.org> > --- > docs/devel/code-provenance.rst | 123 ++++++++++++++++++++------------- > 1 file changed, 75 insertions(+), 48 deletions(-) Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> And with https://lore.kernel.org/qemu-devel/20260528082022.32359-1-philmd@linaro.org/: Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
On Thu, May 28, 2026 at 09:34:12AM +0200, Paolo Bonzini wrote: > Until now QEMU's code provenance policy declined any contribution > believed to include or derive from AI-generated content. A blanket ban > was easy to maintain while LLM output was rarely usable on its own, but > as the tools improved an absolute prohibition has become harder to > justify. > > The concern that motivated the policy is unchanged, and it is worth > stating precisely: the DCO is about whether the submitter has the legal > right to contribute the code, not about "creative expression". The > copyright and license status of LLM output remains unsettled, so that > question is still open. What has shifted is the balance of risk: > > - projects accepting AI-assisted content have not run into serious > legal trouble so far, which suggests the probability of the risk > materializing is not high; > > - other organizations, such as Red Hat[1], have assessed the risk as > acceptable -- though a community of individual developers does not > have the legal backing of a company, and even an unfounded dispute > would be a long-lasting distraction from work on QEMU. > > Revise the policy to permit AI assistance where the ramifications of > copyright violations are at least easy to revert and unlikely to spread: > tests, documentation, mechanical changes, and small bug fixes. Core code > that other things depend on, and that cannot simply be thrown away once > a problem is noticed long after the fact, stays off-limits without prior > agreement from a maintainer. > > Related to this, and already visible in the incredible uptick in > security requirements, is the question of maintainer burnout and the > shift in effort from the author to the reviewer of the code. AI lowers > the cost of producing a patch but does nothing to lower the cost of > understanding and reviewing one; if anything it raises it, since a > reviewer can no longer assume that the submitter has reasoned through > every line. The limits above work just as much to keep the volume of > review work sustainable. > > Furthermore, introduce "AI-used-for:" as a trailer to record where AI > was used, and include other suggestions that help reviewers judge > the result. The standard is slightly different from the more usual > "Assisted-by", which doubles as a check that the author has read the > policy. > > In any case, use of AI does not relax any other contribution requirement: > authors still comply with the DCO and take responsibility for the whole > patch via Signed-off-by. > > [Commit message largely based on > https://lore.kernel.org/qemu-devel/ahXbxzB4C_lr6b0N@redhat.com/, by > Kevin Wolf. - Paolo] > > [1] https://www.redhat.com/en/blog/ai-assisted-development-and-open-source-navigating-legal-issues > Cc: Alex Bennée <alex.bennee@linaro.org> > Cc: Alistair Francis <alistair.francis@wdc.com> > Cc: Daniel P. Berrangé <berrange@redhat.com> > Cc: Kevin Wolf <kwolf@redhat.com> > Cc: Michael S. Tsirkin <mst@redhat.com> > Cc: Peter Maydell <peter.maydell@linaro.org> > Cc: Warner Losh <imp@bsdimp.com> > Link: https://lore.kernel.org/qemu-devel/20260524083329-mutt-send-email-mst@kernel.org/T/ > Signed-off-by: Paolo Bonzini <bonzini@gnu.org> Thanks, looks good to me. Two small questions below. Minor so anyway: Acked-by: Michael S. Tsirkin <mst@redhat.com> > --- > docs/devel/code-provenance.rst | 123 ++++++++++++++++++++------------- > 1 file changed, 75 insertions(+), 48 deletions(-) > > diff --git a/docs/devel/code-provenance.rst b/docs/devel/code-provenance.rst > index 65b8f232a08..84f9f4a70fb 100644 > --- a/docs/devel/code-provenance.rst > +++ b/docs/devel/code-provenance.rst > @@ -1,7 +1,7 @@ > .. _code-provenance: > > -Code provenance > -=============== > +Code provenance and AI usage > +============================ > > Certifying patch submissions > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > @@ -288,62 +288,89 @@ content generators below. > Use of AI-generated content > ~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > -TL;DR: > +**Please read the below policy before using AI to contribute code or > +documentation to QEMU. This applies to ChatGPT, Claude, Copilot, > +Llama, and similar tools.** > > - **Current QEMU project policy is to DECLINE any contributions which are > - believed to include or derive from AI generated content. This includes > - ChatGPT, Claude, Copilot, Llama and similar tools.** > +The increasing prevalence of AI-assisted software development, > +and especially the use of content generated by `Large Language Models > +<https://en.wikipedia.org/wiki/Large_language_model>`__ (LLMs), > +poses a number of difficult questions. > > - **This policy does not apply to other uses of AI, such as researching APIs > - or algorithms, static analysis, or debugging, provided their output is not > - included in contributions.** > +Risks to open source projects include maintainer burnout from an > +increased number of contributions, as well as the risk to the project > +from unintentional inclusion of copyrighted material in the LLM's output. > +In order to mitigate these risks, the QEMU project currently allows > +using AI/LLM tools to produce patches in a limited set of scenarios: > > -The increasing prevalence of AI-assisted software development results in a > -number of difficult legal questions and risks for software projects, including > -QEMU. Of particular concern is content generated by `Large Language Models > -<https://en.wikipedia.org/wiki/Large_language_model>`__ (LLMs). > +**Mechanical changes** > + If you can use a deterministic tool or a script, it is preferred > + that you use it and not replace it with AI. If you don't know how > + to do the change deterministically, you can ask the AI for help. > > -The QEMU community requires that contributors certify their patch submissions > -are made in accordance with the rules of the `Developer's Certificate of > -Origin (DCO) <dco>`. > +**Small bug fixes** > + These should be limited to 20 lines of code or less, not including > + tests. You are still expected to understand and explain your changes > + and the rationale behind them. > > -To satisfy the DCO, the patch contributor has to fully understand the > -copyright and license status of content they are contributing to QEMU. With AI > -content generators, the copyright and license status of the output is > -ill-defined with no generally accepted, settled legal foundation. > +**Tests** > + Note that you must still confirm that each test actually exercises > + the intended behavior including, for regression tests, that it > + fails without the code under test and passes for the right reason. > > -Where the training material is known, it is common for it to include large > -volumes of material under restrictive licensing/copyright terms. Even where > -the training material is all known to be under open source licenses, it is > -likely to be under a variety of terms, not all of which will be compatible > -with QEMU's licensing requirements. > +These boundaries do not apply to other uses of AI, such as researching > +APIs or algorithms, static analysis, or debugging, provided the model's > +output is not included in contributions. > > -How contributors could comply with DCO terms (b) or (c) for the output of AI > -content generators commonly available today is unclear. The QEMU project is > -not willing or able to accept the legal risks of non-compliance. > +If you wish to send large amounts of AI-generated changes, or any other > +contribution not in the above categories, please get in touch with the > +maintainer beforehand. To be clear, the implication is that These can be accepted at the discretion of the maintainer ? Maybe make it explicit. > > -The QEMU project thus requires that contributors refrain from using AI content > -generators on patches intended to be submitted to the project, and will > -decline any contribution if use of AI is either known or suspected. > +**Use of AI does not remove the need for authors to comply with all > +other requirements for contribution.** In particular, the > +``Signed-off-by`` label in a patch submission is a statement that > +the author takes responsibility for the entire contents of the patch, > +certifying that their patch submission is made in accordance with the > +rules of the `Developer's Certificate of Origin (DCO) <dco>`. > > -Examples of tools impacted by this policy includes GitHub's CoPilot, OpenAI's > -ChatGPT, Anthropic's Claude, and Meta's Code Llama, and code/content > -generation agents which are built on top of such tools. > +Commit messages for AI-assisted changes > +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > -This policy may evolve as AI tools mature and the legal situation is > -clarified. > +When AI/LLM tools produce or substantively shape your patch, add an > +``AI-used-for:`` trailer. The text of the trailer could be one or more > +of ``code``, ``tests``, ``docs``, ``research``, possibly followed by an > +explanation in parentheses:: > > -Exceptions > -^^^^^^^^^^ > + AI-used-for: tests, docs > + AI-used-for: code > + AI-used-for: code (refactoring) > + AI-used-for: code (prototype) > + AI-used-for: research Why include research here when we also explicitly say: > +These boundaries do not apply to other uses of AI, such as researching > +APIs or algorithms, static analysis, or debugging, provided the model's > +output is not included in contributions. ? > > -The QEMU project welcomes discussion on any exceptions to this policy, > -or more general revisions. This can be done by contacting the qemu-devel > -mailing list with details of a proposed tool, model, usage scenario, etc. > -that is beneficial to QEMU, while still mitigating issues around compliance > -with the DCO. After discussion, any exception will be listed below. > +The trailer is intended as a clarification of your DCO obligations as > +well as to guide reviewers. It is not intended for minimal presence > +such as autocomplete or asking for a pre-review of the patch, and it > +does not remove your responsibility to understand the changes that you > +are submitting. > > -Exceptions do not remove the need for authors to comply with all other > -requirements for contribution. In particular, the "Signed-off-by" > -label in a patch submission is a statement that the author takes > -responsibility for the entire contents of the patch, including any parts > -that were generated or assisted by AI tools or other tools. > +There is no requirement to include your prompts or summarize the > +conversation in the commit message or cover letter, but you may do so > +if you think it helps a reviewer judge the result. For example: > + > +* yes: "move field ``foo`` from ``struct aa`` to ``struct bb``. If a > + function already has a local variable or parameter of type ``struct > + bb``, use it instead of accessing ``aa.bb``"; > + > +* yes: "add an implementation of the trait for ``Mutex<T: MyTrait>``; for > + the implementation, take the lock around the calls and forward to ``T``"; > + > +* no: "write user-facing documentation for the new tool" > + > +* no: "write testcases for the new functions" > + > +QEMU does *not* use ``Assisted-by`` or ``Generated-by`` trailers. In > +particular, it is not necessary to specify the exact AI model or tool > +used to create the commit. > + > +Deterministic tooling (sed, coccinelle, formatters) is out of scope for > +the trailer, but should be mentioned in the commit message. > -- > 2.54.0
On Thu, May 28, 2026 at 9:48 AM Michael S. Tsirkin <mst@redhat.com> wrote: > > -How contributors could comply with DCO terms (b) or (c) for the output of AI > > -content generators commonly available today is unclear. The QEMU project is > > -not willing or able to accept the legal risks of non-compliance. > > +If you wish to send large amounts of AI-generated changes, or any other > > +contribution not in the above categories, please get in touch with the > > +maintainer beforehand. > > To be clear, the implication is that > These can be accepted at the discretion of the maintainer Yes. > Maybe make it explicit. Ok. > > + AI-used-for: tests, docs > > + AI-used-for: code > > + AI-used-for: code (refactoring) > > + AI-used-for: code (prototype) > > + AI-used-for: research > > Why include research here when we also explicitly say: > > > +These boundaries do not apply to other uses of AI, such as researching > > +APIs or algorithms, static analysis, or debugging, provided the model's > > +output is not included in contributions. I suppose it can still be useful for traceability. I copied it from Kevin's proposal but I can remove it. "Research" may also include using a script written by the LLM, which is encouraged in the first section. Paolo
On Thu, May 28, 2026 at 09:53:12AM +0200, Paolo Bonzini wrote: > On Thu, May 28, 2026 at 9:48 AM Michael S. Tsirkin <mst@redhat.com> wrote: > > > -How contributors could comply with DCO terms (b) or (c) for the output of AI > > > -content generators commonly available today is unclear. The QEMU project is > > > -not willing or able to accept the legal risks of non-compliance. > > > +If you wish to send large amounts of AI-generated changes, or any other > > > +contribution not in the above categories, please get in touch with the > > > +maintainer beforehand. > > > > To be clear, the implication is that > > These can be accepted at the discretion of the maintainer > > Yes. > > > Maybe make it explicit. > > Ok. > > > > + AI-used-for: tests, docs > > > + AI-used-for: code > > > + AI-used-for: code (refactoring) > > > + AI-used-for: code (prototype) > > > + AI-used-for: research BTW: commit log ? > > Why include research here when we also explicitly say: > > > > > +These boundaries do not apply to other uses of AI, such as researching > > > +APIs or algorithms, static analysis, or debugging, provided the model's > > > +output is not included in contributions. > > I suppose it can still be useful for traceability. I copied it from > Kevin's proposal but I can remove it. > > "Research" may also include using a script written by the LLM, which > is encouraged in the first section. > > Paolo but again, if the script is not merged, then the boundaries do not apply? -- MST
On Thu, May 28, 2026 at 9:59 AM Michael S. Tsirkin <mst@redhat.com> wrote: > > > > + AI-used-for: tests, docs > > > > + AI-used-for: code > > > > + AI-used-for: code (refactoring) > > > > + AI-used-for: code (prototype) > > > > + AI-used-for: research > > BTW: commit log ? I don't think I want to encourage it to the point that it requires highlighting, quite the opposite in fact. Using AI for minor edits is irrelevant, while writing the bulk of the commit message should be a conscious act of the submitter. This was also mentioned in the other thread. > > I suppose it can still be useful for traceability. I copied it from > > Kevin's proposal but I can remove it. > > > > "Research" may also include using a script written by the LLM, which > > is encouraged in the first section. > > but again, if the script is not merged, then the boundaries do not > apply? See the first sentence above re. traceability and copying from Kevin's proposal. :) Paolo
On Thu, May 28, 2026 at 10:04:40AM +0200, Paolo Bonzini wrote: > On Thu, May 28, 2026 at 9:59 AM Michael S. Tsirkin <mst@redhat.com> wrote: > > > > > + AI-used-for: tests, docs > > > > > + AI-used-for: code > > > > > + AI-used-for: code (refactoring) > > > > > + AI-used-for: code (prototype) > > > > > + AI-used-for: research > > > > BTW: commit log ? > > I don't think I want to encourage it to the point that it requires > highlighting, quite the opposite in fact. Using AI for minor edits is > irrelevant, while writing the bulk of the commit message should be a > conscious act of the submitter. > > This was also mentioned in the other thread. > > > > I suppose it can still be useful for traceability. I copied it from > > > Kevin's proposal but I can remove it. > > > > > > "Research" may also include using a script written by the LLM, which > > > is encouraged in the first section. > > > > but again, if the script is not merged, then the boundaries do not > > apply? > > See the first sentence above re. traceability and copying from Kevin's > proposal. :) > > Paolo OK. It's all nitpicking on my side, anyway. -- MST
Hi Paolo, On 28/5/26 09:34, Paolo Bonzini wrote: > Until now QEMU's code provenance policy declined any contribution > believed to include or derive from AI-generated content. A blanket ban > was easy to maintain while LLM output was rarely usable on its own, but > as the tools improved an absolute prohibition has become harder to > justify. > > The concern that motivated the policy is unchanged, and it is worth > stating precisely: the DCO is about whether the submitter has the legal > right to contribute the code, not about "creative expression". The > copyright and license status of LLM output remains unsettled, so that > question is still open. What has shifted is the balance of risk: > > - projects accepting AI-assisted content have not run into serious > legal trouble so far, which suggests the probability of the risk > materializing is not high; > > - other organizations, such as Red Hat[1], have assessed the risk as > acceptable -- though a community of individual developers does not > have the legal backing of a company, and even an unfounded dispute > would be a long-lasting distraction from work on QEMU. > > Revise the policy to permit AI assistance where the ramifications of > copyright violations are at least easy to revert and unlikely to spread: > tests, documentation, Here you mention documentation, ... > mechanical changes, and small bug fixes. Core code > that other things depend on, and that cannot simply be thrown away once > a problem is noticed long after the fact, stays off-limits without prior > agreement from a maintainer. > > Related to this, and already visible in the incredible uptick in > security requirements, is the question of maintainer burnout and the > shift in effort from the author to the reviewer of the code. AI lowers > the cost of producing a patch but does nothing to lower the cost of > understanding and reviewing one; if anything it raises it, since a > reviewer can no longer assume that the submitter has reasoned through > every line. The limits above work just as much to keep the volume of > review work sustainable. > > Furthermore, introduce "AI-used-for:" as a trailer to record where AI > was used, and include other suggestions that help reviewers judge > the result. The standard is slightly different from the more usual > "Assisted-by", which doubles as a check that the author has read the > policy. > > In any case, use of AI does not relax any other contribution requirement: > authors still comply with the DCO and take responsibility for the whole > patch via Signed-off-by. > > [Commit message largely based on > https://lore.kernel.org/qemu-devel/ahXbxzB4C_lr6b0N@redhat.com/, by > Kevin Wolf. - Paolo] > > [1] https://www.redhat.com/en/blog/ai-assisted-development-and-open-source-navigating-legal-issues > Cc: Alex Bennée <alex.bennee@linaro.org> > Cc: Alistair Francis <alistair.francis@wdc.com> > Cc: Daniel P. Berrangé <berrange@redhat.com> > Cc: Kevin Wolf <kwolf@redhat.com> > Cc: Michael S. Tsirkin <mst@redhat.com> > Cc: Peter Maydell <peter.maydell@linaro.org> > Cc: Warner Losh <imp@bsdimp.com> > Link: https://lore.kernel.org/qemu-devel/20260524083329-mutt-send-email-mst@kernel.org/T/ > Signed-off-by: Paolo Bonzini <bonzini@gnu.org> > --- > docs/devel/code-provenance.rst | 123 ++++++++++++++++++++------------- > 1 file changed, 75 insertions(+), 48 deletions(-) > > diff --git a/docs/devel/code-provenance.rst b/docs/devel/code-provenance.rst > index 65b8f232a08..84f9f4a70fb 100644 > --- a/docs/devel/code-provenance.rst > +++ b/docs/devel/code-provenance.rst > @@ -1,7 +1,7 @@ > .. _code-provenance: > > -Code provenance > -=============== > +Code provenance and AI usage > +============================ > > Certifying patch submissions > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > @@ -288,62 +288,89 @@ content generators below. > Use of AI-generated content > ~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > -TL;DR: > +**Please read the below policy before using AI to contribute code or > +documentation to QEMU. This applies to ChatGPT, Claude, Copilot, > +Llama, and similar tools.** > > - **Current QEMU project policy is to DECLINE any contributions which are > - believed to include or derive from AI generated content. This includes > - ChatGPT, Claude, Copilot, Llama and similar tools.** > +The increasing prevalence of AI-assisted software development, > +and especially the use of content generated by `Large Language Models > +<https://en.wikipedia.org/wiki/Large_language_model>`__ (LLMs), > +poses a number of difficult questions. > > - **This policy does not apply to other uses of AI, such as researching APIs > - or algorithms, static analysis, or debugging, provided their output is not > - included in contributions.** > +Risks to open source projects include maintainer burnout from an > +increased number of contributions, as well as the risk to the project > +from unintentional inclusion of copyrighted material in the LLM's output. > +In order to mitigate these risks, the QEMU project currently allows > +using AI/LLM tools to produce patches in a limited set of scenarios: > > -The increasing prevalence of AI-assisted software development results in a > -number of difficult legal questions and risks for software projects, including > -QEMU. Of particular concern is content generated by `Large Language Models > -<https://en.wikipedia.org/wiki/Large_language_model>`__ (LLMs). > +**Mechanical changes** > + If you can use a deterministic tool or a script, it is preferred > + that you use it and not replace it with AI. If you don't know how > + to do the change deterministically, you can ask the AI for help. > > -The QEMU community requires that contributors certify their patch submissions > -are made in accordance with the rules of the `Developer's Certificate of > -Origin (DCO) <dco>`. > +**Small bug fixes** > + These should be limited to 20 lines of code or less, not including > + tests. You are still expected to understand and explain your changes > + and the rationale behind them. > > -To satisfy the DCO, the patch contributor has to fully understand the > -copyright and license status of content they are contributing to QEMU. With AI > -content generators, the copyright and license status of the output is > -ill-defined with no generally accepted, settled legal foundation. > +**Tests** > + Note that you must still confirm that each test actually exercises > + the intended behavior including, for regression tests, that it > + fails without the code under test and passes for the right reason. > ... however it is not listed in the "limited set of scenarios" ... > -Where the training material is known, it is common for it to include large > -volumes of material under restrictive licensing/copyright terms. Even where > -the training material is all known to be under open source licenses, it is > -likely to be under a variety of terms, not all of which will be compatible > -with QEMU's licensing requirements. > +These boundaries do not apply to other uses of AI, such as researching > +APIs or algorithms, static analysis, or debugging, provided the model's > +output is not included in contributions. > > -How contributors could comply with DCO terms (b) or (c) for the output of AI > -content generators commonly available today is unclear. The QEMU project is > -not willing or able to accept the legal risks of non-compliance. > +If you wish to send large amounts of AI-generated changes, or any other > +contribution not in the above categories, please get in touch with the > +maintainer beforehand. > > -The QEMU project thus requires that contributors refrain from using AI content > -generators on patches intended to be submitted to the project, and will > -decline any contribution if use of AI is either known or suspected. > +**Use of AI does not remove the need for authors to comply with all > +other requirements for contribution.** In particular, the > +``Signed-off-by`` label in a patch submission is a statement that > +the author takes responsibility for the entire contents of the patch, > +certifying that their patch submission is made in accordance with the > +rules of the `Developer's Certificate of Origin (DCO) <dco>`. > > -Examples of tools impacted by this policy includes GitHub's CoPilot, OpenAI's > -ChatGPT, Anthropic's Claude, and Meta's Code Llama, and code/content > -generation agents which are built on top of such tools. > +Commit messages for AI-assisted changes > +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > -This policy may evolve as AI tools mature and the legal situation is > -clarified. > +When AI/LLM tools produce or substantively shape your patch, add an > +``AI-used-for:`` trailer. The text of the trailer could be one or more > +of ``code``, ``tests``, ``docs``, ``research``, possibly followed by an > +explanation in parentheses:: > > -Exceptions > -^^^^^^^^^^ > + AI-used-for: tests, docs ... still being listed as exception here. > + AI-used-for: code > + AI-used-for: code (refactoring) > + AI-used-for: code (prototype) > + AI-used-for: research > > -The QEMU project welcomes discussion on any exceptions to this policy, > -or more general revisions. This can be done by contacting the qemu-devel > -mailing list with details of a proposed tool, model, usage scenario, etc. > -that is beneficial to QEMU, while still mitigating issues around compliance > -with the DCO. After discussion, any exception will be listed below. > +The trailer is intended as a clarification of your DCO obligations as > +well as to guide reviewers. It is not intended for minimal presence > +such as autocomplete or asking for a pre-review of the patch, and it > +does not remove your responsibility to understand the changes that you > +are submitting. > > -Exceptions do not remove the need for authors to comply with all other > -requirements for contribution. In particular, the "Signed-off-by" > -label in a patch submission is a statement that the author takes > -responsibility for the entire contents of the patch, including any parts > -that were generated or assisted by AI tools or other tools. > +There is no requirement to include your prompts or summarize the > +conversation in the commit message or cover letter, but you may do so > +if you think it helps a reviewer judge the result. For example: > + > +* yes: "move field ``foo`` from ``struct aa`` to ``struct bb``. If a > + function already has a local variable or parameter of type ``struct > + bb``, use it instead of accessing ``aa.bb``"; > + > +* yes: "add an implementation of the trait for ``Mutex<T: MyTrait>``; for > + the implementation, take the lock around the calls and forward to ``T``"; > + > +* no: "write user-facing documentation for the new tool" > + > +* no: "write testcases for the new functions" > + > +QEMU does *not* use ``Assisted-by`` or ``Generated-by`` trailers. In > +particular, it is not necessary to specify the exact AI model or tool > +used to create the commit. > + > +Deterministic tooling (sed, coccinelle, formatters) is out of scope for > +the trailer, but should be mentioned in the commit message.
On Thu, May 28, 2026 at 9:40 AM Philippe Mathieu-Daudé <philmd@linaro.org> wrote: > > Revise the policy to permit AI assistance where the ramifications of > > copyright violations are at least easy to revert and unlikely to spread: > > tests, documentation, > > Here you mention documentation, ... > > > +**Mechanical changes** > > +**Small bug fixes** > > +**Tests** > > ... however it is not listed in the "limited set of scenarios" Good point! Any suggestions for the wording are welcome. Paolo
On Thu, May 28, 2026 at 09:43:24AM +0200, Paolo Bonzini wrote: > On Thu, May 28, 2026 at 9:40 AM Philippe Mathieu-Daudé > <philmd@linaro.org> wrote: > > > Revise the policy to permit AI assistance where the ramifications of > > > copyright violations are at least easy to revert and unlikely to spread: > > > tests, documentation, > > > > Here you mention documentation, ... > > > > > +**Mechanical changes** > > > +**Small bug fixes** > > > +**Tests** > > > > ... however it is not listed in the "limited set of scenarios" > > Good point! Any suggestions for the wording are welcome. > > Paolo **Documentation, code comments** ?
© 2016 - 2026 Red Hat, Inc.