fix(rectification): ask reverse-inference probes at engine dasha months
Keep Vimshottari/Narayana start dates instead of truncating to year, so same-year month splits can appear on the choice card. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -358,6 +358,30 @@ test("dasha conflict probe jumps after four scoreable events leave three trainin
|
||||
}), "collect_evidence");
|
||||
});
|
||||
|
||||
test("dasha conflict probe keeps the engine month on the choice card", () => {
|
||||
const plan = buildMethodFollowupPlan({
|
||||
evidence: [
|
||||
datedEvidence("education", "2016"),
|
||||
datedEvidence("education", "2020"),
|
||||
datedEvidence("relationship", "2018"),
|
||||
datedEvidence("family", "2023"),
|
||||
],
|
||||
eventProbes: [{
|
||||
...CAREER_CONFLICT_PROBE,
|
||||
month: 3,
|
||||
year_label: "2018 年 3 月前后",
|
||||
source: "dasha_boundary",
|
||||
user_meaning: "时间范围锁定 2018 年 3 月前后;领域锁定 career。",
|
||||
semantic_key: "career.2018.03.dasha_boundary",
|
||||
}],
|
||||
});
|
||||
assert.equal(plan.next_followup?.source, "event_probe");
|
||||
assert.equal(plan.next_followup?.choice_frame?.period, "2018 年 3 月前后");
|
||||
assert.equal(plan.next_followup?.year_label, "2018 年 3 月前后");
|
||||
assert.equal(plan.next_followup?.probe_month, 3);
|
||||
assert.match(plan.next_followup?.user_prompt_hint ?? "", /2018 年 3 月前后/);
|
||||
});
|
||||
|
||||
test("three scoreable events in one domain still rotate methods instead of reverse-inferring", () => {
|
||||
const plan = buildMethodFollowupPlan({
|
||||
evidence: [
|
||||
|
||||
Reference in New Issue
Block a user