diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 000000000..b6f9877b1 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,25 @@ +### PR summary and motivation + + + +#### AI usage disclosure + diff --git a/AI_POLICY.md b/AI_POLICY.md new file mode 100644 index 000000000..5290e4a8f --- /dev/null +++ b/AI_POLICY.md @@ -0,0 +1,21 @@ +# AI Policy + +AI-assisted contributions are accepted only if: + +- The PR follows the same rules as a non-AI PR. +- It clearly states that it is AI-assisted and names the tool used. +- If you are a new contributor, your PR links to an accepted issue. +- AI-generated descriptions/comments are clearly marked and only used when + required. +- A human drove the tool, reviewed every line, and can explain the change. +- It was not opened by a fully autonomous agent. +- You respond to review comments yourself. + +This applies to issues and comments as well as pull requests. Using AI for +translation or grammar help is fine. AI output may infringe copyright; it is +your responsibility to make sure it does not. + +Unsolicited, undisclosed, or low-effort AI PRs will be closed. + +Only humans can be named as co-authors, and AI can *never* sign off on a +commit. I.e., don't add `Co-authored-by` or `Signed-Off-By` for an AI tool. diff --git a/source/contribute.rst b/source/contribute.rst index 112643d98..06af7615a 100644 --- a/source/contribute.rst +++ b/source/contribute.rst @@ -28,6 +28,12 @@ By contributing to the |PyPUG|, you're expected to follow the PSF's .. __: https://github.com/pypa/.github/blob/main/CODE_OF_CONDUCT.md +You are responsible for all code and documentation you submit, including +AI-generated content. Review it yourself and respond to review comments in your +own words. If you use AI coding tools, please read our +`AI policy `_. + + Documentation types ===================