AI Contribution Policy Bot
A GitHub app that enforces a repository's AI-contribution policy on every pull request: the contributor declares AI assistance, acknowledges the current policy version, and the PR is labeled with a permanent provenance record for compliance audits. The bot makes no judgment about code quality or review priority — its single job is capturing an attestation of how each change was produced, at the one checkpoint every PR passes through. With agent-submitted PRs now routine across open source and six major organizations' AI policies fragmented and manually enforced, the missing layer is automated disclosure enforcement for governance and compliance owners.
Concept
A GitHub App that compiles a repository's written AI-contribution policy into an automated gate on every pull request. When a PR opens, the author declares whether AI tools generated or assisted the contribution and acknowledges the repo's policy; the bot records the declaration, the exact policy version acknowledged, and attaches a provenance label to the PR. The output is an auditable disclosure trail — not a quality score, not a fast-track or routing decision, and not an analytics benchmark. The bot is deliberately opinion-free about whether AI-assisted code is good; it guarantees only that every merged change carries an attestation of how it was produced.
The primary user is the governance and compliance function — foundations, project committees, and enterprises with formal AI-contribution policies — rather than maintainers optimizing review throughput.
Why now
PyPSA v1.2.1 [0] added explicit AI contribution guidelines — evidence that maintainers of production scientific software now treat AI-generated contributions as a governance problem requiring formal rules. Two new findings sharpen this:
Agent-submitted PRs are already routine and mostly land. An empirical study of 567 Claude Code PRs across 157 open-source projects [1] found 83.8% merged (vs 91.0% for human PRs), with agents disproportionately used for tests, refactoring, and documentation (+14.3%, +10%, +8.1% vs human PRs). Critically, 54.9% of merged agent PRs were merged without further modification — meaning the PR gate is frequently the only checkpoint where provenance can ever be captured. If disclosure is not recorded when the PR opens, no later human stage will record it.
Policies exist but are fragmented and unenforced. A comparison of AI-contribution policies across SymPy, LLVM, matplotlib, OpenInfra, the Apache Software Foundation, and the Linux Foundation [2] finds the landscape fragmented, with alignment to the EU AI Act, NIST AI RMF (UC Berkeley Agentic AI Profile), and ISO/IEC 42001/23894 unmapped at the contribution level — and the 2025–2026 record of agent-driven incidents, AI-generated nuisance volume, and platform-level shutdowns making the gap 'operationally consequential.' Open-source process assumes 'a legally accountable person who can attest to provenance'; machine contributors break that assumption. A written policy with no enforcement point is precisely the gap this bot closes.
How the evidence adapts the design
- Policy-agnostic core, framework-aligned templates. Because the six organizations' policies diverge [2], the bot enforces whatever policy text a repo defines rather than shipping one global template — and offers optional template packs aligned to the EU AI Act, NIST AI RMF + Agentic AI Profile, and ISO/IEC 42001/23894 for organizations accountable to those frameworks.
- Low-friction gate. [1]'s high acceptance rates cut against any heavy-handed screening: most agent PRs are fine, so the gate must be a one-click declaration plus acknowledgment, never a quality barrier. The bot's value is the record, not the block.
- Capture at open time. Since 54.9% of agent PRs merge unmodified [1], the declaration is requested at PR-open, before review, so provenance exists even for changes no human ever revises.
Honest limits
- Self-report remains the backbone. Neither paper establishes that AI-generated code can be reliably detected via static analysis, so a contributor can still falsely claim 'no AI used.' The bot can corroborate declarations against visible signals (agent tool attribution in commit/PR metadata), but the disclosure trail is an attestation, not proof.
- Jurisdictional variation is unresolved. [2] maps policies to frameworks but does not make any global template legally sufficient everywhere; the bot enforces policy and records acknowledgments — it is not legal advice.
- License questions remain open. How Apache 2.0/MIT interact with AI-generated code provenance and copyright is untouched by both papers; the bot records provenance but does not answer the legal question.
- No quality judgment. [1]'s finding that 45.1% of merged agent PRs needed human revision is real, but predicting which PRs need rework and routing reviews accordingly is a different product for a different user; this bot stays out of that lane.
Written by GLM · 2 Oct 2026 · revised 1× with new research (latest 27 Nov 2026, Gemma 4 and GLM)
AI assessment
An exceptionally focused, low-risk tool that solves a high-value compliance pain point for large-scale open-source governance.
- Evidence strength 5/5
- The idea directly addresses the governance gap identified in the policy comparison paper and leverages the empirical finding that many agent PRs merge without human touch, making an automated gate necessary.
- Market pull 4/5
- Large foundations and enterprises governed by ISO/IEC 42001 have a high urgency for auditable provenance to mitigate legal and compliance risks associated with AI-generated code.
- Novelty & moat 4/5
- While other catalog ideas focus on quality, triage, or technical correctness, this is the first to focus specifically on the legal/governance attestation layer.
- Feasibility 5/5
- Building a GitHub App that triggers a prompt and labels a PR is a straightforward engineering task with low technical risk.
- Wedge clarity 5/5
- The wedge is highly specific: a single-purpose compliance gate for organizations with existing AI policies.
- Simplicity / focus 5/5
- The product is disciplined and avoids 'platform creep' by explicitly refusing to perform quality checks or routing.
Scored by Gemma 4 · 27 Nov 2026. Rated against a fixed rubric (evidence, market, novelty, feasibility, wedge, simplicity), relative to the closest ideas already in the catalog. A prior estimate to compare ideas before real-world signal arrives.
Act on this idea
Ideas only matter if someone runs with them. Your message goes straight to the founder's inbox — nothing is stored on our servers.
Business analysis
The PESTEL analysis reveals a strong strategic fit driven by emerging regulatory frameworks (EU AI Act, ISO 42001) and the rise of autonomous agentic PRs. While the tool solves a critical governance gap for large foundations, its primary weakness is the reliance on self-reporting rather than technical verification. Overall, the idea is highly viable as a compliance-layer utility rather than a technical code-analysis tool.
Political2
Economic2
Social2
Technological2
Environmental1
Legal3
The product's core value is driven by external legal and regulatory pressures like the EU AI Act and ISO/IEC 42001 compliance. · Generated 2026-11-27 by Gemma 4AI-generatedFull PESTEL Analysis →
Who benefits
- PyPSA open-source projectorganization
Just adopted AI contribution guidelines in v1.2.1; a bot enforces them at PR time so the small maintainer team does not have to police compliance manually.
- NumFOCUSorganization
Sponsors dozens of scientific Python projects facing the same wave of AI-generated contributions; a standard enforcement bot could be offered across its sponsored projects.
- Linux Foundationorganization
Hosts hundreds of projects that must update contribution policies for AI; automated disclosure gates reduce provenance and legal risk at ecosystem scale.
- Red Hatcompany
Maintains large open-source projects with strict contribution policies; automated AI-disclosure enforcement cuts review burden and protects software supply-chain provenance.
Research it builds on
- PyPSA: Python for Power System AnalysisBrown, Tom, Jonas Hörsch, David Schlachtberger · 2026 · 524 citationsAll ideas from this paper →
- On the Use of Agentic Coding: An Empirical Study of Pull Requests on GitHubAll ideas from this paper →
- Regulating the Machine Contributor: Governance and Policy Alignment in Open SourceJassem Manita, Aziz Amari · 2026 · 3 citationsAll ideas from this paper →