docs: ask AI-assisted patches for short changelogs and a cover letter
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 56 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | docs: coding-assistants: ask for short changelogs and a cover letterDocumentation/ | +84 | 55 replies | |
| 2/2 | docs: security-bugs: ask AI-assisted fixes for their cover letterDocumentation/ | +11 | 1 reply |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Willy Tarreau |
|---|---|
| 1/2 | |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/2] docs: ask AI-assisted patches for short changelogs and a cover letter
Commit messages written by AI coding assistants are too long, and maintainers keep saying so. Greg: "LLMs love to write a lot. Please always rewrite the changelog text to be sane and concise." [1] Linus, on a pull request text that read like an LLM's: "you can tell it to be a bit less verbose" [2]. Marc [3], Eric [4], Hans [5], Andrew [6] and Jonathan [7] are a few more examples from this year, from different subsystems. security-bugs.rst already carries a paragraph on the length of AI-generated reports. The messages read like a copy of the assistant's analysis, and what a reader needs is buried in them.
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. Leon showed a case where only the full log revealed that the crash came from an out-of-tree module written to provoke it [8], and Willy suggested a short quote in the changelog plus the full log attached [9].
This series gives each kind of content its place. Patch 1 tells coding assistants to keep the commit message to the point and to put the evidence into a cover letter, which every patch or series they prepare has to come with, a single patch included. It lists seven items that the cover letter has to contain at a minimum. Patch 2 names the cover letter in security-bugs.rst and keeps the reproducer out of it there, as the cover letter goes to a public list with the patch.
The cover letter stays in the list archive, and the Link: tag or the patch-id of the applied commit leads back to it. The full log can then be found from the git history without being part of it.
What follows is an example of such a cover letter, written for this series. The seven items are about both patches unless one is named.
1. Based on docs-next d3b70c91af11 ("docs: ioctl-number: update DRM entries") plus "docs: submitting-patches: ask bug fixes for their user-visible impact" [10], which changes the same step 6 as patch 1. Nothing else was added. No architecture or configuration, these are documentation changes.
2. The problem was reported on the list, in the mails [1] to [9] above. No tool found it. The text of both patches was written with an AI coding assistant, Claude Code.
3. Not a kernel failure. The problem is in the patches that reach the
lists: [1] to [7] are replies to such patches and pull requests, and
[8] has an example of what a trimmed log can hide.
4. No reproducer.
5. scripts/checkpatch.pl on both patches: 0 errors, 0 warnings. "make SPHINXDIRS=process htmldocs" from an empty output directory, with and without the patches: exit 0 both times and the same 57 warnings, none of them new.
One trial of an earlier draft of patch 1, from before the paragraph on vulnerabilities was added: Claude Code with Claude Sonnet 5.5 was given a tree with the text applied, at the parent of 8e83fac77aa97 ("bootconfig: Fix xbc_verify_tree() to check subkeys of valued keys"), and was asked to fix that bug, with no mention of cover letters. It produced a [PATCH 0/1] with the seven items in order, the captured outputs copied byte for byte, and a commit message of 16 lines.
6. Nothing failed, so there is no output to show.
7. Not done: a full "make htmldocs", only Documentation/process was built. One trial with one assistant says little about the others, and the vulnerability case and patch 2 were not tried at all.
[1] https://lore.kernel.org/r/2026073057-moustache-unfixable-5ab1@gregkh
[2] https://lore.kernel.org/r/CAHk-=wgXU50=KgZNZc1JDxsSxg9Z+DjG1_2yU-fNXpZtUe4XDw@mail.gmail.com
[3] https://lore.kernel.org/r/[email protected]
[4] https://lore.kernel.org/r/CANn89iKErdqHOGFpQLM_MAi-LcAaR6ZR2_rhdtZzv1TJc2L4RQ@mail.gmail.com
[5] https://lore.kernel.org/r/[email protected]
[6] https://lore.kernel.org/r/[email protected]
[7] https://lore.kernel.org/r/20261121195920.573a0727@jic23-hlaptop
[8] https://lore.kernel.org/r/20261125125739.GA14811@unreal
[9] https://lore.kernel.org/r/[email protected]
[10] https://lore.kernel.org/r/[email protected]
Sasha Levin (2):
docs: coding-assistants: ask for short changelogs and a cover letter
docs: security-bugs: ask AI-assisted fixes for their cover letter
Documentation/process/coding-assistants.rst | 86 ++++++++++++++++++++- Documentation/process/security-bugs.rst | 17 ++-- 2 files changed, 95 insertions(+), 8 deletions(-)
base-commit: d3b70c91af11cdf08aebbfdb166b333ada0276be
prerequisite-patch-id: 3fe9b4033dfb06bcc2898e76439d04a11a239c33
Signature · 1 line
2.53.0