Skip to content

Commit c5f1c6e

Browse files
committed
Add AI contribution policy section to the README.md
This is a verbatim copy of the one from GTK at https://gitlab.gnome.org/GNOME/gtk/-/blob/main/CONTRIBUTING.md#ai-contribution-policy This might be fine-tuned further in the future.
1 parent 4617d66 commit c5f1c6e

1 file changed

Lines changed: 49 additions & 0 deletions

File tree

README.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,55 @@ When using crates that are not part of the `gtk-rs` repository, you will
3434
need to be careful and ensure that they do not pull in incompatible versions of core
3535
crates like `glib-rs`.
3636

37+
## AI Contribution Policy
38+
39+
gtk-rs is a project by humans for humans. We prefer contributions that
40+
are produced by human creativity, we expect a human to take full
41+
responsibility for each contribution, and we will take more joy in
42+
reviewing contributions when there's people at the other end of the
43+
line to stand by their changes.
44+
45+
If you use LLM/GenAI tools for your contributions, here are the rules
46+
you must follow:
47+
48+
### Requirements
49+
50+
1. Use AI as a tool. Verify behavior, correctness, and compatibility
51+
yourself prior to submitting your contribution. Do not ask the
52+
maintainers to do this for you.
53+
1. Keep changes narrow and limited. Do **NOT** use LLM/GenAI tools to
54+
generate broad rewrites, large refactorings, or style changes.
55+
1. Do **NOT** submit generated code, documentation, or tests that you
56+
don’t understand.
57+
1. Do **NOT** fabricate benchmarks, bug reports, test results, code
58+
samples, or reproducers.
59+
1. Do **NOT** include private code, credentials, tokens, or any other
60+
confidential material.
61+
1. Respect the licensing and attribution requirements.
62+
63+
### Disclosure
64+
65+
Always disclose the use of LLM/GenAI tools when creating an issue or
66+
a merge request. Do not include trailers like “Co-authored-by:” or
67+
“Assisted-by:” in commit messages, since they serve as free advertising
68+
for AI companies.
69+
70+
### Reviews
71+
72+
1. Describe your changes, and the verification steps.
73+
1. Be prepared to explain all the changes yourself.
74+
1. Do **NOT** feed the review feedback to an LLM/GenAI tool.
75+
76+
### Maintainers expectations
77+
78+
1. Review LLM/GenAI-assisted contributions more strictly than any other contribution.
79+
1. Require reproducibility in fixes and tests.
80+
1. Reject changes that appear to be unverified LLM/GenAI output.
81+
1. Reject comments and feedback that appear to be LLM/GenAI output.
82+
83+
> A COMPUTER CAN NEVER BE HELD ACCOUNTABLE.
84+
> THEREFORE A COMPUTER MUST NEVER MAKE A MAINTENANCE DECISION.
85+
3786
## Regenerating
3887

3988
To regenerate crates using [gir], please use the `generator.py` file as follows:

0 commit comments

Comments
 (0)