CONTRIBUTING: clarify that the LLM policy applies to test code too
Browse files at this commit36e91606b75d4793debfa151d9ffe7a010191cbaParent: fff3b861 changed file +6 -1
- CONTRIBUTING.md +6 -1
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 | |||
| 8 | ## LLM policy | 8 | ## LLM policy |
| 9 | 9 | ||
| 10 | You're not allowed to use LLMs to *create*. | 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. | 11 | +All pull request code (including tests), 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. | 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. | 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 | 14 | ||
| @@ -23,6 +23,11 @@ This policy is motivated by several observations: | |||
| 23 | The code ends up overly complex to solve non-existing or impractical problems. | 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. | 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. | 25 | 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. | ||
| 26 | - Nobody wants to read AI slop. | 31 | - Nobody wants to read AI slop. |
| 27 | 32 | ||
| 28 | ## Issues and discussions | 33 | ## Issues and discussions |