[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250730131253.48f5b08d@gandalf.local.home>
Date: Wed, 30 Jul 2025 13:12:53 -0400
From: Steven Rostedt <rostedt@...dmis.org>
To: "Dr. David Alan Gilbert" <linux@...blig.org>
Cc: Lorenzo Stoakes <lorenzo.stoakes@...cle.com>, Greg KH <greg@...ah.com>,
Sasha Levin <sashal@...nel.org>, corbet@....net, linux-doc@...r.kernel.org,
workflows@...r.kernel.org, josh@...htriplett.org, kees@...nel.org,
konstantin@...uxfoundation.org, linux-kernel@...r.kernel.org, Linus
Torvalds <torvalds@...ux-foundation.org>
Subject: Re: [PATCH 0/4] Add agent coding assistant configuration to Linux
kernel
On Wed, 30 Jul 2025 16:40:39 +0000
"Dr. David Alan Gilbert" <linux@...blig.org> wrote:
> * Steven Rostedt (rostedt@...dmis.org) wrote:
> > On Wed, 30 Jul 2025 16:34:28 +0100
> > Lorenzo Stoakes <lorenzo.stoakes@...cle.com> wrote:
> >
> > > > Which looked like someone else (now Cc'd on this thread) took it public,
>
> (I didn't know of the tab discussion)
Well, you were not there ;-)
> > I guess a statement in submitting-patches.rst would suffice, or should it
> > be a separate standalone document?
>
> If it's separate I think it needs to have a link from submitting-patches.rst
> to get people to read it.
>
> To summarise some other things that came up between the threads:
> a) I think there should be a standard syntax for stating it is
> AI written; I'd suggested using a new tag, but others were
> arguing on the side of reusing existing tags, which seems OK
> if it is done in a standard way and doesn't confuse existing tools.
Right. So I believe those that did not want the tag, wanted the statement
to be under the "---" so that it will not get into the git log. I prefer
the tag, but I'll be OK with the comment below the "---" as long as it is
clearly stated that the code was generated by AI.
>
> b) There's a whole spectrum of:
> i) AI wrote the whole patch based on a vague requirement
> ii) AI is in the editor and tab completes stuff
> iii) AI suggests fixes/changes
> which do you care about?
Yes, this is one of the controversial issues with having a policy. How much
does AI have to help you before you must disclose it. I would say basic
completions shouldn't be an issue. I've had editors where I type "for" it
then fills in "for (int i = 0; ; i++)". Is that AI? I don't think so.
I'm more concern where you use AI to come up with an algorith. "Hey AI,
sort this array with a quick-sort routine". And it does so. That should be
denoted in the change log. Either above or below the '---'.
>
> c) But then once you get stuff suggesting fixes/changes people were
> wondering if you should specify other non-AI tools as well.
> That might help reviewers who get bombed by a million patches
> from some conventional tool.
Fixes and changes I don't think require disclosure as long as the human
looks at that code and figures out that the code needs to change. Now if
the AI does the fix for you, as in makes the patch, then yeah, you should
disclose it. But if you manual make the patch after looking at what AI
pointed you to, then it should be fine.
>
> d) Either way there needs to be emphasis that the 'Signed-off-by'
> is a human declaring it's all legal and checked.
That should go without saying.
-- Steve
Powered by blists - more mailing lists