Agent Manager 缺少 approval decision 接收并继续或停止执行接口 #79

Open
opened 2026-05-28 03:59:23 +00:00 by xiaohei · 0 comments
Owner

问题

Manager 已能把 approval.requested 转成审批记录,也能在用户 approve/reject 后回传 decision。但 Agent Manager 必须提供接收接口,并根据决定继续或停止高危动作。

需要 Agent Manager 提供

  • POST /api/swarms/{swarm_id}/approvals/{approval_id}。
  • 接收 decision=approved/rejected、reason、manager_deployment_id、credential_lease。
  • approved 后继续原高危动作。
  • rejected 后停止该动作并回调 timeline.updated 或 task.failed。

验收标准

  • Manager approve 后 Runtime 收到 decision,并继续执行。
  • Manager reject 后 Runtime 停止对应动作。
  • Runtime 不展开 credential_ref,不记录明文密钥。

对接文档

见 docs/integration/AgentManager蜂群Runtime接口实现要求.md 第 11 节。

## 问题 Manager 已能把 `approval.requested` 转成审批记录,也能在用户 approve/reject 后回传 decision。但 Agent Manager 必须提供接收接口,并根据决定继续或停止高危动作。 ## 需要 Agent Manager 提供 - `POST /api/swarms/{swarm_id}/approvals/{approval_id}`。 - 接收 `decision=approved/rejected`、`reason`、`manager_deployment_id`、`credential_lease`。 - `approved` 后继续原高危动作。 - `rejected` 后停止该动作并回调 `timeline.updated` 或 `task.failed`。 ## 验收标准 - Manager approve 后 Runtime 收到 decision,并继续执行。 - Manager reject 后 Runtime 停止对应动作。 - Runtime 不展开 `credential_ref`,不记录明文密钥。 ## 对接文档 见 `docs/integration/AgentManager蜂群Runtime接口实现要求.md` 第 11 节。
chenchen started working 2026-05-29 09:31:10 +00:00
chenchen worked for 53 hours 8 minutes 2026-05-31 14:39:25 +00:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Total Time Spent: 53 hours 8 minutes
chenchen
53 hours 8 minutes
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: taijibaga/heicode-mananger#79