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

From: Lorenzo Stoakes (ARM)

Date: Mon Nov 30 2026 - 10:30:58 EST


On Mon, Nov 30, 2026 at 09:38:39AM -0500, Sasha Levin wrote:
> Did you see the actual patch I've sent? 95% of it is an attempt to make the
> commit message shorter, more concise, and only include useful details. The
> other 5% is the escape hatch for Leon's usecase, which we could easily remove
> in the future.

Yup I did, here's the 95% of it about the conciseness (AFAICT):

"
+The commit message **MUST** be to the point. "Patch formatting and changelogs"
+in Documentation/process/5.Posting.rst asks for a changelog that conveys what
+its readers need "in the most direct and concise way possible", and "Describe
+your changes" in Documentation/process/submitting-patches.rst says what that
+is. Keep the message as short as its content allows. Leave out markdown,
+labels such as "Root cause:", a restatement of the subject, lists of what was
+checked and the story of the investigation. Quote only the few lines of a log
+that identify the problem, see "Backtraces in commit messages" in
+Documentation/process/submitting-patches.rst.
"

The remaining 5% is:

"
+Every patch or series prepared with an AI assistant **MUST** come with a cover
+letter, the "[PATCH 0/N]" mail that the patches are sent as replies to. This
+includes a single patch; tool use that
+Documentation/process/generated-content.rst puts out of scope does not count.
+The cover letter holds the evidence that reviewers need to check the work. It
+is posted with the patches and stays in the list archive.
+
+The cover letter **MUST** contain the following items, in this order. Do not
+drop an item: if there is nothing to say, write that. For a series, say which
+patch each item is about.
+
+1. The commit ID the work was done on, the architecture and configuration, and
+ everything that was added to that tree to trigger or observe the problem:
+ other patches, out-of-tree modules, fault injection, debugging code.
+2. How the problem was found: a report (give the link), a test, a tool, or
+ reading the code. Name the tools that were used, as
+ Documentation/process/generated-content.rst asks.
+3. Whether the problem was seen to happen: on the unmodified tree, only with
+ the additions from item 1, or never (found by analysis only).
+4. The reproducer, or the exact steps that trigger the problem. See below for a
+ bug that is or may be a vulnerability.
+5. How the change was tested: the commands, and the results without and with
+ the change. Leave out the output of successful builds.
+6. The complete output that shows the problem. For a runtime failure this is
+ the kernel log from boot up to and including the failure; for a build
+ failure, a failing test or a tool report it is all the output of that
+ command.
+7. What could not be done: not built, not booted, not tested, no reproducer.

< a bunch more lines >

+A patch without its cover letter is not finished and must not be reported as
+done. Maintainers can expect the cover letter, and may ignore patches prepared
+with an AI assistant that arrive without one.
"

I'd hasten to argue this change is about:

1. redefining what a cover letter is

2. changing policy on single patch cover letters for everybody, unilaterally
(for AI stuff at least)

3. getting the LLM to generate a bunch more text, but shoving it in the
cover letter

4. trying to fix a correctness issue, not a succinctness one

5. oh and be concise in commit messages

Please reduce it to 5 only, thanks.

>
> I think that some of the points you made further down in your reply argue a
> similar point, that this series makes commit messages longer somehow, but this
> really isn't the case: the goal here is to make the actual commit messages
> shorter and better.

I didn't say anything of the kind...

> It wasn't because of some secret decision, it's because we already have

Secret decision? What?

> per-subsystem rules around commit messages that are incompatible with
> eachother, so there's no way to write a subsystem-agnostic LLM guide that makes
> all subsystems happy.

I'm not sure what this is responding to even?

> We don't have to include the cover letter part, but as you (and others) noted
> earlier, just asking it to be more concise would not lead to better results.

I didn't say that?

>
> I suppose that I really want to keep the stuff that would go into the cover
> letter is because I feel we need to experiment here and see how different LLMs
> respond to our prompting, and we might need to adjust certain details based on
> what we see. Without all the data in the cover letter we won't have the
> information we need to make a good decision going forward.

This is new... :) I'd rather we didn't experiment in generating more LLM
output thanks.

>
> > Also don't tell it to add a cover letter to single patches, violating the
> > conventions of probably most of the kernel but certainly mm where out of the
> > ~1000 odd recent single patches sent maybe ~20 had a cover letter, and were
> > likely corrected on that?
>
> So I don't like this either, but I don't have a better solution. We can skip it
> altogether, but I'm not sure it'll make things "better" longer term.

I'm still very confused as to why? The better solution is to just tell the
LLM to generate less text?

> Cool, if there's a strong objection to the cover letter approach, let's figure
> out some other way to make it better.

"If there's a strong objection" :) and you wonder why I feel like I'm not
being heard.

I'm not so sure reengaging here was the right decision...!

Anyway, to keep it short and sweet - change this patch into:

+The commit message **MUST** be to the point. "Patch formatting and changelogs"
+in Documentation/process/5.Posting.rst asks for a changelog that conveys what
+its readers need "in the most direct and concise way possible", and "Describe
+your changes" in Documentation/process/submitting-patches.rst says what that
+is. Keep the message as short as its content allows. Leave out markdown,
+labels such as "Root cause:", a restatement of the subject, lists of what was
+checked and the story of the investigation. Quote only the few lines of a log
+that identify the problem, see "Backtraces in commit messages" in
+Documentation/process/submitting-patches.rst.

Only and I'll happily give a tag. I suspect others here may feel the same
way.

--
Cheers, Lorenzo