Re: [PATCH 1/2] docs: coding-assistants: ask for short changelogs and a cover letter

From: Vlastimil Babka (SUSE)

Date: Fri Nov 27 2026 - 12:51:33 EST


On 11/27/26 15:31, Sasha Levin wrote:
> On Fri, Nov 27, 2026 at 02:20:15PM +0000, Lorenzo Stoakes (ARM) wrote:
>>On Fri, Nov 27, 2026 at 08:37:56AM -0500, Sasha Levin wrote:
>>> Very much the case. But we can't stop the "wrong hands" from using it, so we
>>> need guardrails around them that make it produce what we, as a community, think
>>> is the right thing.
>>
>>These aren't guardrails, you are just trying to modify the output of
>>something that's broken here IMO.
>
> I see this as the beginning of a guardrail. It'll take us some time to get to
> something like checkpatch for LLMs, but we have to start somewhere.
>
>>I think a placeholder works better, personally.
>
> I don't think we can really instruct LLMs not to write the message. The human
> will just turn around and tell it to ignore that instruction and write the
> commit message anyway.
>
>>+10. Write the cover letter described in "Cover letter" above from what the
>>+ previous steps produced. This part is not optional, not even for a single
>>+ patch or a one-line fix.
>>
>>BTW this seems to be instructing LLMs to generate cover letters for single
>>patches which I don't personally love to see.
>>
>>And it therefore gives the LLM double the chance to post awful word
>>salad. So I'd prefer not to have that clause ideally.
>
> The single patch cover letter was something that was floated during LPC and the
> Maintainers Summit. The other option I was thinking about is a git note
> attached to the patch: format-patch puts it below the "---" and git am discards
> it, so it never lands in the tree. I'm open to suggestions though.

b4 tracks the cover letter (with to/cc list and its own metadata) as an
empty commit preceding the series itself, regardless of whether it's a
single patch or a series. IIUC the empty commit is less easy to lose than
git note, but that's probably not the crucial part.

If you then do 'b4 send' and it's a single patch, it indeed puts it below
the '---' line. So git am discards it.
I think it makes a lot of sense? If there is a single patch, it should be
self-descriptive anyway, there isn't much information necessary to explain
the whole series, if there's no series. So you might consider some extra
info/context useful for reviewing, but not important enough for a commit log
you want to see doing a git blame later (but it's still reachable via Link:
anyway). So putting it below the --- should be good enough.