forge
Explore
Log in

Don't you dare go Hollow

Update LLM policy, amend issue and PR templates

Browse files at this commit

7256ccf6274a1f953c6987ade34ea1c0e4944c27Ivan MolodetskikhParent: 62c230a
.github/ISSUE_TEMPLATE/bug_report.mdmodified+10 -1
@@ -42,4 +42,13 @@ Please report issues with X11 apps to xwayland-satellite instead of niri: https:
4242 * GPU:
4343
4444 <!-- Write your CPU vendor and model, e.g. AMD Ryzen 7 6800H -->
45-* CPU:
45+* CPU:
46+
47+### Checklist
48+
49+<!-- You can put an x inside the following checkboxes to check them. -->
50+* [ ] I searched existing issues and discussions and this issue was not already reported.
51+
52+<!-- We do not allow LLM-written issues and comments. -->
53+<!-- https://github.com/niri-wm/niri/blob/main/CONTRIBUTING.md -->
54+* [ ] I did not use an LLM to write this issue.
.github/pull_request_template.mdadded+16 -0
@@ -0,0 +1,16 @@
1+## Description
2+
3+<!-- Please read the pull request guidelines in https://github.com/niri-wm/niri/blob/main/CONTRIBUTING.md and make sure your pull request follows them. -->
4+
5+<!-- Write a summary of the change, linking relevant issues and discussions. -->
6+<!-- Mention how to test the change, and how you already tested it. -->
7+<!-- When adding new config syntax, please provide an example. -->
8+<!-- Write about any unobvious architecture and design decisions that you took, explain the alternatives you considered. -->
9+
10+## Checklist
11+
12+<!-- You can put an x inside the following checkboxes to check them. -->
13+* [ ] I ran tests and `cargo +nightly fmt`.
14+
15+<!-- We do not allow LLM-written pull request code and descriptions. -->
16+* [ ] I did not use an LLM to write this pull request code or description.
CONTRIBUTING.mdmodified+21 -10
@@ -5,6 +5,26 @@ The project has grown quite a bit, and we could use all help that we can.
55
66 Make sure to join our Matrix chat if you have any questions or want to discuss anything: https://matrix.to/#/#niri:matrix.org
77
8+## LLM policy
9+
10+You're not allowed to use LLMs to *create*.
11+All pull request code, issue descriptions, comments, public reviews, etc. must be human-written.
12+You can use LLMs privately (not like I can check or control that), but not to write from scratch.
13+You may use LLMs for *translating* your human-written text; in this case you must also provide the original text to reduce the chance of miscommunication.
14+
15+This policy is motivated by several observations:
16+
17+- LLM writing is always long and excessive, and wastes time of the reader.
18+- LLM issue analysis is not only overly long and excessive, but also frequently wrong.
19+- LLM-assisted PRs are usually a bigger chore to review, and the developer frequently struggles to adequately address comments.
20+- For code contributions, our goal is to grow contributors with understanding of the niri codebase.
21+ Using LLMs to write code sidesteps this learning process.
22+- LLMs remove an important *effort barrier* for writing code, even if the result reads fine.
23+ The code ends up overly complex to solve non-existing or impractical problems.
24+ Such code would not get written in the first place since the effort-benefit ratio is too high.
25+ It increases maintenance burden and takes time away from more important PRs.
26+- Nobody wants to read AI slop.
27+
828 ## Issues and discussions
929
1030 This is a good way to help many new and existing users without programming knowledge.
@@ -77,6 +97,7 @@ When creating pull requests, please keep the following in mind.
7797
7898 - Make sure new features align with niri's design directions. Ideally, there should be an existing issue or discussion where we settled on that solution.
7999 - Keep pull requests focused on a single feature or bug fix with no unrelated changes.
100+- Document unobvious design and architecture decisions. Why you chose one way over the other, which alternatives you tried. This helps to evaluate the code.
80101 - Try to split your changes into small, self-contained commits. Every commit should build and pass tests. This makes it much easier to review your PR, and bisect for regressions in the future.
81102 - When addressing PR comments, try to squash the changes straight into the relevant commits.
82103 - In some cases when the requested changes are big/unclear, you can leave them as separate commits on top, but please squash and otherwise clean up the history when the changes are finalized.
@@ -98,16 +119,6 @@ When creating pull requests, please keep the following in mind.
98119 - When creating the pull request, clearly write what it does, what problem it solves, how to test it.
99120 - Follow the rest of the advice from this document.
100121
101-## AI contributions
102-
103-If you use LLMs for your contribution (issue, comment, pull request), then it is *your job* to check and clean up its output, just like with any other tool.
104-*You* have to spend the time doing this.
105-Particularly:
106-
107-- If I can tell that a pull request is mostly LLM-generated, then very likely this pull request will take *significantly more time and effort* than usual to review and finish. This is based on my prior review experience. Therefore, I'm not interested in such pull requests—there's always plenty of human-written ones which take priority.
108-- When using an LLM to prepare an issue, the text usually has a lot of unnecessary wording and irrelevant details. Anyone looking at such an issue will quickly lose interest in reading through it (myself certainly). Clean up the text and keep only those details that actually matter.
109-- When using an LLM to comment on an issue, *you* have to verify that the comment makes sense, contributes something useful, and doesn't have unnecessary repetition.
110-
111122
112123 [cosmic-comp]: https://github.com/pop-os/cosmic-comp
113124 [anvil]: https://github.com/Smithay/smithay/tree/master/anvil