|
| 1 | +# AI Usage Policy |
| 2 | + |
| 3 | +Contributors can use whatever tools they would like to |
| 4 | +craft their contributions, but there must be a **human in the loop**. |
| 5 | +**Contributors must read and review all LLM-generated code or text before they |
| 6 | +ask other project members to review it.** The contributor is always the author |
| 7 | +and is fully accountable for their contributions. Contributors should be |
| 8 | +sufficiently confident that the contribution is high enough quality that asking |
| 9 | +for a review is a good use of scarce maintainer time, and they should be **able |
| 10 | +to answer questions about their work** during review. |
| 11 | + |
| 12 | +We expect that new contributors will be less confident in their contributions, |
| 13 | +and our guidance to them is to **start with small contributions** that they can |
| 14 | +fully understand to build confidence. We aspire to be a welcoming community |
| 15 | +that helps new contributors grow their expertise, but learning involves taking |
| 16 | +small steps, getting feedback, and iterating. Passing maintainer feedback to an |
| 17 | +LLM doesn't help anyone grow, and does not sustain our community. |
| 18 | + |
| 19 | +This policy includes, but is not limited to, the following kinds of |
| 20 | +contributions: |
| 21 | + |
| 22 | +- Code, usually in the form of a pull request |
| 23 | +- Issues or security vulnerabilities |
| 24 | +- Comments and feedback on pull requests |
| 25 | + |
| 26 | +## Extractive Contributions |
| 27 | + |
| 28 | +The reason for our "human-in-the-loop" contribution policy is that processing |
| 29 | +patches, PRs, RFCs, and comments is not free -- it takes a lot of |
| 30 | +maintainer time and energy to review those contributions! Sending the |
| 31 | +unreviewed output of an LLM to open source project maintainers *extracts* work |
| 32 | +from them in the form of design and code review, so we call this kind of |
| 33 | +contribution an "extractive contribution". |
| 34 | + |
| 35 | + |
| 36 | +## Copyright |
| 37 | + |
| 38 | +Artificial intelligence systems raise many questions around copyright that have |
| 39 | +yet to be answered. Our policy on AI tools is similar to our copyright policy: |
| 40 | +Contributors are responsible for ensuring that they have the right to |
| 41 | +contribute code under the terms of our license, typically meaning that either |
| 42 | +they, their employer, or their collaborators hold the copyright. Using AI tools |
| 43 | +to regenerate copyrighted material does not remove the copyright, and |
| 44 | +contributors are responsible for ensuring that such material does not appear in |
| 45 | +their contributions. Contributions found to violate this policy will be removed |
| 46 | +just like any other offending contribution. |
| 47 | + |
| 48 | +## Reference |
| 49 | + |
| 50 | +- [LLVM AI Tool Use Policy](https://discourse.llvm.org/t/rfc-llvm-ai-tool-policy-human-in-the-loop/89159) |
0 commit comments