From 86b4af570379ae7be24cd653a86e364a03665d3a Mon Sep 17 00:00:00 2001 From: David Zaslavsky Date: Tue, 24 Nov 2026 01:40:55 -0800 Subject: [PATCH] doc: Change the LLM policy to require attribution MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The pytest-localserver plugin just adopted an LLM policy that requires attribution of LLM-generated content. The discussion that led to that policy made us think that requiring attribution for LLM content in pytest as a whole would also be a good idea. This commit changes the LLM policy for pytest to reflect that. Along with that, it also allows "Assisted-by" trailers as an alternative to the usual "Co-authored-by". This is inspired in part by older versions of the Linux kernel development guidelines. Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) --- CONTRIBUTING.rst | 10 ++++++---- changelog/15446.doc.rst | 1 + 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 changelog/15446.doc.rst diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 92c40c208dd..a9c2e7ddb52 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -232,10 +232,12 @@ coaxing a bot — we close and ban with prejudice. If you are a real person who to trip a false positive, just talk to us; a human who understands their change is always welcome, and we would far rather talk to you than to a script. -**Credit AI tools via attribution.** If AI agents helped produce your code or -commits, consider adding ``Co-authored-by`` trailers to your commit messages to -credit them. This is not required, but helps reviewers set expectations and is -appreciated. +**Credit AI tools via attribution.** If AI agents helped produce your code, +commits, PR descriptions, comments, or other contributions, make sure to credit +the tools you used. That helps reviewers set expectations and adapt their reviews +to provide the kinds of feedback most useful for either manually written or +LLM-generated content. In commit messages, use either a ``Co-authored-by`` or +``Assisted-by:`` trailer which identifies the tool and model used. Context diff --git a/changelog/15446.doc.rst b/changelog/15446.doc.rst new file mode 100644 index 00000000000..0fe6793e263 --- /dev/null +++ b/changelog/15446.doc.rst @@ -0,0 +1 @@ +Require attribution of LLM-generated content with an Assisted-by commit trailer.