Skip to content

Commit d4e12ed

Browse files
committed
docs: add AI policy for contributions
Establishes guidelines for AI usage in contributions, adapted from Astral's policy under MIT license.
1 parent 0643450 commit d4e12ed

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/AI_POLICY.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<!--
2+
AI Policy.
3+
4+
Copied from
5+
https://github.com/astral-sh/.github/blob/main/AI_POLICY.md
6+
undert MIT license.
7+
8+
All the credit goes to the Astral team.
9+
-->
10+
11+
We support using AI (i.e., LLMs) as tools for coding. However, you remain
12+
responsible for any code you publish and we are responsible for any code we
13+
merge and release. We hold a high bar for all contributions to our projects.
14+
15+
**AI should not be used to generate comments when communicating with
16+
maintainers**. We expect comments on our projects to be written by humans. We
17+
may hide any comments that we believe are AI generated.
18+
19+
If you are opening an issue, we expect you to describe the problem in your own
20+
words.
21+
22+
If you are opening a pull request, we expect you to be able to explain the
23+
proposed changes in your own words. This includes the pull request body and
24+
responses to questions. **Do not copy responses from the AI when replying to
25+
questions from maintainers.**
26+
27+
Due to the foundational nature of our projects, we require a human in the loop
28+
who understands the work produced by AI. **We do not allow autonomous agents to
29+
be used for contributing to our projects**. We will close any pull requests that
30+
we believe were created autonomously.
31+
32+
If you wish to include context from an interaction with AI in your comments, it
33+
must be in a quote block (e.g., using `>`) and disclosed as such. It must be
34+
accompanied by human commentary explaining the relevance and implications of the
35+
context. Do not share long snippets.
36+
37+
We understand that AI is useful when communicating as a non-native English
38+
speaker. If you are using AI to edit your comments for this purpose, please take
39+
the time to ensure it reflects your own voice and ideas. If using AI for
40+
translation, we recommend writing in your native language and including the AI
41+
translation in a quote block.
42+
43+
P.S. Respectfully copied from [Astral](https://github.com/astral-sh/.github/blob/main/AI_POLICY.md) team under MIT license.

0 commit comments

Comments
 (0)