From nobody Mon Sep 8 17:04:31 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass(p=reject dis=none) header.from=lists.libvirt.org ARC-Seal: i=1; a=rsa-sha256; t=1752140646; cv=none; d=zohomail.com; s=zohoarc; b=FE0hmX1qJjBw6+eqtoPToI3g0Cn7adnE7v/Y8jenai2nNQjbZ/1WBWUY8auo/CYBsYuKc8ef+5Wi5MlJF+wBPcw/xMOJdWR/WZpX7cRBnV2oAe8zSGCCuuoFBFs3nDzRjKRD75IKEuaW+MR9tOO2o5qa4hMVv3/pukc+nQwydNY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1752140646; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:Subject:Subject:To:To:Message-Id:Cc; bh=/cg0JJThXk5O4Xjeu4gu+Vq1gWLKVp+wXWYBsU2mrOQ=; b=nEiP5fas2u00DV5B+WwqJIBzcWaSk/qNWMurwCKKKKEpGUg+zBYYg5Pnv2SSKTyluXZrvlihsspRnZnd5FRizR/Rx2q6gSXEWdbF2NAyzHpNKzTFjNO2hIcnDkKR8Fltfj2aW1TvV63qxwa1VQm8DJBpxnKYP8Kzka7YmI9YGPo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1752140646649199.43804465031985; Thu, 10 Jul 2025 02:44:06 -0700 (PDT) Received: by lists.libvirt.org (Postfix, from userid 996) id A1ED01285; Thu, 10 Jul 2025 05:44:05 -0400 (EDT) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 5F8B11272; Thu, 10 Jul 2025 05:43:41 -0400 (EDT) Received: by lists.libvirt.org (Postfix, from userid 996) id 56DFD1126; Thu, 10 Jul 2025 05:43:38 -0400 (EDT) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id A259C110B for ; Thu, 10 Jul 2025 05:43:37 -0400 (EDT) Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-622-wICvd0-nNiub7yg-sLvHXg-1; Thu, 10 Jul 2025 05:43:36 -0400 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 5114119560AD for ; Thu, 10 Jul 2025 09:43:35 +0000 (UTC) Received: from antique-laptop.redhat.com (unknown [10.44.33.71]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 775BC18046C3 for ; Thu, 10 Jul 2025 09:43:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1752140617; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pPCgSbDEEDuEbQ6eog+d+QXDFwl72tTK5KWdCAVvbYE=; b=JvpDcgPmBFSEOtYX0ZtwSa8z8mfyoUbUdnEzKXxkmCef7BqTUCK1+7T4GxPge0N44dAac8 jHE5yrWi3H+j2XnVhQTippmVP2ykieDd7Kh94m3qxekP0Na/Q48CnLqJiNzkpuZgBZzVGd GIYjyBf7o23WK2EoMcUqwoNXsShBU5w= X-MC-Unique: wICvd0-nNiub7yg-sLvHXg-1 X-Mimecast-MFC-AGG-ID: wICvd0-nNiub7yg-sLvHXg_1752140615 To: devel@lists.libvirt.org Subject: [libvirt PATCH] docs: hacking: Define policy forbidding use of AI code generators Date: Thu, 10 Jul 2025 11:43:32 +0200 Message-ID: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: MR7eurtxhIhl6AaoxtYUATYdT00UX5y0fEl-aw_cvBU_1752140615 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: 6CQ2YRZIY6B5ADDSOWP2AOGKDIIRRWVZ X-Message-ID-Hash: 6CQ2YRZIY6B5ADDSOWP2AOGKDIIRRWVZ X-MailFrom: phrdina@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: From: Pavel Hrdina via Devel Reply-To: Pavel Hrdina X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1752140648876116600 Content-Type: text/plain; charset="utf-8"; x-default="true" This policy is a copy of what QEMU project is using [1] as there is no reason to use different policy, only modification is changing the project name and link to DCO. [1] Signed-off-by: Pavel Hrdina Reviewed-by: Jim Fehlig Reviewed-by: Peter Krempa --- docs/hacking.rst | 52 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/docs/hacking.rst b/docs/hacking.rst index 825b8b83d2..5f0f867b9f 100644 --- a/docs/hacking.rst +++ b/docs/hacking.rst @@ -90,6 +90,58 @@ formal ID documents, but should not be anonymous, nor mi= srepresent who you are. The presence of this line attests that the contributor has read the above linked DCO and agrees with its statements. =20 +Use of AI content generators +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D + +TL;DR: + + **Current libvirt project policy is to DECLINE any contributions which a= re + 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 results in a +number of difficult legal questions and risks for software projects, inclu= ding +libvirt. Of particular concern is content generated by `Large Language Mod= els +`__ (LLMs). + +The libvirt community requires that contributors certify their patch submi= ssions +are made in accordance with the rules of the `Developer Certificate of +Origin`_. + +To satisfy the DCO, the patch contributor has to fully understand the +copyright and license status of content they are contributing to libvirt. = With +AI content generators, the copyright and license status of the output is +ill-defined with no generally accepted, settled legal foundation. + +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 libvirt's licensing requirements. + +How contributors could comply with DCO terms (b) or (c) for the output of = AI +content generators commonly available today is unclear. The libvirt projec= t is +not willing or able to accept the legal risks of non-compliance. + +The libvirt 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. + +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 to= be +included in contributions. + +Examples of tools impacted by this policy includes GitHub's CoPilot, OpenA= I's +ChatGPT, Anthropic's Claude, and Meta's Code Llama, and code/content +generation agents which are built on top of such tools. + +This policy may evolve as AI tools mature and the legal situation is +clarified. In the meanwhile, requests for exceptions to this policy will be +evaluated by the libvirt project on a case by case basis. To be granted an +exception, a contributor will need to demonstrate clarity of the license a= nd +copyright status for the tool's output in relation to its training model a= nd +code, to the satisfaction of the project maintainers. + Further reading =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20 --=20 2.49.0