Skip to content

Commit 97432db

Browse files
authored
Add explicit AI policy (#1518)
* Add explicit AI policy * Phrasing * Don't mix smart and dumb interpunction * Keep the crabs out
1 parent fb9ea67 commit 97432db

File tree

2 files changed

+79
-5
lines changed

2 files changed

+79
-5
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**.

.github/CONTRIBUTING.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# How To Contribute
22

33
> [!IMPORTANT]
4-
> This document is mainly to help you to get started by codifying tribal knowledge and expectations and make it more accessible to everyone.
5-
> But don't be afraid to open half-finished PRs and ask questions if something is unclear!
4+
> - This document is mainly to help you to get started by codifying tribal knowledge and expectations and make it more accessible to everyone.
5+
> But don't be afraid to open half-finished PRs and ask questions if something is unclear!
6+
>
7+
> - If you use LLM / "AI" tools for your contributions, please read and follow our [_Generative AI / LLM Policy_][llm].
68
79

810
## Support
@@ -18,12 +20,12 @@ The official tag is `python-attrs` and helping out in support frees us up to imp
1820
First off, thank you for considering to contribute!
1921
It's people like *you* who make this project such a great tool for everyone.
2022

23+
- **Only contribute code that you fully understand.**
24+
See also our [AI policy][llm].
25+
2126
- No contribution is too small!
2227
Please submit as many fixes for typos and grammar bloopers as you can!
2328

24-
- We do not care how you write your code, but you're taking full responsibility for it by submitting a pull request.
25-
Do not waste our time with LLM/"AI" slop that you don't understand yourself.
26-
2729
- Try to limit each pull request to *one* change only.
2830

2931
- Since we squash on merge, it's up to you how you handle updates to the `main` branch.
@@ -272,3 +274,4 @@ Please report any harm to Hynek Schlawack in any way you find appropriate.
272274

273275
[semantic newlines]: https://rhodesmill.org/brandon/2012/one-sentence-per-line/
274276
[install *uv*]: https://docs.astral.sh/uv/getting-started/installation/
277+
[llm]: AI_POLICY.md

0 commit comments

Comments
 (0)