All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Daniel P. Berrangé" <berrange@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: qemu-devel@nongnu.org, "Michael S . Tsirkin" <mst@redhat.com>,
	"Alex Bennée" <alex.bennee@linaro.org>,
	"Alistair Francis" <alistair.francis@wdc.com>,
	"BALATON Zoltan" <balaton@eik.bme.hu>,
	"Fabiano Rosas" <farosas@suse.de>,
	"Kevin Wolf" <kwolf@redhat.com>,
	"Peter Maydell" <peter.maydell@linaro.org>,
	"Warner Losh" <imp@bsdimp.com>,
	"Philippe Mathieu-Daudé" <philmd@linaro.org>,
	"Eric Blake" <eblake@redhat.com>,
	"Stefan Hajnoczi" <stefanha@redhat.com>
Subject: Re: [PATCH 4/4] docs/devel: allow larger contributions with pre-arrangement
Date: Mon, 23 Nov 2026 10:59:13 +0000	[thread overview]
Message-ID: <awQcgRggbub1D0dc@redhat.com> (raw)
In-Reply-To: <20261118104150.599535-5-pbonzini@redhat.com>

On Wed, Nov 18, 2026 at 11:41:50AM +0100, Paolo Bonzini wrote:
> The current policy does not include a path to formalize the submission
> of a larger body of AI-assisted work.  In particular, contributors have
> expressed the interest in using LLMs for new accelerators or for the
> userspace side of new hypervisor features; and some past contributions
> suspected to use AI still fall outside what the policy allows.
> 
> From the maintainer side, the policy does not handle well the submission
> of multiple small patches; it encourages splitting the work into small
> pieces, which hides the design context and does not allow maintainers
> to delegate infrastructure improvements to contributors that are willing
> (or could be required) to do them.
> 
> Constant streams of changes were forbidden in previous drafts, but since
> pre-arrangement of large changes was dropped they were implicitly allowed,
> except possibly when they end up being a code of conduct issue.  Therefore,
> the policy as written risks being unbalanced and shifting the effort
> from developers towards maintainers, which is the opposite of what it
> wanted to achieve.
> 
> In order to avoid this, take inspiration from the Rust project's policy
> and combine two ideas to make the policy both tighter (for example by
> closing the gap for repeated, frequent posting of small bugfixes), and
> more balanced towards maintainers.
> 
> One is to hold larger contributions to a higher standard, in the spirit
> of using AI to work "better, not faster"; the other is to require
> "pre-arrangement" for "changes that are originally created by an LLM".
> AI lowers the cost of producing a patch but does nothing to lower the
> cost of understanding and reviewing one; if anything it raises it, since a
> reviewer can no longer assume that the submitter has reasoned through every
> line.  Pre-arrangement has always been customary for major changes to QEMU
> as it guides contributors towards an early relationship with maintainers;
> it is particularly beneficial when contributors use LLMs because (possibly
> via agent suggestion) it encourages human-to-human discussion, and
> is therefore made a requirement.
> 
> A possible alternative includes exceptions initiated by the maintainer
> only, for example upon seeing an opportunity for infrastructure work or
> a constant stream of small changes from the same contributor.  I have
> chosen to allow contributors to initiate the process as well, because
> they were after all already encouraged to contact maintainers early.
> Maintainers of course can still pre-arrange yak shaving just by asking
> to do it.
> 
> A question raised in previous discussions is what to do with changes
> affecting multiple subsystems.  It seems to me that the common cases
> can be handled in the same way as non-LLM-based contributions or through
> the existing buckets:
> 
> - if there is one main affected subsystem (for example, a new accelerator
>   will only require small changes to QMP in order to expose it in
>   AcceleratorInfo), the maintainer of other trees should treat it as
>   "use of LLMs to help generating parts of a larger patch", i.e. as
>   a separate bucket that does not require pre-arrangement;
> 
> - if there is a genuine split between multiple subsystems (for example,
>   SCSI and USB, or an accelerator and an architecture), the agreement of
>   both maintainers is required to proceed;
> 
> - for tree-wide changes, one maintainer will probably act as the steward
>   and seek consensus from the project as a whole.
> 
> Because this is effectively a corollary of project customs and written
> policies, it is not mentioned explicitly.
> 
> Acked-by: Michael S. Tsirkin <mst@redhat.com>
> Acked-by: Warner Losh <imp@bsdimp.com>
> Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
> Reviewed-by: Eric Blake <eblake@redhat.com>
> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
>  docs/devel/llm-usage.rst | 37 +++++++++++++++++++++++++++----------
>  AGENTS.md                |  9 +++++++--
>  2 files changed, 34 insertions(+), 12 deletions(-)
> 
> diff --git a/docs/devel/llm-usage.rst b/docs/devel/llm-usage.rst
> index 5f6d64de52f..dc6f36f1bd1 100644
> --- a/docs/devel/llm-usage.rst
> +++ b/docs/devel/llm-usage.rst
> @@ -84,26 +84,41 @@ Use of generative AI can be classified in the following four buckets:
>    not need disclosure.
>  
>  - small LLM-assisted bugfixes (as a rule of thumb, below 10 lines of code)
> -  are allowed with disclosure.
> +  are allowed with disclosure.  Splitting a submission in multiple parts
> +  is **not** a valid way to bypass this rule; repeated, frequent posting
> +  of such fixes must follow the rule for large contributions.

The first sentence in this addition belongs in the earlier patch, since
the "no bypass" statement is important even without this patch 4.


With regards,
Daniel
-- 
|: https://berrange.com       ~~        https://hachyderm.io/@berrange :|
|: https://libvirt.org          ~~          https://entangle-photo.org :|
|: https://pixelfed.art/berrange   ~~    https://fstop138.berrange.com :|



  parent reply	other threads:[~2026-11-23 10:59 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-18 10:41 [PATCH v5 0/4] docs/devel, AGENTS.md: a completely new policy on AI-generated contributions Paolo Bonzini
2026-11-18 10:41 ` [PATCH 1/4] docs/devel: relax " Paolo Bonzini
2026-11-18 15:30   ` Eric Blake
2026-11-19 12:11     ` Daniel P. Berrangé
2026-11-23 10:53   ` Daniel P. Berrangé
2026-11-23 14:55   ` Peter Maydell
2026-11-18 10:41 ` [PATCH 2/4] AGENTS.md: let agents know what the participation rules are Paolo Bonzini
2026-11-18 10:41 ` [PATCH 3/4] AGENTS.md: make the human part of the design process Paolo Bonzini
2026-11-18 10:41 ` [PATCH 4/4] docs/devel: allow larger contributions with pre-arrangement Paolo Bonzini
2026-11-19 15:31   ` BALATON Zoltan
2026-11-23 10:59   ` Daniel P. Berrangé [this message]
2026-11-23 15:37   ` Peter Maydell
2026-11-18 13:49 ` [PATCH v5 0/4] docs/devel, AGENTS.md: a completely new policy on AI-generated contributions Michael S. Tsirkin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=awQcgRggbub1D0dc@redhat.com \
    --to=berrange@redhat.com \
    --cc=alex.bennee@linaro.org \
    --cc=alistair.francis@wdc.com \
    --cc=balaton@eik.bme.hu \
    --cc=eblake@redhat.com \
    --cc=farosas@suse.de \
    --cc=imp@bsdimp.com \
    --cc=kwolf@redhat.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=philmd@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.