#!/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