All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Daniel P. Berrangé" <berrange@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [PATCH] checkpatch: reject trailers that credit an AI agent
Date: Thu, 3 Sep 2026 11:14:14 +0100	[thread overview]
Message-ID: <aplIdioRiKdK5gqg@redhat.com> (raw)
In-Reply-To: <20260903100441.781277-1-pbonzini@redhat.com>

On Thu, Sep 03, 2026 at 12:04:40PM +0200, Paolo Bonzini wrote:
> The QEMU community has broad consent to not accept assisted-by and similar
> trailers, and much less fake co-authored-bys, independent of any AI policy.
> Implement this in checkpatch.pl already, so that there is another way for
> contributors to discover the AI policy.
> 
> Suggested-by: Daniel P. Berrangé <berrange@redhat.com>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
>  scripts/checkpatch.pl | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
> 
> diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
> index 03f35e75012..90cb40dfe1f 100755
> --- a/scripts/checkpatch.pl
> +++ b/scripts/checkpatch.pl
> @@ -1811,6 +1811,18 @@ sub process {
>  			}
>  		}
>  
> +# Reject trailers that credit an AI agent.
> +		if ($realfile =~ /^$/ &&
> +		    ($line =~ /🤖/ ||

Oh wow, is that something people actually do :-)

> +		     $line =~ /^\s*(?:Assisted|Generated)-by:/i ||
> +		     ($line =~ /^\s*Co-authored-by:\s*(.*?)\s*$/i &&
> +		      $1 =~ /\bcopilot\b | \bchatgpt\b | \bcodex\b | \bcursor\b | \[bot\] |
> +			     \bllama\b | \bgemini\b.*(?:pro|flash|ultra|google\.com) |
> +			     \bclaude\b.*(?:opus|sonnet|fable|haiku|anthropic\.com)/xi))) {

I presume the qualifiers after gemini/claude are a mitigation against
accidentally matching a real person's name ?

> +			ERROR("QEMU does not allow using AI for contributions, " .
> +				"see docs/devel/code-provenance.rst\n" . $herecurr);
> +		}

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>


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 :|



  reply	other threads:[~2026-09-03 10:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-03 10:04 [PATCH] checkpatch: reject trailers that credit an AI agent Paolo Bonzini
2026-09-03 10:14 ` Daniel P. Berrangé [this message]
2026-09-03 10:19   ` Paolo Bonzini
2026-09-03 10:25     ` Daniel P. Berrangé
2026-09-03 10:29       ` Paolo Bonzini
2026-09-03 11:57 ` Marc-André Lureau
2026-09-03 12:15 ` Philippe Mathieu-Daudé
2026-09-03 12:35   ` Marc-André Lureau
2026-09-03 13:30   ` Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aplIdioRiKdK5gqg@redhat.com \
    --to=berrange@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.