From d37dafab909b8e753e15cc7d26ca0af6f86def5d Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Fri, 27 Nov 2026 09:40:05 +0100 Subject: [PATCH] Lock down contributions --- .github/AI_POLICY.md | 11 +++- .github/CONTRIBUTING.md | 16 ++---- .github/ISSUE_TEMPLATE/1-bug.yml | 86 ++++++++++++++++++++++++++++ .github/ISSUE_TEMPLATE/2-feature.yml | 57 ++++++++++++++++++ .github/ISSUE_TEMPLATE/3-docs.yml | 45 +++++++++++++++ .github/ISSUE_TEMPLATE/config.yml | 9 +++ 6 files changed, 212 insertions(+), 12 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/1-bug.yml create mode 100644 .github/ISSUE_TEMPLATE/2-feature.yml create mode 100644 .github/ISSUE_TEMPLATE/3-docs.yml create mode 100644 .github/ISSUE_TEMPLATE/config.yml diff --git a/.github/AI_POLICY.md b/.github/AI_POLICY.md index f514cc396..5a5386bb9 100644 --- a/.github/AI_POLICY.md +++ b/.github/AI_POLICY.md @@ -10,6 +10,10 @@ However, due to both legal and human reasons, we have to establish boundaries. > - We take the responsibility for this project very seriously and we expect you to take your responsibility for your contributions seriously, too. > This used to be a given, but it changed now that a pull request is just one prompt away. > +> - Do not poison human interactions with LLM-generated text. +> Write it yourself, or don't post it at all. +> Broken English is better than LLM word salad. +> > - Every contribution has to be backed by a human who unequivocally owns the copyright for all changes. > No LLM bots in `Co-authored-by:`s. > @@ -72,6 +76,9 @@ In practice, this means: - Accounts that exercise bot-like behavior – like automated mass pull requests – will be permanently banned, whether they belong to a human or not. - Do **not** post LLM-generated review comments – we can prompt LLMs ourselves should we desire their wisdom. - Do **not** post summaries unless you've fact-checked them and take responsibility for 100% of their content. Remember that *all* LLM output *looks* **plausible**. - When using these tools, it's **your** responsibility to ensure that it's also **correct** and has a reasonable signal-to-noise ratio. + When using these tools, it's **your** responsibility to **verify** the findings and present them in a **correct** and **readable** form. + +- Do **not** post LLM-generated text in issues and comments. + Open source is a social endeavor to us, so poisoning the conversation with LLM slop runs contrary to why we do what we do. + As such, posting LLM word salad leads to bans. diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 6a41466e8..4314ab571 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -1,8 +1,12 @@ # How To Contribute > [!IMPORTANT] -> - This document is mainly to help you to get started by codifying tribal knowledge and expectations and make it more accessible to everyone. -> But don't be afraid to open half-finished PRs and ask questions if something is unclear! +> - Due to the uncontrollable flood of low-quality LLM-generated pull requests, we have to limit pull requests to collaborators until GitHub gives us better tools to deal with them. +> +> We are open to adding anyone as a team member who is serious about contributing in line with our values. +> An example to achieve that is posting a good summary of planned work for an issue. +> +> Writing good issues (or reproducing or refuting existing ones) is currently the most appreciated way to contribute to the project. > > - If you use LLM / "AI" tools for your contributions, please read and follow our [_Generative AI / LLM Policy_][llm]. @@ -26,10 +30,6 @@ It's people like *you* who make this project such a great tool for everyone. - Very relatedly, our pull request checklist is our mandatory [Van Halen test](https://en.wikipedia.org/wiki/Van_Halen_test). Sadly, the current state of the world has forced us into being stricter about policies – sorry fellow humans! -- No contribution is too small! - Please submit as many fixes for typos and grammar bloopers as you can! - They're your license to delete the checklist! - - Before starting big contributions, **talk to us first**. Don't waste energy / tokens on something that we do not want. Rejecting a huge PR is unpleasant for everybody. @@ -278,7 +278,6 @@ Towncrier will merge all news fragments with identical contents into one entry w ## Governance *attrs* is maintained by [team of volunteers](https://github.com/python-attrs) that is always open to new members that share our vision of a fast, lean, and magic-free library that empowers programmers to write better code with less effort. -If you'd like to join, just get a pull request merged and ask to be added in the very same pull request! **The simple rule is that everyone is welcome to review/merge pull requests of others but nobody is allowed to merge their own code.** @@ -287,9 +286,6 @@ If you'd like to join, just get a pull request merged and ask to be added in the ## See You on GitHub! -Again, this whole file is mainly to help you to get started by codifying tribal knowledge and expectations to save you time and turnarounds. -It is **not** meant to be a barrier to entry, so don't be afraid to open half-finished PRs and ask questions if something is unclear! - Please note that this project is released with a Contributor [Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms. Please report any harm to Hynek Schlawack in any way you find appropriate. diff --git a/.github/ISSUE_TEMPLATE/1-bug.yml b/.github/ISSUE_TEMPLATE/1-bug.yml new file mode 100644 index 000000000..77785c537 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/1-bug.yml @@ -0,0 +1,86 @@ +--- +name: Bug report +description: Something in attrs does not work as documented. +type: Bug +body: + - type: markdown + attributes: + value: | + **Write this issue yourself, in your own words.** + Broken English is fine. + We much prefer it to LLM text. + + We close issues that consist of LLM-generated text, and we block their authors. + Read our [AI policy](https://github.com/python-attrs/attrs/blob/main/.github/AI_POLICY.md) for details. + + Pull requests are open to project collaborators only. + Do **not** link to patches, branches, or gists. + We do not look at them. + + - type: checkboxes + id: terms + attributes: + label: Before you submit + options: + - label: I wrote this issue myself and I take full responsibility for its content. + required: true + - label: I searched the [existing issues](https://github.com/python-attrs/attrs/issues?q=is%3Aissue) for this bug. + required: true + - label: I can reproduce the bug with the latest release of *attrs*. + required: true + + - type: textarea + id: description + attributes: + label: What happened? + description: Describe the bug in a few sentences. + validations: + required: true + + - type: textarea + id: reproducer + attributes: + label: Minimal reproducer + description: | + Paste [self-contained Python code](https://sscce.org) that shows the bug. + We must be able to copy it and run it without changes. + Remove all code that is not necessary to show the bug. + Do not link to code. + render: python + validations: + required: true + + - type: textarea + id: actual + attributes: + label: Actual output + description: | + Paste the full traceback, the type checker output, or the incorrect output. + Copy it exactly from your terminal. + render: text + validations: + required: true + + - type: textarea + id: expected + attributes: + label: Expected behavior + description: Tell us what you expected to happen instead, and why. + validations: + required: true + + - type: textarea + id: versions + attributes: + label: Versions + description: | + Run this command and paste its output: + + ``` + python -c "import sys, attrs; print(sys.version); print(attrs.__version__)" + ``` + + If the bug is about type checking, also give the name and version of your type checker. + render: text + validations: + required: true diff --git a/.github/ISSUE_TEMPLATE/2-feature.yml b/.github/ISSUE_TEMPLATE/2-feature.yml new file mode 100644 index 000000000..f8dff479c --- /dev/null +++ b/.github/ISSUE_TEMPLATE/2-feature.yml @@ -0,0 +1,57 @@ +--- +name: Feature request +description: Propose a new feature or a change to an existing feature. +type: Feature +body: + - type: markdown + attributes: + value: | + **Write this issue yourself, in your own words.** + Broken English is fine. + We much prefer it to LLM text. + + We close issues that consist of LLM-generated text, and we block their authors. + Read our [AI policy](https://github.com/python-attrs/attrs/blob/main/.github/AI_POLICY.md) for details. + + Pull requests are open to project collaborators only. + Do **not** link to patches, branches, or gists. + We do not look at them. + + - type: checkboxes + id: terms + attributes: + label: Before you submit + options: + - label: I wrote this issue myself and I take full responsibility for its content. + required: true + - label: I searched the [existing issues](https://github.com/python-attrs/attrs/issues?q=is%3Aissue) for this feature. + required: true + + - type: textarea + id: problem + attributes: + label: What problem do you want to solve? + description: | + Describe your use case. + Tell us what you want to do, not only what you want us to add. + validations: + required: true + + - type: textarea + id: example + attributes: + label: Example code + description: Show how you want to use the feature in your code. + render: python + validations: + required: true + + - type: textarea + id: today + attributes: + label: What do you do today? + description: | + Tell us how you solve the problem now, and why that is not sufficient. + If you have no solution, write that. + validations: + required: true diff --git a/.github/ISSUE_TEMPLATE/3-docs.yml b/.github/ISSUE_TEMPLATE/3-docs.yml new file mode 100644 index 000000000..5e15f4d8b --- /dev/null +++ b/.github/ISSUE_TEMPLATE/3-docs.yml @@ -0,0 +1,45 @@ +--- +name: Documentation problem +description: Something in the documentation is wrong, missing, or not clear. +labels: ["Documentation"] +body: + - type: markdown + attributes: + value: | + **Write this issue yourself, in your own words.** + Broken English is fine. + We much prefer it to LLM text. + + We close issues that consist of LLM-generated text, and we block their authors. + Read our [AI policy](https://github.com/python-attrs/attrs/blob/main/.github/AI_POLICY.md) for details. + + Pull requests are open to project collaborators only. + Do **not** link to patches, branches, or gists. + We do not look at them. + + - type: checkboxes + id: terms + attributes: + label: Before you submit + options: + - label: I wrote this issue myself and I take full responsibility for its content. + required: true + + - type: input + id: page + attributes: + label: Page + description: Paste the URL of the documentation page. + placeholder: https://www.attrs.org/en/stable/... + validations: + required: true + + - type: textarea + id: problem + attributes: + label: What is wrong? + description: | + Quote the text that has the problem. + Then tell us what is wrong with it. + validations: + required: true diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 000000000..7555d967a --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,9 @@ +--- +blank_issues_enabled: false +contact_links: + - name: Support question + url: https://stackoverflow.com/questions/tagged/python-attrs + about: Ask questions about how to use attrs on Stack Overflow with the python-attrs tag. + - name: Security vulnerability + url: https://tidelift.com/security + about: Report security vulnerabilities to Tidelift. Do not open a public issue.