Thanks for the doc Danny. I think this has many good suggestions that will help us keep the Beam code healthy given the large set of incoming PRs created with AI agent assist. I added some comments.
Thanks, Cham On Mon, Nov 30, 2026 at 1:18 PM Danny McCormick via dev <[email protected]> wrote: > Hey folks, recently I've noticed an uptick of broad-reaching agentic PRs > where the author uses an agent to generate dozens of PRs in pursuit of a > goal. A couple examples of this include: > > - My changes > <https://github.com/apache/beam/pulls?q=is%3Apr+state%3Aopen+author%3Adamccorm+label%3Aperformance> > to improve Python performance > - Derrick's changes > <https://github.com/apache/beam/pulls?q=is%3Apr+state%3Aclosed+author%3Aderrickaw++auto-generated> > to harden security > > I think this is a good pattern; it has the potential to yield a ton of > value to Beam quickly. For example, my Python performance PRs have > generated a (conservative) double-digit % reduction in E2E runtimes across > most benchmarks. I expect we'll see more of this pattern moving forward. > > At the same time, it is a costly and exhausting pattern for reviewers. PR > creation this November is up 3.5x YoY vs last November, and while numerous > factors are at play (more to come in a future thread), and reviewer burnout > seems to be spiking. > > I think this is a hard problem to fix, and I'm not really claiming that we > can totally fix it, but I do think that coming up with some rules of > engagement for these kinds of changes can help. Hopefully this will help > reduce the review burden of these changes while also making it easier for > authors to make these sorts of changes. > > With that in mind, I am proposing > https://docs.google.com/document/d/1vUPrGJ7MksUaSPoEzpoDdlo6F2iE9XJBjKYOPMUAExo/edit?usp=sharing > > Please take a look - if it seems helpful, we can move this to a doc in the > Beam repo to guide how people (and agents) contribute. > > Thanks, > Danny >
