From be8639894c7f3e03c8de2a4bc844eba3a9ffdd70 Mon Sep 17 00:00:00 2001 From: mariatta Date: Tue, 24 Nov 2026 09:24:14 -0700 Subject: [PATCH 1/2] 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. --- AGENTS.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index ce4489146a9ee92..7ec4d1aafe965d8 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -27,3 +27,11 @@ gh search issues --repo python/cpython "" gh search issues --repo python/cpython "" gh issue list --repo python/cpython --state all --label "" --search "" ``` + +## Commit messages + +Do not add a `Co-authored-by` trailer, or any other attribution trailer, that +names an AI tool or agent. `Co-authored-by` credits human contributors. The +person submitting the pull request is responsible for its content. + +Disclosure of the use of AI tools belongs in the pull request description. From 240fa74150ccd974d7db2be2c7ae3c8e3f41f7e7 Mon Sep 17 00:00:00 2001 From: mariatta Date: Tue, 24 Nov 2026 09:32:51 -0700 Subject: [PATCH 2/2] Add exception to CPython's bots. --- AGENTS.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 7ec4d1aafe965d8..5d38a061eb57b62 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -31,7 +31,8 @@ gh issue list --repo python/cpython --state all --label "" --search ## Commit messages Do not add a `Co-authored-by` trailer, or any other attribution trailer, that -names an AI tool or agent. `Co-authored-by` credits human contributors. The -person submitting the pull request is responsible for its content. +names an AI tool or agent. `Co-authored-by` should be reserved for human +contributors. -Disclosure of the use of AI tools belongs in the pull request description. +If you disclose the use of AI tools, do it in the pull request description, +not in a commit trailer.