-
Notifications
You must be signed in to change notification settings - Fork 52
Add AI agent policy documentation #885
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Changes from all commits
fe55f0a
18d67bb
9bd48a1
56bcdea
f12473f
d6da282
d20ad81
b8fe652
9d31a47
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| --- | ||
| default: docs | ||
| --- | ||
|
|
||
| # Update to disclosure of AI generated code | ||
|
|
||
| Added `AGENTS.md` to inform autonomous AI agents about restrictions in this | ||
| repository. | ||
|
|
||
| As a reminder, the guidelines can be found in | ||
| [our Contribution Guidelines](https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # Cursor Rules | ||
|
|
||
| This repository does not permit autonomous AI agents to operate on the | ||
| repository. | ||
|
|
||
| See AGENTS.md and CONTRIBUTING.md for the complete policy. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # Copilot Instructions | ||
|
|
||
| This repository does not permit autonomous AI agents to operate on the | ||
| repository. | ||
|
|
||
| See AGENTS.md and CONTRIBUTING.md for the complete policy. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,79 @@ | ||
| # AGENTS.md | ||
|
|
||
| ## Policy Summary | ||
|
|
||
| This repository does not permit autonomous AI agents to operate on the | ||
| repository (including editing files, opening issues, or creating pull requests). | ||
|
|
||
| Human contributors MAY use AI-assisted development tools provided that: | ||
|
|
||
| - the human fully reviews and understands all generated output | ||
| - AI assistance is disclosed | ||
| - all licensing requirements are satisfied | ||
| - the contribution adds meaningful human value | ||
|
|
||
| Examples of prohibited autonomous behavior include: | ||
|
|
||
| - automated pull request generation | ||
| - unattended repository modifications | ||
| - autonomous issue filing | ||
| - bulk AI-generated comments or reviews | ||
|
|
||
| Interactive editor assistance used directly by a human contributor is permitted | ||
| subject to the disclosure requirements below. | ||
|
|
||
| ## RESTRICTIONS | ||
|
|
||
| We expect and appreciate authentic engagement in our community. | ||
|
|
||
| Do not post output from Large Language Models or similar generative AI as | ||
| comments on GitHub, as such comments tend to be formulaic and low content. | ||
|
|
||
| If you use generative AI tools as an aid in developing code, ensure that you | ||
| fully understand the proposed changes and can explain why they are the correct | ||
| approach; additionally, you **must** disclose which parts of the code were: | ||
|
|
||
| - Fully generated by the AI tool. | ||
| - Written alongside the AI tool (examples: line completion, rewriting code | ||
| generated by AI). | ||
|
|
||
|
nushea marked this conversation as resolved.
|
||
| And, if the majority of the changes have been AI generated, explain what | ||
| modifications or actions have you taken to ensure that the result is licensable | ||
| and compatible with THE LICENSE | ||
|
|
||
| Make sure you have added value based on your personal competency to your | ||
| contributions. Just taking some input, feeding it to an AI and posting the | ||
| result is not of value to the project. We reserve the right to rigorously reject | ||
| seemingly AI generated low-value contributions. | ||
|
|
||
| Maintainers may close issues and PRs that are not useful or productive, | ||
| including those that are fully generated by AI. If a contributor repeatedly | ||
| opens unproductive issues or PRs, they may be blocked. | ||
|
|
||
| ## Licensing and Legal Requirements | ||
|
|
||
| > inspired by | ||
| > <https://github.com/torvalds/linux/blob/master/Documentation/process/coding-assistants.rst> | ||
|
|
||
| All contributions must comply with the projects's licensing requirements: | ||
|
|
||
| - All code must be compatible with AGPL-3.0-only | ||
|
|
||
| ## Signed-off-by and Developer Certificate of Origin | ||
|
|
||
| AI agents MUST NOT add Signed-off-by tags. Only humans can legally certify the | ||
| Developer Certificate of Origin (DCO). The human submitter is responsible for: | ||
|
|
||
| - Reviewing all AI-generated code | ||
| - Ensuring compliance with licensing requirements | ||
| - Adding their own Signed-off-by tag to certify the DCO | ||
| - Taking full responsibility for the contribution | ||
|
Comment on lines
+62
to
+70
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This section should probably be removed unless we're adding a DCO sign off requirement for contributions in general (in which case we need to write it somewhere other than AGENTS.md)? Unless we reword it and say fully autonomous comments must have a DCO sign off, and use that as a reason to close any PRs with sign offs.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. True. Forgot to remove the copy-paste relict
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Having a per-commit DCO can be kinda annoying. Having it like matrix spec proposals (aka sign off your pr) would be a fair compromise. If we were to add a DCO.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If it would require signing with the contributor's actual Legal Name it might be an inhibitor for contributions from transgender individuals, since it might require them to Dead-Name themselves
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How does Linux actually handle that /gen? (I wouldn't endorse something making people doxx themselves)
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am not sure about Linux, but I know that whenever a friend of mine wanted to contribute to Gentoo there was a lot of confusion about how she would be able to until she got an exception from using the Legal Name on the DCO (still having to use a Consistently Identifiable Name to tie to her in case that she infringed copyright to be able to point to her legally)
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (I am not sure about how DCO law/setups work, I was just thinking back to that as a thing to keep in mind if we establish a DCO)
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Linux says
see https://docs.kernel.org/process/submitting-patches.html Which sounds reasonable i read it as not strictly require a legal birth name, but forbidding completely anonymous contributions or throwaway accounts. A well-established, consistently used pseudonym or preferred name that firmly connects back to the contributor's identity is acceptable.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That is still a bit ambiguous but that is very fair so if it is added it should be in that way
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i tried to give it a shot in File :3 |
||
|
|
||
| ## Contributing | ||
|
|
||
| See ./CONTRIBUTING.md for: | ||
|
|
||
| - disclosure requirements | ||
| - licensing requirements | ||
| - attribution requirements | ||
| - contributor expectations | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # CLAUDE.md | ||
|
|
||
| This repository does not permit autonomous AI agents to operate on the | ||
| repository. | ||
|
|
||
| See AGENTS.md and CONTRIBUTING.md for the complete policy. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # COPILOT.md | ||
|
|
||
| This repository does not permit autonomous AI agents to operate on the | ||
| repository. | ||
|
|
||
| See AGENTS.md and CONTRIBUTING.md for the complete policy. |
Uh oh!
There was an error while loading. Please reload this page.