From: Paolo Bonzini <pbonzini@redhat.com>
To: qemu-devel@nongnu.org
Cc: "Daniel P. Berrangé" <berrange@redhat.com>
Subject: [PATCH] checkpatch: reject trailers that credit an AI agent
Date: Thu, 3 Sep 2026 12:04:40 +0200 [thread overview]
Message-ID: <20260903100441.781277-1-pbonzini@redhat.com> (raw)
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 =~ /🤖/ ||
+ $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))) {
+ ERROR("QEMU does not allow using AI for contributions, " .
+ "see docs/devel/code-provenance.rst\n" . $herecurr);
+ }
+
# Check SPDX-License-Identifier references a permitted license
if (($rawline =~ m,SPDX-License-Identifier: (.*?)(\*/)?\s*$,) &&
$rawline !~ /^-/) {
--
2.55.0
next reply other threads:[~2026-09-03 10:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-03 10:04 Paolo Bonzini [this message]
2026-09-03 10:14 ` [PATCH] checkpatch: reject trailers that credit an AI agent Daniel P. Berrangé
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=20260903100441.781277-1-pbonzini@redhat.com \
--to=pbonzini@redhat.com \
--cc=berrange@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.