Skip to content

Commit f03c2b3

Browse files
committed
Add an AI Policy that allows usage with disclosure, requires human
This is the "moderate" policy from https://learn.scientific-python.org/development/guides/ai/#ai-policy-md, as suggested on gh-2183
1 parent 5b31c28 commit f03c2b3

2 files changed

Lines changed: 33 additions & 0 deletions

File tree

‎AI_POLICY.rst‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
AI Policy
2+
=========
3+
4+
AI-assisted contributions are accepted only if:
5+
6+
- The PR follows the same rules as a non-AI PR.
7+
- It clearly states that it is AI-assisted and names the tool used.
8+
- It links to an issue or discussion where a maintainer agreed to the
9+
proposed change beforehand.
10+
- AI-generated descriptions/comments are clearly marked and only used when
11+
required.
12+
- A human drove the tool, reviewed every line, and can explain the change.
13+
- It was not opened by a fully autonomous agent.
14+
- You respond to review comments yourself.
15+
16+
This applies to issues and comments as well as pull requests. Using AI for
17+
translation or grammar help is fine. AI output may infringe copyright; it is
18+
your responsibility to make sure it does not.
19+
20+
Unsolicited, undisclosed, or low-effort AI PRs will be closed.
21+
22+
Only humans can be named as co-authors, and AI can *never* sign off on a
23+
commit. The Linux kernel trailer should be used to credit AI assistance, like
24+
this:
25+
26+
.. code-block:: text
27+
28+
Assisted-by: <harness>:<model>

‎source/contribute.rst‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ By contributing to the |PyPUG|, you're expected to follow the PSF's
2828
.. __: https://github.com/pypa/.github/blob/main/CODE_OF_CONDUCT.md
2929

3030

31+
.. _ai-policy:
32+
33+
.. include:: ../AI_POLICY.rst
34+
35+
3136
Documentation types
3237
===================
3338

0 commit comments

Comments
 (0)