Runtime shadow create payload 与 Agent Manager 生产校验不兼容 #70

Closed
opened 2026-05-27 07:00:08 +00:00 by chenchen · 1 comment
Owner

问题

真实调用 Agent Manager 生产接口时,Manager Runtime shadow create 发出的 payload 仍偏本地 plan 结构,和 Agent Manager v2.1 生产校验不完全一致,创建请求会被 422 拒绝。

复现现象

  • Agent Manager health 正常。
  • 创建 deployment 返回 422。
  • 错误集中在顶层 agents[].role、resource_grants[].ref/secret_ref 等字段校验。

期望

Manager 发给 Runtime 的 payload 应对齐生产接口:

  • 顶层展开 agents,且每个 agent 有 role。
  • 顶层透传 risk_level、budget、billing_context、agile_context、sub_mode、callback、metadata。
  • Runtime resource grant 只传 azkv:// 形式的凭据引用,避免把普通文档引用当密钥传给 Agent Manager。
  • Manager 本地仍保留普通 project_doc 授权在 permission manifest 中展示和审计。

验收

  • 本地 go test ./... 通过。
  • 使用生产 Agent Manager 地址做真实接口烟测:health、create、detail、logs、events、metrics、list、stop 均返回 200。
  • 上线后配置生产 Manager Runtime 环境变量,再用 Manager 创建 deployment 做端到端验证。
## 问题 真实调用 Agent Manager 生产接口时,Manager Runtime shadow create 发出的 payload 仍偏本地 plan 结构,和 Agent Manager v2.1 生产校验不完全一致,创建请求会被 422 拒绝。 ## 复现现象 - Agent Manager health 正常。 - 创建 deployment 返回 422。 - 错误集中在顶层 `agents[].role`、`resource_grants[].ref/secret_ref` 等字段校验。 ## 期望 Manager 发给 Runtime 的 payload 应对齐生产接口: - 顶层展开 `agents`,且每个 agent 有 `role`。 - 顶层透传 `risk_level`、`budget`、`billing_context`、`agile_context`、`sub_mode`、`callback`、`metadata`。 - Runtime resource grant 只传 `azkv://` 形式的凭据引用,避免把普通文档引用当密钥传给 Agent Manager。 - Manager 本地仍保留普通 project_doc 授权在 permission manifest 中展示和审计。 ## 验收 - 本地 `go test ./...` 通过。 - 使用生产 Agent Manager 地址做真实接口烟测:health、create、detail、logs、events、metrics、list、stop 均返回 200。 - 上线后配置生产 Manager Runtime 环境变量,再用 Manager 创建 deployment 做端到端验证。
chenchen added this to the 2026-05-27 至 2026-05-28:全链路联调与问题收敛 milestone 2026-05-27 07:00:08 +00:00
Author
Owner

已上线验证:Manager 1.4.6 已按生产 Agent Manager schema 调整 Runtime create payload,并直接使用 http://20.212.121.126 作为 Runtime Base URL。线上 runtime health healthy,Manager 创建 deployment dep_f1abd92ae702 成功映射 Runtime dep_4dc11dc5cef2。

已上线验证:Manager 1.4.6 已按生产 Agent Manager schema 调整 Runtime create payload,并直接使用 http://20.212.121.126 作为 Runtime Base URL。线上 runtime health healthy,Manager 创建 deployment dep_f1abd92ae702 成功映射 Runtime dep_4dc11dc5cef2。
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: taijibaga/heicode-mananger#70