From 4a8b13d59151421f5e4ebfe69adbf47c2eb933c7 Mon Sep 17 00:00:00 2001 From: Daniel Kaufman <114174502+danielfromearth@users.noreply.github.com> Date: Tue, 4 Aug 2026 13:50:33 -0400 Subject: [PATCH 1/2] Add AI policy from SciPy Updated AI policy document to clarify responsibilities, disclosure, code quality, copyright, communication, and use of AI agents. --- docs/ai_policy.md | 70 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 docs/ai_policy.md diff --git a/docs/ai_policy.md b/docs/ai_policy.md new file mode 100644 index 00000000..4818bf7e --- /dev/null +++ b/docs/ai_policy.md @@ -0,0 +1,70 @@ +# AI Policy + +"AI" herein refers to generative AI tools like large language models (LLMs) +that can generate, edit, and review software code, create and manipulate +images, or generate human-like communication. + +## Responsibility + +You are responsible for any code you submit to SciPy's repositories, regardless +of whether it was manually written or generated by AI. You must understand and be able +to explain the code you submit as well as the existing related code. It is not +acceptable to submit a patch that you cannot understand and explain yourself. +In explaining your contribution, do not use AI to automatically generate +descriptions. + +## Disclosure + +You must disclose whether AI has been used to assist in the development of +your pull request. +If so, you must document which tool(s) have been used, how they were used, +and specify what code or text is AI generated. We will reject any pull request +that does not include the disclosure. + +## Code Quality + +Code generated by AI can be of low quality. Contributors are expected to +submit code that meets SciPy's standards. We will reject pull requests that we +deem being "[AI slop](https://en.wikipedia.org/wiki/AI_slop)". +Do not waste developers' time by submitting code that +is fully or mostly generated by AI, and doesn't meet our standards. + +## Copyright + +All code in SciPy is released under the BSD 3-clause copyright license. +Contributors to SciPy license their code under the same license when it is +included into SciPy's version control repository. That means contributors must +own the copyright of any code submitted to SciPy or must include the BSD +3-clause compatible open source license(s) associated with the submitted code +in the patch. Code generated by AI may infringe on copyright and it is the +submitter's responsibility to not infringe. We reserve the right to reject any pull +requests, AI generated or not, where the copyright is in question. + +## Communication + +When interacting with developers (forum, discussions, +issues, pull requests, etc.) do not use AI to speak for you, except for +translation or grammar editing. If the developers want to chat with a chatbot, +they can do so themselves. Human-to-human communication is essential for an +open source community to thrive. + +## AI Agents + +The use of an AI agent that writes code and then submits a pull request autonomously is +not permitted. A human must check any generated code and submit a pull request according +to the 'Responsibility' section above. + +## Other Resources + +While these do not formally form part of SciPy's AI policy, the following resources +may be helpful in understanding some pitfalls associated with using AI to contribute to +SciPy: + +- https://llvm.org/docs/AIToolPolicy.html +- https://blog.scientific-python.org/scientific-python/community-considerations-around-ai/ +- https://github.com/melissawm/open-source-ai-contribution-policies + +## Acknowledgements + +We thank the SymPy developers for their AI policy, upon which this document is largely +based. From 8da5f529e952b604ac05d4fe0e47062ccb5bdbec Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 4 Aug 2026 17:54:03 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- docs/ai_policy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ai_policy.md b/docs/ai_policy.md index 4818bf7e..938f33ea 100644 --- a/docs/ai_policy.md +++ b/docs/ai_policy.md @@ -25,7 +25,7 @@ that does not include the disclosure. Code generated by AI can be of low quality. Contributors are expected to submit code that meets SciPy's standards. We will reject pull requests that we -deem being "[AI slop](https://en.wikipedia.org/wiki/AI_slop)". +deem being "[AI slop](https://en.wikipedia.org/wiki/AI_slop)". Do not waste developers' time by submitting code that is fully or mostly generated by AI, and doesn't meet our standards.