fix(rectification): bump scoring identity to scoring-14 for the #166 rulings (BUG-1583..1588)

78f98eba changes the same-input rectification scores: Shadbala Sthana and Drik
feed the Shadbala auxiliary (BPHS Saptavargaja values, Moolatrikona 3 / 15 deg,
whole-sign Kendradi, BPHS 26 special aspects, Mercury with any malefic) and
jaimini.calc_arudha_padas feeds the event engine and feature facts. Per
BUG-1181 the algorithm identity moves rectification-v5-matrix-scoring-13 ->
-14. Policy v4, input contract v5 and the dated window contract (generation
>= 9) are unchanged; the SQL guard accepts scoring-(9|[1-9][0-9]+), so no
migration.

- Memoization golden v7 written by write_golden (source_commit 78f98eba); v6
  stays byte-identical and is pinned by sha256. For this public request the
  candidate scores are unchanged (12:00 8.5336, 12:01 8.5242, 12:02 8.088);
  the Shadbala fingerprints, feature hash and candidate UUID moved.
- New scoring-14 cross-midnight golden from midnight_date_anchor_regression.py
  --golden (baseline = this tree; independent-process A/B 3 x 7 fields equal);
  scoring-13 golden kept as history and opens read-only with recompare.
- Dated-transitions scan unchanged (test passes without regeneration).
- v9EngineVersion() default and the identity tests follow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
This commit is contained in:
2026-11-04 21:10:43 +08:00
co-authored by Claude Opus 5.5
parent 78f98eba93
commit 1ce4eec53c
11 changed files with 5386 additions and 22 deletions
+6 -1
View File
@@ -26,7 +26,12 @@ from scripts.rectification.case_holdout import holdout_event_ids
# even-sign D30 follows BPHS ch. 6 (health_pressure, feature facts v4) and
# Venus is a functional malefic for Aries / Scorpio (BPHS 34.20 / 34.35), so
# the same input scores differently. Policy and the dated contract unchanged.
ALGORITHM_VERSION = "rectification-v5-matrix-scoring-13"
# scoring-14 (2026-11-04, #166 astrologer rulings, product decision; BUG-1583..1588):
# Shadbala Sthana (BPHS Saptavargaja values, Moolatrikona Moon 3 / Mercury 15,
# whole-sign Kendradi) and Drik (BPHS 26 special aspects, Mercury with any malefic)
# feed the Shadbala auxiliary; jaimini.py Arudha 1/7 exception counts from the
# first-count pada. Same input scores differently. Policy and dated contract unchanged.
ALGORITHM_VERSION = "rectification-v5-matrix-scoring-14"
INPUT_CONTRACT_VERSION = "rectification-calculation-spec-v5"
PRECISION_WEIGHTS = {
"day": 1.0,