☕️ Classic, reliable, trusted test framework for Node.js and the browser
docs: document AI-generated code policies (#5693)
Copilot353331663ff6
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.mdindex 2eba3177..b8689a08 100644--- a/.github/CONTRIBUTING.md+++ b/.github/CONTRIBUTING.md@@ -114,6 +114,19 @@ Then:At that point, hooray! 🎉You should see a pull request on github.com/mochajs/mocha/pulls.+### 🤖 AI-Generated Code++We recognize that AI tools like GitHub Copilot, Claude, and others can be valuable aids in software development.+However, **all code contributions, whether written by humans or generated by AI, must meet the same quality standards**.++If you use AI to help generate code for a pull request:++- **All automated tests must pass**: Your code must pass linting, unit tests, integration tests, and any other automated checks.+- **Manual review is required**: AI-generated code must undergo the same thorough manual inspection as any other contribution. This includes checking for correctness, security vulnerabilities, adherence to project conventions, and overall code quality.+- **You are responsible**: As the submitter of the pull request, you are fully responsible for understanding and maintaining the code, regardless of how it was generated.++These requirements apply to all contributions and are not unique to AI-generated code—they simply reinforce our existing standards.+### 🏭 PR ProcessNow that the pull request exists, some tasks will be run on it: