Skip to contentSkip to conversation

agents: add a skill to determine the target tree of a change

PATCH In review Daniel Ramos 2 participants 2 messages Nov 25 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 agents: add a skill to determine the target tree of a change

From: Daniel Campos Ramos <[email protected]>

Whether a change goes into the current release during its -rc weeks or waits for the next merge window is decided by hand, and being a fix is often taken as enough. Linus asked that new development and test cases be kept on a separate branch so that they can be merged during the merge window, and noted that fixes for subtle bugs that went unnoticed for a long time can themselves be buggy.

Add a skill that sends the agent to the parts of 2.Process.rst, howto.rst and handling-regressions.rst that describe the cycle, and to the maintainer profiles of the changed files, and adds the checks agents tend to get wrong: reading where the cycle stands, using the kernel's meaning of a regression, keeping fixes for old bugs, new tests, cleanups and new development for the next merge window, splitting mixed changes, and counting every added line when judging a change sent during the -rc weeks. The skill proposes a target; the maintainer decides.

Most of the skill points at existing documents. Keeping new tests on a separate branch for the merge window, and counting lines that are not built by default, come from Linus's mail and are not in Documentation/ yet.

Point the bug-fix procedure in coding-assistants.rst at the skill.

---
This applies on top of v5 of the agents series [1].

None of the skills there says where a change goes in the cycle: the current release during its -rc weeks, or the next merge window.
This one sends the agent to the documents that already say it (2.Process.rst, howto.rst, handling-regressions.rst, the maintainer profiles) and adds what agents get wrong. It proposes a target and the maintainer decides.

Two of its rules are not in Documentation/ yet and come from Linus's mail [2]:
new tests and new development stay on a separate branch for the merge window, and every added line counts when a change is sent during the -rc weeks, built by default or not.
If you prefer those two in 2.Process.rst first, I can send that patch.

Sasha, would you take it into your respin, or should it wait until the series lands?

How it was made: I use Claude Code (Claude Opus). It read the v1 to v5 threads, Linus's two mails and the documents named in the skill, and wrote the skill and the commit message. Each sentence was then checked against its source by a script. checkpatch gives the same single MAINTAINERS warning as the other skill patches. The skill has not been tried with an agent yet.

[1] https://lore.kernel.org/r/[email protected]
[2] https://lore.kernel.org/r/CAHk-=whyUfwzMDMTpih8Xs1MxmhwTCDAc_YwUSZG79vXFMLU=Q@mail.gmail.com

 Documentation/process/coding-assistants.rst |  5 +-
 agents/skills/target-tree/SKILL.md          | 66 +++++++++++++++++++++
 2 files changed, 70 insertions(+), 1 deletion(-)
 create mode 100644 agents/skills/target-tree/SKILL.md
Documentation/process/coding-assistants.rst +4 -1
index bb927fea5..a3da7453c 100644
@@ -46,6 +46,8 @@ The following skills are available:
   message or cover letter, and writes the text of a pull request.
 * agents/skills/writing-kunit-tests/SKILL.md designs, writes, verifies, or
   reviews KUnit unit tests.
+* agents/skills/target-tree/SKILL.md proposes the tree and release a change is
+  for: the current release during its -rc weeks, or the next merge window.
 
 Licensing and Legal Requirements
 ================================
@@ -97,7 +99,8 @@ these steps:
    find-fixes skill, and a stable tag if the stable-tag skill calls for one. Do
    not add a Signed-off-by tag.
 7. Identify the maintainers and lists using scripts/get_maintainer.pl.
-   Documentation/process/security-bugs.rst shows how to do that.
+   Documentation/process/security-bugs.rst shows how to do that. Determine the
+   tree and release the fix is for with the target-tree skill.
 8. Indicate what could not be done. If the fix could not be built or tested, or
    if no reproducer could be produced, say so explicitly: maintainers currently
    waste too much time analyzing unverified reports and untested fixes.
agents/skills/target-tree/SKILL.md new file +66 -0

66 lines not on this page · raw message

base-commit: 7475ea8b58616b33c04afb976cf0fbaad9dd63fb
prerequisite-patch-id: 774c0910c3ff50a2e5ef950cb1059edf20e61e30
prerequisite-patch-id: 4df6324f28893898e730b3c0ec7c4b6139731191
prerequisite-patch-id: 73cecd1860937722f43ce4dcd0b0515e4052a3df
prerequisite-patch-id: 7eddf81879b882b0877f3ad6da6c54755c4d4209
prerequisite-patch-id: 51559949fc320fa3be648e50755afb3dcbd8df91
prerequisite-patch-id: b9b23ba3acde59f30659dc2b07c9ab079ea8d72c

Signature · 1 line
2.53.0
#2 lore raw

Hi Daniel,

Quoted 23 lines · Daniel Ramos

From: Daniel Campos Ramos <[email protected]>

Whether a change goes into the current release during its -rc weeks or waits for the next merge window is decided by hand, and being a fix is often taken as enough. Linus asked that new development and test cases be kept on a separate branch so that they can be merged during the merge window, and noted that fixes for subtle bugs that went unnoticed for a long time can themselves be buggy.

Add a skill that sends the agent to the parts of 2.Process.rst, howto.rst and handling-regressions.rst that describe the cycle, and to the maintainer profiles of the changed files, and adds the checks agents tend to get wrong: reading where the cycle stands, using the kernel's meaning of a regression, keeping fixes for old bugs, new tests, cleanups and new development for the next merge window, splitting mixed changes, and counting every added line when judging a change sent during the -rc weeks. The skill proposes a target; the maintainer decides.

Most of the skill points at existing documents. Keeping new tests on a separate branch for the merge window, and counting lines that are not built by default, come from Linus's mail and are not in Documentation/ yet.

Quoted 5 lines

Point the bug-fix procedure in coding-assistants.rst at the skill.

Thanks for your patch!

agents/skills/target-tree/SKILL.md

Quoted 2 lines
agents/skills/target-tree/SKILL.md new file +0 -0

[...]

All of this seems to apply to humans, too.
Either this duplicates existing general documentation, or fills in gaps in general documentation.
So IMHO it does not belong under agents.

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds