forge
Explore
Log in

Don't you dare go Hollow

CONTRIBUTING: clarify that the LLM policy applies to test code too

Browse files at this commit

36e91606b75d4793debfa151d9ffe7a010191cbaIvan MolodetskikhParent: fff3b86
CONTRIBUTING.mdmodified+6 -1
@@ -8,7 +8,7 @@ Make sure to join our Matrix chat if you have any questions or want to discuss a
88 ## LLM policy
99
1010 You're not allowed to use LLMs to *create*.
11-All pull request code, issue descriptions, comments, public reviews, etc. must be human-written.
11+All pull request code (including tests), issue descriptions, comments, public reviews, etc. must be human-written.
1212 You can use LLMs privately (not like I can check or control that), but not to write from scratch.
1313 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.
1414
@@ -23,6 +23,11 @@ This policy is motivated by several observations:
2323 The code ends up overly complex to solve non-existing or impractical problems.
2424 Such code would not get written in the first place since the effort-benefit ratio is too high.
2525 It increases maintenance burden and takes time away from more important PRs.
26+
27+ This reasoning applies to test code too.
28+ LLM-written tests tend to be overly verbose and hard to understand.
29+ Since it's *effortless* to generate test code with LLMs, the tests frequently end up repeating themselves, testing things that are trivially true, or testing internal states of the system rather than the outcomes.
30+ Such tests may be helpful for initial verification of a new feature, but they are a chore to review and disproportionately increase maintenance burden.
2631 - Nobody wants to read AI slop.
2732
2833 ## Issues and discussions