fix(chat): BUG-2169 follow-up — status text stays in yoga-status-words; card test allows the candidate debilitation label
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
This commit is contained in:
@@ -1501,7 +1501,7 @@ export const NEECHA_BHANGA_ENGINE_LABEL = "落陷取消(Neecha Bhanga)";
|
||||
export const NEECHA_BHANGA_CARD_LABEL = "落陷;另有缓解条件,不代表困难全部消失";
|
||||
// BUG-2169 (她 11-22 §4 E 表): 「另有缓解条件」 only when the Neecha Bhanga row on the card has the yoga table's
|
||||
// verified status (formation formed_under_source, BUG-2165 neecha_witness). A detector-only row
|
||||
// (「检测器检出,待核实」, today every row) is a candidate. Was: every engine label became the verified sentence.
|
||||
// (the computed status in yoga-status-words.ts, today every row) is a candidate. Was: every engine label became the verified sentence.
|
||||
export const NEECHA_CANDIDATE_CARD_LABEL = "落陷;缓解条件待核";
|
||||
|
||||
/** BUG-2039: her user sentence with the conditions that hold (默认规则), for the model's reasoning. */
|
||||
|
||||
@@ -244,7 +244,7 @@ export function cancellationSentence(edge: EvidenceEdge): string {
|
||||
const sign = DEBILITATION_SIGN_ZH[planet];
|
||||
// BUG-2169(她 11-22 §4 E 表)原值「…落陷,已满足落陷取消条件…提到时说成落陷、另有缓解条件…」/ 新值:只有边带
|
||||
// verified(格局表核实为 formed_under_source)才这样写,否则写「缓解条件待核」/ 原因:今天每一条落陷取消都是
|
||||
// 「检测器检出,待核实」,问答说「另有缓解条件」就把候选写成了已核。
|
||||
// (yoga-status-words 里 computed 那一档),问答说「另有缓解条件」就把候选写成了已核。
|
||||
if ((edge as EvidenceEdge & { verified?: boolean }).verified === true) {
|
||||
return `${name}本命${sign ? `在${sign}` : ""}落陷,已满足落陷取消条件${conditions ? `:${conditions}` : ""}。`
|
||||
+ `这不等于${name}入旺,也不代表相关困难全部消失。`
|
||||
|
||||
@@ -32,6 +32,7 @@ import {
|
||||
saturnCycleFromMoon,
|
||||
ANNUAL_BOUNDARY_PLAIN,
|
||||
NEECHA_BHANGA_CARD_LABEL,
|
||||
NEECHA_CANDIDATE_CARD_LABEL,
|
||||
} from "../src/lib/consultation-evidence-card.ts";
|
||||
import { consultationDomainIds, type ConsultationDomain } from "../src/lib/consultation-domain-registry.ts";
|
||||
import { createConsultationPlan } from "../src/lib/consultation-plan.ts";
|
||||
@@ -326,6 +327,8 @@ test("every card value is a value the projection or the engine already holds (no
|
||||
if (/\.planets\.[A-Za-z]+\.status$/.test(fieldId) && value === NEECHA_BHANGA_CARD_LABEL) continue;
|
||||
// BUG-2039: the same label with the conditions copied from the Neecha Bhanga row.
|
||||
if (/\.planets\.[A-Za-z]+\.status$/.test(fieldId) && String(value).startsWith(`${NEECHA_BHANGA_CARD_LABEL}(缓解来自:`)) continue;
|
||||
// BUG-2169 原值:只放行已核那句;新值:候选那句及其「(检测到的条件:」说明也放行;原因:检测器检出的落陷取消先写待核,是有意改写。
|
||||
if (/\.planets\.[A-Za-z]+\.status$/.test(fieldId) && (value === NEECHA_CANDIDATE_CARD_LABEL || String(value).startsWith(`${NEECHA_CANDIDATE_CARD_LABEL}(检测到的条件:`))) continue;
|
||||
// BUG-2009 原值:年盘 boundary 照抄引擎英文 / 新值:卡上换成白话分析句 / 原因:被译成「参数敏感」「第一目标集」进了回答
|
||||
if (/(^|\.)(annual_brief|annual_chart)\.boundary$/.test(fieldId)) {
|
||||
assert.equal(value, ANNUAL_BOUNDARY_PLAIN, `${chart.id}/${domain} ${fieldId}`);
|
||||
|
||||
Reference in New Issue
Block a user