Skip to content

Commit 592bfbc

Browse files
committed
Add AI policy
1 parent fd887b7 commit 592bfbc

File tree

2 files changed

+82
-4
lines changed

2 files changed

+82
-4
lines changed

.github/AI_POLICY.md

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# Generative AI / LLM Policy
2+
3+
We appreciate that we can't realistically police how you author your pull requests, which includes whether you employ large-language model (LLM)-based development tools.
4+
So, we don't.
5+
6+
However, due to both legal and human reasons, we have to establish boundaries.
7+
8+
> [!CAUTION]
9+
> **TL;DR:**
10+
> - We take the responsibility for this project very seriously and we expect you to take your responsibility for your contributions seriously, too.
11+
> This used to be a given, but it changed now that a pull request is just one prompt away.
12+
>
13+
> - Every contribution has to be backed by a human who unequivocally owns the copyright for all changes.
14+
> No LLM bots in `Co-authored-by:`s.
15+
>
16+
> - DoS-by-slop leads to a permanent ban.
17+
>
18+
> - Absolutely **no** unsupervised agentic tools like OpenClaw.
19+
>
20+
> ---
21+
>
22+
> By submitting a pull request, you certify that:
23+
>
24+
> - You are the author of the contribution or have the legal right to submit it.
25+
> - You either hold the copyright to the changes or have explicit legal authorization to contribute them under this project's license.
26+
> - You understand the code.
27+
> - You accept full responsibility for it.
28+
29+
30+
## Legal
31+
32+
There is ongoing legal uncertainty regarding the copyright status of LLM-generated works and their provenance.
33+
Since we do not have a formal [Contributor License Agreement](https://en.wikipedia.org/wiki/Contributor_license_agreement) (CLA), you retain your copyright to your changes to this project.
34+
35+
Therefore, allowing contributions by LLMs has unpredictable consequences for the copyright status of this project – even when leaving aside possible copyright violations due to plagiarism.
36+
37+
38+
## Human
39+
40+
As the makers of software that is used by millions of people worldwide and with a reputation for high-quality maintenance, we take our responsibility to our users very seriously.
41+
No matter what LLM vendors or boosters on LinkedIn tell you, we have to manually review every change before merging, because it's **our responsibility** to keep the project stable.
42+
43+
Please understand that by opening low-quality pull requests you're not helping anyone.
44+
Worse, you're [poisoning the open source ecosystem](https://lwn.net/SubscriberLink/1058266/cfe99725c2855d66/) that was precarious even before the arrival of LLM tools.
45+
Having to wade through plausible-looking-but-low-quality pull requests and trying to determine which ones are legit is extremely demoralizing and has already burned out many good maintainers.
46+
47+
Put bluntly, we have no time or interest to become part of your vibe coding loop where you drop LLM slop at our door, we spend time and energy to review it, and you just feed it back into the LLM for another iteration.
48+
49+
This dynamic is especially pernicious because it poisons the well for mentoring new contributors which we are committed to.
50+
51+
52+
## Summary
53+
54+
In practice, this means:
55+
56+
- Pull requests that have an LLM product listed as co-author can't be merged and will be closed without further discussion.
57+
We cannot risk the copyright status of this project.
58+
59+
If you used LLM tools during development, you may still submit – but you must remove any LLM co-author tags and take full ownership of every line.
60+
61+
- By submitting a pull request, **you** take full **technical and legal** responsibility for the contents of the pull request and promise that **you** hold the copyright for the changes submitted.
62+
63+
"An LLM wrote it" is **not** an acceptable response to questions or critique.
64+
**If you cannot explain and defend the changes you submit, do not submit them** and open a high-quality bug report/feature request instead.
65+
66+
- Accounts that exercise bot-like behavior – like automated mass pull requests – will be permanently banned, whether they belong to a human or not.
67+
68+
- Do **not** post LLM-generated review comments unless you agree with them.
69+
Do **not** post summaries unless you take responsibility for 100% of their content.
70+
Remember that *all* LLM output *looks* **plausible**.
71+
When using these tools, it's **your** responsibility to ensure that it's also **correct**.

CONTRIBUTING.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
Contributions are welcome, and they are greatly appreciated!
44
Every little bit helps, and credit will always be given.
55

6+
> [!IMPORTANT]
7+
> If you use LLM / "AI" tools for your contributions, please read and follow our [_Generative AI / LLM Policy_][llm].
8+
69
You can contribute in many ways:
710

811
## Types of Contributions
@@ -99,14 +102,16 @@ $ git push origin name-of-your-bugfix-or-feature
99102

100103
Before you submit a pull request, check that it meets these guidelines:
101104

102-
1. The pull request should include tests.
103-
2. If the pull request adds functionality, the docs should be updated. Put
105+
1. **Only contribute code that you fully understand.**
106+
See also our [AI policy][llm].
107+
2. The pull request should include tests.
108+
3. If the pull request adds functionality, the docs should be updated. Put
104109
your new functionality into a function with a docstring, and add the
105110
feature to the list in README.rst.
106-
3. The pull request should work for all supported Python versions. Check
111+
4. The pull request should work for all supported Python versions. Check
107112
[https://github.com/python-attrs/cattrs/actions](https://github.com/python-attrs/cattrs/actions)
108113
and make sure that the tests pass for all supported Python versions.
109-
4. Don't forget to add a line to HISTORY.md.
114+
5. Don't forget to add a line to HISTORY.md.
110115

111116
## Tips
112117

@@ -115,3 +120,5 @@ To run a subset of tests:
115120
```shell
116121
$ just test tests/test_unstructure.py
117122
```
123+
124+
[llm]: AI_POLICY.md

0 commit comments

Comments
 (0)