Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 55 additions & 28 deletions AI_POLICY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 🤖 MDAnalysis AI-generated contributions policy 🤖

* Version: **1.2 (2026-05-29)**
* Version: **2.0 (2026-11-30)**
* License: **[CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/)**

This document defines the [MDAnalysis organization's](https://github.com/MDAnalysis/) policy regarding AI-generated content. This policy applies to all aspects of the MDAnalysis project, including all the GitHub repositories under the organization unless a project defines its own explicit AI Policy.
Expand All @@ -10,72 +10,99 @@ For the purposes of this document, _content_ is defined as any contribution to t
- Documentation of any kind
- Communication content (e.g. issues, discussions, pull request descriptions, and reviews)

We recognize that the use of AI in open source software raises many difficult questions and acknowledge that views, approaches, and technical capabilities are rapidly changing.
We recognize that the use of AI in open source software raises many difficult questions and acknowledge that views, approaches, and technical capabilities are rapidly changing.
We invite comments and further discussion (via our [discussion channels](https://www.mdanalysis.org/pages/community/)) and expect to periodically review this policy.

## Policy overview

MDAnalysis does not accept any substantial uses of AI-generated content in contributions.
## Guiding principles

AI tools may be used in limited cases, for example when it is used for small amounts of AI-assisted code (e.g. autocompletion using copilot, cursor, etc...)
or for language translation purposes. **Such uses must always be declared.**
* Humans are always responsible for AI output.
* Contributors must be transparent and honest; this includes that AI use must always be declared.
* In forums designed for humans (e.g., issue tracker, discussions) only humans are allowed to speak. We want to spend our time talking with humans, not with LLMs (or human proxies for LLMs).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor suggestion might be to note "unless otherwise agreed" if that can be done in a way that isn't confusing. I've seen a few cases now where a subteam in a larger project decided that for certain tasks they would allow higher levels of automation.

In general though, this is in alignment with most other ecosystem projects.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that could be useful for the issue tracker at least. I can see a few cases where automation might play a role also on opening issues for example.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that "limited exceptions" is already mentioned below, so definitely good to add it here too.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest not adding the exception here for now and adding it in the future when it's necessary. The special cases being described here are going to be mostly specific to the core developers, and I would expect everything under the policy to be at the discretion of the core developers.

* Human time is precious. Core Developers can always decide that a contribution does not justify the review effort and close it.
* The project benefits most from expertise, not just code/documentation.
* Scientific code has to be correct. If no human can assess or validate the code then we cannot include it.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Scientific code has to be correct. If no human can assess or validate the code then we cannot include it.
* Scientific code has to be correct. If no human can assess or validate the code then we cannot include it. This includes contributions that provide significant speedups at the price of code obfuscation.

Or something similar? In my experience this is quite a common case that might be worth singling out.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nit] I like Rocco's suggestion, but would maybe change that from "This includes" to "For example".

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That’s very good to include. I just would try to move it down into the policy details section and try to keep the foundations section fairly tight.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me.

* Best practice norms, e.g. software contribution standards set by the project, must always be followed.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Best practice norms, e.g. software contribution standards set by the project, must always be followed.
* Best practice norms, e.g. software contribution standards set by the project, must always be followed. Some of these norms are collected in `AGENTS.md`.



## Policy foundations

MDAnalysis allows AI generated content in code and documentation but not in forums intended for humans (with some limited exceptions).

**Any form of AI used must always be declared**.

### Expertise and trust matter

The project benefits from human expertise but not from low-effort contributions and hence Core Developers will exercise broad discretion in rejecting PRs outright that appear to be AI-generated slop or situations where the AI generated code is not fully understood by the contributing author.
This may mean that PRs are treated differently, depending on who is submitting them.
Someone who has contributed to the project over time may be trusted to use generative AI responsibly and have their PR reviewed while a new contributor’s PR is just rejected.

We want to make explicit that trust factors into our decisions.
Trust is something that we are building together through repeated, positive interactions in a range of modalities and we do not consider it as something one can shortcut or outsource to an algorithm.


### How contributions will be assessed

Please understand that reviewing capacity is very limited for the project, so large PRs which appear to not have the requisite understanding might not get reviewed, and eventually closed or redirected.
Understanding from authors about what code they are contributing and how it fits into the larger picture is crucial; for new features in particular, we are looking for domain expertise.
If reviewers feel there is a lack of understanding from looking at the code, PR descriptions, or just general interactions with a contributor, we reserve the right to close the PR to save time and resources.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're mentioning this a lot. I suppose that's fine--we want to be clear and have something to point to if folks complain if/when PRs get closed.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree it sounds a bit repetitive, but I think this is a very important point. We always tried to be a inclusive and welcoming community (and we still try hard!), so it make sense to stress these points since PR rejection might be taken badly in some cases (maybe more by the AI agents themselves than the human contributors.... It's important to stress we are welcoming and inclusive and willing to give our time to new contributors when there is genuine human effort behind, not just waste time interacting with AI through a human proxy.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've had enough folks reacting poorly to our decisions that being repetitive is an unfortunate need.


Please understand the reviewing capacity is very limited for the project, so large PRs which appear to not have the requisite understanding might not get reviewed, and eventually closed or redirected.
Understanding from authors about what code they are contributing and how it fits into the larger picture is crucial.
If reviewers feel there is a lack of understanding from looking at the code, PR descriptions or just general interactions with a contributor, we reserve the right to close the PR to save time and resources.
Given the limited reviewing capacity, time and effort of reviewing and educating contributors will be more targeted to PRs of initial high quality and/or contributors where interactions are constructive and of good quality.
This means that for new or infrequent contributors, we may refuse reviews of PRs without an associated initial discussion on a corresponding issue.
We look for a high-level description and motivation of what a PR will include.
We do not recommend opening PRs without having had a discussion with a member of the [Core Developer team](https://www.mdanalysis.org/pages/governance/#mdanalysis-core-developers) on an associated issue.

## Policy details

### 0. AI usage must always be declared
Contributors that use AI tools must follow the policy described in this document.
AI agents must read the file [AGENTS.md](https://github.com/MDAnalysis/mdanalysis/blob/develop/AGENTS.md).

### 1. AI usage must always be declared

All contributions must be fully transparent about any AI usage. Failure to disclose AI use (e.g. in pull request description details)
may be queried by other developers and may be considered non-compliance with this policy.
All contributions must be fully transparent about any AI usage.
Failure to disclose AI use (e.g., in pull request description details) will be considered non-compliance with this policy.

If we suspect that AI tools were used as part of a contribution, MDAnalysis developers may ask you for clarification.
Please do not take offense if this happens to you, distinguishing between AI-generated and human-authored content is increasingly difficult!

### 1. Fully generated code is not allowed

Fully AI-generated contributions, such as content generated by prompting a large language model (e.g. claude code or chatgpt) or produced by any agentic AI system are not permitted in MDAnalysis.

Some limited exceptions are described in sections #2 and #3 for integrated development environments (IDEs) and language translation.
### 2. Restricted use of AI in forums

### 2. Limited AI assistance exemption: IDEs and autocompletion
A "forum" is a place built for human communication; this includes (but is not limited to) issue trackers, PR comments, Discord, GitHub discussions. We require humans to write in these forums and do not want to engage with generated content.

AI tools are now so deeply integrated into many modern development environments, and it may be impractical to avoid them entirely.
We recognise that this is particularly true for modern integrated development environments (IDEs), which may use AI to power features like autocompletion.
You may use AI help to, for instance, generate a reproducer case, or format tables to communicate results. But a human has to write the overall post and be in charge of the content.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps also noteworthy that an issue that was discovered by an LLM or LLM-driven fuzzer may be considered low priority if the real world use case isn't fully clear. I believe NumPy recently added a section to their issue templates for the real-world relevance/how it was encountered. I forget if we already have that--a minimum viable reproducer from a fuzzer isn't quite the same thing as relevance and worthy of human attention of course.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any language you want to add/change here?

We don’t have anything like this in the PR template. It sounds like a good idea. Can you raise an issue so that we don’t forget to update?


In these limited cases of code generation, typically ranging from a single variable to a couple of lines of code,
AI assitance is deemed acceptable. However, if code generation exceeds minimal, sporadic amounts (e.g. repeated or large multi-line blocks),
it would be considered fully AI-generated and, as defined in section #1, is not acceptable.

As per section #0, it is your responsibility to report the extent of AI assitance you used.

### 3. Limited AI assistance exemption: language translation
### 3. Language translation

MDAnalysis aims to foster an inclusive environment for all contributors and users. We recognise that language barrier can limit participation
in open-source projects, particularly for non-native English speakers.

Whilst we prefer you communicate with us in your own words (and languages if needed), we acknowledge that AI-based translation tools may sometimes
be necessary for communicating in issues / discussions. If such tools are used, we ask you to disclose their use and purpose.

### 4. Contributors are responsible authors and must be aware of, and declare, any derivate work

### 4. Contributors are responsible authors and must be aware of, and declare, any derivative work

Contributors are responsible for the content and provenance of every aspect of their contribution, including any design decisions.
Contributors must be aware of whether their work derives from external sources / codebases and must declare any derivative work.

Code reviewers may ask you to explicitly confirm that your code does not infringe on any copyright and licenses and in this case the burden is on you to address this question.


### 5. Human reviewers are required

All code merged into MDAnalysis repositories must be reviewed by a human reviewer. Instructions / suggestions from human reviewers always take precedence over those of non-human reviewers.


### 6. Consequences for failure to comply to this policy

Any failures to comply with this policy should be reported to the MDAnalysis core developers through
our [standard communications channels](https://www.mdanalysis.org/pages/community/#ask-questions--get-help) or email to mdanalysis@numfocus.org .
The core developers may enforce this policy through a range of actions, which may include restricting or banning individuals from future contributions.
The Core Developers may enforce this policy through a range of actions, which may include restricting or banning individuals from future contributions.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Somewhat related: did we ever set a new PR count limit for non maintainers?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good reminder, I just set it to 1 for non-write access (and lifted the limit if they have at least 2 PRs merged).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!


There is a zero tolerance policy for intentionally failing to disclose or misrepresent the extent of AI usage.

There is a zero tolerance policy for intentionally failing to disclose or misrepresenting the extent of AI usage.

## Acknowledgements

Expand Down
Loading