-
Notifications
You must be signed in to change notification settings - Fork 30
Introduction of an AI-policy for stan-dev repos #59
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
Open
florence-bockting
wants to merge
4
commits into
stan-dev:master
Choose a base branch
from
florence-bockting:ai-policy
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+131
−0
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| # AI Contribution Policy | ||
|
|
||
| We welcome AI-assisted contributions. This policy exists to ensure that all | ||
| contributions remain the work of an accountable human contributor and that our | ||
| community has the transparency it needs to collaborate effectively. | ||
|
|
||
| ## Human Accountability | ||
|
|
||
| Every pull request (PR) must be submitted by a named individual who assumes full | ||
| responsibility for the contribution. While we recognize that automation and AI | ||
| can be part of a modern workflow, we do not accept fully automated or agentic | ||
| submissions. | ||
|
|
||
| ## Licensing and Copyright | ||
|
|
||
| Every contributor must agree to the | ||
| [Developer Certificate of Origin (DCO) 1.1](https://developercertificate.org) | ||
| within the GitHub PR template. This certifies that each contributor has the | ||
| right to submit the code under the project's open-source license. This applies | ||
| regardless of how the code was produced. It is the contributor's responsibility | ||
| to ensure that any AI-assisted output is compatible with the project's license | ||
| and that they hold or have cleared the rights to submit it. | ||
|
|
||
| ## Mandatory AI Use Disclosure | ||
| To maintain transparency and trust within our community, contributors are | ||
| required to disclose whether AI tools were used in preparing their contribution. | ||
| We included a corresponding mandatory section in the GitHub PR template. If AI | ||
| tools were used, the contributor additionally affirms that they have reviewed | ||
| every change, fully understand the logic and security implications, and are | ||
| prepared to explain or defend the technical decisions therein during the review | ||
| process. | ||
|
|
||
| ### Acknowledgement | ||
| This policy was inspired by the | ||
| [CloudNativePG AI Policy](https://github.com/cloudnative-pg/governance/blob/main/AI_POLICY.md) | ||
| and developed with the practical guidance and support of | ||
| [NumFOCUS](https://numfocus.org) in creating the initial draft. | ||
|
|
||
| --- | ||
|
|
||
| This policy is effective as of [date]. | ||
|
|
||
| Questions or suggestions? Join the discussion in our | ||
| [community channel](https://discourse.mc-stan.org). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,87 @@ | ||
| # Pull Request | ||
|
|
||
| > 💡 | ||
| > **Does your PR contain only a trivial change?** | ||
| > | ||
| > If your PR consists of minor updates, such as fixing a typo, updating a link, | ||
| > or making small documentation tweaks, you can use our | ||
| **[Lightweight PR Template](?template=trivial-pr.md)** to save time. | ||
| > | ||
| > (Note: Switch to Preview mode to click the link. You can do so by selecting | ||
| the **Preview** tab at the top of this window. Clicking the link will open a new | ||
| PR using the shorter template.) | ||
|
|
||
| ## Compliance & AI Disclosure | ||
| <!-- | ||
| This section is mandatory. Do not delete this section. PRs that leave it blank | ||
| will not be reviewed. | ||
| --> | ||
|
|
||
| - [ ] I have read the [Contributing Guidelines](../blob/main/.github/CONTRIBUTING.md). | ||
| - [ ] I accept the [Developer Certificate of Origin](https://developercertificate.org). | ||
| - [ ] I have read and comply with the [AI Contribution Policy (0.0.1)](../blob/main/AI_policy.md). | ||
|
|
||
| **AI Tool Usage Disclosure:** | ||
| *Did you use AI tools (e.g., GitHub Copilot, ChatGPT, Claude, Cursor, etc.) for | ||
| this PR?* | ||
|
|
||
| - [ ] **No AI used.** This PR consists entirely of my own original work. | ||
| - [ ] **AI-Assisted (Minor).** AI was used for boilerplate, syntax, or | ||
| autocomplete. | ||
| - [ ] **AI-Generated (Major).** AI generated significant logic or entire | ||
| sections. | ||
|
|
||
| ## Pre-Review Checklist | ||
| <!-- Please ensure these steps are completed before requesting a review. --> | ||
|
|
||
| - [ ] **Coordination:** For non-trivial changes, an issue was opened and | ||
| approved by a maintainer. (Link: #____) | ||
| - [ ] **Alignment:** The PR delivers the specific result agreed upon in the | ||
| linked issue. | ||
| - [ ] **Sync:** Branch is up to date with `main` or `master` / `develop`. | ||
| - [ ] **Quality:** All existing tests pass locally. New tests have been added to | ||
| cover my changes (if applicable). | ||
| - [ ] **Change log:** `News.md` has been updated. | ||
| - [ ] **Docs:** Function documentation has been updated. | ||
| - [ ] **Notebooks:** All `.qmd` / `.Rmd` files render end-to-end in a clean | ||
| environment without machine-specific paths (if applicable). | ||
| --- | ||
|
|
||
| ## Summary | ||
| <!-- Why is this change needed? What problem does it solve? (1-3 sentences.) --> | ||
|
bob-carpenter marked this conversation as resolved.
|
||
|
|
||
| Closes # <!-- issue number --> | ||
|
|
||
| ### Type of Change | ||
|
|
||
| - [ ] Bug fix | ||
| - [ ] New feature | ||
| - [ ] Breaking change (requires a major version bump; strongly discouraged | ||
| without prior discussion) | ||
| - [ ] Refactoring (no functional change) | ||
| - [ ] Documentation | ||
| - [ ] Build / Dependencies / Configuration / CI | ||
|
|
||
| ## What Changed | ||
| <!-- | ||
| Describe the technical changes in enough detail for a reviewer to understand | ||
| the approach without reading every line of code. | ||
| --> | ||
|
|
||
| - | ||
| - | ||
| - | ||
|
|
||
| ## Expected Result | ||
| <!-- | ||
| Describe concretely what "done" looks like for this PR. | ||
| This should match what was agreed upon in the linked issue. | ||
| Include screenshots, logs, or demo output where helpful. | ||
| --> | ||
|
|
||
| **Additional Context** | ||
|
|
||
| <!-- | ||
| Links to design docs, related PRs, or other relevant resources. | ||
| Use stable links that will remain accessible over time. | ||
| --> | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does this developer certificate interact with GitHub's terms of use for submission. I believe they're also agreeing to those when submitting a PR.
For case (b), we should be providing the relevant license if the work is based on another licensed work.