16 Commits
Author SHA1 Message Date
ClaudeandClaude Opus 5.5 d944c88b23 fix(chat): KP packet coverage on the real window, plain backstage wording; BUG-2333 history (fixed-pending-verify)
Independent Staging Quality Gate / validate-frontend (push) Failing after 4m31s
Independent Staging Quality Gate / validate-python (push) Failing after 8m34s
Independent Staging Quality Gate / publish (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2Vp62Ur3C7yRWQdSq
2026-11-24 21:24:50 +08:00
ClaudeandClaude Opus 5.5 aadba9dc61 feat(chat): the astrologer's KP monthly packet with the multi-system window in chat timing — KP sub-chain in the KP profile, packet segments as strip cut points, per-period domain activations instead of K1 / K2, KP windows on the KP periods said as 「前后」 (BUG-2333)
Ports her yinduzhanxing 17a135457ec16b621f86dd57ba3926612ce1b9b8 (docs ee34700357): timing_evidence_packets.py
(new), kp_monthly_report_packet / theme_support / vimshottari / transits, kp_system, with her tests. The report path
(frozen engine, no timing systems supplied) keeps its earlier packet byte for byte; her profile and window run when
the caller supplies the periods it already computed (engine tool kp_timing_packet, cached per chart and window).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2Vp62Ur3C7yRWQdSq
2026-11-24 21:07:35 +08:00
ClaudeandClaude Opus 5.5 2bcc0e5478 fix(kp): hold the shared Swiss Ephemeris lock while the KP transit window switches ayanamsa (BUG-2325 follow-up)
Independent Staging Quality Gate / validate-frontend (push) Successful in 6m10s
Independent Staging Quality Gate / publish (push) Canceled after 0s
Independent Staging Quality Gate / validate-python (push) Canceled after 7m12s
The sidereal mode is process-global and the API server is threaded; switching to
the KP ayanamsa without the shared lock let a concurrent request compute its
chart in the KP mode during the cold computation. The cache key now also covers
the sampling hour and the body set (astrologer handoff 2026-11-24, section 5E).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2Vp62Ur3C7yRWQdSq
2026-11-24 20:49:13 +08:00
ClaudeandClaude Opus 5.5 041069ebaa feat(chat): KP dates inside the strip's stretches for career, money and relationship questions — cusp sub lord promise, running lords as significators, Sun / Moon in their stars from a bounded, cached engine tool (BUG-2325)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2Vp62Ur3C7yRWQdSq
2026-11-24 19:06:06 +08:00
jesse-ux a044c04e17 feat(ondemand): add explicit Prashna chart calculation 2026-11-11 22:35:47 +08:00
jesse-ux d92cad065e feat(ondemand): add native dasha calculation for a requested date
Independent Staging Quality Gate / validate-frontend (pull_request) Failing after 3m18s
Independent Staging Quality Gate / validate-python (pull_request) Successful in 6m54s
Independent Staging Quality Gate / publish (pull_request) Skipped
2026-11-11 15:14:06 +08:00
ClaudeandClaude Opus 5.5 8196387efa fix(ondemand): varga echoes parashara for D2/D3, labels from VARGA_META, no 0-degree fallback (#176 acceptance, BUG-1819)
Independent Staging Quality Gate / validate-frontend (push) Successful in 5m6s
Independent Staging Quality Gate / validate-python (push) Successful in 6m36s
Independent Staging Quality Gate / publish (push) Successful in 2m57s
- D2/D3 without a variant reported classical_local; the brief asks for
  parashara (identical at 3600 sampled points, echo only).
- usage_labels were a hand-written list that disagreed with VARGA_META.area
  for D9 and D11; now taken from VARGA_META.
- a missing engine longitude silently became 0 deg Aries; now blocked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-11 14:11:30 +08:00
jesse-uxandGrok (agent loop) 243eeb7ac9 feat(ondemand): varga tool with explicit variants (#176, BUG-1819)
只做后端:

- scripts/ondemand_calc/varga.py:出生资料与岁差必填;divisions 1–6 个、不重复、
  必须在 VARGA_META 里;variants 只允许请求里的 D2/D3 且必须是真实变体名,
  否则 blocked 并在 reason 里列出可用变体
- 标准分盘走 calc_all_vargas、变体走 calc_varga_with_variant;每盘回显实际方法名与
  part_size(取自引擎 _meta,不手写)
- 用途标签只放 usage_labels 并带 tradition_note;raw 里没有把用途当唯一含义的键
- 引擎抛错一律 blocked 且 raw 为空
- registry 加两行注册

Tests: tests/test_ondemand_varga_20261109.py 17 条;连同 solar_return /
transit_window / transit_date / contract / api growth 共 92 条全过。

Co-Authored-By: Grok (agent loop)
2026-11-09 21:32:11 +08:00
ClaudeandClaude Opus 5.5 c9f2f76f6a fix(ondemand): beyond_next_return compares UTC with UTC (#175 acceptance, BUG-1818)
Independent Staging Quality Gate / validate-frontend (push) Successful in 5m19s
Independent Staging Quality Gate / validate-python (push) Successful in 6m44s
Independent Staging Quality Gate / publish (push) Successful in 3m6s
Round 2 read coverage.end.local, but _parse_moment cannot parse the
+hh:mm suffix, so that branch never ran and the comparison always fell
back to utc + profile.tz. Convert each Mudda end to UTC with the
solar-return instant's own offset (tajika_mudda.TIME_BASIS) and compare
it with coverage.end.utc. Adds tests for a UTC+8 birth and a New York
birth (±3 h around the next return, plus real rows).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-09 19:33:24 +08:00
jesse-uxandGrok (agent loop) b8a56c48ed fix(ondemand): beyond_next_return compares on one time basis (#175 round 2, BUG-1818)
打回:Mudda 原始段是返照地点的本地时刻,覆盖区间终点却拿 utc 去比,差一个时区偏移。

- 比较两边都改用 coverage.end.local(没有 local 时退回 utc + 返照地点偏移)
- 新增 4 条测试(北京 +08 与纽约 −05 各 ±3 小时);旧代码上 2 条失败
- 未改 scripts/solar_return.py 或任何冻结文件;既有 16 条未动

Tests: 本文件 20 条,连同 transit_window/transit_date/contract/api growth 共 70 条全过。

Co-Authored-By: Grok (agent loop)
2026-11-09 17:47:07 +08:00
jesse-uxandGrok (agent loop) 54adb99073 feat(ondemand): solar return for any target year, location chosen by the caller (#175, BUG-1818)
只做后端:

- scripts/ondemand_calc/solar_return.py:target_year(1900–2100、不早于出生年);
  返回地点 birth_place / current_location,没选才回退出生地并写 fallback_note,
  current_location 缺项一律 blocked 且不回退
- 岁差必填、节点与位置口径显式传,position_mode=mean 阻塞
- 输出三层:mudda_raw(原始十段,每段标 beyond_next_return)、nominal_year
  (365.25)、coverage(到下一次实际回归);harsha_bala 恒 blocked
- 星历降级与引擎抛错都 blocked,不输出任何估算日期
- registry 加两行注册

Tests: tests/test_ondemand_solar_return_20261109.py 16 条;连同 transit_date、
transit_window、contract、api growth 共 66 条全过。合成盘两地返照时刻差 0 秒、
上升不同;覆盖终点与下一年返照时刻差 0.0 秒。

Co-Authored-By: Grok (agent loop)
2026-11-09 15:48:02 +08:00
ClaudeandClaude Opus 5.5 35c87349e3 fix(accept): #174 ingress to_sign/direction and per-time outside-window flags
- to_sign was taken from the JD instead of a longitude, and direction read a
  direct 0° Aries ingress as retrograde; both now come from the step's
  longitudes.
- shadow_entry / shadow_exit / both stations carry outside_requested_window
  as the brief requires; the window end uses the end day's UTC offset.
- 3 regression tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-09 14:42:27 +08:00
jesse-uxandGrok (agent loop) 78c34c09ab feat(ondemand): transit window — ingress, stations, retrograde loops, target longitude (#174, BUG-1817)
按 #173 的合同加第二个按需工具,只做后端:

- scripts/ondemand_calc/transit_window.py:四类事件(ingress / station /
  retrograde_loop / target_longitude),黄经与日速度来自
  _calc_sidereal_planets_for_jd(先配星历路径),口径由调用方显式传
- 事件二分到 ≤1 分钟;逆行往返给两个停滞、retrograde_span、影子期进出,
  区间外每侧最多 400 天并标 outside_requested_window
- 节点不报停滞:partial + node_station_not_supported 的 gap
- 位置口径 mean 阻塞;缺项返回 blocked 信封并点名,不编任何日期
- registry 加两行注册

Tests: tests/test_ondemand_transit_window_20261109.py 17 条;连同 transit_date、
contract、api growth 共 47 条全过。2026 水星逆行停滞与直接 SwissEph 速度二分
相差 1.41 分钟。

Co-Authored-By: Grok (agent loop)
2026-11-09 14:18:39 +08:00
ClaudeandClaude Opus 5.5 afac4ea92f fix(accept): #179 module moves into scripts/ondemand_calc (scripts-root budget)
Independent Staging Quality Gate / validate-frontend (push) Successful in 6m51s
Independent Staging Quality Gate / validate-python (push) Successful in 8m26s
Independent Staging Quality Gate / publish (push) Successful in 3m1s
test_python_hygiene_budget forbids new root-level scripts/*.py; the brief named
scripts/muhurta_search_api.py. Same code at scripts/ondemand_calc/muhurta_search.py;
route, CLI import and tests follow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-09 10:07:39 +08:00
ClaudeandClaude Opus 5.5 c84d143088 fix(accept): #173 natal Moon is never the transit Moon; unknown ayanamsa blocks
transit_date counted house_from_moon from the transit Moon when the caller gave
no natal Moon; the natal reference is now only what the caller supplied.
resolve_profile now refuses an unsupported ayanamsa name instead of passing it
to the engine.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-09 09:58:59 +08:00
jesse-uxandGrok (agent loop) 8dcc6537af feat(ondemand): shared on-demand calculation skeleton + transit on a date (#173, BUG-1816)
产品 2026-11-09 拍板 C 方案:本单只做后端共用模块与信封,前端另开单。

- scripts/ondemand_calc/contract.py:信封 jyotish.ondemand_calc.v1;必填校验不猜
  默认值;节点/位置口径缺省用产品默认值 mean/apparent 并标 profile_source;
  输入指纹 sha256;失败只留缺口,不回显推断日期
- registry.py:TOOLS + ondemand_calc_api 分派;未知 tool 阻塞并点名
- transit_date.py:九曜黄经/星座/度数/星宿与 pada/逆行/日速度,按传入的本命
  参考算宫位,UTC 与当地时间都给;position_mode=mean 返回 blocked
- 薄路由 /api/ondemand_calc(_load_local_module,无新增类方法)

Tests: contract 8 条、transit 12 条、api_server_growth_contract 9 条全过。

Co-Authored-By: Grok (agent loop)
2026-11-09 09:09:16 +08:00