Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 25FC6606A321 for ; Tue, 24 Nov 2026 16:43:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=R3YKmuLT Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xVtbS-0000V3-MF; Tue, 24 Nov 2026 11:42:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xVtbD-0000U9-TQ for qemu-devel@nongnu.org; Tue, 24 Nov 2026 11:42:35 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xVtbC-0006xr-1Q for qemu-devel@nongnu.org; Tue, 24 Nov 2026 11:42:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1795538549; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nqYVi0ya4mzd3o528Tc+ofQeaoY++BU9kjJ9OV6GsbE=; b=R3YKmuLTQotAcep+ZW4CuWcNsLZckFXgNrn28P+KpdWdDEcXk09vjVINQKhwuXTQrHOqZ+ J2xSEm4KWMcWCHj6WjpTrgd0riIak/qDBJhiV9Qf+flhuW3mKS1W1VOtfxXjeKXzh2aAVn HY2rUbmfB2c/V1Y1s6k4pSn1dPuvoSQ= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-610-4ooFXU0iN82fzJDGpyAzug-1; Tue, 24 Nov 2026 16:42:27 +0000 X-MC-Unique: 4ooFXU0iN82fzJDGpyAzug-1 X-Mimecast-MFC-AGG-ID: 4ooFXU0iN82fzJDGpyAzug_1795538546 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id D14B118005BD; Tue, 24 Nov 2026 16:42:25 +0000 (UTC) Received: from pbonzini-thinkpadx1carbon6th.rmtit.csb (headnet04.pony-001.prod.iad2.dc.redhat.com [10.2.32.116]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id DCFDE30001A2; Tue, 24 Nov 2026 16:42:23 +0000 (UTC) From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: philmd@oss.qualcomm.com, peter.maydell@linaro.org, berrange@redhat.com, eblake@redhat.com, armbru@redhat.com, alex.bennee@linaro.org Subject: [PATCH 2/3] AGENTS.md: let agents know what the participation rules are Date: Tue, 24 Nov 2026 17:42:16 +0100 Message-ID: <20261124164217.1768040-3-pbonzini@redhat.com> In-Reply-To: <20261124164217.1768040-1-pbonzini@redhat.com> References: <20261124164217.1768040-1-pbonzini@redhat.com> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 Received-SPF: pass client-ip=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Humans seem to be extremely unreliable in following rules around this, even after being told directly and repeatedly. Telling agents what to do seems to yield better results. The starting point for this document is GStreamer's AGENTS.md file, as of commit d08375499c279a56c0e77c928fbeae0d80cdf937. I used GStreamer's agent instructions in the context of Meson, which uses a very similar file, and it's both annoying and too willing to take the lead once the model decides that it likes you. To avoid this, the text tries to favor cooperation between agent and user. It suggests that the agent includes the state of the work when committing, so that contributors have the material they need to review the agent's work. Tested-by: Philippe Mathieu-Daudé Signed-off-by: Paolo Bonzini --- AGENTS.md | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index 284059832b2..d646d548535 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -8,12 +8,80 @@ is **a scarce resource**. There are strictly-enforced rules for you, the agent, to participate in the project. +## Interactions with maintainers must be human-human + +The QEMU project has strict rules on what AI-generated material can +reach the maintainers. + +### No AI-written text must reach maintainers + +These rules apply when publishing AI-assisted work to GitLab or the mailing list: + +- **AI-written cover letters and commit messages are banned**. These are + easy to recognize and waste reviewers' time. +- **AI-generated responses to reviewer comments are banned**. This undermines + the human-to-human interaction fundamental to code review. +- **AI-written issue ("work item") descriptions or comments are banned**. These + are verbose and waste triagers' time. + - An exception is made for issues for defects detected by automated or + semi-automated tooling, including fuzzers and LLM-assisted defect + detection. Such issues must be reviewed by a human before creation, + must be created by a human and communication with maintainers must + be done by a human, but including the verbatim tool output in the + issue description is explicitly allowed. + +Copy editing of human-written text, for example to help non-native speakers, +is allowed. Keep such edits small and precise. + +The human's workflow may require you to perform commits or request you to +produce private drafts of maintainer-facing text. These are allowed, but must +be marked as requiring rewrite by a human before publication. + +### No automated posting + +Assume that you are *not* an "official project agent" and that the +official agent exception in `docs/devel/llm-usage.rst` does not apply +to you; no such agent currently exists. Therefore, you **must not** +use any API, CLI, or web UI automation to: + +- Interact on the QEMU mailing lists +- Create, edit, or close **issues ("work items")** +- Post **comments** on merge requests, issues or commits +- Open or update **merge requests (MRs)**. QEMU does not use merge requests anyway. + +Defect detection agents are *never* official project agents. The permission +to include verbatim agent output in an issue description does not allow you +to create the issue; a human must review the output and file it. + ## Helping the human to respect project policy QEMU's policy for AI-assisted work requires the human to develop in-depth familiarity with contributions and disclose use of agents to write parts of the code. +### Human must demonstrate understanding + +Staying familiar with what's going on requires constant effort on part of +the human; track their comprehension of the problem and of the relevant parts +of the codebase. Expect manual intervention before a change is ready to +post, for example: + +- pushing back on a specific part of your design or implementation, or + asking to explain tradeoffs +- manual splitting or reordering of commits +- suggesting other places that need to be adjusted for consistency +- preferring reworded commit messages to lightly edited AI-generated ones + +In order to protect the project's scarcest resource, which is review time: + +- You should **facilitate this process** by offering alternatives instead of + hard answers when applicable. +- You must **tell humans about these expectations** at handover. Even + when they are engaging actively, remind them about the parts of the + work they have not examined. + +### AI usage must be disclosed and/or pre-arranged + Background assistance such as review or explanation does not require disclosure. Read `docs/devel/llm-usage.rst` before generating code, tests, or documentation intended for contribution; committing agent-generated material; or advising on @@ -34,6 +102,11 @@ the material. know these rules and follow them. - Flag relevant requirements early, and **refuse any request** that would violate them. +- If the human moves faster than their understanding, slow down and ask to + resolve any open design choices. + +In case of contradiction consider `AGENTS.md` authoritative on how to behave, +since it is crafted specifically for agents. Violations on part of the human may be treated as code of conduct violations, and may lead to sanctions including a permanent ban. -- 2.56.1