From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7A7DD606A32D for ; Wed, 2 Dec 2026 17:53:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=UMqjylBi Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xYoWF-0001Ui-Ei; Wed, 02 Dec 2026 12:53:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xYoW7-0001Tm-0W for qemu-devel@nongnu.org; Wed, 02 Dec 2026 12:53:21 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xYoW3-0005d6-RO for qemu-devel@nongnu.org; Wed, 02 Dec 2026 12:53:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1796233995; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JHmOXE6JuQQFAEj8d9dM1LyxwB+fbfxwMd7jb6VmMaA=; b=UMqjylBiwtm0CJTNWVXpV7hKN3Gu+PUTilp8v7Hr08kizZsBPqlw3rsgiYkB3xX/bxM8Zs ZNg3rqdrhbfOGY99gnZDlJXI4LwCnTi0dJ3X+P9iAOIaJDKRgTgklYfEe/ugcOi/qj+ny9 fIGTRztbHP2CAOkq6ht0IQnMo1qBTHw= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-92-79TkhfnvPyG5IVu0Vuv0VA-1; Wed, 2 Dec 2026 17:53:09 +0000 X-MC-Unique: 79TkhfnvPyG5IVu0Vuv0VA-1 X-Mimecast-MFC-AGG-ID: 79TkhfnvPyG5IVu0Vuv0VA_1796233988 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-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 9CFEF1865552; Wed, 2 Dec 2026 17:53:07 +0000 (UTC) Received: from redhat.com (headnet04.pony-001.prod.iad2.dc.redhat.com [10.2.32.116]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 569111801A6D; Wed, 2 Dec 2026 17:53:05 +0000 (UTC) Date: Wed, 2 Dec 2026 17:53:02 +0000 From: Daniel =?utf-8?B?UC4gQmVycmFuZ8Op?= To: Christian Schoenebeck Cc: qemu-devel@nongnu.org, Peter Maydell , Richard Henderson , Pierrick Bouvier , Paolo Bonzini , Greg Kurz Subject: Re: [RFC] docs/code-provenance: Use of AI-generated content Message-ID: References: <3792703.R56niFO833@weasel> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3792703.R56niFO833@weasel> User-Agent: Mutt/2.4.3 (2026-10-09) X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 Received-SPF: pass client-ip=170.10.133.124; envelope-from=berrange@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Daniel =?utf-8?B?UC4gQmVycmFuZ8Op?= Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org X-Spam-Status: No, score=-7.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Wed, Dec 02, 2026 at 04:48:16PM +0100, Christian Schoenebeck wrote: > Hi, > > may I ask for an update on how to handle A.I. generated content with QEMU? > > Because right now I am honestly puzzled how to proceed - like at all - given > the mass of A.I. generated reports alone and looking on what QEMU's code > provenance currently mandates [docs/devel/code-provenance.rst], quote: > > `Current QEMU project policy is to DECLINE any contributions which are > believed to include or *derive* from AI generated content.´ > > Then goes on with contradicting itself by: > > `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.´ > > And it ends with this inevitable burden: > > `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.´ > > 1. So right now, QEMU submaintainers are told to throw away AI generated code > contributions, and re-write them by hand. The problem: that is still *derived* > from AI generated content. There is no requirement/expectation that maintainers re-write stuff by hand. If someone sends a AI generated patch, it should just be rejected. I get that if it was fixing a valid bug, you might none the less want to have a patch, but that's a separate matter, once the initial AI patch is rejected. > 2. The conduct is not even clear on what "content" means. I think the > intention was "code", but the word "content" legally includes bug reports, > analysis/debugging results or any AI generated data in general actually. "content" was intended to mean anything that gets committed to qemu.git, as the contents of git are what QEMU distributes and end users deploy and what the licenses apply to. > 3. And at the same time, submaintainers are asked to take personal > *responsibility* for accepting parts being *derived* from AI sources via their > "Signed-off-by" label. Yes, adding your own S-o-B line to any patch indicates that you have blessed it in accordance with the DCO. If you have doubts about a patch, then don't accept it, or ask the contributor to clarify. > What I am *rather* worried about, is that current QEMU policies make sub- > maintainers aggressively liable for violating QEMU's own policy. > > Because as a QEMU submaintainer, when I look at these project policies, I have > no other chance than either discarding any AI generated report immediately > (without even looking at it), or proceed the way it's currently habit, and > knowingly violating QEMU's policy and making myself liable. Merely looking at a patch doesn't make you liable. If there is no indication that the patch was done with AI, and you accept it in good faith based on what you know at the time, then you're not liable. The original contributor who added their SoB to an AI patch is liable as they're the party who signed off the contribution without complying with the policy. > Keep in mind: even if you fixed the conduct wording of what was actually > meant; all AI assisted/generated reports nowadays include code, and you have > to look at this code to a) understand the issue and b) identify false > positives. Often that code is even directly within the report, not just as an > attachment. And by just looking at that code, any code you'll come up with, > will be "derived" from that AI generated code. Merely looking at code does not taint you. That is an extreme view commonly promoted by proprietary software companies to constrict/ control your ability to work. If you're writing a patch from first principals, without directly referring to the other invalid patch, I see no problem even if you happen to have read the original patch previously. With some fixes there may be only a single way a fix can be done, such that your new patch comes out essentially identical. That is only likely to be the case for code that is so trivial that it is likely not eligible for copyright protection making the whole concern irrelevant. With regards, Daniel -- |: https://berrange.com ~~ https://hachyderm.io/@berrange :| |: https://libvirt.org ~~ https://entangle-photo.org :| |: https://pixelfed.art/berrange ~~ https://fstop138.berrange.com :|