fix(rectification): dedupe post-adopt verify and skip this probe only
Adopted reverse-verify repeated already-asked collect stems, treated 「这题跳过」 as stopping the case, and promised holdout/OOS checks that never ran. Collect spoken stems no longer prefix a year. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -505,10 +505,13 @@ test("spoken collect followup persists a collect focus without a choice card", a
|
||||
assert.equal(result.focus?.intent, "collect_method_evidence");
|
||||
assert.equal(result.focus?.expectedAnswerSchema.collect, true);
|
||||
assert.equal(result.focus?.expectedAnswerSchema.choice, undefined);
|
||||
assert.match(String(result.focus?.expectedAnswerSchema.prompt ?? ""), /2021/);
|
||||
// 旧:prompt 含 2021 → 新:口语等于 USER_COLLECT_QUESTION.family
|
||||
// 原因:决策 7,采集题不拼年份前缀;fixture 仍带 probe_year 供计分
|
||||
assert.equal(result.focus?.expectedAnswerSchema.prompt, USER_COLLECT_QUESTION.family);
|
||||
const openCollect = openQuestionFromPersistedFocus(result);
|
||||
assert.equal(openCollect?.kind, "collect_spoken");
|
||||
assert.match(openCollect?.prompt ?? "", /2021/);
|
||||
assert.equal(openCollect?.prompt, USER_COLLECT_QUESTION.family);
|
||||
assert.doesNotMatch(openCollect?.prompt ?? "", /2021/);
|
||||
assert.notEqual(openCollect?.unrenderable, true);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user