You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add AI tooling disclosure text to contributor guide and fields to PR templates #18095
Is your feature request related to a problem or challenge?
Inspired by ghostty-org/ghostty#8289 I think it might be a good idea to add some text to the contributor guide requesting usage of AI tooling to be disclosed. Additionally, adding fields to PR templates encourages people to fill in this information proactively.
Use of AI tools should not be discouraged, but as a courtesy to the human being reviewing changes it would be nice if any output from an AI system is marked as such. The referenced example explains this much better than I can.
I'm not sure to what extent AI slop PRs are already a problem in this project. Maybe adding the PR template fields is too much of a nuisance for regular contributors.
Additional context
No response
Reacted by Yongting You, Alex Huang, Sriram Sundar, Marko Milenković, xudong.w and feniljain
Maybe the PR template should include something like: “If you're using an AI assistant, do you fully understand the generated code and its context?” — instead of just asking whether AI was used.
To be honest, I’m more willing to review PRs when the author explicitly states that they fully understand the generated code. Sometimes it’s hard to review a large AI-generated PR if the author doesn’t fully grasp the rationale behind it — whether the code is fully generated seems less important to me.
Reacted by Alex Huang, Jeffrey Vo, Sriram Sundar, Andrew Lamb, Adrian Garcia Badaracco and feniljain
To be honest, I’m more willing to review PRs when the author explicitly states that they fully understand the generated code. Sometimes it’s hard to review a large AI-generated PR if the author doesn’t fully grasp the rationale behind it — whether the code is fully generated seems less important to me.
think this is a really great point
It is really tough (takes lots of mental focus time) to review large PRs, and I think one challenge is that AI tools make it much easer to create such large PRs.
Thus, a related suggestion would be to emphasize breaking PRs down into small pieces that are easier to understand (both for submitter and reviewer).
My two cents as a contributor: Let's remember that there's no guarantee that people will tell the truth on the internet. I don't think this will help much with the most problematic PRs where all the code is fully AI-generated and the PR feedback is handled by AI, too. I think the same people who author these PRs will also lie about their use GenAI use.
Maybe the PR template should include something like: “If you're using an AI assistant, do you fully understand the generated code and its context?”
I like the intention of this suggestion, but I don't think anyone would ever say "No" to this. It might just be extra noise for regular contributors.
I can definitely recall one time when I used agent mode to fix something for me (in a different repo). The hard part was finding where to do the fix, but the fix was trivial (2 lines), and I fully understood it. In that case, I decided to lie (oh no, how could I 😱) and say "No" to the question asking if GenAI is used because I just wanted my PR in, and I knew I was ready for feedback if there was any. (For the record, if I ever did make any large GenAI changes that I didn't understand, I probably wouldn't submit the PR, please still trust me as a contributor 🙏 haha)
I do think this change could be helpful to encourage more comments like this #17988 (comment), but again, I think it will be from the people who won't be a problem. I guess how relevant my argument is largely dependent on whether DF gets more PRs like that or more PRs that are AI spam, like the example PR below.
I think what might be more useful is to decide on how reviewers should handle PRs that are suspected to be AI-generated. e.g. Do you call it out explicitly or not? Do you ghost them, or do you close the PR? I've seen PRs where the reviewer calls the author out, asking if it's AI-generated, and then there's no more activity on the PR, but then the issue never gets fulfilled because there's a linked PR, and it's 80% there. In fact, here's an example in DF.
My two cents as a contributor: Let's remember that there's no guarantee that people will tell the truth on the internet. I don't think this will help much with the most problematic PRs where all the code is fully AI-generated and the PR feedback is handled by AI, too.
It’s not a magic solution, fully agree with that. But being able to tap the contributor guide sign might still be useful for when people are called out. It changes the feedback from “this is the reviewer’s individual opinion” to “this is how we would like to do things in the project”.
FWIW my interpretation of the conversation on that PR is that it was reviewed, but then feedback was not actually addressed even though there were responses (aka interactions like this #17314 (comment) was wasting @milenkovicm 's time)
That is my only real concern about using AI tools -- that they can potentially waste a bunch of reviewer time (one of the most constrained resources we have).
My two cents as a contributor: Let's remember that there's no guarantee that people will tell the truth on the internet. I don't think this will help much with the most problematic PRs where all the code is fully AI-generated and the PR feedback is handled by AI, too. I think the same people who author these PRs will also lie about their use GenAI use.
I think people are not telling the truth because of misunderstandings rather than malice. We should better explain why large AI-generated PRs without understanding are not helpful.
Here are my opinions. If we can reach agreements, they can be added to the contributor guide:
If the PR author only understands a small part of the implementation details, such PR should be rejected
The PR and code review system exists for two major reasons:
Get the job done, obviously.
Share knowledge about the codebase between author and reviewers, which is a long-term investment in the project. For this reason, even if someone familiar with the codebase can finish a task quickly, it’s still worth helping a new contributor work on it even if it takes longer.
This doesn’t work for fully AI-generated PRs without understanding, because reviewers are mostly prompting through a pass-through human proxy. They can solve the problem faster by using AI directly, and there is almost no knowledge sharing since the PR author doesn’t want to understand the solution.
A better way to help is to write a better issue to make it easier for others to contribute, instead of generating a full solution.
If the author knows most of the solution but is missing some corners, such PRs are welcome
One case is implementing a large trait, where the author knows the high-level idea but isn’t sure if a certain interface’s default implementation is okay to use. This might be due to under-documentation of the API.
They're encouraged to point out exactly which part of the PR they don’t fully understand, the review can focus on that and potentially improve the documentation.
Reacted by Marko Milenković, Andrew Lamb and Adrian Garcia Badaracco
Here are my opinions. If we can reach agreements, they can be added to the contributor guide:
@2010YOUY01 -- I think this is the best description I have ever read about the nuances and tradeoffs of AI generated PRs. It captures the tradeoffs really well I think it would be an amazing addition to our contribution guides.
Do you have time to create a PR to add it? If not I will find time to do so
Here are my opinions. If we can reach agreements, they can be added to the contributor guide:
@2010YOUY01 -- I think this is the best description I have ever read about the nuances and tradeoffs of AI generated PRs. It captures the tradeoffs really well I think it would be an amazing addition to our contribution guides.
Do you have time to create a PR to add it? If not I will find time to do so
I have filed #18237, looking forward to feedbacks.
The comments here about large AI‑generated PRs consuming reviewer time really hit home. I’m building AI Diff Guard, a lightweight CLI + Action that flags off‑scope diffs, reformat‑only changes, big rewrites, and missing tests before a reviewer sinks time.
If you’re open to a 2‑week pilot, I can set it up and tune thresholds to DF’s norms. I’ll handle setup and removal if it’s not helpful.
FWIW, we may also need to take conversations under PRs into account. I saw some long replies from contributors to the reviewer's suggestions. I would prefer these replies to be from contributors who have read carefully, filtered, and refined them. Based on my daily experience, AI-generated conversations tend to have redundancy and possible errors.
Should we limit use of AI for issues labelled as good first issue? IMHO, those type of issues should be done by humans who want to get into datafusion.
FWIW, we may also need to take conversations under PRs into account. I saw some long replies from contributors to the reviewer's suggestions. I would prefer these replies to be from contributors who have read carefully, filtered, and refined them. Based on my daily experience, AI-generated conversations tend to have redundancy and possible errors.
Yes I agree -- getting a dump of an LLM answer to a question doesn't help either the contributor or the proejct.
An AI dump for an issue doesn’t meet these purposes. Maintainers could finish the task faster by using AI directly, and the submitters gain little knowledge if they act only as a pass through AI proxy without understanding.
Maybe we should clarify that "AI Dump" also refers to comments / responses on the PR, not just the code itself
In sum, we don’t need more code; we need more care. Care for the humans who shepherd the communities and create code that will endure beyond a simple prompt.
Would you be open to a free JigsawML demo on the DataFusion repository? I’d be happy to map it out and show you what it finds—no commitment, just an opportunity to see if it could complement your review process.
Please do not spam PRs with commercial offers. We will delete such posts
Reacted by Pepijn Van Eeckhoudt and Alessandro Solimando
Activity
2010YOUY01 commentedon Oct 16, 2025
Maybe the PR template should include something like: “If you're using an AI assistant, do you fully understand the generated code and its context?” — instead of just asking whether AI was used.
To be honest, I’m more willing to review PRs when the author explicitly states that they fully understand the generated code. Sometimes it’s hard to review a large AI-generated PR if the author doesn’t fully grasp the rationale behind it — whether the code is fully generated seems less important to me.
Jefffrey commentedon Oct 17, 2025
I also like & support this line from ghostty
codetyri0n commentedon Oct 17, 2025
I think this is a good example too - apache/opendal#6666
alamb commentedon Oct 17, 2025
think this is a really great point
It is really tough (takes lots of mental focus time) to review large PRs, and I think one challenge is that AI tools make it much easer to create such large PRs.
Thus, a related suggestion would be to emphasize breaking PRs down into small pieces that are easier to understand (both for submitter and reviewer).
petern48 commentedon Oct 17, 2025
My two cents as a contributor: Let's remember that there's no guarantee that people will tell the truth on the internet. I don't think this will help much with the most problematic PRs where all the code is fully AI-generated and the PR feedback is handled by AI, too. I think the same people who author these PRs will also lie about their use GenAI use.
I like the intention of this suggestion, but I don't think anyone would ever say "No" to this. It might just be extra noise for regular contributors.
I can definitely recall one time when I used agent mode to fix something for me (in a different repo). The hard part was finding where to do the fix, but the fix was trivial (2 lines), and I fully understood it. In that case, I decided to lie (oh no, how could I 😱) and say "No" to the question asking if GenAI is used because I just wanted my PR in, and I knew I was ready for feedback if there was any. (For the record, if I ever did make any large GenAI changes that I didn't understand, I probably wouldn't submit the PR, please still trust me as a contributor 🙏 haha)
I do think this change could be helpful to encourage more comments like this #17988 (comment), but again, I think it will be from the people who won't be a problem. I guess how relevant my argument is largely dependent on whether DF gets more PRs like that or more PRs that are AI spam, like the example PR below.
I think what might be more useful is to decide on how reviewers should handle PRs that are suspected to be AI-generated. e.g. Do you call it out explicitly or not? Do you ghost them, or do you close the PR? I've seen PRs where the reviewer calls the author out, asking if it's AI-generated, and then there's no more activity on the PR, but then the issue never gets fulfilled because there's a linked PR, and it's 80% there. In fact, here's an example in DF.
pepijnve commentedon Oct 17, 2025
It’s not a magic solution, fully agree with that. But being able to tap the contributor guide sign might still be useful for when people are called out. It changes the feedback from “this is the reviewer’s individual opinion” to “this is how we would like to do things in the project”.
alamb commentedon Oct 17, 2025
FWIW my interpretation of the conversation on that PR is that it was reviewed, but then feedback was not actually addressed even though there were responses (aka interactions like this #17314 (comment) was wasting @milenkovicm 's time)
That is my only real concern about using AI tools -- that they can potentially waste a bunch of reviewer time (one of the most constrained resources we have).
2010YOUY01 commentedon Oct 19, 2025
I think people are not telling the truth because of misunderstandings rather than malice. We should better explain why large AI-generated PRs without understanding are not helpful.
Here are my opinions. If we can reach agreements, they can be added to the contributor guide:
If the PR author only understands a small part of the implementation details, such PR should be rejected
The PR and code review system exists for two major reasons:
This doesn’t work for fully AI-generated PRs without understanding, because reviewers are mostly prompting through a pass-through human proxy. They can solve the problem faster by using AI directly, and there is almost no knowledge sharing since the PR author doesn’t want to understand the solution.
A better way to help is to write a better issue to make it easier for others to contribute, instead of generating a full solution.
If the author knows most of the solution but is missing some corners, such PRs are welcome
One case is implementing a large trait, where the author knows the high-level idea but isn’t sure if a certain interface’s default implementation is okay to use. This might be due to under-documentation of the API.
They're encouraged to point out exactly which part of the PR they don’t fully understand, the review can focus on that and potentially improve the documentation.
alamb commentedon Oct 22, 2025
@2010YOUY01 -- I think this is the best description I have ever read about the nuances and tradeoffs of AI generated PRs. It captures the tradeoffs really well I think it would be an amazing addition to our contribution guides.
Do you have time to create a PR to add it? If not I will find time to do so
2010YOUY01 commentedon Oct 23, 2025
I have filed #18237, looking forward to feedbacks.
doc: Contributor guide for AI-generated PRs (#18237)
doc: Contributor guide for AI-generated PRs (apache#18237)
gschull commentedon Jan 24, 2026
The comments here about large AI‑generated PRs consuming reviewer time really hit home. I’m building AI Diff Guard, a lightweight CLI + Action that flags off‑scope diffs, reformat‑only changes, big rewrites, and missing tests before a reviewer sinks time.
If you’re open to a 2‑week pilot, I can set it up and tune thresholds to DF’s norms. I’ll handle setup and removal if it’s not helpful.
Would that be welcome?
alamb commentedon Jan 28, 2026
I don't think we are going to be able to add / demo new actions in this repo
You could potentially setup your own fork and then port PRs over there automatically and run your tool
xudong963 commentedon Jan 31, 2026
FWIW, we may also need to take conversations under PRs into account. I saw some long replies from contributors to the reviewer's suggestions. I would prefer these replies to be from contributors who have read carefully, filtered, and refined them. Based on my daily experience, AI-generated conversations tend to have redundancy and possible errors.
milenkovicm commentedon Jan 31, 2026
Looks like ffmpeg developers have similar issues https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21595#issuecomment-23753
milenkovicm commentedon Jan 31, 2026
Should we limit use of AI for issues labelled as
good first issue? IMHO, those type of issues should be done by humans who want to get into datafusion.alamb commentedon Feb 3, 2026
Yes I agree -- getting a dump of an LLM answer to a question doesn't help either the contributor or the proejct.
I still think @2010YOUY01 did a great job capturing this in our guidelines https://datafusion.apache.org/contributor-guide/index.html#ai-assisted-contributions
Maybe we should clarify that "AI Dump" also refers to comments / responses on the PR, not just the code itself
milenkovicm commentedon Feb 10, 2026
Qute good post about ai and open source
In sum, we don’t need more code; we need more care. Care for the humans who shepherd the communities and create code that will endure beyond a simple prompt.
https://www.infoworld.com/article/4129056/is-ai-killing-open-source.html
alamb commentedon Aug 17, 2026
Related discussion
alamb commentedon Aug 27, 2026
Please do not spam PRs with commercial offers. We will delete such posts
Update contributor guidelines regarding AI spam, reviews, code (apach…
Update contributor guidelines regarding AI spam, reviews, code (apach…