linux-doc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH] docs: submitting-patches: (AI?) Tool disclosure tag
@ 2025-07-24 17:54 linux
  2025-07-24 19:07 ` Konstantin Ryabitsev
  0 siblings, 1 reply; 20+ messages in thread
From: linux @ 2025-07-24 17:54 UTC (permalink / raw)
  To: corbet, workflows, kees, josh, konstantin
  Cc: linux-doc, linux-kernel, Dr. David Alan Gilbert

From: "Dr. David Alan Gilbert" <linux@treblig.org>

It seems right to require that code which is automatically
generated is disclosed in the commit message.

This is a starting point.  It's purposely agnostic about
whether using any such tools is a good idea or not, and is also
agnostic about trying to draw any hard line about when a tool
should be disclosed like this.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
---
This span out of a Fediverse discussion, those involved cc'd

 Documentation/process/submitting-patches.rst | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/Documentation/process/submitting-patches.rst b/Documentation/process/submitting-patches.rst
index cede4e7b29af..d7c8f47a4632 100644
--- a/Documentation/process/submitting-patches.rst
+++ b/Documentation/process/submitting-patches.rst
@@ -452,6 +452,18 @@ development. SoB chains should reflect the **real** route a patch took
 as it was propagated to the maintainers and ultimately to Linus, with
 the first SoB entry signalling primary authorship of a single author.
 
+Disclosing tool generated code
+------------------------------
+
+When a substantial part of the patch (code or text) has been generated by
+some automated system, such as an AI/LLM, or automated code patcher
+(e.g. Coccinelle) the use shall be disclosed by::
+
+  Generated-by: Example Tool 2.3
+
+Where possible, the input text or prompt should be included in the
+commit message to enable others to learn techniques that work well.
+
 
 When to use Acked-by:, Cc:, and Co-developed-by:
 ------------------------------------------------
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2025-07-25 23:29 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-24 17:54 [RFC PATCH] docs: submitting-patches: (AI?) Tool disclosure tag linux
2025-07-24 19:07 ` Konstantin Ryabitsev
2025-07-24 20:45   ` Kees Cook
2025-07-24 21:06     ` Laurent Pinchart
2025-07-24 21:12     ` Dr. David Alan Gilbert
2025-07-24 21:20       ` Kees Cook
2025-07-24 23:45         ` Steven Rostedt
2025-07-24 23:54           ` Kees Cook
2025-07-25  0:55             ` Dr. David Alan Gilbert
2025-07-25  1:06             ` Sasha Levin
2025-07-25  1:20               ` Dr. David Alan Gilbert
2025-07-25  1:52                 ` Sasha Levin
2025-07-25  2:02                   ` Steven Rostedt
2025-07-25  2:39                     ` Sasha Levin
2025-07-25 11:29                   ` Dr. David Alan Gilbert
2025-07-25 11:37                     ` Laurent Pinchart
2025-07-25 11:49                       ` Dr. David Alan Gilbert
2025-07-25 17:45                         ` Al Viro
2025-07-25 22:40                     ` Sasha Levin
2025-07-25 23:29                       ` Dr. David Alan Gilbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).