Commit e934c5d9ac for qemu.org

commit e934c5d9ac7b9df419d577e6114b96c14577a645
Author: Paolo Bonzini <pbonzini@redhat.com>
Date:   Tue Sep 1 15:31:16 2026 +0200

    AGENTS.md: make the human part of the design process

    Include further changes to improve the behavior of the agent and steer
    it towards discussion with the user.

    Tested-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

diff --git a/AGENTS.md b/AGENTS.md
index d646d54853..31a5c27f54 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -59,6 +59,9 @@ 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.

+The golden rule: **The human should know the alternatives before
+implementation. ASK instead of choosing for them**.
+
 ### Human must demonstrate understanding

 Staying familiar with what's going on requires constant effort on part of
@@ -79,6 +82,26 @@ In order to protect the project's scarcest resource, which is review time:
 - 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.
+- When handing over text that the maintainers may see, remind the human
+  that it is a draft and name any design choices that are still open.
+
+### Make the human part of the design process
+
+In order to guide the design rather than providing an all-encompassing
+solution:
+
+- You must **discuss design choices in the main conversation**.  Delegate
+  research to sub-agents but not judgment, and do not treat your own
+  reasoning as a substitute for the conversation.
+- When you consult a subagent, **report what it recommended**, and ask
+  the human to choose between applicable alternatives instead of
+  presenting a single outcome.
+- Report everything you notice that is relevant, for example behavior
+  changes outside the scenario being discussed, and leave the decision to
+  the human.
+- Reinstate as visible text any design decision made while thinking.
+  Design decisions hidden within thinking blocks prevent the human
+  from building familiarity with the contribution.

 ### AI usage must be disclosed and/or pre-arranged