Skip to content

Commit a19dfa9

Browse files
authored
docs: add generative ai contribution guidelines (coder#19427)
Initial language that gives us something to point to if needed.
1 parent d536b91 commit a19dfa9

File tree

4 files changed

+44
-0
lines changed

4 files changed

+44
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# AI Contribution Guidelines
2+
3+
This document defines rules for contributions where an AI system is the primary author of the code (i.e., most of the pull request was generated by AI).
4+
It applies to all Coder repositories and is a supplement to the [existing contributing guidelines](./CONTRIBUTING.md), not a replacement.
5+
6+
For minor AI-assisted edits, suggestions, or completions where the human contributor is clearly the primary author, these rules do not apply — standard contributing guidelines are sufficient.
7+
8+
## Disclosure
9+
10+
Contributors must **disclose AI involvement** in the pull request description whenever these guidelines apply.
11+
12+
## Human Ownership & Attribution
13+
14+
- All pull requests must be opened under **user accounts linked to a human**, and not an application ("bot account").
15+
- Contributors are personally accountable for the content of their PRs, regardless of how it was generated.
16+
17+
## Verification & Evidence
18+
19+
All AI-assisted contributions require **manual verification**.
20+
Contributions without verification evidence will be rejected.
21+
22+
- Test your changes yourself. Don’t assume AI is correct.
23+
- Provide screenshots showing that the change works as intended.
24+
- For visual/UI changes: include before/after screenshots.
25+
- For CLI or backend changes: include terminal or api output.
26+
27+
## Why These Rules Exist
28+
29+
Traditionally, maintainers assumed that producing a pull request required more effort than reviewing it.
30+
With AI-assisted tools, the balance has shifted: generating code is often faster than reviewing it.
31+
32+
Our guidelines exist to safeguard maintainers’ time, uphold contributor accountability, and preserve the overall quality of the project.

docs/about/contributing/CONTRIBUTING.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,11 @@ Breaking changes can be triggered in two ways:
236236
[`release/breaking`](https://github.com/coder/coder/issues?q=sort%3Aupdated-desc+label%3Arelease%2Fbreaking)
237237
label to a PR that has, or will be, merged into `main`.
238238
239+
### Generative AI
240+
241+
Using AI to help with contributions is acceptable, but only if the [AI Contribution Guidelines](./AI_CONTRIBUTING.md)
242+
are followed. If most of your PR was generated by AI, please read and comply with these rules before submitting.
243+
239244
### Security
240245
241246
> [!CAUTION]

docs/images/icons/ai_intelligence.svg

Lines changed: 1 addition & 0 deletions
Loading

docs/manifest.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@
7676
"description": "Security vulnerability disclosure policy",
7777
"path": "./about/contributing/SECURITY.md",
7878
"icon_path": "./images/icons/lock.svg"
79+
},
80+
{
81+
"title": "AI Contribution Guidelines",
82+
"description": "Guidelines for AI-generated contributions.",
83+
"path": "./about/contributing/AI_CONTRIBUTING.md",
84+
"icon_path": "./images/icons/ai_intelligence.svg"
7985
}
8086
]
8187
}

0 commit comments

Comments
 (0)