From 04e6817d105b7cca5d526853e87880cb71bdb98f Mon Sep 17 00:00:00 2001 From: mariatta Date: Tue, 24 Nov 2026 09:25:40 -0700 Subject: [PATCH 1/3] Add instructions for contributors and their AI coding agent. The Co-authored-by should be used to give attribution to a real person, not to ai tools. --- getting-started/ai-tools.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/getting-started/ai-tools.rst b/getting-started/ai-tools.rst index 56ba24733..097298fcd 100644 --- a/getting-started/ai-tools.rst +++ b/getting-started/ai-tools.rst @@ -25,6 +25,12 @@ Disclosure of the use of AI tools in the PR description is appreciated, while not required. Be prepared to explain how the tool was used and what changes it made. +Do not add a ``Co-authored-by`` trailer, or any other attribution trailer, +that names an AI tool to commit messages. ``Co-authored-by`` credits the +people who contributed to a change, and the person submitting the PR is +responsible for its content. Many AI coding tools add this trailer by +default, so check your tool's settings and your commits before opening a PR. + Whether you are using AI tools or not, keep the following principles in mind for the quality of your contribution: From a06be8e52541023f7f5ffdbe4fbfc6188b02f67a Mon Sep 17 00:00:00 2001 From: mariatta Date: Tue, 24 Nov 2026 09:32:54 -0700 Subject: [PATCH 2/3] Add exception to CPython's bots. --- getting-started/ai-tools.rst | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/getting-started/ai-tools.rst b/getting-started/ai-tools.rst index 097298fcd..b36240a94 100644 --- a/getting-started/ai-tools.rst +++ b/getting-started/ai-tools.rst @@ -25,11 +25,13 @@ Disclosure of the use of AI tools in the PR description is appreciated, while not required. Be prepared to explain how the tool was used and what changes it made. -Do not add a ``Co-authored-by`` trailer, or any other attribution trailer, -that names an AI tool to commit messages. ``Co-authored-by`` credits the -people who contributed to a change, and the person submitting the PR is -responsible for its content. Many AI coding tools add this trailer by -default, so check your tool's settings and your commits before opening a PR. +In commit messages, do not add a ``Co-authored-by`` trailer, or any other +attribution trailer, that names an AI tool. ``Co-authored-by`` should be +reserved for human contributors. Exceptions are for the bots and tools +installed by the core team, such as ``blurb-it[bot]`` and ``dependabot[bot]``. +If you disclose the use of AI tools, do it in the PR description instead. +Many AI coding tools add this trailer by default, so check your tool's +settings and your commits. Whether you are using AI tools or not, keep the following principles in mind for the quality of your contribution: From 89e4f50da6812b27d03638920e3aa5845835f615 Mon Sep 17 00:00:00 2001 From: mariatta Date: Tue, 24 Nov 2026 10:30:58 -0700 Subject: [PATCH 3/3] Clarify that exceptions to bots and apps refer to the org-installed apps. --- getting-started/ai-tools.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/getting-started/ai-tools.rst b/getting-started/ai-tools.rst index b36240a94..3585e3226 100644 --- a/getting-started/ai-tools.rst +++ b/getting-started/ai-tools.rst @@ -27,8 +27,9 @@ changes it made. In commit messages, do not add a ``Co-authored-by`` trailer, or any other attribution trailer, that names an AI tool. ``Co-authored-by`` should be -reserved for human contributors. Exceptions are for the bots and tools -installed by the core team, such as ``blurb-it[bot]`` and ``dependabot[bot]``. +reserved for human contributors. Exceptions are for the bots and apps that +the core team has installed on the ``python`` GitHub organization, such as +``blurb-it[bot]`` and ``dependabot[bot]``. If you disclose the use of AI tools, do it in the PR description instead. Many AI coding tools add this trailer by default, so check your tool's settings and your commits.