[Feature]: Add AI contribution guidelines (modeled on btop)
Motivation
While following this project's issues and pull requests over the past few weeks, I have noticed a growing number of issues and PRs that appear to be AI-generated and submitted without careful human review — e.g. proposals that misread the current code, describe behavior inaccurately, or include generated boilerplate the author cannot explain. Reviewing these costs maintainer time, and there is currently no stated policy for contributors on disclosing or standing behind AI-generated work.
Summary
AI coding assistants are now widely used, but OCRmyPDF's contributing guidelines currently say nothing about AI-generated contributions. This leaves both contributors and maintainers without clear expectations on disclosure and code quality.
Proposal
Adopt an AI contribution policy modeled on the one used by the btop project: https://github.com/aristocratos/btop/blob/main/CONTRIBUTING.md
btop's policy is short and pragmatic:
- PRs containing AI-generated code must be marked
[AI generated]. - Autocomplete-style suggestions for boilerplate are exempt.
- Failure to disclose AI use results in a closed PR; deliberately hiding it results in a contribution ban.
- "Vibe coded" PRs, where the author does not understand the generated code, are dismissed.
I have prepared a pull request that adds an "AI-assisted contributions"
section to docs/contributing.md along these lines, adapted to OCRmyPDF's
wording and documentation style.
Source: ocrmypdf/OCRmyPDF