Skip to content

Commit 3d40db0

Browse files
berrangestefanhaRH
authored andcommitted
docs: define policy forbidding use of AI code generators
There has been an explosion of interest in so called AI code generators. Thus far though, this is has not been matched by a broadly accepted legal interpretation of the licensing implications for code generator outputs. While the vendors may claim there is no problem and a free choice of license is possible, they have an inherent conflict of interest in promoting this interpretation. More broadly there is, as yet, no broad consensus on the licensing implications of code generators trained on inputs under a wide variety of licenses The DCO requires contributors to assert they have the right to contribute under the designated project license. Given the lack of consensus on the licensing of AI code generator output, it is not considered credible to assert compliance with the DCO clause (b) or (c) where a patch includes such generated code. This patch thus defines a policy that the QEMU project will currently not accept contributions where use of AI code generators is either known, or suspected. These are early days of AI-assisted software development. The legal questions will be resolved eventually. The tools will mature, and we can expect some to become safely usable in free software projects. The policy we set now must be for today, and be open to revision. It's best to start strict and safe, then relax. Meanwhile requests for exceptions can also be considered on a case by case basis. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
1 parent b5d0055 commit 3d40db0

File tree

1 file changed

+54
-1
lines changed

1 file changed

+54
-1
lines changed

docs/devel/code-provenance.rst

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,4 +282,57 @@ boilerplate code template which is then filled in to produce the final patch.
282282
The output of such a tool would still be considered the "preferred format",
283283
since it is intended to be a foundation for further human authored changes.
284284
Such tools are acceptable to use, provided there is clearly defined copyright
285-
and licensing for their output.
285+
and licensing for their output. Note in particular the caveats applying to AI
286+
content generators below.
287+
288+
Use of AI content generators
289+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
290+
291+
TL;DR:
292+
293+
**Current QEMU project policy is to DECLINE any contributions which are
294+
believed to include or derive from AI generated content. This includes
295+
ChatGPT, Claude, Copilot, Llama and similar tools.**
296+
297+
The increasing prevalence of AI-assisted software development results in a
298+
number of difficult legal questions and risks for software projects, including
299+
QEMU. Of particular concern is content generated by `Large Language Models
300+
<https://en.wikipedia.org/wiki/Large_language_model>`__ (LLMs).
301+
302+
The QEMU community requires that contributors certify their patch submissions
303+
are made in accordance with the rules of the `Developer's Certificate of
304+
Origin (DCO) <dco>`.
305+
306+
To satisfy the DCO, the patch contributor has to fully understand the
307+
copyright and license status of content they are contributing to QEMU. With AI
308+
content generators, the copyright and license status of the output is
309+
ill-defined with no generally accepted, settled legal foundation.
310+
311+
Where the training material is known, it is common for it to include large
312+
volumes of material under restrictive licensing/copyright terms. Even where
313+
the training material is all known to be under open source licenses, it is
314+
likely to be under a variety of terms, not all of which will be compatible
315+
with QEMU's licensing requirements.
316+
317+
How contributors could comply with DCO terms (b) or (c) for the output of AI
318+
content generators commonly available today is unclear. The QEMU project is
319+
not willing or able to accept the legal risks of non-compliance.
320+
321+
The QEMU project thus requires that contributors refrain from using AI content
322+
generators on patches intended to be submitted to the project, and will
323+
decline any contribution if use of AI is either known or suspected.
324+
325+
This policy does not apply to other uses of AI, such as researching APIs or
326+
algorithms, static analysis, or debugging, provided their output is not to be
327+
included in contributions.
328+
329+
Examples of tools impacted by this policy includes GitHub's CoPilot, OpenAI's
330+
ChatGPT, Anthropic's Claude, and Meta's Code Llama, and code/content
331+
generation agents which are built on top of such tools.
332+
333+
This policy may evolve as AI tools mature and the legal situation is
334+
clarifed. In the meanwhile, requests for exceptions to this policy will be
335+
evaluated by the QEMU project on a case by case basis. To be granted an
336+
exception, a contributor will need to demonstrate clarity of the license and
337+
copyright status for the tool's output in relation to its training model and
338+
code, to the satisfaction of the project maintainers.

0 commit comments

Comments
 (0)