Re: [PATCH 1/2] docs: coding-assistants: ask for short changelogs and a cover letter
From: Borislav Petkov
Date: Thu Nov 26 2026 - 20:50:31 EST
On Fri, Nov 27, 2026 at 02:34:26AM +0100, Krzysztof Kozlowski wrote:
> On 26/11/2026 18:19, Sasha Levin wrote:
> > Commit messages written by AI coding assistants are too long.
> > Maintainers keep asking for them to be cut down [1][2][3][4]: they read
> > like a copy of the assistant's analysis and bury what a reader needs.
> > When an assistant does trim, the opposite problem shows. A few lines of
> > a backtrace do not tell a reviewer how the failure was produced, and
> > Leon Romanovsky showed a case where only the full log revealed that the
> > crash came from an out-of-tree module written to provoke it [5]. Willy
> > Tarreau suggested a short quote in the changelog plus the full log
> > attached [6].
>
> Shall we rather ask them not to write commit msgs at all? By writing
> commit msg we encourage - or try to encourage - at least basic
> understanding of what the patch does.
Agreed.
Just have the LLM write a commit message and then the human should go
and whack most of it to the bare minimum of coincisely explaining the thing
and cull all the bullsh*t.
I constantly do that with submitters' overloaded bla nowadays. And don't even
get me started on all those explaining what the patch does. There's not small
amounts of text which basically spells out the code in the diff, in English.
/facepalm.
Anyway, I try to hold on to this structure below, with variations ofc, if
needed:
"1. Prepare the context for the explanation briefly.
2. Explain the problem at hand.
3. "It happens because of <...>"
4. "Fix it by doing X"
5. "(Potentially do Y)."
And some of those above are optional depending on the issue being
explained."
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette