43 Commits
Author SHA1 Message Date
ClaudeandClaude Fable 5.2 7e92d7d621 fix(annual): the annual report reads the chosen birth range, keeps sections when a divisional ascendant changes, and speaks everyday words (BUG-2037)
- a range chosen in rectification is the range the annual report reads (same source as the personal report and chat)
- a divisional ascendant changing inside the checked range no longer caps the conclusion type at D; the first rated item of that section carries the plain birth-time line
- D2 Hora candidates no longer make the wealth ceiling unreadable
- writing rules: technique, numbers and status go to the folded basis; body text in everyday words, no disclaimers; a reader wording pass after the checks
- the basis folds under the text on the page and follows it in the export
- a planet on its own natal position is a return
- basis length caps 600/800 -> 1000; a rewrite logs section id and check codes

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-19 19:59:27 +08:00
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
ClaudeandClaude Opus 5.5 9d7a17a1a5 fix: chat card, annual D2 and remedies follow the astrologer's second-batch rulings (BUG-1964)
Shadbala reads 达到 / 未达到最低线 (her item 9; owner agreed) and the card carries
min_required for the 判断依据 line; required_strength_ratio beside ishta_bala_pct;
remedies no longer trigger from Shadbala (unaccepted_threshold). Education uses D24,
not D5 (item 7). Vighati keeps its position only (item 1); the 64th Navamsa from the
Moon and Pranapada take part as auxiliary layers with her fields (items 2, 3). The
annual natal two-Hora D2 gives Hora membership instead of the lagna lord's house,
and its birth-time stability check compares that membership (item 8).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-17 23:40:26 +08:00
jesse-ux f914571ed6 Clarify default birth time trials in reports (#280)
Independent Staging Quality Gate / validate-python (pull_request) Successful in 10m19s
Independent Staging Quality Gate / validate-frontend (pull_request) Successful in 18m3s
Independent Staging Quality Gate / publish (pull_request) Skipped
Independent Staging Quality Gate / validate-python (push) Successful in 16m57s
Independent Staging Quality Gate / validate-frontend (push) Failing after 28m43s
Independent Staging Quality Gate / publish (push) Skipped
2026-11-15 13:29:05 +08:00
jesse-ux 436385703a fix: distinguish changing annual evidence from missing inputs 2026-11-14 21:12:38 +08:00
jesse-ux 9fe33dc726 fix: retain computed Narayana as conditional annual evidence
Independent Staging Quality Gate / validate-python (pull_request) Successful in 6m54s
Independent Staging Quality Gate / validate-frontend (pull_request) Successful in 7m33s
Independent Staging Quality Gate / publish (pull_request) Skipped
2026-11-14 12:22:36 +08:00
jesse-ux 70ea10c3be feat: grade annual report claims against computed evidence 2026-11-14 12:15:15 +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 d411abbc42 Merge remote-tracking branch 'origin/staging' into codex/annual-muntha-records-20261113
# Conflicts:
#	BLOCKED.md
#	docs/BUG_HISTORY.md
#	frontend/src/lib/annual-report-generate.ts
#	scripts/annual_service/report_facts.py
2026-11-14 01:05:24 +08:00
jesse-ux 530a030217 Preserve shared node stations in Muntha sign events 2026-11-14 00:55:28 +08:00
jesse-ux 17df8fef7b Add four independent Muntha appendix records 2026-11-14 00:47:47 +08:00
jesse-ux 57263450cd Merge remote-tracking branch 'origin/staging' into codex/annual-tajika-yoga-states-20261113
# Conflicts:
#	BLOCKED.md
#	CHANGELOG.md
#	docs/BUG_HISTORY.md
#	scripts/annual_service/report_facts.py
2026-11-14 00:13:39 +08:00
jesse-ux b447b6b1e4 Separate Tajika aspect evidence from annual yoga formation states 2026-11-14 00:06:52 +08:00
jesse-ux 1423df214b Document annual report scope and primary Mudda balance 2026-11-13 23:24:18 +08:00
jesse-ux bf0ca2e16f Project annual calculation facts for the report page 2026-11-13 17:48:34 +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 394c39ce33 Add annual audit calculation and interpretation axes (#210)
Independent Staging Quality Gate / validate-python (pull_request) Successful in 6m39s
Independent Staging Quality Gate / validate-frontend (pull_request) Successful in 7m21s
Independent Staging Quality Gate / publish (pull_request) Skipped
2026-11-13 09:30:04 +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 62d3da37fe feat(yoga): sync astrologer Yoga rule batch (733a931b / 30dee7b0 / 1307bf69)
产品 2026-11-07 同步占星师 Yoga 规则批次:
- lord(a) != lord(b) guard on ten two-lord rules (raja 1_4, 1_10, 4_9, 5_9,
  7_9, 2_10, 2_7; dhana 5_11, 2_5; kalatra 7_1); Jobs raja_yoga_1_10 and
  Presley dhana_yoga_2_5 no longer form, matching her output.
- 23 rules become structural_observation "(Observation)" rows; old effects
  move to traditional_effects; engine rows carry claim_kind, legacy_name,
  condition_evidence, strength 'observation', strength_basis.
- formation contracts + assess_yoga_formation, formation_checks /
  formation_assessment / strength_factors on every JSON-rule row;
  participants_expr support; natal yoga context chart_type D1.
- consultation: compact rows, sieve hits and yoga_conditions carry
  claim_kind / formation / formation_checks; observation status is
  structural_observation; card yogas_detail copies them plus formation_rule.
- reports: personal report never lists an observation as a formed
  combination; annual facts rank observations last and the evidence lists
  them under 结构观察, not 格局; PL9 tables print 结构观察 for strength /
  category and group observations as mixed.
- governed rules (BUG-1207, 1205, 1187/1206, 1596/1624, 1597/1625, 1571)
  untouched; Parvata stays disabled; 69 not_implemented unchanged.
- card golden recaptured.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-07 21:58:06 +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 b0e93904c5 fix(tajika): unknown day/night leaves Harsha incomplete instead of scoring 0
Astrologer third-round review 2026-11-07, item 2. With is_daytime unknown
the fourth Harsha component is None (status unknown), the total is
withheld and only the known three-component sum (out of 15) is given.
The annual pack, report facts, interpretation rows and the parity
strength table carry the incomplete state instead of a full score.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-07 20:04:47 +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 8de8f3d45c fix(tajika): sync the astrologer's 3509ccd7: oppositions, no factor promotion, annual cases back to template (BUG-1655)
From yinduzhanxing branch codex/local-web-verification-20261026 (remote SHA checked):
- kernel: a 180-degree opposition keeps its 180 target (it was matched as 0);
  exact and equal-speed states are no longer called applying or separating
- named-yoga authority rows carry source_review_status and
  factor_promotion_allowed: false; the annual year-chart layer honours the
  flag, so no Tajika yoga (Ithasala / Easarapha included) becomes a factor
- the five annual oracle cases go back to template_only (archived text kept);
  the dashboards no longer claim annual closure

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 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 2bbf984017 fix(tajika): port the nine-yoga Tajika authority and instantaneous applying test from yinduzhanxing (BUG-1652)
The product still ran the 2026-09-03 two-yoga version, so Nakta, Yamaya,
Manahoo and Kamboola showed as blocked. Port yinduzhanxing fb8fe915: the
governed draft and authority (nine yogas), the kernel's applying/separating
by instantaneous relative speed, the rule record (author corrected to
P.V.R. Narasimha Rao in this copy) and the upstream tests. In the annual
year-chart layer every Tajika connection is marked source_review: pending;
only Ithasala / Easarapha still produce factors until the rules are reviewed.

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 a8548673f6 feat(annual): read each phase per domain and per track, and use the user's declared birth range (BUG-1650)
Independent Staging Quality Gate / validate-frontend (push) Successful in 4m58s
Independent Staging Quality Gate / validate-python (push) Successful in 5m41s
Independent Staging Quality Gate / publish (push) Successful in 2m40s
Astrologer ruling 2026-11-06 (two rounds) on the annual defaults:
- no 2/2/1 weighted lean and no tie rule; mahadashas are background;
  Vimshottari and Narayana are read per domain; a lord enters a domain only
  through houses it owns or occupies (same rule for benefics and malefics);
  the Narayana sign only marks a theme as active; summaries never reach past
  the judged domains (部分领域可判断); 平稳 is not produced, a repeat of the
  previous phase reads 延续前一阶段的主题
- phases are never merged in the calculation; today splits the running one;
  timeline rows merge only by reading_group and keep inner dates
- windows need one shared domain; ranking by sources, date certainty and
  conflict; sky events must touch a report domain; Jupiter / Saturn
  Parashari sign aspects (5/7/9, 3/7/10, same sign apart) to each domain's
  natal objects, as relations only
- no confirmed/unconfirmed switch (product: same method for everyone): the
  range the user declared at intake is sampled and every change bisected to
  the minute, through natal chart, vargas, special points, dasha dates, solar
  return, year chart and Mudda / Patyayini; windows keep the whole range the
  dates can fall in, never a "core date"
- year-chart factors in four layers (relation, Tajika connection, limits,
  Panchavargiya capability), never a verdict; Rath method version stamped and
  unresolved branches give no direction; maraka recorded, never scored

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-06 14:14:41 +08:00
ClaudeandClaude Opus 5.5 2d65773c06 fix(annual): no 顺/紧 verdicts, wording slips no longer stop a report, a waiting card shows the step (BUG-1640)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXozbkyFNqbu8pVEtZ7W
2026-11-05 22:07:01 +08:00
ClaudeandClaude Opus 5.5 f4f38f1a54 fix(annual): no more 有顺有紧; windows and 年尾 get the program's lean (BUG-1635)
Lean v2 is a weighted sum (AD 2, Narayana AD 2, PD 1; a tie follows the
Vimshottari AD) with only 偏顺 / 偏紧 / 平稳. Phases with both sides keep a
counterweight limit. Window, domain-window, year-end and remember evidence
carry the lean; the gate rejects mixed wording and a window lean that
contradicts the program.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXozbkyFNqbu8pVEtZ7W
2026-11-05 17:45:38 +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