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
32 lines
1.4 KiB
Python
32 lines
1.4 KiB
Python
#!/usr/bin/env python3
|
|
"""Honest label for the product Narayana Dasha (BUG-1215, round-4 ruling Q4).
|
|
|
|
`narayana_dasha.narayana_dasha_full_report` (consultation, report, CLI) runs
|
|
`calc_narayana_mahadasha`: always from the Lagna, always zodiacal. The
|
|
astrologer's ruling is Sanjay Rath's Narayana Dasha (stronger of Lagna / 7th,
|
|
order by the start sign); until the product switches (product decision after
|
|
the trial), every user-visible Narayana carries this label and the data carry
|
|
`profile: legacy_reference_only`. Kept outside `narayana_dasha.py`, which is in
|
|
the frozen rectification scoring identity (ERR-110 / ERR-115).
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
from typing import Any, Dict
|
|
|
|
LEGACY_PROFILE = "legacy_reference_only"
|
|
LEGACY_NOTE_ZH = "旧算法(从上升起、一律顺行),待替换为 Sanjay Rath 版"
|
|
LEGACY_NOTE_EN = "Legacy algorithm (starts from the Lagna, always zodiacal); to be replaced by Sanjay Rath's version"
|
|
# Short form for the consultation evidence card (12,000-character budget).
|
|
LEGACY_LABEL_ZH = "旧算法(从上升起、一律顺行)"
|
|
|
|
|
|
def label_legacy_narayana(result: Any) -> Any:
|
|
"""Add the legacy profile and note to a `narayana_dasha_full_report` result."""
|
|
if isinstance(result, dict):
|
|
result["profile"] = LEGACY_PROFILE
|
|
result["algorithm_note"] = LEGACY_NOTE_ZH
|
|
result["algorithm_note_en"] = LEGACY_NOTE_EN
|
|
result["algorithm_label"] = LEGACY_LABEL_ZH
|
|
return result
|