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.
Paolo
+ ERROR("QEMU does not allow using AI for contributions,
" .
+ "see docs/devel/code-provenance.rst\n" .
$herecurr);
+ }
Reviewed-by: Daniel P. Berrangé <[email protected]>
With regards,
Daniel