Repository navigation
Conversation
The Co-authored-by should be used to give attribution to a real person, not to ai tools.
Documentation build overview
|
| 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]``. |
There was a problem hiding this comment.
I don't think we need to add the bots note? They are added by processes contributors don’t' control.
There was a problem hiding this comment.
I thought it was worth being explicit, or at least document, that there are other non-human tools that could use this trailer.
There was a problem hiding this comment.
I worry "tools installed by the core team" is hard to pin down and reads as a possible loophole. For example, I have claude installed, but we don't want its trailer. Since the rule is about trailers contributors add, the bot ones don't need an exception.
There was a problem hiding this comment.
the claude app you installed is to your own GitHub account, and not to the org?
There was a problem hiding this comment.
the claude app you installed is to your own GitHub account, and not to the org?
Yes, but the current sentence doesn't say that, so I'm a little worried about its vagueness.
There was a problem hiding this comment.
Ok I think my intention here is to refer to the org-installed app. I can clarify that.
There was a problem hiding this comment.
Wording updated to be explicitly about apps installed on the org.
| Many AI coding tools add this trailer by default, so check your tool's | ||
| settings and your commits. |
There was a problem hiding this comment.
why? we use squash merge. what appears in branch commit messages in PRs themselves is irrelevant.
There was a problem hiding this comment.
I'm ok with removing the sentence "Many AI coding tools add this trailer by default, so check your tool's
settings and your commits." The rest of the paragraph already matches what's in python/cpython#162564 (agents.md file), which was approved by more than one core devs.
| 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. |
There was a problem hiding this comment.
I think this makes PR code reviews worse.
It is useful to be able to understand which commits had more AI involvement than others.
The Co-authored-by should be used to give attribution to a real person, not to ai tools. Adding this to the CPython AGENTS.md file as well as to the DevGuide AI Tools section.
Related to: #1950