Why: I1 increment one - recognition output becomes a command list for the host router, same-score ties resolve by priority (I5), and CJK substring false positives get an opt-in boundary mode (I3). Evidence: go vet clean; go test ./... all ok, including new command (6), boundary (3), and tie-break tests; intentctl lint smoke run shows boundary hints on short unbounded terms. Existing classifier and ambiguity fixtures repointed to an equal-priority pair; the greet corpus case now expects the I5 tie-break outcome. Impact: Result gains Commands; recognizer derives them at one point (guard/fallback stay empty); MatchSpec gains Boundary (default off, legacy behavior unchanged); lint gains boundary hints. Top/Branch stay for compatibility. Refs: Documents proposal 2026-10-07-agent-stack-n1q1i1-plans.md I1 WP1/WP4/WP5
72 lines
1.7 KiB
JSON
72 lines
1.7 KiB
JSON
{
|
|
"cases": [
|
|
{
|
|
"name": "status_with_slot",
|
|
"input": "查询任务 42 的进度",
|
|
"expect_branch": "matched",
|
|
"expect_top": "demo.run.status_query",
|
|
"expect_slots": {
|
|
"run_id": "42"
|
|
}
|
|
},
|
|
{
|
|
"name": "status_term_only",
|
|
"input": "帮我看下进度",
|
|
"expect_branch": "matched",
|
|
"expect_top": "demo.run.status_query"
|
|
},
|
|
{
|
|
"name": "guard_config_query",
|
|
"input": "查询系统配置",
|
|
"expect_branch": "guard_hit",
|
|
"expect_top": "guard.config_change"
|
|
},
|
|
{
|
|
"name": "negated_write_readonly",
|
|
"input": "怎么配置查询进度",
|
|
"expect_branch": "fallback"
|
|
},
|
|
{
|
|
"name": "restart_task",
|
|
"input": "把任务重启一下",
|
|
"expect_branch": "matched",
|
|
"expect_top": "demo.run.restart"
|
|
},
|
|
{
|
|
"name": "greet_tiebreak_priority",
|
|
"input": "你好呀",
|
|
"expect_branch": "matched",
|
|
"expect_top": "demo.greet.hello"
|
|
},
|
|
{
|
|
"name": "cancel_missing_required_slot",
|
|
"input": "取消一下",
|
|
"expect_branch": "matched",
|
|
"expect_top": "demo.run.cancel",
|
|
"expect_missing_slots": [
|
|
"run_id"
|
|
]
|
|
},
|
|
{
|
|
"name": "case_fold_deploy",
|
|
"input": "please DEPLOY it",
|
|
"expect_branch": "matched",
|
|
"expect_top": "demo.misc.deploy"
|
|
},
|
|
{
|
|
"name": "casual_fallback",
|
|
"input": "今天天气不错",
|
|
"expect_branch": "fallback"
|
|
},
|
|
{
|
|
"name": "blank_fallback",
|
|
"input": " ",
|
|
"expect_branch": "fallback"
|
|
},
|
|
{
|
|
"name": "tie_ambiguous",
|
|
"input": "打结",
|
|
"expect_branch": "ambiguous"
|
|
}
|
|
]
|
|
} |