Commit Graph
418 Commits
Author SHA1 Message Date
jesse-ux 770b141e7f Allow report readings to finish within the worker budget
Refs #240, BUG-1874
2026-11-13 13:31:42 +08:00
jesse-ux cfa8e0ff58 Exclude report birth-window endpoints from varga crossings (#237) 2026-11-13 10:27:50 +08:00
jesse-ux 6aa8552692 Document and verify report reading acceptance (#220) 2026-11-13 09:12:21 +08:00
jesse-ux 48eb741352 Use saved profile gender in personal reports (#228)
Independent Staging Quality Gate / validate-python (pull_request) Successful in 6m33s
Independent Staging Quality Gate / validate-frontend (pull_request) Successful in 7m8s
Independent Staging Quality Gate / publish (pull_request) Skipped
2026-11-13 06:03:31 +08:00
ClaudeandClaude Opus 5.5 ecfc010839 research(rect): reseal round8_r2d_rect_granularity_2026_11_11 after R2 option D and #184 (BUG-1835)
Independent Staging Quality Gate / validate-frontend (push) Successful in 5m0s
Independent Staging Quality Gate / validate-python (push) Successful in 6m31s
Independent Staging Quality Gate / publish (push) Successful in 2m53s
Owner-approved one-time reseal (2026-11-09). Same BUG-1809 protocol; new
tag only, older tags untouched. Sensitivity, not accuracy (BUG-1644).
- sealed 20: top-1 0.30->0.35, top-3 0.45->0.50, MAE 6.75->6.75, 6/20 changed
- offset 900: 78 runs changed in 3/20 cases; top-1 0.0100, coverage 0.8833 unchanged
- live v5 231: 30 runs changed (12 cases); best=truth 8->8
- comparability: offset not_reducible 0, 224 runs with consistent exclusion

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-11 14:31:57 +08:00
ClaudeandClaude Opus 5.5 c032823f9e research(rectification): reseal round7_integration_2026_11_09 on staging b453505d (BUG-1809)
Independent Staging Quality Gate / validate-frontend (push) Successful in 5m18s
Independent Staging Quality Gate / validate-python (push) Successful in 6m37s
Independent Staging Quality Gate / publish (push) Successful in 2m27s
Product owner approved 2026-11-09 ("agree new result"). Same protocol as
BUG-1720 / BUG-1759: c1a69445^ replay tree + float_split + round5 overlays +
b453505d scripts/references + a small replay overlay (new tag paths, retired
scorer zero-row adapter, RuntimeError guards). Product default strength scope
seed_only_v0, comparability policy common_evidence_coverage_v1.

- sealed 20: top-1 0.35 -> 0.30, top-3 0.45 -> 0.45, mean error 6.80 -> 6.75
- offset 900: top-1 0.0156 -> 0.0100, coverage 0.900 -> 0.883 (164/900 vs
  round5 tag; 57/900 over 4 cases vs pre-integration staging)
- live v5 231: best = truth 8 -> 8; 124 changes vs round5 tag, 115 vs
  pre-integration staging
- leaders: sealed 40/40 comparable; offset 863 comparable / 35 provisional /
  2 no single leader; live 226 / 5

Trial-for-trial identical to the integration agent's seed_only runs.
Sensitivity only, not accuracy (event scoring near chance, BUG-1644).
Older tags unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-09 07:28:04 +08:00
ClaudeandClaude Opus 5.5 17d932a517 fix(rectification): PVR functional default + source-version Narayana, reseal round5_pvr_narayana_2026_11_08 (BUG-1759)
Product approved 2026-11-08 (astrologer round-5 rulings 1, 3; same basis as
the report and the chat card):
- functional roles: drop the bphs_exception_profile pin at the three scoring
  call sites (+ research mirror); default pvr_table_30 with Moon paksha.
- Narayana: narayana_rath.calc_narayana_rath (two cycles) / antardasha, ages
  via narayana_age from the candidate birth moment; probes date from the birth
  moment. A blocked source step makes the layer unavailable, never the old
  algorithm. Blocked count on all three datasets: 0.
- Reseal: sealed 20, offset 900, live v5 231 under the new tag; identical to
  measurement variant (c) trial by trial. float_split / 166d kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-08 13:12:03 +08:00
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
ClaudeandClaude Opus 5.5 c9953c05f2 sync(upstream): port astrologer branch d09feab7 (public-sync-20261107) calculation changes
Product 2026-11-07: sync the astrologer's working branch (ea2a9d65..d09feab7).

- 0266b6ad: year lord picks by the native five-fold Panchavargiya only; a
  PyJHora score (research switch) is attached per candidate as
  external_oracle_comparison (observation_only_not_selection_input) and
  never selects. panchavargiya_selection_policy on the result; candidate_list
  and the reader-report candidate table carry the five components and raw total.
  The legacy Sun/Mars/Saturn table relabel is not applicable: calc_sodhita_av
  was already removed here (BUG-1209).
- 8c4bff8a + a5b75886: Sodhita no longer votes in finance adjudication; the
  bridge keeps raw 2/11 scores with prediction_scoring_allowed false.
- ba8e36ec: finance delivery inventory (raw, no vote), wrapped producer status
  counts as blocked in machine-evidence sections, transit section, report gate
  evidence_claims bindings, finance support review readiness.
- 5962368d: dispositor chain dispositor_sign is the dispositor's own sign.
- 8813c851: BCP observed at the reading date (bcp_reference, PL9 row).
- d09feab7: nakshatra_advanced.calculate_stellar_jeeva_sareera and the
  nadi-stellar-roles CLI; specialized-jyotish SKILL.md, usage packs, ontology
  and gap scanner mirrored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-07 20:03:44 +08:00
ClaudeandClaude Opus 5.5 676b7d47cd fix: parity3 product-side defects and upstream lag (Vimsopaka, Narayana ages, asc precision, labels, Sade Sati)
Three-way parity audit 2026-11-07 (U ea2a9d65 / F frozen / P f70ae94e):
- Vimsopaka: look vargas up by "D{n}_" prefix (D60 key was misspelt, every
  D60 fell to Neutral) and score only the sign-owner relation (upstream
  ab5b8709, BPHS 7.21-27). All 16 varga scores now equal U on 3 charts.
- Narayana: age = total_seconds / (86400 x 365.25) keeping the birth time
  (upstream ab5b8709); Rath rows carry start_date / end_date from the
  unrounded ages; consult layer, report facts, API and calendar read them.
- Ascendant degree_raw / lon unrounded (engine and chart API).
- position_mode label: legacy is the apparent frame since BUG-1275; the
  profile and module labels now say "apparent" (legacy still accepted).
- Functional profile label v2 -> v3_166q4 (the table actually used).
- full-reading Sade Sati uses the dated transit Saturn (upstream e628118d):
  Jobs 2026-11-07 peak, owner / Obama not active, as U.
Consult evidence card golden recaptured.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-07 19:01:10 +08:00
ClaudeandClaude Opus 5.5 0e8d263acc fix(engine): sync with the astrologer's upstream engine (parity audit C1-C7)
C1 compute_chart_data and transit use the bundled Swiss .se1 files (flag 258,
was Moshier 260) and record chart.meta; ephemeris_events sets the path too.
C2 full-reading yoga runs on the D1 lagna (upstream a387e999 d11_asc_idx).
C3 Raj Yoga dual lord needs two houses; kl==tl skipped (upstream e628118d).
C4 rule library: Mahabhagya / Parihasaka evaluators with condition_status,
Satkalatra, Subha Kartari (Moon), Varga Yoga, Jananatpurvam (Raman 242),
Chakra Yoga, Raja Yoga mutual aspect; lords_relation same-planet guard; nodes
cast no aspect; unplaced planets fail all_in_houses / exactly_n_signs; and
bindings keep both sides; Chakra/Vajra Nabhasa, Kalanidhi, Dala retired;
duplicate algorithmic solar/lunar block removed. Astrologer rulings kept.
C5 jaimini.special_lagnas = jaimini_special_lagna_view (upstream ab5b8709).
C6 chara_karaka_standard (BPHS 8) replaces chara_karaka_jh (upstream 2f52cfca).
C7 conditional dashas get dasha_year_days and as_of (full-reading and consult).
CLI: --gender (yoga/full-reading/pl9-export), --dasha-year-days.
产品 2026-11-07 与占星师上游引擎同步。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-07 16:57:58 +08:00
Claude 3fa915a71e merge codex/up-voice-1107 into upstream-full integration; size caps re-measured 2026-11-07 14:35:47 +08:00
Claude 91d2aca3c1 merge codex/up-rectify-1107 into upstream-full integration 2026-11-07 14:32:16 +08:00
ClaudeandClaude Opus 5.5 eb2adb2858 feat(consult): professional mode by default, full skill routing in the prompt
Astrologer's plan 2026-11-07 (items 1, 2, 3, 5, 7, 10, 11; 最终产品结构建议):
- answer mode decided on the server from the user's own words (consultationAnswerMode:
  latest explicit request in this turn or session history wins; default professional,
  plain on 白话/简单点/听不懂...) and bound into the system prompt via agent context
- professional VISIBLE VOICE: ## route, parameters, executed techniques + raw data,
  vargas per domain, multi-dasha both directions, A/B/C grades, conflicts/blocked,
  conclusions last, Technique Audit Table with Functional Benefic/Malefic,
  MEVG / Global Web Evidence, Real Case Calibration rows, read from the card's route table;
  plain voice keeps the old shape, same backend method; safety red lines shared
- period-first rule; interpretation statuses (parameter_sensitive,
  user_history_verification_required, blocked, not_available_yet) replace
  "reference only / blocked = cannot read"; KP used conditionally (on card)
- methodology delivers sub-skill SKILL.md per skill_family_router (parashari-core always;
  jaimini-timing, kp-event, tajika-annual, financial-astrology, prashna-muhurta by domain);
  widest plan 55k chars, untruncated
- follow-ups: red lines + precision line in the prompt, post-filter for death, disease,
  divorce, pregnancy, child sex, exact-day wealth, third-party identity, exact days
- entries: children prompt without 缘分; presets 12.3 counting rule, 12.5 sends exact
  days to the ephemeris page; third starter asks for a period, or the time check first
  when the birth time is an estimate
- tests updated with 原值/新值/原因; new consult-professional-mode-20261107.test.ts

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-07 14:31:36 +08:00
ClaudeandClaude Opus 5.5 a09037c668 feat(rectification): run the astrologer's own method beside chart choice
Product order 2026-11-07: birth-time rectification follows the astrologer's
skill (yinduzhanxing 5fb8379c) in full. The chart-choice page stays; her
method is added as a stage and both results are shown side by side.

- scripts/chart_choice/astrologer.py, POST /api/chart_choice/astrologer:
  minute-by-minute scan of D1/D2/D3/D4/D7/D9/D10/D12/D20/D24/D30/D60
  (D60 reference only), ascendant nakshatra/pada, KP sub-lord, A7/UL/A10;
  her five stages (intake, appearance/birthmark screens, event verification
  with Vimshottari MD/AD/PD + Narayana MD/AD per event and the >=5-event
  gate, D9/D10 trait correction, report); her 40/35/15/10 scoring, match-rate
  tiers (80/60), report confidence (90/70) and engine confidence; family
  (六亲) event categories; D30 only with health-type events; Gochara blocked;
  our 77-case backtest caveat on every result.
- active_rectification_questions.py synced to upstream (question_bank,
  bindings, workflow_status), local adaptations marked LOCAL, accepts an
  in-process minute_scan.
- Frontend: /api/chart-choice/astrologer and an AstrologerStage step,
  reachable from the result, the no-line case and the current record.
- Consultation reads the other version for domains kept 「两版都读」
  (provenance now records other_saved_at).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-07 14:24:01 +08:00
ClaudeandClaude Opus 5.5 6a57faacdb feat(consult): run the astrologer's upstream skill in full (BUG-1696, BUG-1697, BUG-1698)
- root SKILL.md is her upstream file (body byte-identical to the 5fb8379c mirror; description quoted so YAML parses and Mastra can load the skill)
- chat binds the whole SKILL.md plus references/product_runtime_contract.md (safety-only) instead of a ~477-character excerpt
- every turn carries her full strict-workflow-router (synced to upstream) and the domain's event-judgment file; product lists follow as an extra layer
- import her 10 sub-skills, family router, interpretation status contract, technique ontology and the 54 files her method names
- tests/test_upstream_skill_parity.py (in the quick gate) fails whenever her skill and ours drift
- 18 frontend guards that locked the excerpt design updated with 原值/新值/原因 notes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-07 14:02:26 +08:00
ClaudeandClaude Opus 5.5 3ddf4db8d2 docs(research): party statements count as legal dates; Tina Turner admitted with Brownsville
Independent Staging Quality Gate / validate-frontend (push) Successful in 5m14s
Independent Staging Quality Gate / validate-python (push) Successful in 5m50s
Independent Staging Quality Gate / publish (push) Successful in 3m9s
Astrologer 2026-11-07: a spouse's memoir or anniversary statement of the
marriage date counts as a party statement of the legal date; Tina Turner is
admitted with Brownsville, Tennessee (UTC-6) and 22:10 from the registrar
birth note. Usable for round 1: 54 career and 33 relationship people.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-07 12:48:58 +08:00
ClaudeandClaude Opus 5.5 237aa26f26 docs(research): apply the third holdout ruling; legal-basis and birth-dispute research
Astrologer 2026-11-07: primary legal_marriage needs an explicit legal basis
(inferred dates go to appendix and sensitivity only); Clooney and Macron go
to the development set; Tina Turner deferred, Gloria Estefan observation only.
Research across the web (astrologer posts and discussions used only as
pointers; rectified times never admissible): 11 more marriages get an
explicit basis (Hemingway–Gellhorn legal date is 1940-11-21), 4 rest on
party statements for the astrologer to rule on; Hillary Clinton's hour digit
and Woody Allen's date stay unresolved; Tina Turner's place points to
Brownsville. Usable: 53 career and 30 relationship people.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-07 12:48:58 +08:00
ClaudeandClaude Opus 5.5 38244928e8 docs(research): legal marriage dates verified for the holdout candidates
Independent Staging Quality Gate / validate-frontend (push) Successful in 4m59s
Independent Staging Quality Gate / validate-python (push) Successful in 5m43s
Independent Staging Quality Gate / publish (push) Successful in 3m1s
55 more marriages checked: 6 with an explicit legal act, 35 jurisdictional
(the officiated wedding is the legal act there, no separate civil act
found), 2 ceremony only, 17 unconfirmed (date conflicts or no place). 7
inferred dates got a stating source; one stays low confidence. Usable for
round 1, counting each person once: 57 career; 27 relationship with explicit
legal dates only, 41 if jurisdictional dates count (astrologer to decide).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-07 00:02:38 +08:00
ClaudeandClaude Opus 5.5 545b407978 docs(research): round-2 holdout candidates and verified legal marriage dates
Independent Staging Quality Gate / validate-frontend (push) Successful in 5m23s
Independent Staging Quality Gate / validate-python (push) Successful in 5m48s
Independent Staging Quality Gate / publish (push) Successful in 2m50s
About 230 names screened against both repos before any research; 70 unused
names researched, 48 rated AA or A, all re-checked against raw Astrotheme
pages. Strict legal-marriage rule applied on merge (48 downgraded to
unconfirmed). The 16 round-1 marriages were verified: 9 confirmed (3 with a
different legal date than first recorded), 1 not legal, the rest unconfirmed.
Usable for round 1, counting each person once: 57 for career and 23 for
relationship. Still a draft: no annual facts were run for these people.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-06 22:52:36 +08:00
ClaudeandClaude Opus 5.5 0fa9cdb668 docs(research): apply the astrologer's holdout ruling; 24 of 36 candidates already used in the project
Independent Staging Quality Gate / validate-frontend (push) Successful in 5m4s
Independent Staging Quality Gate / validate-python (push) Successful in 5m47s
Independent Staging Quality Gate / publish (push) Successful in 3m37s
Astrologer 2026-11-06: Hillary Clinton not admitted (time source conflict);
admission per person (traceable date, time, place and historical zone,
rating consistent with its source); primary marriage event is the legal
effective date, ceremony only secondary; round 1 tests career and
relationship only.

Re-audit of both repos found 24 of the 36 kept candidates already used
(rectification holdout v5 roster, celebrity test fixtures, standard test
charts, adjudicator audits, consult backtests, website e2e eval); the first
audit only read subject.name fields. 9 unused plus 2 listed in another
study's pool remain for review; 16 of their marriage events need the legal
date confirmed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-06 21:41:49 +08:00
ClaudeandClaude Opus 5.5 9351b0b633 feat(report): Lagna Kendradi, Niryaana Shoola sub-periods and non-applicable conditional dashas, as in the upstream export
Independent Staging Quality Gate / validate-frontend (push) Successful in 5m20s
Independent Staging Quality Gate / validate-python (push) Successful in 6m3s
Independent Staging Quality Gate / publish (push) Successful in 3m28s
Product decision 2026-11-06: follow the upstream export for these tables.

- Lagna Kendradi: upstream profile kendradi_narayana_duration_candidate_v1
  (Lagna sign, then kendra / panaphara / apoklima order, Narayana sign years,
  the same years Drig uses). Major periods only; labelled as not checked
  against a book example.
- Niryaana Shoola: sub-periods forward from the MD sign, twelve equal parts;
  the research chapter adds the third level. Labelled: PVR gives no separate
  rule, comparison only.
- Conditional dashas whose classical gate fails (Satabdika, Shodashottari,
  Dwadashottari, Dwisaptatisama, Panchottari, Chaturshitisama) get a separate
  reference copy with the existing standard-table profile. The reading's own
  modules stay not_applicable, so consultation, convergence and
  rectification are unchanged; the report states the unmet condition.

Tests that locked the old omissions are updated with 原值/新值/原因.
Pre-work ledger: notes from this session (restore, CRLF files, baseline failures).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-06 17:39:39 +08:00
ClaudeandClaude Opus 5.5 07f750436b docs(research): draft candidates for a new annual holdout (36 people, 134 dated events), unreviewed
Independent Staging Quality Gate / validate-frontend (push) Successful in 4m57s
Independent Staging Quality Gate / validate-python (push) Successful in 5m40s
Independent Staging Quality Gate / publish (push) Successful in 2m37s
48 public figures not in the development set; kept the 36 with Rodden AA or
A on Astrotheme. Ratings, sources, birth dates and times re-checked against
the raw pages (all match); 129 of 133 day-precise event dates found verbatim
on their source page, 4 marked derived_needs_review. Draft only: no annual
facts were run for these people, and they are not admitted or frozen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-06 16:26:46 +08:00
ClaudeandClaude Opus 5.5 c1fa95c0c1 docs(research): annual real-case calibration audit and plan, with questions for the astrologer
Independent Staging Quality Gate / validate-frontend (push) Successful in 5m2s
Independent Staging Quality Gate / validate-python (push) Successful in 5m43s
Independent Staging Quality Gate / publish (push) Successful in 2m41s
All 25 public figures in references/real_case_calibration were replayed,
held out and opened, or annotated before, so they form the development set;
a new annual holdout needs new people. Records the plan (person-level split,
frozen method, windows generated without event dates, coverage and window-day
metrics, comparable random baselines) and the skill-repo questions for the
astrologer (attribution, template_cases marked external_verified, Tajika rule
review, exact-contact windows, case list).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-06 15:23:17 +08:00
ClaudeandClaude Opus 5.5 7bdad0f147 docs(ledger): ERR-118 staging gate red only because the CI Postgres container did not start
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-05 18:12:47 +08:00
ClaudeandClaude Opus 5.5 7827d9aff0 chore(rectification): re-freeze after the BUG-1622..1626 renumber (ERR-110)
The renumber (093da446) changed comments in shadbala.py and both replay
scripts, so the frozen identity moved. On top of staging 849343cd:
FREEZE / REPORT constants first, --freeze, then replay:
astrologer_166d_2026_11_05; contract rotated with previous =
astrologer_166c_2026_11_05 (kept byte-for-byte).

Versus astrologer_166c_2026_11_05 and astrologer_166b_2026_11_04: sealed 20
and reported offset 900 all identical, metrics and summary identical,
historical changed_trial_count 10 / 731. Still scoring-15; no tuning.
BUG-1622 records the second re-freeze.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-05 15:35:31 +08:00
ClaudeandClaude Opus 5.5 093da4468d docs: renumber this branch's records BUG-1613..1617 -> BUG-1622..1626
Another session shipped a different BUG-1613 (loading curtain) to staging.
Mapping in order: 1613->1622, 1614->1623, 1615->1624, 1616->1625,
1617->1626, in BUG_HISTORY headings and bodies, CHANGELOG, ledger, research
notes, code comments, rule text, test notes and the holdout contract text.
Text only. shadbala.py and the two replay scripts are in the frozen identity,
so an ERR-110 re-freeze follows in the next commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-05 15:32:05 +08:00
ClaudeandClaude Opus 5.5 7174fda7a9 refactor(arudha): move the PVR dual-lord selector into scripts/arudha_reference/ (BUG-1617)
The quick gate's tests/test_python_hygiene_budget.py caps root scripts at 441
("locally written files must not increase"); the new module made it 442.
Moved to the subpackage scripts/arudha_reference/pvr_dual_lord.py; CLI
import tries both import styles; tests, BUG-1617 and the status table updated.
No frozen file touched; behaviour unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-05 15:31:51 +08:00
ClaudeandClaude Opus 5.5 d2f65211a7 docs(bug-history): BUG-1613..1617 for the #166 2026-11-05 astrologer reply; ledger and CHANGELOG
BUG-1613 Saptavargaja Moolatrikona provisional label, D9 in-varga label,
V.P. Jain provenance; BUG-1614 Mercury nature relabel, Drik Mercury / Jupiter
label, 26.11-12 endpoints; BUG-1615 strict Gajakesari malefic Mercury;
BUG-1616 Matrunasa labels and 199 text; BUG-1617 opt-in PVR Arudha
dual-lord selector. Re-freeze astrologer_166c_2026_11_05 recorded under
BUG-1613 (replay identical to astrologer_166b_2026_11_04).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-05 15:31:51 +08:00
ClaudeandClaude Opus 5.5 3c81ebf3cf chore(rectification): re-freeze sealed holdout and offset sweep for the #166 2026-11-05 labels (ERR-110, BUG-1613..1617)
shadbala.py (frozen identity) changed in 5ffef30a: labels, comments and the
shared mercury_malefic_companions() helper, no value change. Scoring identity
stays rectification-v5-matrix-scoring-15; no ALGORITHM_VERSION bump.

FREEZE / REPORT constants first, --freeze, then replay (after all code
commits of this branch, 09fd3a42): astrologer_166c_2026_11_05; contract
rotated with previous = astrologer_166b_2026_11_04 (kept byte-for-byte).

Versus astrologer_166b_2026_11_04, trial by trial:
- sealed 20: all identical; metrics identical (top-1 0.40, top-3 0.45, mean
  minute error 6.95); historical changed_trial_count still 10.
- reported offset 900: all identical; summary identical (top-1 hits at
  +-15/30/60 4/3/0, top-3 31/34/30, delivery coverage at +-15 219, mean top-1
  minute error 20.52); historical changed_trial_count still 731.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-05 15:31:43 +08:00
ClaudeandClaude Opus 5.5 6e10c7242e docs(moolatrikona): label the in-varga D9 Moolatrikona as pending; correct the V.P. Jain provenance (BUG-1613)
Astrologer 2026-11-05 (#166 comment 39249, item 1). No calculation change.

- jyotish_engine.VARGA_MOOLATRIKONA_BASIS = in_varga_degree_band_pending_review:
  a D9 Moolatrikona is decided by the in-varga degree inside the D1 band;
  whether / how Moolatrikona applies in vargas is pending. Written on each
  d9_navamsa_expanded row (moolatrikona_basis) and on the consultation D9
  summary (not copied to the evidence card).
- "V.P. Jain example" corrected to "PyJHora test transcription"
  (pvr_tests.py::shadbala_VPJainBook_tests, no edition or page) in the data
  audit notes and the competitive analysis (ERR-081 recurrence).
- astrologer_questions.md: status table of the seven 2026-11-05 items.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-05 15:31:43 +08:00
ClaudeandClaude Opus 5.5 d655e6975c docs(ledger): ERR-117 shared machine ran out of inodes from stacked worktrees
Independent Staging Quality Gate / validate-python (push) Successful in 6m26s
Independent Staging Quality Gate / validate-frontend (push) Successful in 6m33s
Independent Staging Quality Gate / publish (push) Successful in 2m58s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-05 11:32:44 +08:00
ClaudeandClaude Opus 5.5 974e7e60cd fix(consult): rename the Narayana module variables that ESLint rejects (BUG-1601)
Independent Staging Quality Gate / validate-python (push) Successful in 6m21s
Independent Staging Quality Gate / validate-frontend (push) Successful in 6m24s
Independent Staging Quality Gate / publish (push) Successful in 2m38s
backend-quality-gate #6725 on cb8fcca7: frontend tests 0 failures, but ESLint
reported 2 errors (@next/next/no-assign-module-variable) for variables named
`module` in consultation-evidence-card.ts baseTiming and
consult-narayana-rath-card-20261003.test.ts. Renamed to narayanaModule;
npx eslint . is back to 0 errors (122 existing warnings). Ledger notes that the
local quick gate does not run ESLint.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-05 09:00:48 +08:00
ClaudeandClaude Opus 5.5 3e7388c37f feat(narayana): default to Sanjay Rath, keep the legacy algorithm as a labelled comparison (BUG-1601, #166 Q9)
Product decision 2026-11-04 on astrologer ruling #166 Q9. One builder,
narayana_legacy_label.product_narayana, makes the product Narayana object:
the Rath view on top (label "Sanjay Rath 版(默认;…)", seed sign, 24 MDs,
running MD / AD with remaining_years, the running MD's ADs) and the whole
labelled legacy result under `legacy`. When Rath cannot decide a start sign
the object says blocked in plain words; legacy never stands in.

- Consultation card: timing.narayana is Rath; the legacy running MD rides
  as a short timing.narayana_legacy; timing.narayana_rath is gone.
- Full reading / report: Rath block first, "- 对照:旧算法…" after; the
  parity chapter lists Rath (default), source-aware and legacy (comparison);
  dasha master pack Narayana periods are the Rath MDs.
- /api/dasha narayana: periods are Rath, legacy under `legacy`.
- Annual: Rath is the product timeline (used_by_product_timeline true),
  narayana_skeleton_profile "rath", legacy is the reference and never counts.
- CLI narayana-dasha prints Rath first, legacy as comparison.
- Consult full-data cache schema v2 -> v3 so old legacy-default packets miss.

Rectification scoring is untouched and still calls calc_narayana_mahadasha
(frozen identity). Evidence-card, biography and card-facts captures were
regenerated with their scripts; annual-report-facts.json was regenerated from
its endpoint function. Tests pinning legacy-as-default are rewritten with
原值/新值/原因.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-05 04:32:07 +08:00
ClaudeandClaude Opus 5.5 013f889529 chore(rectification): re-freeze sealed holdout and offset sweep for #166 batch 2 at scoring-15 (ERR-110, BUG-1590..1598)
Independent Staging Quality Gate / validate-frontend (push) Successful in 6m25s
Independent Staging Quality Gate / validate-python (push) Successful in 6m30s
Independent Staging Quality Gate / publish (push) Successful in 3m3s
FREEZE / REPORT constants first, --freeze, then replay:
astrologer_166b_2026_11_04 (frozen after 7ff447ac); contract rotated with
previous = astrologer_166_2026_11_04 (kept byte-for-byte).

Versus astrologer_166_2026_11_04 (no tuning):
- sealed 20: all identical, metrics unchanged.
- reported offset 900: 114 changed; top-1 hits at +-15/30/60 stay 4/3/0;
  top-3 30/34/29 -> 31/34/30; delivery coverage at +-15 220 -> 219; mean
  top-1 minute error 20.87 -> 20.52.

BUG-1590..1598 recorded; ledger and CHANGELOG lines added.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-04 22:42:41 +08:00
Claude 43ccf3ad6d Merge remote-tracking branch 'origin/staging' into codex/astrologer-166-rulings
Independent Staging Quality Gate / validate-frontend (push) Failing after 4m25s
Independent Staging Quality Gate / validate-python (push) Successful in 6m38s
Independent Staging Quality Gate / publish (push) Skipped
# Conflicts:
#	docs/BUG_HISTORY.md
2026-11-04 22:05:54 +08:00
ClaudeandClaude Opus 5.5 1989649f70 chore(rectification): re-freeze sealed holdout and offset sweep for the #166 rulings at scoring-14 (ERR-110, BUG-1581..1589)
FREEZE / REPORT constants first, --freeze, then replay: astrologer_166_2026_11_04.
Contract rotated with previous = d30_venus_2026_11_04 (kept byte-for-byte);
freshness test and frontend confirmation-gate test updated.

Versus d30_venus_2026_11_04 (no tuning):
- sealed 20: 17 identical / 3 changed (case 6 true_rank 8 -> 4, case 16
  13 -> 11, case 20 1 -> 8 with minute error 10 -> 8); top_1 0.45 -> 0.40,
  top_3 0.50 -> 0.45, MAE 7.05 -> 6.95, coverage 0 unchanged.
- reported offset 900: 584 identical / 316 changed (rank better 122, worse
  139); top-1 hits at +-15/30/60 4/3/0 and top-3 30/34/29 unchanged; delivery
  coverage at +-15 219 -> 220; mean top-1 minute error 19.51 -> 20.87.
No per-ruling attribution replay was run.

BUG-1581..1589 recorded (BUG-1575 resolved with BUG-1583); ledger and
CHANGELOG lines added.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-04 21:14:16 +08:00
ClaudeandClaude Opus 5.5 b23330235b test(consult): regenerate the evidence-card, biography and card-facts captures on staging 71d38b0d
The frozen engine captures fed to the card tests and the biography backtest
were October snapshots (10-04 / 10-07 / 10-09). All three are regenerated with
their own scripts (TTL 0, PYTHONHASHSEED=0).

Attribution with a git-archive capture at db2fc3fc (before today's engine
fixes): db2fc3fc -> 71d38b0d changes fall inside BUG-1541..1572, 1270, 1576
(Scorpio Venus functional malefic for Taylor and Piaf, Kahlo's second
Vimshottari cycle, Narayana current periods, Chara co-lords, yogas, Shadbala,
D16-D45, Vivaha Saham day/night). The older drift comes from BUG-1275
(nutation, +-0.005 deg), the Argala tiebreak (aa87c0f1), new ascendant
nakshatra fields and the research VedAstro stand-in now reporting blocked.

Two assertions moved, both with 原值/新值/原因: Taylor's functional roles
(BUG-1570) and the Vivah Saham projection, which does not carry the engine's
new formula_variant (BUG-1547). 118 / 118 fixture tests pass, tsc clean,
Python quick gate passed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-04 21:07:29 +08:00
ClaudeandClaude Opus 5.5 6491388e9c docs(research): keep the 2026-11-04 data-audit reports and the 31 astrologer questions (#166)
The question list and the wave-2 audit reports lived only in a session
scratchpad; Gitea #166 points at them. Public charts only, no user data.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-04 19:42:46 +08:00
ClaudeandClaude Opus 5.5 71d38b0d67 chore(rectification): re-freeze sealed holdout and offset sweep for D30 and Venus roles at scoring-13 (ERR-110, BUG-1560, BUG-1570)
Independent Staging Quality Gate / validate-python (push) Successful in 7m24s
Independent Staging Quality Gate / validate-frontend (push) Successful in 7m25s
Independent Staging Quality Gate / publish (push) Successful in 2m59s
FREEZE / REPORT constants first, --freeze, then replay: d30_venus_2026_11_04.
Contract rotated with previous = audit_wave2_2026_11_04 (kept byte-for-byte);
freshness test and frontend confirmation-gate test updated.

Versus audit_wave2_2026_11_04 (product accepted these costs 2026-11-04, no
tuning):
- sealed 20: 17 identical / 3 changed (case 5 rank 1 -> 3, case 18 12 -> 10,
  case 14 reasons only); top_1 0.50 -> 0.45, MAE 6.65 -> 7.05; top_3 0.50 and
  coverage 0 unchanged. All from the D30 table.
- reported offset 900: 650 identical / 250 changed; top-1 hits at
  +-15/30/60 14/17/15 -> 4/3/0 of 300 (all from Venus roles); top-3 and
  delivery coverage unchanged at every radius; mean minute error
  19.79 -> 19.51 (from D30).
Attribution from single-fix replays on git-archive copies: D30 alone 3 sealed
/ 166 offset trials, Venus alone 0 / 108; they overlap only in case 20.

BUG-1560 and BUG-1570 resolved; ledger and CHANGELOG lines added.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-04 17:46:58 +08:00
ClaudeandClaude Opus 5.5 607a48b6c3 chore(rectification): re-freeze sealed holdout and offset sweep once for the merged audit wave 2 (ERR-110)
Independent Staging Quality Gate / validate-frontend (push) Successful in 6m27s
Independent Staging Quality Gate / validate-python (push) Successful in 6m34s
Independent Staging Quality Gate / publish (push) Successful in 3m1s
G (BUG-1560/1561: varga.py, divisional_charts_extended.py), H (BUG-1566/1567:
jaimini.py) and J (BUG-1270/1576: shadbala.py) each changed frozen identity
files and each froze its own audit_g / audit_h / audit_j record, which only
matches that branch's tree. Per ERR-110 the merged tree is frozen once as
audit_wave2_2026_11_04 (FREEZE/REPORT constants first, --freeze, then replay).
The contract now points at audit_wave2 with moon_paksha_2026_11_04 as the
previous record; the per-branch records are kept byte-for-byte and named as
intermediate in the superseded_reason notes. Freshness test and frontend gate
test updated.

Compared field by field with moon_paksha_2026_11_04: sealed holdout 20/20
trials identical, metrics unchanged; reported offset 900/900 identical,
summary unchanged; changed_trial_count vs 2026-09-20 stays 8 / 581.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-04 17:24:31 +08:00
ClaudeandClaude Opus 5.5 1cdd9c827c merge: data audit wave 2 J (Dig Bala arc fold BUG-1270, deterministic Drik BUG-1576, BUG-1575 logged)
Freeze contract, FREEZE/REPORT constants and gate tests keep the G state
here; the merged tree is re-frozen once as audit_wave2_2026_11_04 next.
J's audit_j records are kept byte-for-byte as history.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-04 17:05:52 +08:00
ClaudeandClaude Opus 5.5 728b077d44 merge: data audit wave 2 I (yoga rules and Parivartana Raja Yoga, BUG-1570..1573)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-04 17:05:37 +08:00
ClaudeandClaude Opus 5.5 359504a9df merge: data audit wave 2 H (Chara co-lord/antardasha, gulika night, natal vara, BUG-1565..1569)
Freeze contract, FREEZE/REPORT constants and gate tests keep the G state
here; the merged tree is re-frozen once as audit_wave2_2026_11_04 at the end.
H's audit_h records are kept byte-for-byte as history.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-04 17:05:15 +08:00
ClaudeandClaude Opus 5.5 895a75a2ed chore(rectification): re-freeze sealed holdout and offset sweep for the varga fixes (ERR-110)
BUG-1560 / BUG-1561 changed scripts/varga.py and
scripts/divisional_charts_extended.py, both in the frozen scoring identity.
Per ERR-110 new records were created with each script's --freeze and
replayed as audit_g_2026_11_04; scripts, contract, freshness test and the
frontend gate test point at them. Prior records are kept byte-for-byte.

Compared field by field with moon_paksha_2026_11_04: sealed holdout 20/20
trials identical, metrics unchanged; reported offset 900/900 identical,
summary unchanged; changed_trial_count vs 2026-09-20 stays 8 / 581.
(The D16/D20/D27/D45 and extended-module charts are not read by scoring.)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-04 17:02:53 +08:00
ClaudeandClaude Opus 5.5 ba27b0e758 fix(varga): D16/D20/D27/D45 starts and the chart-page D30/D40 follow BPHS ch. 6 (BUG-1560..1562)
Data audit wave 2 (G): 19 fixed charts, Raman and Lahiri, mean nodes, both
engines set explicitly. Against PyJHora method 1 ("traditional Parasara") on
the same longitudes, varga.py matched D16/D20 26%, D27 25%, D45 14%, and
divisional_charts_extended (chart page, consultation varga spectrum) matched
D16/D20 7%, D27 14%, D40/D45 25%, D30 50%. jyotishganit agrees with PyJHora
190/190 on every one of these, and both follow BPHS ch. 6.

- varga.varga_map: D16/D45 movable/fixed/dual from Aries/Leo/Sagittarius,
  D20 from Aries/Sagittarius/Leo, D27 fiery/earthy/airy/watery from
  Aries/Cancer/Libra/Capricorn (were odd/even starts). BUG-1560.
- divisional_charts_extended: D16/D20/D27/D40/D45 signs now read varga_map;
  D30 uses the BPHS signs (odd 25-30 Libra; even Taurus, Virgo, Pisces,
  Capricorn, Scorpio). BUG-1561.
- trimshamsa_d30: even-sign table copied from jyotishganit swapped Jupiter
  and Saturn; now 12-20 Pisces, 20-25 Capricorn, 25-30 Scorpio. BUG-1562.
- shodasavarga guide: D4/D10/D24/D27/D30/D40 rule text corrected.

Held back: varga.py even-sign D30 has the same defect, but it feeds
rectification scoring. Fixing it moved the sealed holdout (top-1 0.50 to
0.45) and 166/900 offset trials and turned the memoization goldens red,
which per BUG-1260/1275 means a scoring-13 identity: a product decision.
It carries a KNOWN DEFECT comment and a strict xfail test.

After: same-longitude agreement with PyJHora is 190/190 for D3-D60 in
divisional_charts_extended and for every varga.py chart except D30.
D9/D10/D12, karakas and Arudha are unchanged; the evidence card check
(27 cards, 765 fields) shows 0 differences before and after.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-04 17:02:53 +08:00
ClaudeandClaude Opus 5.5 d4cde02e6f fix(shadbala): fold the Dig Bala arc (BUG-1270) and make Drik Bala deterministic (BUG-1576)
Dig Bala took |powerless point - planet| / 3 without folding arcs above
180 degrees, so 35 of 140 values on the 19 benchmark charts plus Steve Jobs
exceeded the 60 Virupa maximum (up to 98.98). BPHS 27.7 ("hitva
shadbhadhike sati"; Santhanam: "If the sum is above 180 degrees, deduct the
sum from 360") and Raman, Graha and Bhava Balas section 44-45, Ex. 14-15
(Kuja arc 167 05, Digbala 55.70) both fold. PyJHora's default _dig_bala has
the same unfolded formula, which is why the comparison always "matched";
its own _dig_bala_another, VedAstro source, jyotishganit and saravali fold.
After the fix all 140 values equal PyJHora _dig_bala_another.

Drik Bala summed the aspecting planets in set order. Each Sphuta value is
already rounded to 0.01, so the quarter often sits on a .xx5 edge and the
result moved by 0.01 with PYTHONHASHSEED. Sum whole hundredths in sorted
order and round the quarter half away from zero; 14 of 140 values move by
0.01. Formulas, tables and benefic/malefic classification are unchanged.

New tests lock Raman's Standard Horoscope Ex. 13 (Sthana), Ex. 15 (Dig)
and Ex. 55 (Drik), the fold bounds, and seed-independent Drik. Updated
expectations: test_shadbala_precise_context (PyJHora default Dig carried
the bug) and the Jobs Moon total in test_shadbala_moon_paksha_convention.

shadbala.py is in the rectification frozen identity, so per ERR-110 both
fixes were frozen and replayed once as audit_j_2026_11_04. Compared field
by field with moon_paksha_2026_11_04: sealed holdout 20/20 and reported
offset 900/900 identical, metrics and summary unchanged.

Also records BUG-1575 (jyotish_engine MOOLATRIKONA gives the Moon Taurus
0-3; investigating, not changed).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-04 16:57:16 +08:00
ClaudeandClaude Opus 5.5 5f234c315b fix(jyotish): Chara co-lord and antardasha, night time-segment points, pre-sunrise weekday; re-freeze as audit_h (BUG-1565..1568)
Data audit wave 2 (H) against PyJHora 4.8.6 and Swiss Ephemeris, 19 charts,
Raman and Lahiri passed explicitly to both sides.

- BUG-1566 (jaimini.py): the K.N. Rao Chara Scorpio / Aquarius lord read both
  co-lords' dignity in the dasha sign itself, so Scorpio was always Ketu and
  Aquarius always Saturn. Now one lord in the sign gives way to the other
  (K.N. Rao; Rath p.43 (c); PyJHora); otherwise compared where each stands
  (companions, Jupiter / Mercury / dispositor, dignity, modality, degrees).
  MD years vs PyJHora 212/228 -> 225/228 (Raman), 226/228 (Lahiri).
- BUG-1567 (jaimini.py): K.N. Rao antardashas now run each MD's own
  direction with the MD sign last (pp.35-36); book order 19/228 -> 228/228.
- BUG-1565 (gulika.py): Wednesday-Saturday night share table started one lord
  early; Maandi and the four other time-segment points 79/114 -> 114/114
  against an independent Swiss computation. Gulika unchanged (19/19).
- BUG-1568 (jyotish_engine.py): natal Panchanga vara / hora used the civil
  date; a birth before sunrise belongs to the previous weekday (15/19 -> 19/19
  vs PyJHora drik.vaara).

Narayana (legacy and Rath), transits, sunrise and day/night: no defect; the
second-cycle rule matches PyJHora's. Variants are listed in BUG_HISTORY.

jaimini.py is in the frozen identity: per ERR-110, new records frozen and
replayed as audit_h_2026_11_04; contract, freshness test and frontend gate
test rotated. Versus moon_paksha_2026_11_04: sealed 20/20 and reported offset
900/900 identical, metrics and summary unchanged. Chara sections of two
frontend fixtures and the rashi-dasha PyJHora fixture's native rows updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-04 16:53:31 +08:00
ClaudeandClaude Opus 5.5 5a112bf5f5 fix(yoga): revive nine custom rules and Raja Yoga (Parivartana) (BUG-1571, BUG-1572)
Data audit wave 2 (I). 04d901e1 (2026-06-27) renamed the evaluator's
pyjhora_* helpers to external_benchmark_* but left the rule expressions
calling the old names; the NameError is swallowed, so nine rules (Matru
Sneha on the parents card, Bhratruvriddhi, Amala, Sumukha, Bandhu Pujya,
Kaalanirdesat Puthranaasa, ...) never formed. The rule library now calls
the current names; logic is unchanged. Against PyJHora (Raman, mean nodes,
19 samples) the revived rules agree 18-19/19; the 20 Raman packet rules
go from 302/380 to 327/380.

_eval_parivartana resolved "$a" / "$b" with ctx.resolve, which knows no
any_pair bindings, so raja_yoga_parivartana (kendra lord <-> trikona lord
exchange, BPHS 34.11) never fired. Bare "$x" refs now go through
_resolve_binding.

New test scans every custom expression for names the evaluator does not
define (only parvata_yoga, non-classical and left off, is excepted).
Neither file is in the rectification frozen identity; sealed 20/20 and
reported-offset 900/900 replay identical to moon_paksha_2026_11_04.

BUG-1570 (Aries / Scorpio Venus malefic by BPHS 34.20 / 34.35) and
BUG-1573 (packet members with no evaluable detector, no D9 context in the
consultation yoga path) are recorded, not changed: the BUG-1570 trial cut
reported-offset top-1 by 3-5 pp and needs a product decision.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-04 16:44:42 +08:00
ClaudeandClaude Opus 5.5 18b01c23e5 fix(shadbala): count the Moon's Paksha 2x, not 4x; adopt BPHS-Santhanam 27.10-11 + 27.18 (BUG-1557)
Independent Staging Quality Gate / publish (push) Canceled after 0s
Independent Staging Quality Gate / validate-python (push) Canceled after 1m32s
Independent Staging Quality Gate / validate-frontend (push) Canceled after 1m33s
The precise path doubled the Moon's Paksha in Kala (Raman, Graha and Bhava
Balas §55(c)) and then took that doubled value again as her Chesta (BPHS
27.18), so her Paksha entered the total four times; Chesta could reach 120,
clamping Kashta to 0 and pushing Ishta past 60. Every surveyed source
counts 2P.

Product decision 2026-11-04: BPHS (Santhanam) 27.10-11 + 27.18, as in
saravali.github.io, Maitreya8 (default) and jyotishyamitra. The Moon's
Paksha is the folded base, not doubled; waxing Moon benefic, waning Moon
malefic (BPHS 3.11, already what classify_drik_planets does, unchanged);
Chesta = Paksha. method_variants.moon_paksha names the convention. Other
planets, Drik and the legacy calc_kala_bala path are unchanged.

shadbala.py is in the rectification frozen identity, so per ERR-110 new
records were frozen and replayed as moon_paksha_2026_11_04. Compared field
by field with data_audit_2026_11_04: sealed holdout 20/20 and reported
offset 900/900 identical, metrics and summary unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-04 15:46:16 +08:00