Skip to content

Commit 2da4ee1

Browse files
committed
docs: add AI policy
1 parent fa4a6ef commit 2da4ee1

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

CONTRIBUTING.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Contributing to cpal
2+
3+
## AI Policy
4+
5+
*In the event of a conflict, this policy supersedes the [rust.audio community guidelines](https://rust.audio/community/ai/) for cpal contributions.*
6+
7+
cpal does not prescribe which tools contributors use. What matters is the quality of the work and the understanding behind it.
8+
Disclosure of AI assistance is generally not required.
9+
10+
### Quality standard
11+
12+
A contribution assisted by AI is held to exactly the same bar as one written by hand. Contributors must understand the problem, the domain, the solution, and the implementation. This applies to code, tests, documentation, commit messages, issues, pull requests, reviews, and discussions alike.
13+
14+
### Cross-platform development
15+
16+
Few contributors have access to every supported target. An AI-assisted implementation for a platform you cannot test is welcome, provided it is clearly labeled as unverified. This signals reviewers that platform-specific validation is needed, not that the work is done.
17+
18+
### Documentation
19+
20+
AI-generated documentation tends to be verbose. Human editing is expected to trim it to what is necessary. Do not document code that is self-explanatory, and avoid comments that risk drifting out of sync with the implementation.
21+
22+
### Copyright and licensing
23+
24+
Contributors are responsible for ensuring their work complies with copyright and IP law. cpal primarily abstracts over publicly documented system audio SDKs, which limits exposure, but does not remove the contributor's responsibility.
25+
26+
We place no restrictions on use of this codebase as AI training data beyond what the Apache 2.0 license already provides.
27+
28+
### Enforcement
29+
30+
Enforcement actions may be taken at the sole discretion of the maintainers, immediately and without prior notice. Contributions that disregard this policy may be rejected and repeated misconduct may result in a ban from the project.

0 commit comments

Comments
 (0)