From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796052646; b=yPKbicTdWWQUGu+0lK8HBS8eb7T5GgRKhdK02mUdFFt40BlwCSfbOivw99MqscTfeEOT 8mcuG0B7SLzjGaQYbQq6krYiBvrJmqRG8A63KbXGNwa89ykw1Wlj3o4eiXqrE414Fzrqs OF5BD8cvQhcwW7wp3/yfc273zRJK9KXVURDk1Lf8EBlug3L9O9TGkojWs46J54IuLm49c 53H9UhBubAi9QmqUDdPVvW4A4ALCik5XbvSw2gr7iiKl+meJYwuwgTZP29w2xxrBQVYRH X0L7f84nkEpQNbWVLPaiJ6RkHpxHWF6cCYkqsmdXlM5riYUo2g1MAzZykBOa9rKalgQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796052646; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=0y5Dz7D/+hSJ8HI+FAhMIwWR6cPi04EYMZnmMtLuN9I=; b=VF6DeWsAR7TTXnHRtLUVGTuUwskHujWG+np7HXZK6gd5XMFJaUR3BBV2GxBn+7QlNiXp wT3vBhwRBvzvp/1LviVnUxG98R3P8e5aaTFlOthV0LvrEok5+GlcO9FzSLq6k4mQFsL0d PhjGIjLnnFR3t8Oy9lBFow4ItQta5vPSGdTmY2Um8/IY+oUNK1MQ8DDb84Zi1qERNMOfi frit7j9sVgAemsZlo/F6NtV2cGzFpYYRWlbGfDHAHbihxXqorqsS5qbbWghgg94o3Pzxh MBEoaqUCGyoYJiAyphgL9+Z+AqkBW4OuqI0tsdJoX4rF6d9SAxfXLprb/VXeVFeGgdQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=dljTcl6N; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6457F606A31C; Mon, 30 Nov 2026 15:30:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=dljTcl6N Received: by smtp.kernel.org (Postfix) with ESMTPSA id B2D701F000C1; Mon, 30 Nov 2026 15:30:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796052645; bh=0y5Dz7D/+hSJ8HI+FAhMIwWR6cPi04EYMZnmMtLuN9I=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=dljTcl6NJHS1lbukbTfh7CKvpXd89qbaCntfYyCSY8OgdxNsftlSa4Ug4UZzuQkrX D6opddBhXwG8UYaBaE5JmH+qwc+m9Up6eFDMqBI7TAz0bzFg/qJUwxlmyWFRX7hAWA auWl2rNTN9wIFgJ3tnsql/YkBymX8LzC05MeqFydApwHmqq8kZX9Y+T5MdsqKR2loY +65fPx5z08uaIgO68nr9N0ilNszO7lc53htxM40iS9hODJEfDNKDc8tK9cX+5ouehT rIR+ZGI5f7SHw42gj4gXoobfXEa4QWAlCOEVEAxAUKZgX6c3joyPWg+eSujVYgoLbH GNr9PTCKGOXQw== Date: Mon, 30 Nov 2026 15:30:36 +0000 From: "Lorenzo Stoakes (ARM)" To: Sasha Levin Cc: "David Hildenbrand (Arm)" , Willy Tarreau , Borislav Petkov , Krzysztof Kozlowski , Jonathan Corbet , Linus Torvalds , Leon Romanovsky , Mark Brown , Geert Uytterhoeven , Marc Zyngier , Eric Dumazet , Hans de Goede , Andrew Lunn , Jonathan Cameron , Andrew Morton , Shuah Khan , Randy Dunlap , Greg Kroah-Hartman , Theodore Ts'o , Security Officers , workflows@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Laurent Pinchart Subject: Re: [PATCH 1/2] docs: coding-assistants: ask for short changelogs and a cover letter Message-ID: References: <20261127133756.455469-1-sashal@kernel.org> <20261127143124.1039470-1-sashal@kernel.org> <20261127153902.1320179-1-sashal@kernel.org> <20261127165951.1741013-1-sashal@kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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