Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'AI_POLICY.md')
| -rw-r--r-- | AI_POLICY.md | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/AI_POLICY.md b/AI_POLICY.md new file mode 100644 index 0000000000..f5912a3c19 --- /dev/null +++ b/AI_POLICY.md @@ -0,0 +1,28 @@ +We allow using AI (i.e., LLMs) as tools for contributing to rust-analyzer. +However, you remain responsible for any code you publish and we are responsible for any code we merge and release. +We hold a high bar for all contributions to our projects. + +**AI should not be used to generate comments when communicating with maintainers**. +We expect comments on our projects to be written by humans. +We may hide any comments that we believe are AI generated. + +If you are opening an issue, we expect you to describe the problem in your own words. + +If you are opening a pull request, we expect you to be able to explain the proposed changes in your own words. This includes the pull request body and responses to questions. +**Do not copy responses from the AI when replying to questions from maintainers.** + +Due to the foundational nature of our projects, we require a human in the loop who understands the work produced by AI. +**We do not allow autonomous agents to be used to open pull requests or issues to our projects**. +We will close any pull requests that we believe were created autonomously. + +If you wish to include context from an interaction with AI in your comments, it must be in a quote block (e.g., using `>`) and disclosed as such. +It must be accompanied by human commentary explaining the relevance and implications of the context. +Do not share long snippets. + +We understand that AI is useful when communicating as a non-native English speaker. +If you are using AI to edit your comments for this purpose, please take the time to ensure it reflects your own voice and ideas. +If using AI for translation, we recommend writing in your native language and including the AI translation in a quote block. + +This policy was adapted from [uv's AI policy]. + +[uv's AI policy]: https://github.com/astral-sh/.github/blob/c5187e200db51bfe11d56e13053d29bd3793fdd8/AI_POLICY.md |