Skip to content

Commit fffb113

Browse files
Add Tool-Assisted Contribution Policy (#9106)
Fixes #8914. ### Description This adds a tool-assisted policy to the contribution documents. This is meant to cover AI and other tools collectively. As discussed we want to permit the use of AI tools without compromising the quality of PRs. We still require human review and analysis as stated in the policy. ### Types of changes <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [x] Non-breaking change (fix or new feature that would not break existing functionality). - [ ] Breaking change (fix or new feature that would cause existing functionality to change). - [ ] New tests added to cover the changes. - [ ] Integration tests passed locally by running `./runtests.sh -f -u --net --coverage`. - [ ] Quick tests passed locally by running `./runtests.sh --quick --unittests --disttests`. - [ ] In-line docstrings updated. - [x] Documentation updated, tested `make html` command in the `docs/` folder. --------- Signed-off-by: Eric Kerfoot <17726042+ericspod@users.noreply.github.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 40e4fc9 commit fffb113

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎CONTRIBUTING.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,16 @@ We are happy to talk with you about your needs for MONAI and your ideas for cont
2727

2828
MONAI is part of [PyTorch Ecosystem](https://pytorch.org/ecosystem/), and mainly based on the PyTorch and Numpy libraries. These libraries implement what we consider to be best practice for general scientific computing and deep learning functionality. MONAI builds on these with a strong focus on medical applications. As such, it is a good idea to consider whether your functionality is medical-application specific or not. General deep learning functionality may be better off in PyTorch; you can find their contribution guidelines [here](https://pytorch.org/docs/stable/community/contribution_guide.html).
2929

30+
## Tool-Assisted Contribution Policy
31+
32+
Contributions generated wholly or in part by generative tools, whether AI-based or not, are acceptable in MONAI so long as the submitting author can take responsibility for the content as if they wrote it themselves. This implies that contributors must review all submitted content, understand the content, ensure the content is appropriate and fit for purpose, and write the documentation and other information materials themselves.
33+
34+
Contributors must therefore take responsibility such that they can honestly sign the Developer Certificate of Origin (discussed below). All submitted code and data must be available through open-source/open-data licensing conditions which the contributor is required to verify, and which permit integration into MONAI. No other legal constraints can be present for the proposed content. Additionally, care must be taken with AI and agentic systems to ensure code standards are adhered to, hallucinations are not being introduced into the code, and that existing open work from other contributors is not being duplicated.
35+
36+
Attribution of AI-generated content should be included, for example with trailers in commit messages such as `Assisted-by: Some-Tool <noreply@some-tool.com>`. AI-generated comments or other content in issues or PRs should be clearly labelled as such, but there is the expectation that discussion in the review process is with the submitter themselves.
37+
38+
Code review and analysis can be assisted through the use of tools, for example linting or formatting tools. Diagnostic output from such tools does not form part of the submission but should be clearly labelled. The key emphasis is that these tools assist and do not replace human review, so contributors and reviewers must consider what might be missed by these tools, or what might be hallucinated. It might be helpful to review code with a different tool from one used for generation.
39+
3040
## The contribution process
3141

3242
*Pull request early*

0 commit comments

Comments
 (0)