fix(consult): card carries the engine's short Narayana label; AD/PD drop derivable years (BUG-1215)
The full note pushed steve_jobs/marriage to 12,028 characters (budget 12,000), and cutting it in the card broke the 'nothing rewritten' contract. The engine now also writes algorithm_label 旧算法(从上升起、一律顺行), the card copies it verbatim, and Narayana AD/PD rows drop years (end_age - start_age). Largest card 11,979 (baseline 11,983). Goldens re-captured; the biography golden now keeps the Narayana label keys too. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01N4f2nya58RoRu4yEmJgRGE
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
921b336ba5
commit
693467bf0c
@@ -46,11 +46,11 @@ def test_consultation_modules_carry_the_label() -> None:
|
||||
for chart in golden["charts"]:
|
||||
for route in ("workflow", "annual_workflow", "timing_workflow"):
|
||||
module = chart[route]["chart"]["modules"]["narayana_dasha"]
|
||||
assert (module["profile"], module["algorithm_note"]) == (LEGACY_PROFILE, LEGACY_NOTE_ZH)
|
||||
assert (module["profile"], module["algorithm_note"], module["algorithm_label"]) == (LEGACY_PROFILE, LEGACY_NOTE_ZH, "旧算法(从上升起、一律顺行)")
|
||||
card = (ROOT / "frontend/src/lib/consultation-evidence-card.ts").read_text(encoding="utf-8")
|
||||
assert "narayana.algorithm = algorithmNote" in card
|
||||
assert "narayana.algorithm = algorithmLabel" in card and "NARAYANA_SUB_PERIOD_KEYS" in card
|
||||
workflow = (ROOT / "frontend/src/mastra/consultation-workflow.ts").read_text(encoding="utf-8")
|
||||
assert '"algorithmnote"' in workflow
|
||||
assert '"algorithmlabel"' in workflow
|
||||
|
||||
|
||||
def test_kn_rao_never_names_narayana_on_user_visible_surfaces() -> None:
|
||||
|
||||
Reference in New Issue
Block a user