24 Commits
Author SHA1 Message Date
ClaudeandClaude Opus 5.5 25af95f2d9 fix: annual tests compare instants within machine noise; Mudda continuity checks the coverage end (BUG-1992)
Independent Staging Quality Gate / validate-frontend (push) Successful in 5m45s
Independent Staging Quality Gate / validate-python (push) Successful in 7m30s
Independent Staging Quality Gate / publish (push) Successful in 3m53s
Tolerances: jd_ut rounded to 1e-6 day (0.086 s) for the Kalachakra fixture; Muntha
ingress instants within 2 s (observed drift ~1 s between machines; a real change in the
search moves them by minutes). Every other field stays exact.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2Vp62Ur3C7yRWQdSq
2026-11-18 22:01:56 +08:00
Claude c18a094a0a Merge remote-tracking branch 'origin/codex/annual-kp-20261114' into acc-annual-b2
Independent Staging Quality Gate / validate-frontend (push) Successful in 5m15s
Independent Staging Quality Gate / validate-python (push) Successful in 6m41s
Independent Staging Quality Gate / publish (push) Successful in 2m48s
# Conflicts:
#	BLOCKED.md
#	CHANGELOG.md
#	docs/BUG_HISTORY.md
#	docs/research/pre_work_error_ledger.md
#	docs/tasks/README.md
#	frontend/DESIGN.md
#	frontend/src/lib/annual-report-generate.ts
#	scripts/annual_service/package.py
#	scripts/annual_service/report_facts.py
2026-11-14 08:59:12 +08:00
Claude b2fcd6925b Merge remote-tracking branch 'origin/codex/annual-transit-checks-20261114' into acc-annual-b2
# Conflicts:
#	BLOCKED.md
#	CHANGELOG.md
#	docs/BUG_HISTORY.md
#	docs/research/pre_work_error_ledger.md
#	docs/tasks/README.md
#	frontend/DESIGN.md
#	frontend/src/lib/annual-report-generate.ts
#	scripts/annual_service/report_facts.py
#	tests/test_annual_audit_axes_20261112.py
2026-11-14 08:59:03 +08:00
Claude ec9f470e82 Merge remote-tracking branch 'origin/codex/annual-dashas-20261114' into acc-annual-b2
# Conflicts:
#	BLOCKED.md
#	CHANGELOG.md
#	docs/BUG_HISTORY.md
#	docs/research/pre_work_error_ledger.md
#	docs/tasks/README.md
#	frontend/DESIGN.md
2026-11-14 08:58:43 +08:00
jesse-ux 70e7fde092 Compare independent annual Pravesha clocks and check Satabdika 2026-11-14 07:43:47 +08:00
jesse-ux b6baff3475 feat(annual): add KP cusp and birth-window appendix (BUG-1884)
Independent Staging Quality Gate / validate-python (pull_request) Successful in 6m49s
Independent Staging Quality Gate / validate-frontend (pull_request) Successful in 7m32s
Independent Staging Quality Gate / publish (pull_request) Skipped
2026-11-14 04:46:54 +08:00
jesse-ux fc9182a8e9 feat(annual): add annual transit cross-checks (BUG-1883)
Independent Staging Quality Gate / validate-python (pull_request) Successful in 6m41s
Independent Staging Quality Gate / validate-frontend (pull_request) Successful in 7m22s
Independent Staging Quality Gate / publish (pull_request) Skipped
2026-11-14 04:05:14 +08:00
jesse-ux 1ffeaaf830 feat(annual): append four natal dasha systems (BUG-1882)
Independent Staging Quality Gate / validate-python (pull_request) Successful in 6m38s
Independent Staging Quality Gate / validate-frontend (pull_request) Successful in 7m18s
Independent Staging Quality Gate / publish (pull_request) Skipped
2026-11-14 03:20:51 +08:00
jesse-ux 17df8fef7b Add four independent Muntha appendix records 2026-11-14 00:47:47 +08:00
jesse-ux 1423df214b Document annual report scope and primary Mudda balance 2026-11-13 23:24:18 +08:00
jesse-ux b9343d7cc5 Add annual Tithi Pravesha residence and complete yoga evidence (#211) 2026-11-13 10:55:17 +08:00
jesse-ux 44288d7eb0 fix(annual): keep Narayana branches as conditional references (#209) 2026-11-12 20:27:43 +08:00
ClaudeandClaude Opus 5.5 fbbc4c7c21 fix: Narayana N1-N5, KP K1, functional K2/K3 per astrologer round-5 item reply
- seed rath_highest_occupant_dignity_v1 (named convention; equal tier below own sign blocks the seed)
- AD direction profiles rath_p50_md_parity_v1 / rath_stronger_lord_start_parity_v1 (default, pending choice)
- Saturn+Ketu in seed / MD sign blocked; PyJHora Ketu priority only as named reference profile
- 0-year MD rows flagged, never current, skipped on the annual timeline; years profile rath_table8_phalita_dignity_v1
- KP DBA year_days 365.25 default, parent/AD/full/visible fields, boundaries equal main Vimshottari
- functional profile pvr_table30_v1 (aliases), Moon-only blocked without paksha; profile through API,
  cache keys, audit; rectification asserts one profile per run
- golden recaptured with TTL=0

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-08 15:20:45 +08:00
ClaudeandClaude Opus 5.5 5d64f71b81 fix: astrologer round-5 rulings 2/3/4/5/10/13 (BUG-1746..1752)
- Functional default = PVR Table 30 (functional_profile=pvr_table_30); the former
  product table is bphs_exception_profile, scored only when named (rectification
  names it, scores unchanged). profile_divergence shows both roles side by side;
  movable-lagna Moon by the table's paksha note; dual-lordship note; prior rulings
  BUG-1570/1590/#166 Q4 checked against Table 30.
- Shadbala: six open items labelled parameter_sensitive; every option combination
  computed; only planets whose pass/fail flips get minimum_check=parameter_sensitive.
- Vimshottari AD/PD rows carry parent_period_start / visible_period_start; the
  consult card cuts the balance MD from its full parent and clips at birth.
- KP DBA: full first parent, clipped at birth (no balance rescale).
- Mudda: balance fields + balance_method (angle default, time comparison apart),
  nominal_year_days, her crossing wording; Harsha combined blocked reason lists items.
- D30 _meta describes the unequal parts (as her r40).
- Golden recaptured with TTL=0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-08 11:57:22 +08:00
ClaudeandClaude Opus 5.5 6277f0b873 fix(annual): keep raw Mudda whole; clip only a labelled view to the report coverage interval (BUG-1722)
(a) raw_periods / raw_antardasha_periods untruncated (ten groups);
(b) nominal_year 365.25 d and its end; (c) coverage_interval = actual solar
return -> next actual return. periods is the view over (c) (原值: cut at the
365.25-day end, 5-15 min before the next return). Annual package, report facts
and consult card carry the view label and the astrologer's crossing-segment
wording; consult layer adds the calendar-year span over two Tajika years.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-07 23:45:04 +08:00
ClaudeandClaude Opus 5.5 cd07b3e018 fix: sync astrologer handoff 99076dad (Ashtottari cycle gap, Bhava MC frame, Narayana coverage, compatible fields)
Ported from handoff/product-parity-20261107 (28823446, 99076dad):
- Ashtottari: cycle index counts from the balance-shifted first MD (no
  gap before the 108th birthday); dasha_balance_at_birth / dasha_at_birth /
  timeline_basis now emitted (the report already read them).
- Bhava Chalit MC in the natal frame (_bhava_midheaven_in_natal_frame).
- Narayana current lookup: no modulo replay outside the two generated
  cycles; status selected / outside_generated_timeline.
- Bhava Bala: no unvalidated absolute level; _meta.score_unit = Virupas.
- Field names lined up with hers: required_strength_pct (+ semantics
  marker, via shadbala_display sidecar; shadbala.py stays frozen),
  Harsha missing_inputs / score_range, cmd_yoga evaluation_error_count.
Already equivalent: yoga failures (BUG-1571), Drik determinism (BUG-1576),
standalone transit ephemeris path, Chara dignity location (BUG-1566), Harsha
max 20 / unknown day-night. Tests: tests/test_handoff_99076dad_sync.py.
Golden recaptured (Narayana status field only).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-07 21:17:30 +08:00
ClaudeandClaude Opus 5.5 da6230aa81 refactor(timeline): move timeline_boundaries into scripts/chart_dasha (root script budget)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-07 20:35:55 +08:00
ClaudeandClaude Opus 5.5 66aab1cba4 fix(consult): label Shadbala, Argala and Tajika verification scope downstream; recapture card golden
Astrologer third-round review 2026-11-07, items 4b-4d.
- Shadbala: the ratio total rupas / minimum is labelled a sufficiency
  ratio (not auspiciousness, not ishta_phala) on the card, in the annual
  package (sufficiency_ratio_pct, rank_by_total_rupas), the report facts
  (ranking_basis, ratio_meaning, ranking_by_ratio) and the annual report
  text. Chesta reference packet rows carry values_scope on every row.
- Argala: the layer and card say supported is a structural intervention
  only; ties broken by the Narayana strength selector carry
  ruling_pending / tie_break_ruling_pending (behaviour unchanged).
- Tajika: each annual pack field lists what partial_verified covers
  (formula / order / boundary_dates / full_chart); dates_verified is false
  and the consultation layer projects it.
The consultation evidence card golden is recaptured for the new layer
fields (start_at / end_at, not_evaluated, verification scope, labels).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-07 20:29:43 +08:00
ClaudeandClaude Opus 5.5 6e15a0367f feat(timeline): one boundary rule, full instants and continuity checks for every period table
Astrologer third-round review 2026-11-07, item 3. timeline_boundaries
checks end == next start on full timestamps (start inclusive, end
exclusive) and lists every gap or overlap. The solar-return report and
annual pack expose the real return interval (this return to the next
actual return, computed), the Mudda 365.25-day year and the shown window
separately. The annual package checks the year chain, each year's Mudda,
Patyayini, monthly and Varsha Narayana rows, natal Vimshottari / Narayana,
and Mudda across years (a ~8-minute hole the fixed year leaves before the
next return). Consultation dasha rows gain start_at / end_at with the
birth offset and a per-system continuity check; the card carries
continuity_issue only when a table is not continuous.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-07 20:14:01 +08:00
ClaudeandClaude Opus 5.5 178e6d6216 feat(annual): sync Tajika named-yoga inputs, special points, Mudda profiles and Harsha with the astrologer's upstream
产品 2026-11-07 与占星师上游年运同步 (yinduzhanxing 5fb8379c):
- tajika_named_yogas gets upstream's full producer inputs (annual house,
  Harsha+Panchavargiya grade, Tajika rasi relation, lagnesh/karyesh); listed
  only, not judgment factors (3509ccd7). combined_strength stays blocked.
- annual_special_points: annual AL, Bhrigu Bindu, Gulika (upstream port).
- mudda_profiles: moon_at_birth_time (default, BUG-1216 ruling),
  moon_in_varshaphala, without_dasha_balance (upstream pl9-export profile).
- Harsha Bala: PVR 28.3 four-source native rule (upstream native function);
  PyJHora never runs.
- Carried into annual package blocks, report facts year overview, the
  consultation annual layer and nativeAnnualKeys; golden recaptured; English
  reader titles the special-points section.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-07 16:56:46 +08:00
ClaudeandClaude Opus 5.5 0f8c0508bc feat(annual,synastry): run the astrologer's tajika-annual and full-synastry skills in full
Annual (产品 2026-11-07 占星师方案 item 9):
- package: optional current-city return location (default birth place, disclosed);
  annual Shadbala; Varsha Narayana (PVR ch.30.4 port of the upstream entry on the
  product's Rath Narayana); transit_context with Sade Sati phase, natal
  Ashtakavarga of each slow ingress and slow-body Vedha; not_included updated
- report_facts: year overview carries Sahams by domain, Panchavargiya/Harsha,
  annual Shadbala, Tajika aspects, Varsha Narayana; phases carry Varsha MD/AD and
  Sade Sati; ingress events carry BAV/SAV; audit rows split (Transits, Sade Sati,
  Transit AV, Vedha, Sahams, Annual Shadbala, Varsha Narayana) and consistent
- writer: full layer (both natal tracks per domain, Mudda/Patyayini four layers,
  year chart) instead of the plain layer; professional rules: evidence first,
  terms explained, dual-track timing, A/B/C confidence capped by the program,
  parameter_sensitive/blocked kept; Tajika yogas stay non-factors (3509ccd7)
- page: current-city picker, evidence/timing/confidence lines

Synastry:
- writer gets relationship_promise and pair_promise_links; four event classes
  with both-person activation (Vimshottari, Narayana, transits); calendar
  overlap is not resonance; English timeline carries parallel timing and the
  resonance gate; profile_gate/delivery_readiness enforced; same ayanamsa for
  both; sections follow customer-report-shape.md; source_modules not truncated

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-07 14:42:26 +08:00
ClaudeandClaude Opus 5.5 4e9430c48b feat(annual): exact Jupiter / Saturn aspect instants as a fact table, no orb, not in windows (BUG-1653)
Exact contacts are roots, not windows: the instant Jupiter (120/180/240)
or Saturn (60/180/270) stands at its Parashari aspect angle from a natal
point, by the transit scan's daily sampling and bisection. Passes of one
retrograde loop form one sequence; a station that only approaches the angle
is never listed. The report card exact_contacts carries them for review
(used_for_windows: false); no influence window until the astrologer sets one.

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 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 32fa756bd4 refactor(annual): move the annual package and report facts into annual_service
Staging's backend gate (run 6338) failed three budgets: handler method
count 218 > 217, JyotishAPIHandler.__new__ sites 6 > 5, and the scripts/
root .py count. The package and facts code now live in
scripts/annual_service/ (package.py, report_facts.py, api.py with
compute_annual_package / compute_annual_report_facts and
AnnualServiceInputError). jyotish_api_server.py registers /api/annual
mode=package, /api/annual/package and /api/annual/report_facts thinly
through a module-level _annual_service helper, like /api/chart_points,
with no handler methods: back to 217. Tests call the module functions
and keep a thin-registration test; no cap or baseline changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-01 20:33:17 +08:00