From: "Lorenzo Stoakes (ARM)" <ljs@kernel.org>
To: Sasha Levin <sashal@kernel.org>
Cc: "David Hildenbrand (Arm)" <david@kernel.org>,
Willy Tarreau <w@1wt.eu>, Borislav Petkov <bp@alien8.de>,
Krzysztof Kozlowski <krzk@kernel.org>,
Jonathan Corbet <corbet@lwn.net>,
Linus Torvalds <torvalds@linux-foundation.org>,
Leon Romanovsky <leon@kernel.org>,
Mark Brown <broonie@kernel.org>,
Geert Uytterhoeven <geert@linux-m68k.org>,
Marc Zyngier <maz@kernel.org>,
Eric Dumazet <edumazet@google.com>,
Hans de Goede <hansg@kernel.org>, Andrew Lunn <andrew@lunn.ch>,
Jonathan Cameron <jic23@kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
Shuah Khan <skhan@linuxfoundation.org>,
Randy Dunlap <rdunlap@infradead.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Theodore Ts'o <tytso@mit.edu>,
Security Officers <security@kernel.org>,
workflows@vger.kernel.org, linux-doc@vger.kernel.org,
linux-kernel@vger.kernel.org,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Subject: Re: [PATCH 1/2] docs: coding-assistants: ask for short changelogs and a cover letter
Date: Mon, 30 Nov 2026 15:30:36 +0000 [thread overview]
Message-ID: <aw2LdA9hmx5lDvXc@gremlin> (raw)
In-Reply-To: <aw2Kb9LzRwYzTn4N@laps>
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
next prev parent reply other threads:[~2026-11-30 15:30 UTC|newest]
Thread overview: 53+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 17:19 [PATCH 0/2] docs: ask AI-assisted patches for short changelogs and a cover letter Sasha Levin
2026-11-26 17:19 ` [PATCH 1/2] docs: coding-assistants: ask " Sasha Levin
2026-11-27 1:34 ` Krzysztof Kozlowski
2026-11-27 1:49 ` Borislav Petkov
2026-11-27 2:19 ` Sasha Levin
2026-11-27 5:23 ` Willy Tarreau
2026-11-27 9:18 ` Lorenzo Stoakes (ARM)
2026-11-27 9:29 ` Willy Tarreau
2026-11-27 9:38 ` Lorenzo Stoakes (ARM)
2026-11-27 14:11 ` Mark Brown
2026-11-27 14:25 ` Lorenzo Stoakes (ARM)
2026-11-27 14:31 ` Sasha Levin
2026-11-27 18:05 ` Mark Brown
2026-11-27 9:44 ` David Hildenbrand (Arm)
2026-11-27 9:54 ` Lorenzo Stoakes (ARM)
2026-11-27 13:37 ` Sasha Levin
2026-11-27 13:52 ` David Hildenbrand (Arm)
2026-11-27 14:20 ` Lorenzo Stoakes (ARM)
2026-11-27 14:31 ` Sasha Levin
2026-11-27 14:51 ` Lorenzo Stoakes (ARM)
2026-11-27 15:39 ` Sasha Levin
2026-11-27 16:27 ` Andrew Lunn
2026-11-27 16:46 ` Lorenzo Stoakes (ARM)
2026-11-27 16:59 ` Sasha Levin
2026-11-30 12:40 ` Lorenzo Stoakes (ARM)
2026-11-30 14:38 ` Sasha Levin
2026-11-30 14:52 ` Leon Romanovsky
2026-11-30 14:55 ` Lorenzo Stoakes (ARM)
2026-11-30 15:04 ` Leon Romanovsky
2026-11-30 15:32 ` Lorenzo Stoakes (ARM)
2026-11-30 15:30 ` Lorenzo Stoakes (ARM) [this message]
2026-11-27 19:08 ` Andrew Morton
2026-11-27 19:21 ` David Woodhouse
2026-11-30 15:37 ` Lorenzo Stoakes (ARM)
2026-11-29 14:00 ` Leon Romanovsky
2026-11-29 13:31 ` Leon Romanovsky
2026-11-27 17:51 ` Vlastimil Babka (SUSE)
2026-11-27 18:03 ` Sasha Levin
2026-11-27 18:14 ` Vlastimil Babka (SUSE)
2026-11-27 18:26 ` Sasha Levin
2026-11-27 19:30 ` Liam R. Howlett
2026-11-27 23:26 ` Sasha Levin
2026-11-29 13:50 ` Leon Romanovsky
2026-11-30 11:20 ` Geert Uytterhoeven
2026-11-29 8:05 ` Krzysztof Kozlowski
2026-11-30 15:39 ` Lorenzo Stoakes (ARM)
2026-11-29 13:13 ` Leon Romanovsky
2026-11-29 13:36 ` Sasha Levin
2026-11-29 13:39 ` Leon Romanovsky
2026-11-30 15:57 ` Lorenzo Stoakes (ARM)
2026-11-30 15:01 ` Mark Brown
2026-11-26 17:19 ` [PATCH 2/2] docs: security-bugs: ask AI-assisted fixes for their " Sasha Levin
2026-11-27 5:29 ` Willy Tarreau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aw2LdA9hmx5lDvXc@gremlin \
--to=ljs@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=andrew@lunn.ch \
--cc=bp@alien8.de \
--cc=broonie@kernel.org \
--cc=corbet@lwn.net \
--cc=david@kernel.org \
--cc=edumazet@google.com \
--cc=geert@linux-m68k.org \
--cc=gregkh@linuxfoundation.org \
--cc=hansg@kernel.org \
--cc=jic23@kernel.org \
--cc=krzk@kernel.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=leon@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maz@kernel.org \
--cc=rdunlap@infradead.org \
--cc=sashal@kernel.org \
--cc=security@kernel.org \
--cc=skhan@linuxfoundation.org \
--cc=torvalds@linux-foundation.org \
--cc=tytso@mit.edu \
--cc=w@1wt.eu \
--cc=workflows@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox