Skip to content

Commit 3192da8

Browse files
committed
Add AI policy
1 parent 65ceffd commit 3192da8

File tree

3 files changed

+80
-2
lines changed

3 files changed

+80
-2
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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# How To Contribute
22

33
> [!IMPORTANT]
4-
> We do not care how you write your code, but you're taking full responsibility for it by submitting a pull request.
5-
> Do not waste our time with LLM/"AI" slop that you don't understand yourself.
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
@@ -21,6 +23,9 @@ It's people like *you* who make this project such a great tool for everyone.
2123
- No contribution is too small!
2224
Please submit as many fixes for typos and grammar bloopers as you can!
2325

26+
- **Only contribute code that you fully understand.**
27+
See also our [AI policy][llm].
28+
2429
- Try to limit each pull request to *one* change only (except for typos -- please group those).
2530

2631
- Since we squash on merge, it's up to you how you handle updates to the `main` branch.
@@ -241,3 +246,4 @@ Please report any harm to [Hynek Schlawack](https://hynek.me/about/) in any way
241246

242247

243248
[semantic newlines]: https://rhodesmill.org/brandon/2012/one-sentence-per-line/
249+
[llm]: AI_POLICY.md

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<a href="https://www.structlog.org/en/stable/?badge=stable"><img src="https://img.shields.io/badge/Docs-Read%20The%20Docs-black" alt="Documentation" /></a>
1111
<a href="https://github.com/hynek/structlog/blob/main/COPYRIGHT"><img src="https://img.shields.io/badge/license-MIT%2FApache--2.0-C06524" alt="License: MIT / Apache 2.0" /></a>
1212
<a href="https://bestpractices.coreinfrastructure.org/projects/6560"><img src="https://bestpractices.coreinfrastructure.org/projects/6560/badge"></a>
13+
<a href="https://github.com/hynek/structlog/blob/main/.github/AI_POLICY.md"><img src="https://img.shields.io/badge/no-slop-purple" alt="No AI slop inside."></a>
1314
<a href="https://doi.org/10.5281/zenodo.7353739"><img src="https://zenodo.org/badge/DOI/10.5281/zenodo.7353739.svg" alt="DOI"></a>
1415
<a href="https://pypi.org/project/structlog/"><img src="https://img.shields.io/pypi/pyversions/structlog.svg" alt="Supported Python versions of the current PyPI release." /></a>
1516
<a href="https://pepy.tech/project/structlog"><img src="https://static.pepy.tech/personalized-badge/structlog?period=month&units=international_system&left_color=grey&right_color=blue&left_text=Downloads%20/%20Month" alt="Downloads per month" /></a>

0 commit comments

Comments
 (0)