Files
Genarrative/apps
lhk229 5c2d722b12
Project CI / Repository checks (pull_request) Failing after 15s
Project CI / Backend tests (pull_request) Failing after 15s
Project CI / Frontend tests (pull_request) Successful in 2m42s
Project CI / Native shell tests (pull_request) Failing after 10m49s
立项策划 role brief 按解析器真实线格描述澄清信封
brief 只写「下一行给出严格 JSON 的单题问题」,模型据此输出裸的单题对象,还自创
了一个 answerFormat 字段:

  {"header":...,"prompt":...,"options":[...],"answerFormat":"回复 A、B..."}

解析器要的是 {"questions":[{id,header,question,options}]} 且 deny_unknown_fields,
于是父 run 收到 unknown field `answerFormat`, expected `questions`。此时子 Run
已经终止,信封没有修复通道,整条委派直接停在 needs-reconciliation。模型其余部分
(第N轮·关键决定、A/B/需要原型验证 三项合同)都严格照 brief 执行,说明它跟的就是
brief——两份 prompt 描述了两种形状时,模型跟更具体的那份。

brief 改为逐字给出外壳、四个允许字段、id 的 snake_case 规则和各字段字符上限,并
点名 answerFormat 这个真实踩过的坑。上限数字全部来自 schema 常量,新增用例用
format! 把两边钉在一起,任一边先改都会红;为此把相关常量放宽到 pub(crate)。

这一条只改立项策划自己的 role brief,其它 Agent 的 overlay 不受影响。

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-20 11:08:44 +00:00
..
2026-07-17 16:56:46 +08:00