fix(rectification): invite-first collect, holdout at 4 events, Skill 10.0.23 (BUG-646–648)
Stop domain-wheel collecting and age-band years in prompts. Ask until the training gate, then discriminate until convergence, then deliver a range plus a concrete follow-up. Reserve holdout only with four dated events. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -23,7 +23,6 @@ import {
|
||||
GENERIC_COLLECT_QUESTION,
|
||||
USER_COLLECT_QUESTION,
|
||||
USER_COLLECT_QUESTION_RETRY,
|
||||
collectQuestionForDomain,
|
||||
} from "../src/lib/rectification-agentic/user-copy.ts";
|
||||
import type { EventProbeStyleOption } from "../src/lib/rectification-agentic/v9/refinement-packet.ts";
|
||||
import { fakeAccounting, CASE_ID, FOCUS_ID, USER_ID, activeFocusFixture } from "./rectification-v9-test-support.ts";
|
||||
@@ -500,15 +499,14 @@ 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);
|
||||
// 原值: USER_COLLECT_QUESTION.family,题干不含 2021
|
||||
// 新值: 带 2021 年前后线索,不含「记得大概哪年就行」
|
||||
// 原因: BUG-642
|
||||
assert.equal(result.focus?.expectedAnswerSchema.prompt, collectQuestionForDomain("family", 2021));
|
||||
// 原值: 带 2021 年前后线索
|
||||
// 新值: 年段不入口述题干,仍无选项卡
|
||||
// 原因: 撤回 BUG-642(BUG-648)
|
||||
assert.equal(result.focus?.expectedAnswerSchema.prompt, USER_COLLECT_QUESTION.family);
|
||||
const openCollect = openQuestionFromPersistedFocus(result);
|
||||
assert.equal(openCollect?.kind, "collect_spoken");
|
||||
assert.equal(openCollect?.prompt, collectQuestionForDomain("family", 2021));
|
||||
assert.match(openCollect?.prompt ?? "", /2021 年前后/);
|
||||
assert.doesNotMatch(openCollect?.prompt ?? "", /记得大概哪年就行/);
|
||||
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