-
Notifications
You must be signed in to change notification settings - Fork 55
Add AI disclosure to PR form #1634
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
Sevans711
wants to merge
1
commit into
main
Choose a base branch
from
add-ai-disclosure-on-PR-form
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.
Open
Changes from all commits
Commits
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
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.
Do we care if a developer discussed an issue with an AI if they wound up writing the code themselves?
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.
Personally, yes, but I'm also curious to hear what others think about this.
My understanding is that using AI influences our thoughts, behaviors, work, etc, even if we do not utilize its suggestions directly. E.g., this study (with faster-to-read press release) finds that being exposed to inline autocomplete suggestions from a biased AI affects people's views, even for people who are informed about the AI's bias ahead of time.
I would guess there are probably similar studies about how your problem-solving gets affected by discussing something with an AI, though I haven't taken a close look at any papers like that yet so I could easily be wrong.
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 would say no, from my experience. Having a back-and-forth with Claude is a very different workflow than just vibing it. And anyway, trying to control that would get us into the position of having to be the thought police.
Uh oh!
There was an error while loading. Please reload this page.
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 agree with @Sevans711, and this distinction may matter less with time, but I think it's still good to know for now. Without knowing much about user or the model, results can be pretty unpredictable. Like Chatgpt with no access to the whole file, being prompted by a new user may have wildly different credibility than a core user/developer using Claude Code which has access to a variety of inputs, like git, other files, dependencies, and more.
I could also see myself ticking "yes" even if I wrote the code, because I'll use models as "proofreading" after writing code, and it can either expand on or validate my findings. Similar to spell check in writing products. In this case it may be nice to know that the user at least went through some form of proofreading/testing before submitting.
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 guess I just don't see the ROI here. Can we imagine a situation where someone uses AI to think through a problem, writes the code themselves, takes responsibility for the code, and then... what? I can't imagine anything seriously negative happening in that situation.
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 see @Sevans711 point about influencing thinking and it would be nice to have stats on that but this feels intrusive and would be discouraging. Maybe just ask "if you used AI, what model did you use?" and we'll leave "use" undefined. Definitely want the checkboxes for responsibility.
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 don't think the main purpose here is to control the ways people use AI, at least, the AI Usage examples aren't trying to do that. That feels more like a job for an AI Usage Policy (which would also be good but a separate topic).
A situation I can imagine is something like: "I used AI to discuss the problem and to help me while drafting this PR. But, all the AI Usage examples in the comments were describing how it was used to edit the code. I didn't edit code with it, so I didn't actually, really use AI, then, right? All I did was discuss and take the ideas it gave me and write them up? I think I probably don't really need to worry about checking these boxes either, then. I'll just put N/A." And then later, we review and ask follow up questions, and get replies like "oh, well Claude said this is the way to go, so I think it has to be right." or "I didn't really understand that, I was just following what ChatGPT said."
In terms of ROI, I think the possible returns are high (saving reviewers' time, and reviewing PRs can take a while) though it's hard to guess their likelihood (not sure how often a situation like the one above would come up). Meanwhile, the cost feels pretty low. I would guess that it takes adds at most a minute of extra time to think about and type out a sentence like "yes I discussed this with Claude".
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.
(Woops, didn't see your response before I sent my reply above.)
If it would be discouraging that's definitely an extra cost that I didn't consider above. Can you clarify a bit more on why it would be discouraging? Examples, maybe as simple as "taking the extra time to type something out would get annoying", or maybe more rooted in people's perceptions about AI use, like "I don't want people to think I rely on AI too much", or "I don't want my contributions to be devalued because I used AI"?
Not trying to place any judgements, just trying to understand the reasoning a bit better, if possible!
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.
Every little bit of friction is discouraging to some extent. People's time and effort is limited, and we should be mindful of imposing too much bureaucracy where it isn't needed. A lot of projects succeed just because they're more organized and easier to work on than the alternatives.
I guess I'm way more comfortable with letting some things be a black box. I don't see this as any different from using Google or StackOverflow.
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.
Discouraging (to new contributors) because you have to write more and possibly a lot more if you really want an accounting of every tool and LLM used and how it was used. I just want the LLM and maybe the harness.