Skip to content

Update guidelines on using GenAI#1778

Open
Mariatta wants to merge 6 commits intopython:mainfrom
Mariatta:update-ai-contrib-guide
Open

Update guidelines on using GenAI#1778
Mariatta wants to merge 6 commits intopython:mainfrom
Mariatta:update-ai-contrib-guide

Conversation

@Mariatta
Copy link
Copy Markdown
Member

@Mariatta Mariatta commented Apr 8, 2026

No description provided.

@read-the-docs-community
Copy link
Copy Markdown

read-the-docs-community bot commented Apr 8, 2026

Documentation build overview

📚 CPython devguide | 🛠️ Build #32177367 | 📁 Comparing ff94cd6 against latest (d73c383)

  🔍 Preview build  

Show files changed (4 files in total): 📝 4 modified | ➕ 0 added | ➖ 0 deleted
File Status
index.html 📝 modified
getting-started/index.html 📝 modified
versions/index.html 📝 modified
getting-started/generative-ai/index.html 📝 modified

Copy link
Copy Markdown
Member

@JacobCoffee JacobCoffee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: Donghee Na <donghee.na@python.org>
Co-authored-by: devdanzin <74280297+devdanzin@users.noreply.github.com>
@Mariatta Mariatta force-pushed the update-ai-contrib-guide branch from d2de5dc to 726ec3c Compare April 9, 2026 00:04
Copy link
Copy Markdown
Member

@savannahostrowski savannahostrowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for doing this, @Mariatta!

My comments are mainly about extending the guidance to cover issues as well. While AI tooling can be great at surfacing real bugs and security issues, I think it's still important that those filing issues understand the problem themselves so we can keep discussions focused and productive.

If a contributor repeatedly opens unproductive issues or PRs, they may be blocked.

Sometimes AI assisted tools make failing unit tests pass by altering or bypassing the tests rather than addressing the
underlying problem in the code. Such changes do not represent a real fix and are not acceptable.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this just GitHub rendering but the line break here looks a little funky?

Considerations for success
==========================

Authors must review the work done by AI tooling in detail to ensure it actually makes sense before proposing it as a PR.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Authors must review the work done by AI tooling in detail to ensure it actually makes sense before proposing it as a PR.
Authors must review the work done by AI tooling in detail to ensure it actually makes sense before proposing it as a PR or filing it as an issue.


Authors must review the work done by AI tooling in detail to ensure it actually makes sense before proposing it as a PR.

We expect PR authors to be able to explain their proposed changes in their own words.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
We expect PR authors to be able to explain their proposed changes in their own words.
We expect PR authors and those filing issues to be able to explain their proposed changes in their own words.

Comment on lines +19 to +20
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.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.
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.

Looks like some funky line breaking?

the responsibility of the contributor. We value good code, concise accurate documentation, and avoiding unneeded code
churn. Discretion, good judgment, and critical thinking are the foundation of all good contributions, regardless of the
tools used in their creation.
Generative AI tools are evolving rapidly, and their work can be helpful. As with using any tool, the resulting
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It wasn't done before in this file for some reason, but could we please wrap lines?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants