Skip to content

Commit 5e5ada0

Browse files
committed
Add AI Tool Use Policy to code of conduct
1 parent 2313fb8 commit 5e5ada0

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

CODE_OF_CONDUCT.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,43 @@ And if someone takes issue with something you said or did, resist the urge to be
3232

3333
The enforcement policies listed above apply to all official embedded WG venues; including the official Matrix room (#rust-embedded:matrix.org) and linked IRC channels (#rust-embedded on Libera); and all GitHub repositories under rust-embedded.
3434

35+
## AI Tool Use Policy
36+
37+
When using AI tools for contributing, human oversight remains critical.
38+
39+
- **You are responsible for your contributions.** It is your responsibility to review, test, and understand everything you submit. Submitting unverified or low-quality machine-generated content creates an unfair review burden on the community and is not an acceptable contribution. Contributors should review and understand their own submissions before asking the community to review their code.
40+
- **Start with small contributions.** Open source communities operate on trust and reputation. Reviewing large contributions is expensive, and AI tools tend to generate large contributions. We encourage new contributors to keep their first contributions small, specifically below 150 additional lines of non-test code insertions, until they build personal expertise and maintainer trust before taking on larger changes.
41+
- **Be transparent about your use of AI.** When a contribution has been significantly generated by an AI tool, we encourage you to note this in your pull request description. This transparency helps the community develop best practices and understand the role of these new tools.
42+
- **Limit AI tools for reviewing.** As with creating code, reviewers may use AI tools to assist in providing feedback, but not to wholly automate the review process. Particularly, AI should not make the final determination on whether a contribution is accepted or not.
43+
44+
This policy extends beyond code contributions and includes, but is not limited to, the following kinds of contributions:
45+
46+
- Code, usually in the form of a pull request.
47+
- RFCs or design proposals.
48+
- Issues or security vulnerabilities.
49+
- Comments and feedback on pull requests.
50+
51+
### Extractive Changes
52+
53+
Sending patches, PRs, RFCs, comments, etc., is not free – it takes a lot of maintainer time and energy to review those contributions! We see the act of sending low-quality, un-self-reviewed contributions to the Rust Embedded WG project as “extractive.” It is an attempt to extract work from the community in the form of review comments and mentorship, without the contributor putting in comensurate effort to make their contribution worth reviewing.
54+
55+
Our golden rule is that a contribution should be worth more to the project than the time it takes to review it. If a maintainer judges that a contribution is extractive (i.e., it is generated with tool-assistance or simply requires significant revision), they
56+
should copy-paste the following response, add the `extractive` label if applicable, and refrain from further engagement:
57+
58+
> This PR appears to be extractive, and requires additional justification for why it is valuable enough to the project for us to review it. Please see our developer policy on AI-generated contributions: https://github.com/rust-embedded/wg/blob/master/CODE_OF_CONDUCT.md#AI-Tool-Use-Policy
59+
60+
Other reviewers should use the label to prioritize their review time.
61+
62+
The best ways to make a change less extractive and more valuable are to reduce its size or complexity or to increase its usefulness to the community. These factors are impossible to weigh objectively, and our project policy leaves this determination up to the maintainers of the project, i.e. those who are doing the work of sustaining the project.
63+
64+
If a contributor responds but doesn’t make their change meaningfully less extractive, maintainers may lock the conversation.
65+
66+
### Copyright
67+
68+
AI systems raise many questions around copyright that have yet to be answered. Our policy on AI tools is similar to our copyright policy: Contributors are responsible for ensuring that they have the right to contribute code under the terms of our license, typically meaning that either they, their employer, or their collaborators hold the copyright. Using AI tools to regenerate copyrighted material does not remove the copyright, and contributors are responsible for ensuring that such material does not appear in their contributions. Contributions found to violate this policy will be removed just like any other offending contribution.
69+
3570
*Adapted from the [Node.js Policy on Trolling](http://blog.izs.me/post/30036893703/policy-on-trolling) as well as the [Contributor Covenant v1.3.0](https://www.contributor-covenant.org/version/1/3/0/).*
3671

72+
*AI Tool Use Policy adapted from the proposed [LLVM AI tool policy: start small, no slop](https://discourse.llvm.org/t/rfc-llvm-ai-tool-policy-start-small-no-slop/88476)*
73+
3774
[wg]: https://github.com/rust-embedded/wg#organization

0 commit comments

Comments
 (0)