Why: All six work packages landed; the card carries the acceptance evidence and the recorded boundaries. Evidence: CI success on the five PRs of this increment; make test exit=0 at 037c678f; both eval suites green. Impact: Task card only.
This commit is contained in:
@@ -22,7 +22,8 @@
|
||||
|
||||
- 增量一(2026-10-07):WP1/WP5/WP4 库侧落地并合入 Agent-Intent PR #6。内容:① 新 `intent/command.go`——Command 联合 + ActionRef + `deriveCommands` 单点展开(matched 齐全→Start、缺失→Start+Clarify、expectation→SetSlot(+Start/Clarify)、ambiguous→Clarify、guard/fallback→空);② 同分决胜(I5)——分差为 0 且 Priority 不同则高优先者 matched(Explain 同规则),既有夹具改等优先级对保 ambiguous 覆盖;③ 词界(I3)——MatchSpec.Boundary 右封左放(右缘必须、左缘仅拉丁),默认 false 零行为变化;④ intentctl lint 词界提示(短词条未开 boundary 逐条列出,实测输出)。验证:intent 6 包全 ok(新测 12 例);lint 实测输出正常。
|
||||
- 增量二(2026-10-07):WP2/WP3/WP4 落地,合入链 Agent-Intent #7 → Agent-Squad #19 → Backend #74 → Agent-Native #21 → Agent-Squad #20 → Backend #75/#76(CI 均 success)。内容:① WP2 spec.action 显式声明(校验 fail-closed),actionOf 推导定序 spec.action→blueprint→Handler→auto;② WP3 新包 `internal/route` 唯一 Router——收编 server.go chat 内联分支与 runmgr HITL 转轨,优先级明文(auto/handler=命令>工作流>回合;显式声明不可解析→回合+Reason 不静默错配;PromptTrigger 不参与决胜入包注释);blueprint 裁决为 squad 决策(验收形态),已知边界=per-run entry 覆盖属独立设计项如实记录;③ WP4 两宿主 NFKC 开启(intentgate + squadintent);④ 架构修正:命令类型经 intentgate 别名投影(边界规则=生态库只许适配器层导入,`test-boundaries` 实测拦截后修正);⑤ 依赖棘轮登记 route 四条新边。验证:既有路由回归原样通过(TestCommandBusBeatsWorkflow、工作流启动、server e2e);route 7 测;backend 30 包全 ok;Dev `check-pins`/`lint-boundaries`/`make test` exit=0(收据入卡)。
|
||||
- 待办增量三:eval v2 多轮夹具(逐轮命令期望,SetSlot+Start 验收载体)+ I1 验收收尾。
|
||||
- 增量三(2026-10-07):WP6 落地,合入链 Agent-Intent #8 → Squad #21/#22 → Agent-Native #22 → Backend #77/#78(CI 均 success)。内容:① 新 `intent/corpus.go`——CorpusCase/CorpusTurn/CommandExpect 与 `RunCorpusCase`(链式预期:上轮 Top 缺槽下轮挂起,使 SetSlot+Start 在评测可到达);② `intentctl eval` 消费 v2 多轮(逐轮差异定位),v1 形态不变;③ 语料自声明(builtin_specs/guard_domains/protected_domains)——顺带修复历史欠账:intentctl 下 guard_config_query 自始不可复现(guard spec 只在测试内置件;HEAD~5 实证同样红),声明后 11/11 全绿;④ 验收载体 `corpus_multiturn.json`(turn1 Start+Clarify → turn2 SetSlot+Start)通过。验证:intent 6 包全 ok(新测 3 例);intentctl eval v1 11/11、v2 1/1 烟测;backend 30 包全 ok;Dev check-pins/make test exit=0(收据入卡)。
|
||||
- 待办:Dev pin PR(本批)→ I1 验收收尾闭卡。
|
||||
|
||||
## 需求分析
|
||||
|
||||
@@ -71,9 +72,9 @@
|
||||
|
||||
## 结果与验证(完成后填写)
|
||||
|
||||
- 结果:
|
||||
- 验证:<结论摘要 PASS/FAIL/SKIP/NOT_RUN 逐项;逐条证据由 make evidence 写入上方证据表>
|
||||
- 影响与剩余项:
|
||||
- 结果:I1 六个工作包全部落地(WP1 命令模型、WP2 spec.action、WP3 唯一 Router、WP4 词界+NFKC、WP5 同分决胜、WP6 eval v2)。库侧:识别输出命令化(Start/SetSlot/Clarify 等,guard/fallback 为空)、ActionRef 四键统一推导(spec.action→blueprint→Handler→auto)、I5 同分高优决胜、I3 词界右封左放、多轮评测与链式预期。宿主侧:intentgate 携带命令且 NFKC 对齐、`internal/route` 唯一 Router(收编 chat 内联与 HITL 转轨、优先级明文、不可解析→回合+Reason)、blueprint 裁决为 squad 决策(已知边界=per-run entry 覆盖属独立设计项)。合入链共 16 个 PR:Agent-Intent #6/#7/#8、Agent-Squad #19/#20/#21/#22、Agent-Native #21/#22、Backend #74/#75/#76/#77/#78、Dev #234(本批 pin PR 见下)。
|
||||
- 验证:验收四条均 PASS——① 审计 I1/I2/I3/I5 有回归:I1(分类器篡改拒绝,recognizer_test.go:188/238/269 现存绿)、I2(作用域校验器,slots_catalog_test.go:70 现存绿)、I3(词界新测 boundary_test 三例)、I5(决胜新测 + TestRecognizeTieBreakPrefersPriority);② 一条用户话产出 SetSlot+Start:`corpus_multiturn.json` 两轮用例通过(intentctl eval 与库内测试双证);③ 命令 id、workflow IntentID、blueprint 经 ActionRef 到 Router:route 包测试三键各一(auto→command、workflow、blueprint→squad 决策);④ 插件清单字段名不变:新增字段(boundary/action)均为可选,plugins 既有装载测试全绿。证据:各组件仓 CI 在各 merge 前 success(GATE);Dev 分支多次 check-pins/lint-boundaries/make test exit=0(收据入卡)。
|
||||
- 影响与剩余项:行为变化两处(均有文档):I5 同分决胜(原同分恒 ambiguous → 高优 matched,已有 spec 不受影响因 priority 默认 0 时仍 ambiguous);NFKC 开启(两宿主显式选择)。已知边界转后续:blueprint 的 per-run entry 覆盖(独立设计项,blueprint 决策已达 Router);ambiguous→Clarify 的产品化(需澄清 UI/HITL,Router v1 保持回合);SetSlot/Cancel/Handoff 命令的消费(需会话槽位状态机与语义层,属 I2 附近工作)。下一步按总案推进 Q1(图执行)。
|
||||
|
||||
## 合入与清理
|
||||
|
||||
|
||||
Reference in New Issue
Block a user