Files
Agent-System/.doc/ops/short-term/2026-09-15-multi-intent-u2-segmenter.md
T
weichenandCursor c2e79c8a1d docs(test): record U2 rule segmenter shadow proposal report
Close the U2 checklist with golden/hard-negative evidence while keeping production routing unchanged.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-15 23:17:45 +00:00

2.5 KiB
Raw Blame History

title, status, created, updated, owner, branch, worktree, mutex
title status created updated owner branch worktree mutex
多意图 HITL U2:规则分段与 shadow 提案 done 2026-09-15 2026-09-15 Cursor feature/multi-intent-u2-segmenter - intent

多意图 HITL U2:规则分段与 shadow 提案

目标

在不改变生产路由(TopIntent / 现有 IntentPlan)的前提下,用纯规则分段器生成 2–4 步 PlanProposal 与 shadow 指标;写段不再在提案层被静默丢弃。

范围

  • internal/intent/segmenter.go:连接词/句号/分号/换行/序号/先再最后,上限 4
  • PlanProposal L1 值对象:span、证据、缺槽、依赖建议、稳定 digest
  • Recognize 附加提案与 shadow;不改 coordinator 执行路径
  • golden / hard-negative / 反事实(若处于 auto_read 会如何)

非目标

  • 不建 PG、不接 HTTP、不改 Web
  • 不把 HITL/tier 回灌 ActionRegistry
  • 不启用 LLM 分段(U9)
  • 不把 shadow 提案当作生产 IntentPlan

步骤

  1. 认领 CURRENT,characterization 锁定现有 IntentPlan
  2. 分段器 + PlanProposal + digest
  3. 接入 Recognize(leaf 识别防递归)
  4. golden/hard-negative/反事实与报告

验收标准

  • 「查风险,然后查法规」现有 IntentPlan 仍为 2 步 query
  • 「查法规然后生成报价单」生产 IntentPlan 仍为 nil(路由不变),提案含写段且 ComboHint=needs_confirm
  • 「查询并总结」不拆
  • 指代失败 → needs_clarify
  • 红线混入 → rejected
  • 5 段 → rejected_batch_size
  • 同输入 digest 稳定
  • 反事实错误自动执行 = 0
  • intent -> maturity 保持

相关链接

证据 / 备注

  • L1 不 import intentflow;ComboHint 只是结构提示,不是授权。
  • 单段复用 primary frame,避免二次 Recognize。
  • 冒烟:go vet ./...、go test -short ./...、./scripts/arch-check.sh --mode block PASS。U2 无 schema/容器变更。
  • 提交:4751348 docs(ops) 认领;9005766 test(intent) characterization;932ba87 feat(intent) 分段器与 shadow 提案。