Curious how could we practically implement ban on LLM generated text in PR
descriptions,

The underlying issue seems to be verbose, low value descriptions that waste
reviewer time. We could address this problem by defining a PR description
template with clear sections and guidelines based on reviewer’s
expectations and make a skill out of it that humans and agents can use.

At the same time, I completely agree that replies to review comments should
come from humans.

Thanks,
Ganesh.


On Wed, Dec 2, 2026 at 7:10 PM Danny McCormick via dev <[email protected]>
wrote:

> Thanks everyone for chiming in - lots of good suggestions here, and I
> appreciate the engagement.
>
> I tried to capture the ideas here -
> https://docs.google.com/document/d/1z5jg-VFngH47Is-JgywdlLD-NJAdDMGDP6Inz0ItnzE/edit?usp=sharing
> - I split them into two sections: one with ideas I think are fairly
> uncontroversial, and one with ideas where I anticipate disagreement. I
> tried to make it easy to vote +1 or -1 on these. Please take a minute to
> review and vote on ideas, then we can use that input to consolidate on a
> tighter plan moving forward.
>
> Lastly, I also had one more idea: rather than just capping the number of
> PRs that a single author can generate, we could also create a queueing
> system for incoming reviews to rate-limit the number of PRs assigned to any
> individual reviewer. Basically, it would have the following properties:
>
>
>    1. Over a 10 day trailing window, only allow a reviewer to be assigned
>    up to 10 reviews (we can tweak these numbers).
>    2. Prioritize committer PRs (plus an allow list of frequent, known
>    high-quality contributors) over non-committer PRs (with the assumption that
>    they are higher quality)
>    3. When a PR cannot be assigned, put it in a queue of pending PRs and
>    notify the author that this has been done/what to expect.
>
> I'm curious what people think about this idea; I've added it to the doc as
> well. It prioritizes reviewer health at the expense of the non-regular
> contributor experience. Obviously that's a suboptimal tradeoff to have to
> make, but it may make things more sustainable for the project.
>
> Thanks,
> Danny
>
> On Tue, Dec 1, 2026 at 3:25 PM Yi Hu <[email protected]> wrote:
>
>> Thanks for starting this thread. I believe this is a common challenge
>> for open source projects recently so that I tried to run some prompt to
>> gather what our Apache sister projects done, and is there ASF guidelines.
>> Some takeaways:
>>
>> Across high-traffic Apache projects, sister projects that successfully
>> stabilized reviewer workload converged on a layered, quality-and-throughput
>> model:
>>
>> ## Strong Cross-Project Consensus (Adopted Broadly)
>>
>> 1. Cap concurrent open PRs for non-committers via native .asf.yaml
>> (creation_cap) — Adopted by Airflow (5), DataFusion (3), DataFusion Comet
>> (3), arrow-rs (3), and iceberg-rust (3) with an optional bypass_users
>> allowlist. No custom bot needed.
>>   - https://github.com/apache/airflow/blob/main/.asf.yaml#L86-L104
>>   - https://github.com/apache/datafusion/blob/main/.asf.yaml#L151-L153
>>   -
>> https://github.com/apache/datafusion-comet/blob/main/.asf.yaml#L189-L191
>>   - https://github.com/apache/arrow-rs/blob/main/.asf.yaml#L77-L79
>>   - https://github.com/apache/iceberg-rust/blob/main/.asf.yaml#L109-L121
>>
>> 2. Focus enforcement on *output quality and human ownership*, not AI
>> detection — Authors must read, understand end-to-end, test, and defend
>> every line. Unengaged PRs ("AI dumps") are converted to draft or closed
>> quickly without guilt.
>>   - Reviewer can create reviewer guideline doc to encourage converge to
>> draft if reviewer think it's not ready
>>   - Reviewer can use "awaiting triage" tag to an open PR if its blast
>> radius seems large and need further triage, i.e., the risk isn't clear and
>> may not worth the change at first glance
>>
>> 3. Ban fully autonomous agents and unedited LLM review replies —
>> Explicitly stated in DataFusion, Airflow, Iceberg, Arrow, and NuttX
>> discussions (including instructions in `AI_POLICY.md` / `AGENTS.md`
>> addressed directly *to* agents).
>>   - Reviewer can convert the PR to draft if found reply is obviously AI
>> and lack of human attention
>>
>> 4. Shape agent behavior proactively via `AGENTS.md` and PR templates —
>> Airflow and Flink found that clear repo/module-level `AGENTS.md` rules
>> change the vast majority of incoming agentic PRs within ~1 week because
>> most contributors are well-meaning rather than malicious.
>>
>> 5. Run external-contributor CI in contributor forks (or gate human
>> assignment on green checks) — Adopted by **DataFusion** and piloted in
>> **Airflow (AIP-120)** to prevent AI PR floods from starving shared ASF
>> GitHub Actions runners (which hit 4–7 hr queues in Oct 2026) and wasting
>> maintainer triage time.
>>   - This benefits both contributors and reviewers. After
>> https://github.com/apache/beam/pull/40373 non-committer need approval
>> for CI started run. We should implement it to bring back early CI signal.
>>
>> 6. Keep AI code review bots strictly advisory and clearly separated —
>> **Spark** and **Polaris** enforce: dedicated bot account, *never approve /
>> never post "LGTM"*, silent when no issues are found, severity-tagged
>> findings.
>>
>> I think all of these are pretty reasonable and we should be able to
>> implement them.
>>
>> ## Areas Without Consensus / Cautionary Lessons
>>
>> - **Blanket bans or tiered "apprenticeship" restrictions on AI-authored
>> code** — Stalled in **Cassandra** (133-message thread split into 3 camps)
>> and **NuttX** (both Matplotlib and Godot strict policies failed to pass).
>> - **Mandatory commit-message AI trailers (`Generated-by:` /
>> `Co-authored-by:`)** — **ASF `legal-discuss@`** concluded in Sep 2026
>> there is *no consensus* to make trailers mandatory (remains a
>> recommendation). Projects also disagree on trailer wording (`Assisted-by:`
>> vs `Generated-by:` vs `Co-authored-by:`; ASF RAI recommends reserving
>> `Co-authored-by:` for humans).
>> - **Repo-wide automatic GitHub Copilot reviews via `.asf.yaml`** —
>> **Arrow disabled it in Nov 2026** after discovering GitHub bills
>> repo-triggered Copilot reviews against the **individual PR author's**
>> Copilot quota on every push.
>> - **Banning LLM-assisted PR descriptions across the board** — **Airflow**
>> saw pushback on rigid `"Human Summary"` headers and reverted an early lazy
>> consensus, though there is broad agreement that PRs must lead with a
>> concise, human-owned explanation of *"why and caveats"* (and avoid verbose
>> AI walls of text).
>>
>>
>> ============== below are pure human inputs (aka more opinionioned
>> suggestions ) ===========
>>
>> ## Prioritize Beam user feedback
>>
>> Admittedly most AI driven PRs (many resolve old Beam Issues) have own
>> values. The negative impact for overloaded open PRs is the **opportunity
>> cost** for code review: high value and importance PRs may got ignored or
>> not get feedback in time. Personally I treat this as **high value** PRs:
>>
>> Top 1: Beam user report and/or resolve a real production bug
>> Top 2: Beam user adds and/or expose configurations that unblock their use
>> case
>> Top 3: Beam user proposes a new feature that unblock their use case
>>
>> Therefore I suggest we bring back the PR template, intended to list
>> scenarios that reviewers should prioritize. We can keep it simple, but user
>> can click checkbox to declare they are Beam user, and if this is fix their
>> own use case. Then the bot should adds appropriate labels to these PRs.
>> However, user should state their use case and why this is important, and
>> reviewer can close the open PR isn't fix real issue and obviously AI
>> dump, to maintain bandwidth to prioritized PRs.
>>
>> ## Motivation of AI-driven PR dumps
>>
>> As Jack pointed out the motivation of AI generated contributions who's
>> not actually using the product might be "sake of someone adding a
>> contribution to their GitHub profile". For Beam we also have provisional
>> Google Summer of Code students started contributing to Beam at this
>> timeline (even before GenAI). This was a good metrics for potential GSoC
>> student before, but never the case for now, as everyone uses AI to dump
>> code.
>>
>> Therefore I think we should **explicitly** stat that the past code
>> contribution to Apache Beam **won't** be considered as a factor of GSoC
>> recruitment.
>> Since this is no longer a good metric: it no longer an indicator of the
>> strength as a potential GSoC student. Instead, provisional GSoC student
>> could prepare their own repo showing how they use Beam (build a new
>> component / benchmarking) during application.
>>
>> I expect this will largely reduce the AI-driven PR dumps one of the
>> motivations is taken away, while the valuable contributions from Beam users
>> are taken care of.
>>
>> Yi
>>
>> On Tue, Dec 1, 2026 at 2:41 PM Ahmed Abualsaud via dev <
>> [email protected]> wrote:
>>
>>> My experience is that LLMs often generate better PR descriptions than I
>>>> do (though often working with the LLM + making edits produces a better
>>>> result entirely)
>>>
>>>
>>> +1 I find generated descriptions to be more wholistic (with edits when
>>> needed). I think the problem comes when the description contains an
>>> unnecessary level of detail and verbosity. Some descriptions I've seen look
>>> more like design docs and it's unreasonable to expect a reviewer to read
>>> through them.
>>>
>>> For your points in the first email:
>>>
>>> Authors remain fully responsible for understanding and defending every line
>>>> they submit
>>>
>>>
>>> I suggest an explicit statement saying we expect the author to be the
>>> first reviewer (either here or a separate point).
>>>
>>> Replies to review comments must be written by a human
>>>
>>>
>>> +1 it's really frustrating when I expect to talk to a human and get
>>> faced with an AI generated reply.
>>>
>>> Invest more in our AI review tooling
>>>
>>>
>>> +1 I'll also note our review bot tends to hallucinate quite a bit, and
>>> brings up critical issues referencing code that doesn't exist.
>>>
>>> Best,
>>> Ahmed
>>>
>>> On Tue, Dec 1, 2026 at 11:19 AM Danny McCormick via dev <
>>> [email protected]> wrote:
>>>
>>>> > The influx of PRs regardless of source has put a strain on reviewers
>>>> and the current state of things feels unsustainable. Something I’ve been
>>>> personally struggling with is that the incentives are misaligned with
>>>> regard to pull requests now: in the past, working with external
>>>> contributors who were interested in Beam helped build the community and
>>>> potentially create new domain experts and committers. Now, with the flood
>>>> of agentic changes, it can be hard to know if the contributor has even used
>>>> Beam before! The end result is feeling like my time and expertise are being
>>>> wasted for the sake of someone adding a contribution to their GitHub
>>>> profile. It’s a real recipe for burnout.
>>>>
>>>> I agree with this problem statement. Some OSS communities have even
>>>> effectively banned external contributions for this reason (which seems too
>>>> far for Beam, but is a valid response in some project).
>>>>
>>>> > As far as ways to slow things down a bit, I would suggest banning
>>>> LLM generated PR descriptions in addition to review comments for both
>>>> non-committers *and* committers (with the exception of the automated
>>>> tooling efforts around dependency updates and security vulnerabilities
>>>> which are clearly labeled, and even then I would prefer those PRs be filed
>>>> by a designated bot account instead of being mixed in with an individual’s
>>>> PRs.) If you as an author cannot give a basic explanation as to the “how”
>>>> or “why” of a code change upfront, the review isn’t going to be
>>>> particularly pleasant. I don't want to disincentivize external
>>>> contributions, but adding *just a bit* of friction for the individual
>>>> behind the screen should help filter out the really low-effort,
>>>> low-investment work.
>>>>
>>>> I think requiring this for external contributors is reasonable and
>>>> provides an additional helpful bar. I think for committers, we should be
>>>> able to trust that they can give an explanation as to the “how” or
>>>> “why” of a code change upfront.
>>>>
>>>> My experience is that LLMs often generate better PR descriptions than I
>>>> do (though often working with the LLM + making edits produces a better
>>>> result entirely), so I am hesitant to require this across the board. My
>>>> experience has been that the quality of PR descriptions has improved over
>>>> the last year (though the same cannot be said for code quality or
>>>> importance of the change). What do you (or others) think?
>>>>
>>>> Thanks,
>>>> Danny
>>>>
>>>>
>>>> On Tue, Dec 1, 2026 at 12:11 PM Jack McCluskey <[email protected]>
>>>> wrote:
>>>>
>>>>> The influx of PRs regardless of source has put a strain on reviewers
>>>>> and the current state of things feels unsustainable. Something I’ve been
>>>>> personally struggling with is that the incentives are misaligned with
>>>>> regard to pull requests now: in the past, working with external
>>>>> contributors who were interested in Beam helped build the community and
>>>>> potentially create new domain experts and committers. Now, with the flood
>>>>> of agentic changes, it can be hard to know if the contributor has even 
>>>>> used
>>>>> Beam before! The end result is feeling like my time and expertise are 
>>>>> being
>>>>> wasted for the sake of someone adding a contribution to their GitHub
>>>>> profile. It’s a real recipe for burnout.
>>>>>
>>>>> As far as ways to slow things down a bit, I would suggest banning LLM
>>>>> generated PR descriptions in addition to review comments for both
>>>>> non-committers *and* committers (with the exception of the automated
>>>>> tooling efforts around dependency updates and security vulnerabilities
>>>>> which are clearly labeled, and even then I would prefer those PRs be filed
>>>>> by a designated bot account instead of being mixed in with an individual’s
>>>>> PRs.) If you as an author cannot give a basic explanation as to the “how”
>>>>> or “why” of a code change upfront, the review isn’t going to be
>>>>> particularly pleasant. I don't want to disincentivize external
>>>>> contributions, but adding *just a bit* of friction for the individual
>>>>> behind the screen should help filter out the really low-effort,
>>>>> low-investment work.
>>>>>
>>>>> Jack
>>>>>
>>>>> On Tue, Dec 1, 2026 at 11:14 AM Danny McCormick via dev <
>>>>> [email protected]> wrote:
>>>>>
>>>>>> Hey everyone,
>>>>>>
>>>>>> I wanted to start a discussion on how we should handle the recent jump
>>>>>> in external PR volume, especially AI-assisted PRs, without burning out
>>>>>> reviewers.
>>>>>>
>>>>>> To put some numbers on what we're seeing:
>>>>>>
>>>>>>    - November hit 685 PRs created, up from a 2025 average of 246.2/mo
>>>>>>    (3.5x YoY vs. 196 in Nov 2025, and well above our prior May 2017 peak
>>>>>>    of 478).
>>>>>>    - Non-committer contributors are the biggest single driver of that
>>>>>>    jump, rising 3.7x from 65.7/mo in 2025 to 245 in November (80 active
>>>>>>    non-committer authors vs. 16 active committers).
>>>>>>    - Even with a record 450 merges in November, our open backlog grew
>>>>>>    by 135 PRs (292 open total). The 15 reviewers in .github/REVIEWERS.yml
>>>>>>    absorbed 654 primary assignments in November - 43.6 per reviewer on
>>>>>>    average, and 72.6 across the 7 fallback reviewers.
>>>>>>
>>>>>> I expect this to accelerate.
>>>>>>
>>>>>> A couple of important callouts: first, core committers are also driving
>>>>>> a big share of the uptick through agent-assisted work (I recently
>>>>>> shared a separate proposal on standards for large-scale agentic changes).
>>>>>> I'll leave that out of scope for this thread.
>>>>>>
>>>>>> Second, this isn't just spam - our merge rate for non-committer PRs
>>>>>> has been reasonably high (~75% over the last few months), and
>>>>>> annecdotally I've seen a fair amount of value in these contributions. So
>>>>>> I think we want to filter out low-effort/unowned PRs, improve the
>>>>>> quality of middling PRs without human intervention required, and smooth
>>>>>> out the queue, but we don't want to shut down external contributions.
>>>>>>
>>>>>> Looking at how other OSS projects have approached this, here are a few
>>>>>> lightweight options I think could fit:
>>>>>>
>>>>>>    1. Soft cap on concurrent open PRs per non-committer. Defer pr-bot
>>>>>>    reviewer assignment once a non-committer has 2 or 3 open non-draft
>>>>>>    PRs (with an allow list for trusted repeat contributors) until earlier
>>>>>>    PRs are merged or closed. Have pr-bot automatically unassign
>>>>>>    reviewers when directly requested by an external contributor.
>>>>>>    2. Wait for green checks before assigning a human reviewer. Have 
>>>>>> pr-bot
>>>>>>    hold off on tagging a reviewer until required CI checks pass and 
>>>>>> automated
>>>>>>    lint/review findings have been addressed, so reviewers aren't spending
>>>>>>    first passes on broken PRs. This would require an additional
>>>>>>    lightweight triaging layer to allow checks to run, and we'd probably 
>>>>>> also
>>>>>>    need to filter to non-flaky workflow runs (or auto-retry a certain 
>>>>>> number
>>>>>>    of times).
>>>>>>    3. Add explicit AI contribution guidelines to CONTRIBUTING.md (or an
>>>>>>    AI_POLICY.md). Specifically, ideas I'd support:
>>>>>>       - Authors remain fully responsible for understanding and defending
>>>>>>       every line they submit (consistent with our ICLA requirements).
>>>>>>       - No fully autonomous/unmonitored bot PRs from external
>>>>>>       accounts.
>>>>>>       - Replies to review comments must be written by a human, not 
>>>>>> copy-pasted
>>>>>>       LLM output.
>>>>>>       - Explicit norm that committers should feel comfortable pausing
>>>>>>       or closing a PR if the author cannot explain the change or there
>>>>>>       doesn't appear to be a reachable human engaging with feedback.
>>>>>>       - Guidelines coming out of my LSAC doc/thread
>>>>>>       
>>>>>> <https://lists.apache.org/thread.html/2jm2m05l93zrxw3nlxv5zw1rqjktkj37>
>>>>>>    4. Invest more in our AI review tooling. Anecdotally, my manual
>>>>>>    AI review passes are catching significantly more than the bot is. I'm
>>>>>>    trying to start with https://github.com/apache/beam/pull/41844
>>>>>>    (WIP) to do this
>>>>>>
>>>>>> What do folks think? Any other ideas?
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> Danny
>>>>>>
>>>>>

Reply via email to