Unwrap item-style spec wrappers, pair bare table cells, let subagents present pages #166

Merged
weichen merged 1 commits from feature/genui-spec-repair into main 2026-10-12 03:09:35 +00:00
Owner

Why: dev 实测(2026-10-12,事件 seq 1395/1396/2171)MiniMax-M3 对 kv/cells/items 数组字段输出 {"item":…} 单键包装、表格 cells 裸标量数组,present 全部 invalid-spec;且页面提交被委派给 general 子代理时其工具集无 generative-ui.present,重试必然空手。

改动:①genui 修复层新增 repairItemWrappers(children 形状修复之后递归解包单键 item;规范词汇无 item 字段,安全)+ repairTableCells(裸标量 cells 按列 key 配对,长度不匹配不动);②agent-sub-general v3:tools 加 generative-ui.present,提示词补页面化产物提交指引(插件不在时白名单条目自动无效)。

Evidence: 红测复现线上原错(.nodes.1.kv of type [][2]string)→ 修复后绿;genui/prompts/runtime/runmgr 全绿(SELF);CI 重放(GATE)。

Impact: 生成页(kv/表格/列表节点)恢复可落库;子代理可提交页面。配套 Dev 仓 pin bump 随后。

Refs: Dev 任务卡 feature/genui-spec-repair。

Why: dev 实测(2026-10-12,事件 seq 1395/1396/2171)MiniMax-M3 对 kv/cells/items 数组字段输出 {"item":…} 单键包装、表格 cells 裸标量数组,present 全部 invalid-spec;且页面提交被委派给 general 子代理时其工具集无 generative-ui.present,重试必然空手。 改动:①genui 修复层新增 repairItemWrappers(children 形状修复之后递归解包单键 item;规范词汇无 item 字段,安全)+ repairTableCells(裸标量 cells 按列 key 配对,长度不匹配不动);②agent-sub-general v3:tools 加 generative-ui.present,提示词补页面化产物提交指引(插件不在时白名单条目自动无效)。 Evidence: 红测复现线上原错(.nodes.1.kv of type [][2]string)→ 修复后绿;genui/prompts/runtime/runmgr 全绿(SELF);CI 重放(GATE)。 Impact: 生成页(kv/表格/列表节点)恢复可落库;子代理可提交页面。配套 Dev 仓 pin bump 随后。 Refs: Dev 任务卡 feature/genui-spec-repair。
weichen added 1 commit 2026-10-12 03:03:42 +00:00
Why: MiniMax-M3 emits XML-RPC-style {"item": ...} single-key wrappers on
array fields (kv/cells/items), bare scalar table cells, and page
submission delegated to the general sub-agent had no generative-ui
tool - observed live on dev (events seq 1395/1396/2171) where every
present with kv/table/list nodes failed invalid-spec and the delegated
retry reported the tool missing.

Evidence: red test reproducing the exact production error
(.nodes.1.kv of type [][2]string) goes green after the repair; full
genui/prompts/runtime/runmgr suites pass (SELF); mismatched-length
cells stay untouched by a dedicated guard test.

Impact: generative-ui pages with kv/table/list nodes save successfully
again; the general sub-agent can submit pages (tool resolves only when
the plugin exposes it, so absent plugins are unaffected).

Refs: dev task card feature/genui-spec-repair; dev conversation
激活验证-1012.
weichen merged commit b160515905 into main 2026-10-12 03:09:35 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: weichen/Agent-System-Backend#166