Skip to contentSkip to conversation

docs/process: document AI-assisted patch tags

PATCH Superseded Cody Zuschlag 4 participants 4 messages May 20 – May 26

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 docs/process: document AI-assisted patch tags

Add documentation for the Assisted-by tag to clarify how AI-assisted tooling may be disclosed in Xen patches.

The guidance is inspired by similar work in the Linux kernel documentation.

Assisted-by ChatGPT
---
 docs/process/sending-patches.pandoc | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
docs/process/sending-patches.pandoc +22 -0
index 798ecceb..b61584f9 100644
@@ -195,6 +195,25 @@ E.g.:
 
     Requested-by: Jane Doe <[email protected]>
 
+### Assisted-by:
+
+This optional tag can be used when AI-assisted tooling contributed to the
+preparation of a patch. It is in the format:
+
+    Assisted-by: <tool-name>[:<model-version>] [tool...]
+
+E.g.:
+
+    Assisted-by: Claude:claude-3-opus coccinelle sparse
+    Assisted-by: ChatGPT:gpt-5.5
+
+Basic development tools, such as git, compilers, make, and editors, should
+not be listed.
+
+The person submitting the patch remains responsible for reviewing any
+AI-generated content and ensuring the contribution is correct, appropriate,
+and compliant with Xen's contribution and licensing requirements.
+
 ### Signed-off-by:
 
 This mandatory tag specifies the author(s) of a patch (for each author a
@@ -209,6 +228,9 @@ E.g.:
 The author must be a natural person (not a team or just a company) and the
 `Signed-off-by:` tag must include the real name of the author (no pseudonym).
 
+AI tools must not add `Signed-off-by:` tags, as only natural
+persons can certify the `Developer's Certificate of Origin`.
+
 By signing the patch with her/his name the author explicitly confirms to have
 made the contribution conforming to the `Developer's Certificate of Origin`:
 
Signature · 1 line
2.45.0
#1 lore raw

docs/process/sending-patches.pandoc E.g.: · line 201

Quoted 10 lines · Cody Zuschlag
docs/process/sending-patches.pandoc +4 -0
@@ -195,6 +195,25 @@ E.g.:
 
     Requested-by: Jane Doe <[email protected]>
 
+### Assisted-by:
+
+This optional tag can be used when AI-assisted tooling contributed to the
+preparation of a patch.

Noticed only while reading your other email, plus checking the Linux
wording: s/can/should/ at the very least? (Personally I'd make it a requirement.)

Quoted 20 lines

It is in the format:

docs/process/sending-patches.pandoc +15 -0
+
+    Assisted-by: <tool-name>[:<model-version>] [tool...]
+
+E.g.:
+
+    Assisted-by: Claude:claude-3-opus coccinelle sparse
+    Assisted-by: ChatGPT:gpt-5.5
+
+Basic development tools, such as git, compilers, make, and editors, should
+not be listed.
+
+The person submitting the patch remains responsible for reviewing any
+AI-generated content and ensuring the contribution is correct, appropriate,
+and compliant with Xen's contribution and licensing requirements.
+
 ### Signed-off-by:
 
 This mandatory tag specifies the author(s) of a patch (for each author a

docs/process/sending-patches.pandoc E.g.: · line 232

Quoted 5 lines
docs/process/sending-patches.pandoc +2 -0
@@ -209,6 +228,9 @@ E.g.:
 The author must be a natural person (not a team or just a company) and the
 `Signed-off-by:` tag must include the real name of the author (no pseudonym).
 
+AI tools must not add `Signed-off-by:` tags, as only natural
+persons can certify the `Developer's Certificate of Origin`.

Linux emphasizes "MUST NOT". I think that's advisable for us as well. I also wonder whether some of their other wording might be worth taking verbatim, rather than making our own, slightly different variant.

Nit: Wrap differently to make better use of line length?

Jan

#2 lore raw
Quoted 39 lines · Jan Beulich

docs/process/sending-patches.pandoc E.g.: · line 201

Quoted 10 lines · Cody Zuschlag
docs/process/sending-patches.pandoc +4 -0
@@ -195,6 +195,25 @@ E.g.:
 
     Requested-by: Jane Doe <[email protected]>
 
+### Assisted-by:
+
+This optional tag can be used when AI-assisted tooling contributed to the
+preparation of a patch.

Noticed only while reading your other email, plus checking the Linux
wording: s/can/should/ at the very least? (Personally I'd make it a requirement.)

Quoted 23 lines

It is in the format:

docs/process/sending-patches.pandoc +15 -0
+
+    Assisted-by: <tool-name>[:<model-version>] [tool...]
+
+E.g.:
+
+    Assisted-by: Claude:claude-3-opus coccinelle sparse
+    Assisted-by: ChatGPT:gpt-5.5
+
+Basic development tools, such as git, compilers, make, and editors, should
+not be listed.
+
+The person submitting the patch remains responsible for reviewing any
+AI-generated content and ensuring the contribution is correct, appropriate,
+and compliant with Xen's contribution and licensing requirements.
+
 ### Signed-off-by:
 
 This mandatory tag specifies the author(s) of a patch (for each author a
@@ -209,6 +228,9 @@ E.g.:
 The author must be a natural person (not a team or just a company) and the
 `Signed-off-by:` tag must include the real name of the author (no pseudonym).
 
Quoted 6 lines

docs/process/sending-patches.pandoc E.g.: · line 232

Quoted 2 lines
docs/process/sending-patches.pandoc +2 -0
+AI tools must not add `Signed-off-by:` tags, as only natural
+persons can certify the `Developer's Certificate of Origin`.

Linux emphasizes "MUST NOT". I think that's advisable for us as well. I also wonder whether some of their other wording might be worth taking verbatim, rather than making our own, slightly different variant.

I agree with Jan's suggestion. Other than that:

#3 lore raw
In reply to Jan Beulich
Quoted 39 lines · Jan Beulich

docs/process/sending-patches.pandoc E.g.: · line 201

Quoted 10 lines · Cody Zuschlag
docs/process/sending-patches.pandoc +4 -0
@@ -195,6 +195,25 @@ E.g.:
 
     Requested-by: Jane Doe <[email protected]>
 
+### Assisted-by:
+
+This optional tag can be used when AI-assisted tooling contributed to the
+preparation of a patch.

Noticed only while reading your other email, plus checking the Linux
wording: s/can/should/ at the very least? (Personally I'd make it a requirement.)

Quoted 23 lines

It is in the format:

docs/process/sending-patches.pandoc +15 -0
+
+    Assisted-by: <tool-name>[:<model-version>] [tool...]
+
+E.g.:
+
+    Assisted-by: Claude:claude-3-opus coccinelle sparse
+    Assisted-by: ChatGPT:gpt-5.5
+
+Basic development tools, such as git, compilers, make, and editors, should
+not be listed.
+
+The person submitting the patch remains responsible for reviewing any
+AI-generated content and ensuring the contribution is correct, appropriate,
+and compliant with Xen's contribution and licensing requirements.
+
 ### Signed-off-by:
 
 This mandatory tag specifies the author(s) of a patch (for each author a
@@ -209,6 +228,9 @@ E.g.:
 The author must be a natural person (not a team or just a company) and the
 `Signed-off-by:` tag must include the real name of the author (no pseudonym).
 
Quoted 8 lines

docs/process/sending-patches.pandoc E.g.: · line 232

Quoted 2 lines
docs/process/sending-patches.pandoc +2 -0
+AI tools must not add `Signed-off-by:` tags, as only natural
+persons can certify the `Developer's Certificate of Origin`.

Linux emphasizes "MUST NOT". I think that's advisable for us as well. I also wonder whether some of their other wording might be worth taking verbatim, rather than making our own, slightly different variant.

Nit: Wrap differently to make better use of line length?

With the proposed changes:

Thanks, Roger.