All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] reworking the review-prompts subsystem guide
@ 2026-10-02 19:04 Chris Mason
  2026-10-02 21:18 ` Chuck Lever
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Chris Mason @ 2026-10-02 19:04 UTC (permalink / raw)
  To: sashiko, Roman Gushchin, ihor.solodrai, ast, kuba

Hi everyone,

I've been updating the review prompts, and you can find my current work here in the subsystem-build branch:

https://github.com/masoncl/review-prompts.git subsystem-build

This is a pretty big change, and since a few projects are syncing automatically, I didn't want to just throw it in without discussion.

The review prompts started with a lot of framework to explain how the kernel works, and the prompts have focused on documenting subsystems in a way that both LLMs and people can use for reviews and writing code.

As models have progressed, they actually need different information than they used to.  Recent models already know how most of the kernel works, but they have some gaps because the kernel is always changing, or because they have some bad assumptions baked in.

My new branch builds subsystem guides by asking a long list of questions, and then extensively reading the sources to find the right answers.  The delta between the LLM's answers and the right answers is the new guide.

This is both much less useful to human readers and much longer.  I'm not sure what to say about the human reader part, but instead of having LLMs read the whole subsystem guide, I shifted to an index where they search for symbols.  This is a better fit for more advanced models, which mostly need updates on how the kernel has changed since they were trained.

The subsystem-build branch was built with both sonnet-5.5 and opus-5.5.  It's the union of all the things either model got wrong, and the tree is setup so we can add builds for other kernel versions (ex: stable kernel series).

I started down this path convinced that I needed to get the subsystem guides into the kernel git tree.  My idea was this was documentation, and it should land somewhere in the kernel for that reason.  I ended up with something that probably shouldn't be in the tree...different models need different things on top of different kernels, and so I'm trying out the build idea.

What I know for sure is the existing review prompts have drifted from mainline Linus.  It's impacting the quality of the reviews, so I plan on working out something in the near future.

-chris

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

end of thread, other threads:[~2026-10-10 15:53 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-02 19:04 [RFC] reworking the review-prompts subsystem guide Chris Mason
2026-10-02 21:18 ` Chuck Lever
2026-10-04  9:17   ` Chris Mason
2026-10-05 19:58 ` Jakub Kicinski
2026-10-05 21:14   ` Roman Gushchin
2026-10-05 21:53     ` Jakub Kicinski
2026-10-05 23:37     ` Ihor Solodrai
2026-10-06 21:22 ` Ihor Solodrai
2026-10-07  9:00   ` Chris Mason
2026-10-09 14:17 ` Fuad Tabba
2026-10-09 17:57   ` Chris Mason
2026-10-10 15:53     ` Fuad Tabba

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.