From 2fff9485b99f251712afcc420cb0e445b57ff09d Mon Sep 17 00:00:00 2001 From: damocles Date: Fri, 5 Jun 2026 00:47:03 +0200 Subject: [PATCH] fix: cancel_loose_end approval kind is root-agent-only, no own-approval carve-out --- hive-ag3nt/src/mcp.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/hive-ag3nt/src/mcp.rs b/hive-ag3nt/src/mcp.rs index 5db88a56..f6ee89db 100644 --- a/hive-ag3nt/src/mcp.rs +++ b/hive-ag3nt/src/mcp.rs @@ -864,10 +864,9 @@ impl AgentServer { `\"reminder\"`; `id` is the row id from the matching `get_loose_ends` entry \ or the `question_queued` reply you got when you submitted. Auth: you can only \ cancel rows where you're the asker / owner. Returns `ok` or an error string.\n\ - Agents with the `approvals` tool group can also pass `kind: \"approval\"` to \ - withdraw a pending approval they submitted (before the operator acts on it). \ - The root agent (`ruth`) may cancel any approval; non-root agents are restricted \ - to their own approvals and the server rejects `approval` kind otherwise." + `kind` may also be `\"approval\"` to withdraw a pending approval you submitted \ + (before the operator acts on it) — root agent (`ruth`) only; the server rejects \ + `approval` kind for all other callers." )] async fn cancel_loose_end(&self, Parameters(args): Parameters) -> String { let log = format!("{args:?}");