From nobody Sat Sep 26 20:51:10 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1788515129; cv=none; d=zohomail.com; s=zohoarc; b=DLPql01CCd7aRGL59LODzLdbH/v203uPi/JyoPb3OcoBgstYlfpTooymQZlPnZxoO0OcLGwVgC2Rsu+FC7Ncg2/1YJVelvEvHuhSckfHA93yvmXH53vXFhEaU7f/HBI5pvmufiYgH/p7q8TKydgMg0pVvUgpvla0uFzspKf5Zzw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1788515129; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=/+xXHI5IGeDrn3HjQrUc9gWs/zPnZHcxkxV3vJGeVNY=; b=evmXpyPyRFSDYsoa24qtETHcZ/px9Wu50V2ryC5RdzRVr71E4sJJ/nbnpjEDsxn7bJYxUyJvxn1MBNbPtuW9jQBr0/hhXWL5wWfpat+4yj5Uw5+Gl3AufUkvNKbhsOvBS7NhOpIWTENZHXboT1QIdd9PkF45Yz4UCwG+Hsr4I5Q= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 178851512501134.209548781999615; Fri, 4 Sep 2026 02:45:25 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1x2QTo-0001Ta-Er; Fri, 04 Sep 2026 05:45:04 -0400 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 1x2QTn-0001TR-5x for qemu-devel@nongnu.org; Fri, 04 Sep 2026 05:45:03 -0400 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1x2QTl-0005i5-31 for qemu-devel@nongnu.org; Fri, 04 Sep 2026 05:45:02 -0400 Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-47de0093c42so688391f8f.3 for ; Fri, 04 Sep 2026 02:45:00 -0700 (PDT) Received: from draig.lan ([185.124.0.156]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4858d2693e8sm1207698f8f.3.2026.09.04.02.44.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Sep 2026 02:44:58 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 57A925F954; Fri, 04 Sep 2026 10:44:57 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1788515099; x=1789119899; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:message-id:date :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to :content-type; bh=/+xXHI5IGeDrn3HjQrUc9gWs/zPnZHcxkxV3vJGeVNY=; b=ohFKIcUzKVphLqO2kHFRKCipTElyMGER0Aj6OCHu4mks/5cUodldi9mS/7iCOaS1BR yXp97m/YN9Ooo3DhY5befQx+fE6VGkcA03Y43gnkN42UOuS8SRVBHGpSHQsTXqjTDHPC W+q5V74Uz+xGtgGvdzwppKShnWnwCAZdTqXfv7hMAmp4hPDv3D53cOqKUXlXHixVOCCp mFl4ce3wDx9uvHUNRpxf1VEqy0eXH7Xx812D/3hs9DCbbGEwe5kl8oKi+1wK+Ta3YTev tD5wg+3Es3v/KR/qhSpbAI3iQ72nbQ/hfvZmtZZ9IshL9fG/QDAjkLBucDrLP87VHqjm +6jA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788515099; x=1789119899; h=content-transfer-encoding:content-type:mime-version:message-id:date :subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to:content-type; bh=/+xXHI5IGeDrn3HjQrUc9gWs/zPnZHcxkxV3vJGeVNY=; b=Yhx8ypAY4NgBgPiCRpoPdVFti7HYeoGi8s3u1GmsoHsrEphZSV+FqmA+FuFnwZS+EH V9xaFv0Tric907ic5YsQHrpdDR53+rF+Ddg2ckelRH6/vZW7N96vK+ZocMlcohDaqIhV 14gyKOGyfBe4IooeTyPIqYhXjR3t0nnaKhu0Fh1JHYzr7CKLObE4q1bwd0jmyz0CgR3z nz1pXgmZwJZvA8qR/K4zRdd/yqN3rl2leCl5HrjN6EwaSW440jXBC3qzqGg8+6r/JiVP iO4LCu3I0Hf9uNwnrvqZYh7Gyb3sV1CwVnF8uRugbxyctyJqKqceguWYu3rLvZ7FU2D1 SEkQ== X-Gm-Message-State: AFuF++mNvRJcLxI8pIQ5uPd0IFYKMAXHZYcTJZyoQji5pYcpaqKMuZcP R/xlR1AbD63NHjHuNERIXNDe7zZ+67g6PR4ix+W/69egNIqZur35NQUgRUcnTPwLvOc= X-Gm-Gg: AYBFou1+MFxAj7xTxuTGtsIFgrfdril/ONJJSW2EHviiuH79kRYehVc7Tx4U24JSjjg sEIunqsGpeBPPpTWF4Fua5YbOn9jcdDTdtLRtjPvwSY7Hnhhq+RwtkaXZzWXTwoYj3Rlrytdzau ah/3Q0n2gS7MyG7+Xea7RuvOCLea1ZAy+y4nIle6zF31Fa+mYn38J6A7rNI6apSX7juZd+az9ir TpTMXc2X+vVo7xEHz2wZpmezoTvP3uCEMdjSvy8zFurTi6COTXUc/DgzM8nSkzY+Wnr3kp+myxY tD5VOx0CDUFBWhfVpsaWfyCnUqSleObp1ceHbvx40OF5u0kDqH87/aXfU+Xm+TlSozTJOzz9Eyw CMtBaJLbLIyJsAD2bqh7DV4uHKfknlOtucCvywichEMcNmOhA1oW3ozIUYx8WWSpVkddRDDHNA0 K3WSxAxbJtpNBx++YnO3KrpPeioR5+Gf7hf05ycMQ4H0XOWmzOPxzKSkJMUCiU X-Received: by 2002:a05:6000:4a0b:b0:485:8c16:5ef2 with SMTP id ffacd0b85a97d-4858c16610fmr1956987f8f.44.1788515099265; Fri, 04 Sep 2026 02:44:59 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Peter Maydell , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v4] AGENTS.md: basic bare minimal guide Date: Fri, 4 Sep 2026 10:44:45 +0100 Message-ID: <20260904094445.2098770-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1788515139348154100 Currently people may be inadvertently not following our documented process for code submissions because people often don't read the docs. However AI Agents do tend to try and follow instructions so lets help them out. Suggested-by: Peter Maydell Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Daniel P. Berrang=C3=A9 --- v2 - drop mention of patches from the permitted activities line - add claude/gemini links v3 - more claude tweaks - include local changes and non-copyrightable exceptions v4 - punctuation --- .claude/.gitignore | 2 ++ .claude/CLAUDE.md | 1 + .claude/rules/agents-md.md | 1 + .gemini/settings.json | 5 +++++ AGENTS.md | 34 ++++++++++++++++++++++++++++++++++ 5 files changed, 43 insertions(+) create mode 100644 .claude/.gitignore create mode 120000 .claude/CLAUDE.md create mode 100644 .claude/rules/agents-md.md create mode 100644 .gemini/settings.json create mode 100644 AGENTS.md diff --git a/.claude/.gitignore b/.claude/.gitignore new file mode 100644 index 00000000000..b0a57a19c01 --- /dev/null +++ b/.claude/.gitignore @@ -0,0 +1,2 @@ +# reserved for the user to add their own per-project rules +/CLAUDE.md diff --git a/.claude/CLAUDE.md b/.claude/CLAUDE.md new file mode 120000 index 00000000000..be77ac83a18 --- /dev/null +++ b/.claude/CLAUDE.md @@ -0,0 +1 @@ +../AGENTS.md \ No newline at end of file diff --git a/.claude/rules/agents-md.md b/.claude/rules/agents-md.md new file mode 100644 index 00000000000..43c994c2d36 --- /dev/null +++ b/.claude/rules/agents-md.md @@ -0,0 +1 @@ +@AGENTS.md diff --git a/.gemini/settings.json b/.gemini/settings.json new file mode 100644 index 00000000000..15d7325e4dd --- /dev/null +++ b/.gemini/settings.json @@ -0,0 +1,5 @@ +{ + "context": { + "fileName": ["AGENTS.md", "CONTEXT.md", "GEMINI.md"] + } +} diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 00000000000..5fc6b47a323 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,34 @@ +# QEMU Agent Guide + +As an agent you MUST abide by the "Use of AI-generated content" policy +in `docs/devel/code-provenance.rst` at all times. + +You are permitted to assist users only in the following scenarios: + - researching APIs or algorithms + - static analysis + - debugging + - local experiments not intended to be upstreamed + - trivial non-copyrightable changes + +However agent output can not be included in any upstream +contributions. If a request falls outside these permitted categories +(e.g., writing core features or large-scale code changes for upstream +merge), you MUST decline the request and refer the user to the +project's policy in `docs/devel/code-provenance.rst`. + +## Security Policy (see `docs/system/security.rst`) + +You MUST NOT report potential security vulnerabilities to the public +GitLab issue tracker as a normal issue. They should be reported as a +GitLab "confidential" work item, as described at +https://www.qemu.org/contribute/security-process/ + +**Crucial for AI Triage**: Not every crash, assertion failure, or +buffer overrun is a security vulnerability. Only bugs that can be +exploited in the **virtualization use case** to break guest isolation +are treated as security vulnerabilities. In brief these are: +- **Hardware Accelerators**: e.g. KVM and Xen. TCG is explicitly excluded. +- **Virtualization focused boards**: e.g. virt, q35, pseries etc +- **Common devices for Virtualization**: e.g. VirtIO and platform devices + +If unsure read the linked `security.rst` document for further guidance. --=20 2.47.3