| Message ID | 20260501110040.1874719-17-sjg@u-boot.org |
|---|---|
| State | New |
| Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1777633308; bh=k3p7UuCsUlrPx2Q9BGBeNzoQjcwL3xm1zu0oBnqAr64=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=HeglSkmWn01Mq3/S6z0ijgIYWRwNSK2+OuERvv8mQalEm8ww5PEFGn4j7YS22Be+C DiSJQrWQ0o9oiwzcidPfRk3zCRrI/rqwFxu2P47uuLgjpYzEwdApqL46jm9qpW9Aby WyaPjWGTE4hzj2EpvxSCVR65URxfG3EnEO5eAxaA= Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 415BB6A834 for <u-boot-concept@u-boot.org>; Fri, 1 May 2026 05:01:48 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 8WYyalEdiq8V for <u-boot-concept@u-boot.org>; Fri, 1 May 2026 05:01:48 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1777633306; bh=k3p7UuCsUlrPx2Q9BGBeNzoQjcwL3xm1zu0oBnqAr64=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=TVRNIrnj81lw0qKGZAadhumE03XlVoi/oTG7HYoS7UvZ/Bxto/J+OD5Td66odo1ZR sAGqlBegYjTEqfWVGGwgppielyM/B/e/McqmlyogLjDilKTiJ4Z/CiF+iHnqCBURco tWRWTvwkkazblkma9pscCPvtSd+VG6tD4tnullJs= Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 3F3AD6A84B for <u-boot-concept@u-boot.org>; Fri, 1 May 2026 05:01:46 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1777633305; bh=Zc+hyNf5aso7pG5X5L4zNQwC9IwAvy4fQRRwzEykA3k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k3s5gCYdqJ29FKbjABqLTLclCqQvuHc0TQwlCJK4uWFk9QR23LN7Z6KQrQgcT+ehG aEq1YkqkyohkU68E5gRn9MibI6SZkYPaTjFsxyR+CAD3oyZez0uBXVIAgkO9M+40B5 aADSrAAeckTtoHJwfUC5PmkOS0yzoJkoe9Z9Vg2Q= Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 435976A7AF; Fri, 1 May 2026 05:01:45 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id h5hAJ0LoQnMr; Fri, 1 May 2026 05:01:45 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1777633305; bh=a4fytX3pxMwp9pJMb1A4tzlUPrI4ePXKASPK3IG0A7E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IENa84JDhWgfNQDUH0LGLr8GZ9EapjeaReRTYWKMYNS4GRWhF6V46gL6h/2QlIpno QyX7ln1RLJVZpDbxe6ctf4D2TpHr+gxhfowsFnHderIvYPKoT/dEy5djUZpT1cXo3D GTWVXWtbvbKKWAVsxD1xln9KdubobVB6KgzO1Gi8= Received: from u-boot.org (unknown [174.51.25.52]) by mail.u-boot.org (Postfix) with ESMTPSA id C358F6A849; Fri, 1 May 2026 05:01:44 -0600 (MDT) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Fri, 1 May 2026 05:00:08 -0600 Message-ID: <20260501110040.1874719-17-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260501110040.1874719-1-sjg@u-boot.org> References: <20260501110040.1874719-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: DNOGIB454MJ6ME55365AJ5Q3DXFR4M22 X-Message-ID-Hash: DNOGIB454MJ6ME55365AJ5Q3DXFR4M22 X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass <sjg@chromium.org> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 16/29] patman: Let the apply agent edit files for manual fixups List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/DNOGIB454MJ6ME55365AJ5Q3DXFR4M22/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
| Series |
patman: Review-flow improvements and shared helpers
|
|
Commit Message
Simon Glass
May 1, 2026, 11 a.m. UTC
From: Simon Glass <sjg@chromium.org> The apply prompt tells the agent to fall back to editing the target source file manually when 'git am' and 'patch --fuzz' both fail, but the agent only has Bash, Read and Grep in its allowed-tools list. Without Edit and Write it cannot make the manual adjustments and reports back that it is waiting for file permission. Add Edit and Write to the allowed tools so the apply-and-fix-up loop described in the prompt can complete. Signed-off-by: Simon Glass <sjg@chromium.org> --- tools/patman/review.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/patman/review.py b/tools/patman/review.py index 92fbcfa8a2d..66580e48ee6 100644 --- a/tools/patman/review.py +++ b/tools/patman/review.py @@ -228,8 +228,8 @@ async def apply_series(pwork, link, branch_name, upstream_branch, # Build the prompt and run the agent prompt = _build_apply_prompt(mbox_path, branch_name, upstream_branch) options = ClaudeAgentOptions( - allowed_tools=['Bash', 'Read', 'Grep'], cwd=repo_path, - max_buffer_size=claude_mod.MAX_BUFFER_SIZE) + allowed_tools=['Bash', 'Read', 'Grep', 'Edit', 'Write'], + cwd=repo_path, max_buffer_size=claude_mod.MAX_BUFFER_SIZE) tout.notice(f'Applying series to branch {branch_name}...') success, _ = await claude_mod.run_agent_collect(prompt, options)