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:25:54 +0100	[thread overview]
Message-ID: <aplLMqiQrOP3yvfY@redhat.com> (raw)
In-Reply-To: <40f3f1da-ef32-4223-ada7-642f6798eb19@redhat.com>

On Thu, Sep 03, 2026 at 12:19:11PM +0200, Paolo Bonzini wrote:
> On 9/3/26 12:14, Daniel P. Berrangé wrote:
> > > +# Reject trailers that credit an AI agent.
> > > +		if ($realfile =~ /^$/ &&
> > > +		    ($line =~ /🤖/ ||
> > 
> > Oh wow, is that something people actually do :-)
> 
> IIRC it's more in pull requests but it was fun to add.
> 
> > > +		     $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 ?
> 
> For Claude yes, for Gemini I guess it's not really needed.  BTW I have no
> idea which coding harnesses use Co-authored-by specifically so this is
> really just a guess.

I expect Co-authored-by is often added by the contributor themselves


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:26 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é
2026-09-03 10:19   ` Paolo Bonzini
2026-09-03 10:25     ` Daniel P. Berrangé [this message]
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=aplLMqiQrOP3yvfY@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.