-
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
5
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.
+130
−0
Open
Changes from 2 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
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,23 @@ | ||
| # 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. | ||
|
bob-carpenter marked this conversation as resolved.
Outdated
|
||
|
|
||
| ### 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. In the spirit of transparency and the "Disclosure" section of this policy, an initial draft of this document was generated using Google Gemini and was subsequently reviewed, edited, and approved by the Stan maintainers. | ||
|
florence-bockting marked this conversation as resolved.
Outdated
|
||
|
|
||
| --- | ||
|
|
||
| This policy is effective as of [date]. It will be reviewed periodically as AI tools and community norms evolve. | ||
|
florence-bockting marked this conversation as resolved.
Outdated
florence-bockting marked this conversation as resolved.
Outdated
|
||
|
|
||
| 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,75 @@ | ||
| # 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. It will redirect you to open a new PR using the shorter template.) | ||
|
florence-bockting marked this conversation as resolved.
Outdated
|
||
|
|
||
| ## 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). | ||
|
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. 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. |
||
| - [ ] I have read and comply with the [AI Contribution Policy](../blob/main/AI_policy.md). | ||
|
florence-bockting marked this conversation as resolved.
Outdated
|
||
|
|
||
| **AI Tool Usage Disclosure:** | ||
| *Did you use AI tools (e.g. GitHub Copilot, ChatGPT, Claude, Cursor, etc.) for this PR?* | ||
|
florence-bockting marked this conversation as resolved.
Outdated
|
||
|
|
||
| - [ ] **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. | ||
|
|
||
| > **Note:** If AI was used, I affirm that I have reviewed every line, fully understand the logic and security implications, and am prepared to explain or defend the technical decisions therein during the review process. | ||
|
florence-bockting marked this conversation as resolved.
Outdated
|
||
|
|
||
| ## Pre-Review Checklist | ||
| > Please ensure these steps are completed before requesting a review. | ||
|
bob-carpenter marked this conversation as resolved.
Outdated
|
||
|
|
||
| - [ ] **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` / `develop`. | ||
|
florence-bockting marked this conversation as resolved.
Outdated
|
||
| - [ ] **Quality:** All existing tests pass locally, and I have added new tests for my changes. | ||
|
florence-bockting marked this conversation as resolved.
Outdated
|
||
| - [ ] **Docs:** Documentation (README, inline comments, or changelogs) has been updated. | ||
|
bob-carpenter marked this conversation as resolved.
Outdated
|
||
| - [ ] **Notebooks:** If applicable, all `.qmd` / `.Rmd` files render end-to-end in a clean environment without machine-specific paths. | ||
| --- | ||
|
|
||
| ## 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 behaviour change/migration) | ||
|
florence-bockting marked this conversation as resolved.
Outdated
|
||
| - [ ] Refactoring (no functional change) | ||
| - [ ] Documentation / Tooling / CI | ||
|
bob-carpenter marked this conversation as resolved.
Outdated
|
||
|
|
||
| ## What Changed | ||
|
|
||
| <!-- | ||
| Describe the technical changes in enough detail for a reviewer to understand | ||
| the approach without reading every line of code. | ||
| Tip: if you cannot explain a section without re-reading AI output, that section | ||
|
bob-carpenter marked this conversation as resolved.
Outdated
|
||
| needs more review before this PR is ready. | ||
| --> | ||
|
|
||
| - | ||
| - | ||
| - | ||
|
|
||
| ## 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, Slack discussions, etc. --> | ||
|
florence-bockting marked this conversation as resolved.
Outdated
|
||
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.
Uh oh!
There was an error while loading. Please reload this page.