Open-source maintainers are drowning in AI-generated pull requests that look polished but break builds, import unused packages, or leave placeholder comments like // ... existing code .... In response to this growing inbox crisis, developer asifnazeer24 built FairPR, a GitHub Action designed to filter these contributions without banning first-time contributors. The tool was rigorously tested against 972 real pull requests from high-profile projects including Godot, curl, and Next.js to determine if automated filtering can distinguish between human effort and machine slop.
The Benchmark: Zero False Positives
The core promise of FairPR is that it judges the PR, not the person. It runs local checks for contributors and verifies contribution policies for maintainers, such as requiring AI disclosure or linked issues. The benchmark results are striking for their safety: out of 316 merged first-time PRs, zero were incorrectly put on hold. This 0.0% false positive rate ensures that genuine contributors are never blocked by the filter, a critical feature for projects relying on community growth. The tool labels PRs as verified, needs info, or on hold but never auto-closes them, leaving the final decision to human maintainers.
The Limitation: It Can't Detect Clean AI Code
Where FairPR struggles is in identifying sophisticated AI slop. Of the 28 PRs that maintainers explicitly labeled as spam, invalid, or AI slop, the tool caught only four. The author admits that tuning the filter to catch more would inevitably flag good human contributions. The misses were mostly clean, well-formed agent PRs with sensible titles and reasonable diffs. The analysis concludes that there is no reliable way to detect AI authorship from the code diff alone if the output is syntactically correct. Instead of trying to guess the author, FairPR shifts the burden to the contributor through mandatory disclosure lines and proof-of-effort fingerprints.
Implementation and Philosophy
FairPR operates without servers, accounts, or LLM calls, running entirely in GitHub Actions or on a developer's laptop. It uses a YAML policy file to define project-specific rules and a self-check fingerprint to verify that contributors actually ran tests on their submitted code. The tool is MIT licensed, and the full dataset of 972 per-PR results is available for public scrutiny. The author suggests that while detection catches lazy cases, disclosure and proof are the only viable strategies for handling the broader wave of AI-assisted contributions.
Key Takeaways
- FairPR achieved a 0.0% false positive rate on 316 merged first-time PRs, ensuring real contributors are never blocked.
- The tool caught only 4 out of 28 PRs labeled as AI slop, proving that clean AI code is currently undetectable from diffs alone.
- FairPR relies on contributor disclosure and self-check fingerprints rather than algorithmic AI detection to maintain fairness.
- The solution runs entirely locally or in GitHub Actions with no servers or LLM calls, keeping it lightweight and private.
The Bottom Line
FairPR is a pragmatic tool that correctly identifies the real problem: we cannot reliably detect AI code by content alone. By prioritizing zero false positives and relying on contributor honesty via disclosure and proof-of-effort, it offers a sustainable path forward for maintainers who want to reduce spam without alienating their community.