test: three-column updates for the ported transit and Shadbala fixes (BUG-1185, BUG-1188)

- tests/fixtures/double_transit_d1_cl_golden.json recaptured with the test's
  own --capture (PYTHONHASHSEED=0, chart cache TTL 0): 413 of 578 leaf entries
  and all 36 chart-house stats rows move (double-transit overlaps: D1 0 -> 15, CL 0 -> 6) because aspects are now counted
  from 1 (42d1582f).
- V.P. Jain benchmark: within tolerance 34 -> 36, variants 8 -> 6; Chesta
  Mars/Jupiter/Saturn now match the published values, Venus no longer does
  (08376cf0). Original / new / reason recorded in the test.

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:
Jesse_Chen
2026-10-02 14:09:39 +08:00
co-authored by Claude Opus 5.5
parent 0a4e6d0aa4
commit 0176cb3008
3 changed files with 1574 additions and 1124 deletions
File diff suppressed because it is too large Load Diff
+5 -3
View File
@@ -3,8 +3,10 @@
Real engine runs on the three public AA charts of the evidence-card research
(`consult_evidence_card_lib.load_public_charts`, raman ayanamsa, mean nodes,
reference date fixed in the library). The D1 and Chandra Lagna layers are
compared with a golden captured from the engine before the fix (base
5671039a); the fix only touches the D9 layer.
compared with a golden captured from the real engine. First captured before
the BUG-1060 fix (base 5671039a; that fix only touched the D9 layer);
recaptured 2026-10-02 after BUG-1185 (TASK-upstream-sync4-20261002 T2: the
aspect check counts houses from 1, so D1 / CL aspect rows moved).
Regenerate the golden (only when the D1 / CL layer is meant to change):
@@ -163,7 +165,7 @@ def _capture() -> None:
"ayanamsa": charts[0]["body"]["ayanamsa"],
"node_mode": charts[0]["body"]["node_mode"],
"houses": list(HOUSES),
"note": "D1 / Chandra Lagna layers only; captured before the BUG-1060 D9 fix and unchanged by it.",
"note": "D1 / Chandra Lagna layers only; recaptured after BUG-1185 (aspect houses counted from 1).",
},
"layers": _d1_cl_layers(),
}
+10 -5
View File
@@ -15,8 +15,13 @@ def test_vp_jain_published_component_benchmark_is_fully_classified() -> None:
}
assert report["summary"]["row_count"] == 42
assert report["summary"]["classified_count"] == 42
assert report["summary"]["within_tolerance_count"] == 34
assert report["summary"]["method_variant_count"] == 8
# 原值: within_tolerance 34 / method_variant 8
# 新值: within_tolerance 36 / method_variant 6
# 原因: TASK-upstream-sync4-20261002 T3(上游 0afa2780)平运动连续计时、短弧中点后,
# Chesta 火星 19.25→21.08、木星 11.23→8.86、土星 6.78→4.34 进入 ±1 Virupa;
# 金星 27.23→30.03 离开(公布值 28.18);水星 18.08→27.14 仍差 1.62。
assert report["summary"]["within_tolerance_count"] == 36
assert report["summary"]["method_variant_count"] == 6
def test_vp_jain_benchmark_keeps_known_method_variants_explicit() -> None:
@@ -28,10 +33,10 @@ def test_vp_jain_benchmark_keeps_known_method_variants_explicit() -> None:
("sthana", "Mercury"),
("chesta", "Sun"),
("chesta", "Moon"),
("chesta", "Mars"),
("chesta", "Mercury"),
("chesta", "Jupiter"),
("chesta", "Saturn"),
("chesta", "Venus"),
}
# 原值: chesta 非匹配集 {Sun, Moon, Mars, Mercury, Jupiter, Saturn}
# 新值: {Sun, Moon, Mercury, Venus}(原因同上:T3 Chesta 修正后火/木/土落入容差、金星跳出)
assert variants[("sthana", "Sun")]["variant"] == "moolatrikona_degree_range_vs_whole_sign"
assert variants[("chesta", "Moon")]["variant"] == "luminary_chesta_policy"