Repository navigation
GH-55259: [Docs] Add guidelines for reviewers on AI generated PRs #55260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
raulcd
wants to merge
4
commits into
apache:main
Choose a base branch
from
raulcd:GH-55259
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+16
−0
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -191,6 +191,22 @@ submitted contributions. See the `ASF's guidance on AI-generated code | |
| <https://www.apache.org/legal/generative-tooling.html>`_ for further | ||
| information on licensing considerations. | ||
|
|
||
| We expect human contributors to actively engage on the review process. We | ||
| recognise the value of using AI tools to understand the changes being requested | ||
| but we expect a human-in-the-loop for all engagements. Reviewer time is limited | ||
| and reviewers are not expected to be talking to contributors' agents but to | ||
| contributors themselves. If a reviewer finds that a contributor seems to rely | ||
| excessively on AI tools instead of engaging with the review, the PR might be | ||
| closed and/or tagged with a label indicating excessive AI usage. | ||
|
|
||
| .. dropdown:: Example of message for a PR with excessive AI usage | ||
| :animate: fade-in-slide-down | ||
| :class-container: sd-shadow-none | ||
|
|
||
| This PR doesn't appear to comply with our policy on tool-generated content. | ||
| Please see our AI generated code policy on AI-generated code: | ||
| https://arrow.apache.org/docs/developers/overview.html#ai-generated-code | ||
|
|
||
|
Comment on lines
+202
to
+209
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I like that we are providing an example for folks to use. I wonder if we want a reviewer's guide to put this into perhaps? |
||
| .. Section on Experimental repositories: | ||
|
|
||
| .. include:: experimental_repos.rst | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I appreciate we have a need for filtering out low-effort PRs, but I worry such a tag would create unnecessary drama, and think we might have an easier life by creating a positive tag and recommending reviewers filter on that if they want a low chance of AI PRs
For what could qualify someone for a positive tag, I quite like the prioritisation order listed at the bottom of this blog post by Andrew Lamb: https://andrew.nerdnetworks.org/blog/2026/10/19/my-plan-for-reviewing-prs-in-open-source-projects-in-the-age-of-ai/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually arrow-rs auto labels "Prolific Author" - https://github.com/apache/arrow-rs/pulls?q=is%3Apr+label%3A%22Prolific+Author%22
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, but that's something else entirely, just by the same person.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW I'm opposed to that as well as it's labelling the individual not the action. It's going to feel very personal to anyone who gets a false positive.
We could achieve the same thing by just closing those PRs with an explanatory message, if we wanted to limit PRs from people who have made lots of PRs to lots of repos.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(for clarity my original comment was referring only to "tagged with a label indicating excessive AI usage" and not the rest of the change)