Skip to content

Commit f2fb08e

Browse files
committed
doc: Add AI policy.
This patch adds AI policy. For the moment, it's a copy-paste (modulo emphasises) from Forgejo's.
1 parent 4a59153 commit f2fb08e

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

CONTRIBUTING.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,3 +343,50 @@ git rebase --signoff origin/main
343343
`native-tls` or `rustls-tls` feature definitions:
344344

345345
![Screenshot of RustRover](.img/rustrover-disable-feature.png)
346+
347+
## AI policy
348+
349+
This policy is a copy of the [Forgejo's AI agreement].
350+
351+
### Terminology
352+
353+
This does not necessarily reflect the official or commonly used terminology.
354+
355+
Software and services that heavily rely on large language model technology to
356+
generate their outcomes are referred to as _Artificial Intelligence_ (AI).
357+
Examples of products that fit this definition: GitHub Copilot, ChatGPT, Claude
358+
Sonnet, DeepSeek, Llama and Gemini.
359+
360+
There is a distinction between _general_ and _narrow_ AI, all the aforementioned
361+
examples fall under general AI as they were not trained to execute a specific
362+
well-defined task. Narrow AI is trained to be used for specific well-defined
363+
tasks where the problem space is known in advance.
364+
365+
_Vibe coding_ is the practice where AI creates a code change (feature, bugfix,
366+
tests, refactor) with a human that describes what needs to be implemented.
367+
368+
_AI agents_ are AIs that are configured to perform interactions or make changes
369+
with little to no human supervision.
370+
371+
### Agreement
372+
373+
1. If content was made with the help of AI, you **must** convey that this is
374+
the case. This includes content that you authored but was motivated by a
375+
suggestion of AI.
376+
2. If at any point you used AI's work in your contribution you should make
377+
an effort to **verify** that you can submit this under the license of the
378+
repository.
379+
3. The **accountability** of using AI in a contribution lies with the person
380+
that makes that contribution.
381+
4. All communication, that includes: commit messages, pull request messages,
382+
documentation, code comments and issues (and comments on issues/pull
383+
requests), that is intended to be read by people to understand your thoughts
384+
and work **must not** have been generated with AI. We exclude machine
385+
translation and tooling that helps with grammar and spelling check.
386+
5. Using general AI for review is **forbidden**. If the change contains changes
387+
to the user experience it has to be approved by a human reviewer.
388+
6. It is **not allowed** to use AI in an autonomous-looking way to contribute to
389+
the Matrix Rust SDK. This also applies when someone engages in _vibe coding_
390+
or uses so-called _agent mode_.
391+
392+
[Forgejo]: https://codeberg.org/forgejo/governance/src/branch/main/AIAgreement.md

0 commit comments

Comments
 (0)