Files
Jyotisha/docs/research/float_split_2026_11_08_replay_overlay.patch
ClaudeandClaude Opus 5.5 37383ec6a4 docs(research): float_split_2026_11_08 sealed / offset replay records; BUG-1720 fixed-pending-verify
Sealed 20 and reported-offset 900 rerun with the protocol's own scripts
(exported from c1a69445^, baseline reproduced 166d 20/20 and 900/900),
overlay recorded in the .patch. Old 166d records kept. Live astrologer
stage v5 77x3 sensitivity script added. Sensitivity numbers, not accuracy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-08 07:11:48 +08:00

460 lines
29 KiB
Diff
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
Binary files old/scripts/__pycache__/__init__.cpython-312.pyc and new/scripts/__pycache__/__init__.cpython-312.pyc differ
Binary files old/scripts/__pycache__/active_rectification_event_engine.cpython-312.pyc and new/scripts/__pycache__/active_rectification_event_engine.cpython-312.pyc differ
Binary files old/scripts/__pycache__/active_rectification_events.cpython-312.pyc and new/scripts/__pycache__/active_rectification_events.cpython-312.pyc differ
Binary files old/scripts/__pycache__/ashtakavarga.cpython-312.pyc and new/scripts/__pycache__/ashtakavarga.cpython-312.pyc differ
Binary files old/scripts/__pycache__/ashtakavarga_shodhana.cpython-312.pyc and new/scripts/__pycache__/ashtakavarga_shodhana.cpython-312.pyc differ
Binary files old/scripts/__pycache__/aspects.cpython-312.pyc and new/scripts/__pycache__/aspects.cpython-312.pyc differ
Binary files old/scripts/__pycache__/ayanamsa_utils.cpython-312.pyc and new/scripts/__pycache__/ayanamsa_utils.cpython-312.pyc differ
Binary files old/scripts/__pycache__/bhava_chalit.cpython-312.pyc and new/scripts/__pycache__/bhava_chalit.cpython-312.pyc differ
Binary files old/scripts/__pycache__/calculation_profile_contract.cpython-312.pyc and new/scripts/__pycache__/calculation_profile_contract.cpython-312.pyc differ
Binary files old/scripts/__pycache__/capability_evidence_pool.cpython-312.pyc and new/scripts/__pycache__/capability_evidence_pool.cpython-312.pyc differ
Binary files old/scripts/__pycache__/cmd_muhurta.cpython-312.pyc and new/scripts/__pycache__/cmd_muhurta.cpython-312.pyc differ
Binary files old/scripts/__pycache__/cmd_narayana_dasha.cpython-312.pyc and new/scripts/__pycache__/cmd_narayana_dasha.cpython-312.pyc differ
Binary files old/scripts/__pycache__/cmd_solar_return.cpython-312.pyc and new/scripts/__pycache__/cmd_solar_return.cpython-312.pyc differ
Binary files old/scripts/__pycache__/dasha_analyzer.cpython-312.pyc and new/scripts/__pycache__/dasha_analyzer.cpython-312.pyc differ
Binary files old/scripts/__pycache__/dasha_common.cpython-312.pyc and new/scripts/__pycache__/dasha_common.cpython-312.pyc differ
Binary files old/scripts/__pycache__/divisional_charts_extended.cpython-312.pyc and new/scripts/__pycache__/divisional_charts_extended.cpython-312.pyc differ
Binary files old/scripts/__pycache__/domain_calculation_service.cpython-312.pyc and new/scripts/__pycache__/domain_calculation_service.cpython-312.pyc differ
Binary files old/scripts/__pycache__/functional_benefics.cpython-312.pyc and new/scripts/__pycache__/functional_benefics.cpython-312.pyc differ
Binary files old/scripts/__pycache__/guided_topic_discovery.cpython-312.pyc and new/scripts/__pycache__/guided_topic_discovery.cpython-312.pyc differ
Binary files old/scripts/__pycache__/jaimini.cpython-312.pyc and new/scripts/__pycache__/jaimini.cpython-312.pyc differ
Binary files old/scripts/__pycache__/jyotish_engine.cpython-312.pyc and new/scripts/__pycache__/jyotish_engine.cpython-312.pyc differ
Binary files old/scripts/__pycache__/kp_system.cpython-312.pyc and new/scripts/__pycache__/kp_system.cpython-312.pyc differ
Binary files old/scripts/__pycache__/life_stage_hook.cpython-312.pyc and new/scripts/__pycache__/life_stage_hook.cpython-312.pyc differ
Binary files old/scripts/__pycache__/local_env.cpython-312.pyc and new/scripts/__pycache__/local_env.cpython-312.pyc differ
Binary files old/scripts/__pycache__/main_yoga_detectors.cpython-312.pyc and new/scripts/__pycache__/main_yoga_detectors.cpython-312.pyc differ
Binary files old/scripts/__pycache__/minute_candidate_discriminability.cpython-312.pyc and new/scripts/__pycache__/minute_candidate_discriminability.cpython-312.pyc differ
Binary files old/scripts/__pycache__/minute_rectification_blind_eval.cpython-312.pyc and new/scripts/__pycache__/minute_rectification_blind_eval.cpython-312.pyc differ
Binary files old/scripts/__pycache__/minute_rectification_fact_blind_eval_v4.cpython-312.pyc and new/scripts/__pycache__/minute_rectification_fact_blind_eval_v4.cpython-312.pyc differ
Binary files old/scripts/__pycache__/minute_rectification_fact_ranker_v4.cpython-312.pyc and new/scripts/__pycache__/minute_rectification_fact_ranker_v4.cpython-312.pyc differ
Binary files old/scripts/__pycache__/minute_rectification_feature_facts_v4.cpython-312.pyc and new/scripts/__pycache__/minute_rectification_feature_facts_v4.cpython-312.pyc differ
Binary files old/scripts/__pycache__/minute_rectification_holdout_validator.cpython-312.pyc and new/scripts/__pycache__/minute_rectification_holdout_validator.cpython-312.pyc differ
Binary files old/scripts/__pycache__/nakshatra_advanced.cpython-312.pyc and new/scripts/__pycache__/nakshatra_advanced.cpython-312.pyc differ
Binary files old/scripts/__pycache__/narayana_dasha.cpython-312.pyc and new/scripts/__pycache__/narayana_dasha.cpython-312.pyc differ
Binary files old/scripts/__pycache__/narayana_legacy_label.cpython-312.pyc and new/scripts/__pycache__/narayana_legacy_label.cpython-312.pyc differ
Binary files old/scripts/__pycache__/pancha_mahapurusha.cpython-312.pyc and new/scripts/__pycache__/pancha_mahapurusha.cpython-312.pyc differ
Binary files old/scripts/__pycache__/rectification_policy.cpython-312.pyc and new/scripts/__pycache__/rectification_policy.cpython-312.pyc differ
Binary files old/scripts/__pycache__/sade_sati.cpython-312.pyc and new/scripts/__pycache__/sade_sati.cpython-312.pyc differ
Binary files old/scripts/__pycache__/saham_daynight.cpython-312.pyc and new/scripts/__pycache__/saham_daynight.cpython-312.pyc differ
Binary files old/scripts/__pycache__/shadbala.cpython-312.pyc and new/scripts/__pycache__/shadbala.cpython-312.pyc differ
Binary files old/scripts/__pycache__/shadbala_display.cpython-312.pyc and new/scripts/__pycache__/shadbala_display.cpython-312.pyc differ
Binary files old/scripts/__pycache__/special_lagnas.cpython-312.pyc and new/scripts/__pycache__/special_lagnas.cpython-312.pyc differ
Binary files old/scripts/__pycache__/sudarshana_chakra.cpython-312.pyc and new/scripts/__pycache__/sudarshana_chakra.cpython-312.pyc differ
Binary files old/scripts/__pycache__/varga.cpython-312.pyc and new/scripts/__pycache__/varga.cpython-312.pyc differ
Binary files old/scripts/__pycache__/yoga_engine.cpython-312.pyc and new/scripts/__pycache__/yoga_engine.cpython-312.pyc differ
Binary files old/scripts/__pycache__/yoga_expansion.cpython-312.pyc and new/scripts/__pycache__/yoga_expansion.cpython-312.pyc differ
Binary files old/scripts/__pycache__/yogas_doshas.cpython-312.pyc and new/scripts/__pycache__/yogas_doshas.cpython-312.pyc differ
diff -ruN old/scripts/active_rectification_event_engine.py new/scripts/active_rectification_event_engine.py
--- old/scripts/active_rectification_event_engine.py 2026-11-06 02:21:52.000000000 +0800
+++ new/scripts/active_rectification_event_engine.py 2026-11-08 06:57:38.695152236 +0800
@@ -43,6 +43,7 @@
import saham_daynight # noqa: E402
import special_lagnas # noqa: E402
import varga # noqa: E402
+from chart_dasha import birth_moment # noqa: E402
from ayanamsa_utils import DEFAULT_AYANAMSA_NAME # noqa: E402
from scripts.rectification.refinement_packet import NAKSHATRA_SPAN # noqa: E402
from scripts.rectification.kp_cusp_observation import observe_kp_cusps # noqa: E402
@@ -96,28 +97,37 @@
raise RectificationEventCalculationError(str(exc)) from exc
+def _vimshottari_timeline(birth_at: datetime, moon_longitude: float) -> list[dict[str, Any]]:
+ """Mahadashas from the candidate's birth moment, as ``cmd_dasha`` / the chart page (BUG-1720).
+
+ The frozen ``dasha_analyzer.build_dasha_timeline`` took only the birth date
+ and started every period from midnight of that day.
+ """
+ if not isinstance(birth_at, datetime):
+ raise RuntimeError("REPLAY_GUARD birth_at must be the candidate birth datetime")
+ timeline, _, _, _ = birth_moment.mahadashas(birth_at, float(moon_longitude))
+ return timeline
+
+
def _active_vimshottari(
- birth_date: str,
+ birth_at: datetime,
moon_longitude: float,
event_at: datetime,
timeline: list[dict[str, Any]] | None = None,
) -> tuple[str, str, str]:
+ """MD / AD / PD lords at ``event_at`` with float sub-period splits (BUG-1720).
+
+ Product approved 2026-11-08 replacing the integer-day
+ ``dasha_analyzer.build_antardasha`` (its last child ended up to a day early)
+ with ``birth_moment.split_period`` at both levels.
+ """
+ if not isinstance(birth_at, datetime):
+ raise RuntimeError("REPLAY_GUARD birth_at must be the candidate birth datetime")
if timeline is None:
- nakshatra, progress, _ = dasha_analyzer.lon_to_nakshatra(moon_longitude)
- timeline, _, _, _ = dasha_analyzer.build_dasha_timeline(
- birth_date,
- nakshatra,
- progress,
- )
+ timeline = _vimshottari_timeline(birth_at, moon_longitude)
_, major = dasha_analyzer.find_current(timeline, event_at)
- minor = dasha_analyzer.find_current_sub(
- dasha_analyzer.build_antardasha(major),
- event_at,
- )
- pratyantar = dasha_analyzer.find_current_sub(
- dasha_analyzer.build_antardasha(minor),
- event_at,
- )
+ minor = dasha_analyzer.find_current_sub(birth_moment.split_period(major), event_at)
+ pratyantar = dasha_analyzer.find_current_sub(birth_moment.split_period(minor), event_at)
return str(major["lord"]), str(minor["lord"]), str(pratyantar["lord"])
@@ -555,12 +565,7 @@
vimshottari_timeline = None
try:
- nakshatra, progress, _ = dasha_analyzer.lon_to_nakshatra(planet_longitudes["Moon"])
- vimshottari_timeline, _, _, _ = dasha_analyzer.build_dasha_timeline(
- candidate_at.date().isoformat(),
- nakshatra,
- progress,
- )
+ vimshottari_timeline = _vimshottari_timeline(candidate_at, planet_longitudes["Moon"])
except (KeyError, TypeError, ValueError):
vimshottari_timeline = None
@@ -678,7 +683,7 @@
continue
try:
vimshottari = _active_vimshottari(
- candidate_at.date().isoformat(),
+ candidate_at,
moon_longitude,
event_at,
context.get("vimshottari_timeline"),
Binary files old/scripts/chart_dasha/__pycache__/__init__.cpython-312.pyc and new/scripts/chart_dasha/__pycache__/__init__.cpython-312.pyc differ
Binary files old/scripts/chart_dasha/__pycache__/birth_moment.cpython-312.pyc and new/scripts/chart_dasha/__pycache__/birth_moment.cpython-312.pyc differ
diff -ruN old/scripts/chart_dasha/birth_moment.py new/scripts/chart_dasha/birth_moment.py
--- old/scripts/chart_dasha/birth_moment.py 2026-11-06 02:21:52.000000000 +0800
+++ new/scripts/chart_dasha/birth_moment.py 2026-11-08 06:57:26.230889218 +0800
@@ -33,7 +33,8 @@
def next_cycle_mahadashas(
- last_lord: str, last_end: datetime, through: datetime | None, *, emitted: int = 9
+ last_lord: str, last_end: datetime, through: datetime | None, *, emitted: int = 9,
+ year_days: float = YEAR_DAYS,
) -> list[dict[str, Any]]:
"""Mahadashas after the first 120-year cycle, up to the one that covers ``through`` (BUG-1556).
@@ -55,7 +56,7 @@
index = (index + 1) % 9
lord = VIMSHOTTARI_ORDER[index]
years = VIMSHOTTARI_YEARS[lord]
- end = start + timedelta(days=years * YEAR_DAYS)
+ end = start + timedelta(days=years * year_days)
rows.append({"lord": lord, "start": start, "end": end, "years": years, "cycle": (emitted + len(rows)) // 9 + 1})
start = end
return rows
@@ -106,6 +107,31 @@
return rows
+def split_period(parent: dict[str, Any]) -> list[dict[str, Any]]:
+ """Nine Vimshottari sub-periods of ``parent`` from its own exact span (BUG-1719).
+
+ Float split of ``parent["end"] - parent["start"]`` by years/120, the last
+ end pinned to the parent end. Use it for a parent whose span is already
+ the true length (an antardasha being cut into pratyantars, or any period
+ with sub-day boundaries). The frozen ``dasha_analyzer.build_antardasha``
+ takes ``.days`` of the span and drops the sub-day part, so its last child
+ ends early (a 100.75-day parent loses 18 h); it stays only in
+ rectification scoring, pending a product decision.
+ """
+ lord = parent["lord"]
+ start, end = parent["start"], parent["end"]
+ total = end - start
+ first = VIMSHOTTARI_ORDER.index(lord)
+ rows = []
+ cursor = start
+ for offset in range(9):
+ sub_lord = VIMSHOTTARI_ORDER[(first + offset) % 9]
+ sub_end = end if offset == 8 else cursor + total * (VIMSHOTTARI_YEARS[sub_lord] / 120.0)
+ rows.append({"lord": sub_lord, "start": cursor, "end": sub_end, "years": VIMSHOTTARI_YEARS[sub_lord]})
+ cursor = sub_end
+ return rows
+
+
def _canonical_hash(payload: dict[str, Any]) -> str:
encoded = json.dumps(payload, ensure_ascii=True, sort_keys=True, separators=(",", ":"), default=str)
return hashlib.sha256(encoded.encode("ascii")).hexdigest()
diff -ruN old/scripts/minute_rectification_feature_facts_v4.py new/scripts/minute_rectification_feature_facts_v4.py
--- old/scripts/minute_rectification_feature_facts_v4.py 2026-11-06 02:21:52.000000000 +0800
+++ new/scripts/minute_rectification_feature_facts_v4.py 2026-11-08 06:57:38.695152236 +0800
@@ -85,7 +85,7 @@
event_at = engine._event_datetime(event)
try:
vim = engine._active_vimshottari(
- candidate_at.date().isoformat(), planet_longitudes["Moon"], event_at,
+ candidate_at, planet_longitudes["Moon"], event_at,
)
except (KeyError, TypeError, ValueError):
missing_layers.add("Vimshottari_MD_AD_PD")
Binary files old/scripts/rectification/__pycache__/__init__.cpython-312.pyc and new/scripts/rectification/__pycache__/__init__.cpython-312.pyc differ
Binary files old/scripts/rectification/__pycache__/candidate_contrast.cpython-312.pyc and new/scripts/rectification/__pycache__/candidate_contrast.cpython-312.pyc differ
Binary files old/scripts/rectification/__pycache__/candidate_window.cpython-312.pyc and new/scripts/rectification/__pycache__/candidate_window.cpython-312.pyc differ
Binary files old/scripts/rectification/__pycache__/case_holdout.cpython-312.pyc and new/scripts/rectification/__pycache__/case_holdout.cpython-312.pyc differ
Binary files old/scripts/rectification/__pycache__/contracts.cpython-312.pyc and new/scripts/rectification/__pycache__/contracts.cpython-312.pyc differ
Binary files old/scripts/rectification/__pycache__/dasha_transition_proximity.cpython-312.pyc and new/scripts/rectification/__pycache__/dasha_transition_proximity.cpython-312.pyc differ
Binary files old/scripts/rectification/__pycache__/event_probes.cpython-312.pyc and new/scripts/rectification/__pycache__/event_probes.cpython-312.pyc differ
Binary files old/scripts/rectification/__pycache__/house_table.cpython-312.pyc and new/scripts/rectification/__pycache__/house_table.cpython-312.pyc differ
Binary files old/scripts/rectification/__pycache__/kp_cusp_observation.cpython-312.pyc and new/scripts/rectification/__pycache__/kp_cusp_observation.cpython-312.pyc differ
Binary files old/scripts/rectification/__pycache__/probe_question_contract.cpython-312.pyc and new/scripts/rectification/__pycache__/probe_question_contract.cpython-312.pyc differ
Binary files old/scripts/rectification/__pycache__/refinement_packet.cpython-312.pyc and new/scripts/rectification/__pycache__/refinement_packet.cpython-312.pyc differ
Binary files old/scripts/rectification/__pycache__/scoring_service.cpython-312.pyc and new/scripts/rectification/__pycache__/scoring_service.cpython-312.pyc differ
diff -ruN old/scripts/rectification/dasha_transition_proximity.py new/scripts/rectification/dasha_transition_proximity.py
--- old/scripts/rectification/dasha_transition_proximity.py 2026-11-06 02:21:52.000000000 +0800
+++ new/scripts/rectification/dasha_transition_proximity.py 2026-11-08 06:57:38.695152236 +0800
@@ -159,11 +159,12 @@
candidate_at = context.get("candidate_at")
candidate_date = candidate_at.date().isoformat() if isinstance(candidate_at, datetime) else birth_date
moon_key = round(float(moon), 6)
- vim_key = (candidate_date, moon_key)
+ vim_at = candidate_at if isinstance(candidate_at, datetime) else datetime.strptime(f"{birth_date} {str(time)[:5]}", "%Y-%m-%d %H:%M")
+ vim_key = (vim_at, moon_key)
if vim_key not in vim_cache:
- vim_cache[vim_key] = _vim_start_dates(candidate_date, float(moon), 1, 9999)
+ vim_cache[vim_key] = _vim_start_dates(vim_at, float(moon), 1, 9999)
pd_cache[vim_key] = _vim_start_dates(
- candidate_date,
+ vim_at,
float(moon),
1,
9999,
diff -ruN old/scripts/rectification/event_probes.py new/scripts/rectification/event_probes.py
--- old/scripts/rectification/event_probes.py 2026-11-06 02:21:52.000000000 +0800
+++ new/scripts/rectification/event_probes.py 2026-11-08 06:59:18.165385385 +0800
@@ -18,8 +18,9 @@
_active_narayana,
_active_vimshottari,
_score_event,
+ _vimshottari_timeline,
)
-import dasha_analyzer
+from chart_dasha import birth_moment
import narayana_dasha
from scripts.rectification.candidate_contrast import (
PROBE_PHASE_CANDIDATE_DISCRIMINATOR,
@@ -451,35 +452,39 @@
def _vim_start_dates(
- birth_date: str,
+ birth_at: datetime,
moon_longitude: float,
lo: int,
hi: int,
*,
include_pratyantar: bool = False,
) -> list[date]:
- nakshatra, progress, _ = dasha_analyzer.lon_to_nakshatra(float(moon_longitude))
- timeline, _, _, _ = dasha_analyzer.build_dasha_timeline(birth_date, nakshatra, progress)
+ """Vimshottari MD / AD (/ PD) start dates in ``lo..hi`` (BUG-1720).
+
+ From the candidate birth moment with float sub-period splits; the frozen
+ ``dasha_analyzer`` chain started at 00:00 of the birth date and cut whole days.
+ """
+ timeline = _vimshottari_timeline(birth_at, float(moon_longitude))
starts: list[date] = []
for major in timeline:
start = major.get("start")
if isinstance(start, datetime) and lo <= start.year <= hi:
starts.append(start.date())
- for minor in dasha_analyzer.build_antardasha(major):
+ for minor in birth_moment.split_period(major):
minor_start = minor.get("start")
if isinstance(minor_start, datetime) and lo <= minor_start.year <= hi:
starts.append(minor_start.date())
if not include_pratyantar:
continue
- for prat in dasha_analyzer.build_antardasha(minor):
+ for prat in birth_moment.split_period(minor):
prat_start = prat.get("start")
if isinstance(prat_start, datetime) and lo <= prat_start.year <= hi:
starts.append(prat_start.date())
return starts
-def _vim_start_years(birth_date: str, moon_longitude: float, lo: int, hi: int) -> list[int]:
- return [item.year for item in _vim_start_dates(birth_date, moon_longitude, lo, hi)]
+def _vim_start_years(birth_at: datetime, moon_longitude: float, lo: int, hi: int) -> list[int]:
+ return [item.year for item in _vim_start_dates(birth_at, moon_longitude, lo, hi)]
def _narayana_start_dates(
@@ -592,8 +597,8 @@
return pairs
-def _vim_cache_key(birth_date: str, moon: float, lo: int, hi: int) -> tuple[Any, ...]:
- return (birth_date, round(float(moon), 6), lo, hi)
+def _vim_cache_key(birth_at: datetime, moon: float, lo: int, hi: int) -> tuple[Any, ...]:
+ return (birth_at.isoformat(), round(float(moon), 6), lo, hi)
def _narayana_cache_key(
@@ -630,21 +635,26 @@
for left, right in _representative_pairs(reps):
left_moon = float(left["planet_longitudes"]["Moon"])
right_moon = float(right["planet_longitudes"]["Moon"])
- left_vim_key = (*_vim_cache_key(birth_date, left_moon, lo, hi), include_pratyantar)
- right_vim_key = (*_vim_cache_key(birth_date, right_moon, lo, hi), include_pratyantar)
- if left_vim_key not in vim_cache:
- vim_cache[left_vim_key] = _vim_start_dates(
- birth_date, left_moon, lo, hi, include_pratyantar=include_pratyantar,
- )
- if right_vim_key not in vim_cache:
- vim_cache[right_vim_key] = _vim_start_dates(
- birth_date, right_moon, lo, hi, include_pratyantar=include_pratyantar,
- )
- windows = list(_boundary_windows(
- vim_cache[left_vim_key],
- vim_cache[right_vim_key],
- min_days=threshold,
- ))
+ # BUG-1720: each representative's own birth moment (was the shared birth date at 00:00).
+ left_at = _candidate_at(left, birth_date)
+ right_at = _candidate_at(right, birth_date)
+ windows: list[date] = []
+ if left_at is not None and right_at is not None:
+ left_vim_key = (*_vim_cache_key(left_at, left_moon, lo, hi), include_pratyantar)
+ right_vim_key = (*_vim_cache_key(right_at, right_moon, lo, hi), include_pratyantar)
+ if left_vim_key not in vim_cache:
+ vim_cache[left_vim_key] = _vim_start_dates(
+ left_at, left_moon, lo, hi, include_pratyantar=include_pratyantar,
+ )
+ if right_vim_key not in vim_cache:
+ vim_cache[right_vim_key] = _vim_start_dates(
+ right_at, right_moon, lo, hi, include_pratyantar=include_pratyantar,
+ )
+ windows = list(_boundary_windows(
+ vim_cache[left_vim_key],
+ vim_cache[right_vim_key],
+ min_days=threshold,
+ ))
layers: list[str | None] = [None]
if varga_narayana:
layers.extend(["d9", "d10"])
@@ -795,7 +805,7 @@
"summary": catalog["event_family"],
}
try:
- vimshottari = _active_vimshottari(birth_date, float(moon), event_at)
+ vimshottari = _active_vimshottari(candidate_at, float(moon), event_at)
narayana = _active_narayana(
int(context["ascendant_index"]),
context["planet_longitudes"],
@@ -1822,12 +1832,14 @@
) -> dict[str, list[date]]:
tracks: dict[str, list[date]] = {}
moon = float(context["planet_longitudes"]["Moon"])
- vim_key = (*_vim_cache_key(birth_date, moon, lo, hi), include_pratyantar)
- if vim_key not in vim_cache:
- vim_cache[vim_key] = _vim_start_dates(
- birth_date, moon, lo, hi, include_pratyantar=include_pratyantar,
- )
- tracks["vim"] = vim_cache[vim_key]
+ birth_at = _candidate_at(context, birth_date) # BUG-1720: the candidate's birth moment
+ if birth_at is not None:
+ vim_key = (*_vim_cache_key(birth_at, moon, lo, hi), include_pratyantar)
+ if vim_key not in vim_cache:
+ vim_cache[vim_key] = _vim_start_dates(
+ birth_at, moon, lo, hi, include_pratyantar=include_pratyantar,
+ )
+ tracks["vim"] = vim_cache[vim_key]
natal_key = (*_narayana_cache_key(
int(context["ascendant_index"]), context["planet_longitudes"], birth_date, lo, hi,
), None)
@@ -2002,13 +2014,14 @@
if not isinstance(context, dict):
return []
moon = (context.get("planet_longitudes") or {}).get("Moon")
- if not isinstance(moon, (int, float)):
+ birth_at = _candidate_at(context, birth_date) # BUG-1720: the candidate's birth moment
+ if not isinstance(moon, (int, float)) or birth_at is None:
return []
try:
starts = [
item
for item in _vim_start_dates(
- birth_date,
+ birth_at,
float(moon),
now.year,
horizon.year,
@@ -2079,9 +2092,10 @@
if not isinstance(context, dict):
continue
moon = (context.get("planet_longitudes") or {}).get("Moon")
- if not isinstance(moon, (int, float)):
+ birth_at = _candidate_at(context, birth_date) # BUG-1720: the candidate's birth moment
+ if not isinstance(moon, (int, float)) or birth_at is None:
continue
- starts = _vim_start_dates(birth_date, float(moon), lo, hi, include_pratyantar=True)
+ starts = _vim_start_dates(birth_at, float(moon), lo, hi, include_pratyantar=True)
future = [item for item in starts if item.year >= lo]
if not future:
continue
Binary files old/scripts/report_render/__pycache__/__init__.cpython-312.pyc and new/scripts/report_render/__pycache__/__init__.cpython-312.pyc differ
Binary files old/scripts/report_render/__pycache__/envelope.cpython-312.pyc and new/scripts/report_render/__pycache__/envelope.cpython-312.pyc differ
Binary files old/scripts/report_render/__pycache__/sections_misc.cpython-312.pyc and new/scripts/report_render/__pycache__/sections_misc.cpython-312.pyc differ
Binary files old/scripts/report_render/__pycache__/text.cpython-312.pyc and new/scripts/report_render/__pycache__/text.cpython-312.pyc differ
Binary files old/scripts/research/__pycache__/cluster_width_lib.cpython-312.pyc and new/scripts/research/__pycache__/cluster_width_lib.cpython-312.pyc differ
Binary files old/scripts/research/__pycache__/probe_supply_after_six.cpython-312.pyc and new/scripts/research/__pycache__/probe_supply_after_six.cpython-312.pyc differ
Binary files old/scripts/research/__pycache__/sealed_holdout_rerun.cpython-312.pyc and new/scripts/research/__pycache__/sealed_holdout_rerun.cpython-312.pyc differ
diff -ruN old/scripts/research/reported_offset_sweep.py new/scripts/research/reported_offset_sweep.py
--- old/scripts/research/reported_offset_sweep.py 2026-11-06 02:21:52.000000000 +0800
+++ new/scripts/research/reported_offset_sweep.py 2026-11-08 06:57:49.415382162 +0800
@@ -60,8 +60,11 @@
# 原值: docs/research/reported_offset_astrologer_166c_2026_11_05.{freeze.json,json}
# 新值: docs/research/reported_offset_astrologer_166d_2026_11_05.{freeze.json,json}
# 原因: BUG-1622~1626 改号(另一会话已用 BUG-1613)改了 shadbala.py 与本脚本的注释,冻结身份变了,数值不变,仍 scoring-15;ERR-110 另存新记录
-FREEZE = ROOT / "docs/research/reported_offset_astrologer_166d_2026_11_05.freeze.json"
-REPORT = ROOT / "docs/research/reported_offset_astrologer_166d_2026_11_05.json"
+# 原值: docs/research/reported_offset_astrologer_166d_2026_11_05.{freeze.json,json}
+# 新值: docs/research/reported_offset_float_split_2026_11_08.{freeze.json,json}
+# 原因: 产品 2026-11-08 批准;占星师要求整条调用链改浮点切分;BUG-1720(_active_vimshottari / _vim_start_dates 改为出生时刻起算 + birth_moment.split_period,回放结果变了,另存新标签)
+FREEZE = ROOT / "docs/research/reported_offset_float_split_2026_11_08.freeze.json"
+REPORT = ROOT / "docs/research/reported_offset_float_split_2026_11_08.json"
LEGACY_REPORT = ROOT / "docs/research/reported_offset_2026_09_20.json"
diff -ruN old/scripts/research/scoring_research_lib.py new/scripts/research/scoring_research_lib.py
--- old/scripts/research/scoring_research_lib.py 2026-11-06 02:21:52.000000000 +0800
+++ new/scripts/research/scoring_research_lib.py 2026-11-08 06:57:38.695152236 +0800
@@ -220,7 +220,7 @@
continue
try:
vimshottari = _active_vimshottari(
- candidate_at.date().isoformat(), moon_longitude, event_at, context.get("vimshottari_timeline"),
+ candidate_at, moon_longitude, event_at, context.get("vimshottari_timeline"),
)
except (KeyError, TypeError, ValueError):
missing.append("Vimshottari_MD_AD_PD")
diff -ruN old/scripts/research/sealed_holdout_rerun.py new/scripts/research/sealed_holdout_rerun.py
--- old/scripts/research/sealed_holdout_rerun.py 2026-11-06 02:21:52.000000000 +0800
+++ new/scripts/research/sealed_holdout_rerun.py 2026-11-08 06:57:49.415382162 +0800
@@ -57,8 +57,11 @@
# 原值: docs/research/sealed_holdout_rerun_astrologer_166c_2026_11_05.{freeze.json,json}
# 新值: docs/research/sealed_holdout_rerun_astrologer_166d_2026_11_05.{freeze.json,json}
# 原因: BUG-1622~1626 改号(另一会话已用 BUG-1613)改了 shadbala.py 与本脚本的注释,冻结身份变了,数值不变,仍 scoring-15;ERR-110 另存新记录
-FREEZE = ROOT / "docs/research/sealed_holdout_rerun_astrologer_166d_2026_11_05.freeze.json"
-REPORT = ROOT / "docs/research/sealed_holdout_rerun_astrologer_166d_2026_11_05.json"
+# 原值: docs/research/sealed_holdout_rerun_astrologer_166d_2026_11_05.{freeze.json,json}
+# 新值: docs/research/sealed_holdout_rerun_float_split_2026_11_08.{freeze.json,json}
+# 原因: 产品 2026-11-08 批准;占星师要求整条调用链改浮点切分;BUG-1720(_active_vimshottari / _vim_start_dates 改为出生时刻起算 + birth_moment.split_period,回放结果变了,另存新标签)
+FREEZE = ROOT / "docs/research/sealed_holdout_rerun_float_split_2026_11_08.freeze.json"
+REPORT = ROOT / "docs/research/sealed_holdout_rerun_float_split_2026_11_08.json"
LEGACY_REPORT = ROOT / "docs/research/sealed_holdout_rerun_2026_09_20.json"
ARCHIVE = ROOT / "docs/research/history/rectification_pre_cross_midnight_2026_09_20"
PRODUCTION_FILES = [