Commit Graph
2311 Commits
Author SHA1 Message Date
ClaudeandClaude Opus 5.5 fd03665ded docs(bug-history): BUG-1620 / BUG-1621 with the four-round blind eval
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-05 15:20:38 +08:00
ClaudeandClaude Opus 5.5 928aa5c62b docs(bug-history): BUG-1603 / BUG-1604 ship to staging after the four-round blind eval
Independent Staging Quality Gate / validate-python (push) Successful in 6m27s
Independent Staging Quality Gate / validate-frontend (push) Successful in 6m34s
Independent Staging Quality Gate / publish (push) Successful in 3m0s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-05 12:53:22 +08:00
ClaudeandClaude Opus 5.5 c41cd4b848 docs(bug-history): BUG-1603 / BUG-1604 round-2 fixes and the four-round blind eval
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-05 12:53:08 +08:00
ClaudeandClaude Opus 5.5 29b97336d3 docs(bug-history): BUG-1603 answer shape and leaked phrases, BUG-1604 age line for marriage and career
Status investigating: the blind eval completed round 1 only (the model API
returned 402 Insufficient Balance from round 2 on).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-05 12:53:02 +08:00
ClaudeandClaude Opus 5.5 2057538c81 fix(skills): create the skill runtime alias root on first use and remove it at exit (BUG-1612)
Independent Staging Quality Gate / validate-python (push) Successful in 6m27s
Independent Staging Quality Gate / validate-frontend (push) Successful in 6m31s
Independent Staging Quality Gate / publish (push) Successful in 2m58s
Every node process that imported skill-package-registry left a
jyotisha-skill-runtime-* directory in the OS temp dir (9,933 on the shared
host, most of them empty), which helped exhaust inodes (ERR-117).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-05 12:04:26 +08:00
ClaudeandClaude Opus 5.5 365f86ff33 fix(annual): a run that fails halfway keeps the sections it wrote (BUG-1611)
Independent Staging Quality Gate / validate-python (push) Successful in 6m23s
Independent Staging Quality Gate / validate-frontend (push) Successful in 6m27s
Independent Staging Quality Gate / publish (push) Successful in 2m53s
The page swapped the saved partial snapshot for the skeleton as soon as the
report turned failed. Render the snapshot whenever it exists; unwritten
sections say so instead of shimmering. Log the error class before the
section failure is folded into model_unavailable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-05 11:45:32 +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 6a2600f035 fix(markdown): bold that ends on CJK punctuation renders instead of showing ** (BUG-1610)
CommonMark will not close `**` after punctuation when a CJK character
follows (`**…这两件事。**火星`), nor open it after a letter before
punctuation (`说**「…」**`); with two such spans in a paragraph it pairs the
wrong runs. New in-repo remark plugin `remarkCjkStrong` (no new dependency)
runs after remark-gfm in the chat, learn and personal-report views: it
re-pairs leftover `**` runs in reading order into strong nodes, spanning
links and inline code but never a line break, `*` or another strong. Lone
`**`, escaped asterisks, inline code and code blocks are untouched. One
linear pass per parent that still holds a `**`.

Tests: 11 cases through the real chat renderer, including 20 real backtest
answers (public figures) that render with no literal `**`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-05 11:28:00 +08:00
ClaudeandClaude Opus 5.5 1ef3caa453 fix(people): the add / edit person dialog can be clicked again, rebuilt to the approved prototype (BUG-1602)
Independent Staging Quality Gate / validate-python (push) Successful in 6m25s
Independent Staging Quality Gate / validate-frontend (push) Successful in 6m29s
Independent Staging Quality Gate / publish (push) Successful in 2m47s
The user reported the 「添加一个人」 dialog could not be clicked or typed into.
Reproduced in headless Chrome with real CDP input: elementFromPoint over the
name field returned the last birth-time-source radio. RadioGroupItem enlarges
its hit area with `after:absolute after:-inset-*`; globals.css forced that radio
to `position: static` and the card was unpositioned, so every radio's ::after
spanned the fixed dialog and 「完全不知道」 took every click (from 728ead88, #110).
Not a BUG-968 recurrence: the dialog is portalled to body and nothing is inert.

- Card and radio positioned; the sr-only legend no longer stretches 100%
  (horizontal scrollbar); the body is the legend's containing block (hidden
  vertical overflow that could push the header away).
- Hover is a quiet wash inside @media (hover: hover); focus shows a ring; only
  the selected card has the action border + soft fill (ayanamsa and time source
  hovers used the selected colours).
- Prototype (https://claude.ai/artifact/4herLiTdD3fmYoMB62bnBE, approved
  2026-11-05) in ChartProfileForm, shared by the people dialog, the chart
  page's birth editor and (time block) onboarding: fixed header with its own
  close and fixed footer with a 「还差:…」 hint; groups 基本信息 / 出生日期与地点
  / 出生时间; 「如何称呼 TA」 for others; ayanamsa folded into a <details>
  「高级设置」; bottom sheet at <=640px. Class prefix person-form-dialog
  (.profile-dialog is a retired sheet name a test keeps out).

Verified: headless Chrome at 1440 / 390 on all three surfaces (every control
hit-tests to itself, typing works, scrollWidth == clientWidth, header/footer
fixed). New tests/add-person-dialog-20261105.test.tsx; profile-gender test
order updated with 原值/新值/原因. Full npm test failures identical to staging
3d10a5bc (28, env / DB), tsc clean, ESLint 0 errors, pytest quick gate passes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-05 10:52:14 +08:00
ClaudeandClaude Opus 5.5 3d10a5bc5e docs(bug-history): BUG-1600 follow-up eval of the no-gloss D9 wording
Independent Staging Quality Gate / validate-python (push) Successful in 6m21s
Independent Staging Quality Gate / validate-frontend (push) Successful in 6m25s
Independent Staging Quality Gate / publish (push) Successful in 2m45s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-05 09:10:04 +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
Claude cb8fcca724 Merge remote-tracking branch 'origin/staging' into codex/astrologer-166-q9-narayana
Independent Staging Quality Gate / validate-python (push) Successful in 6m19s
Independent Staging Quality Gate / validate-frontend (push) Failing after 6m21s
Independent Staging Quality Gate / publish (push) Skipped
# Conflicts:
#	docs/BUG_HISTORY.md
2026-11-05 04:40:40 +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 170348f8c8 docs(bug-history): BUG-1600 ships to staging after the blind eval
Independent Staging Quality Gate / validate-frontend (push) Successful in 6m23s
Independent Staging Quality Gate / validate-python (push) Successful in 6m26s
Independent Staging Quality Gate / publish (push) Successful in 3m7s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-04 23:48:59 +08:00
ClaudeandClaude Opus 5.5 9a4adf5c3c docs(bug-history): BUG-1600 marriage D9 wording, blind eval results (investigating)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-04 23:29:40 +08:00
ClaudeandClaude Opus 5.5 39825d4ee7 test(chart): type the fixture field read by the Sun Shadbala percent assertion (BUG-1584)
Independent Staging Quality Gate / validate-frontend (push) Successful in 6m29s
Independent Staging Quality Gate / validate-python (push) Successful in 6m31s
Independent Staging Quality Gate / publish (push) Successful in 3m21s
7141cc99 read insight.chart_modules_shadbala.planets.Sun.total_rupas from
untyped fixture JSON; tsc --noEmit reported TS18046 ('unknown'). Give that
one field an explicit type. Reported by jyotisha-9c after f7687921.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-04 23:11:23 +08:00
ClaudeandClaude Opus 5.5 f768792100 test(consult): regenerate the evidence-card, biography and card-facts captures on staging 013f8895; BUG-1599 ships
Independent Staging Quality Gate / publish (push) Canceled after 0s
Independent Staging Quality Gate / validate-frontend (push) Canceled after 1m32s
Independent Staging Quality Gate / validate-python (push) Canceled after 1m42s
The #166 batch 2 engine changes (BUG-1590, BUG-1596, BUG-1597) move three
capture-backed assertions, each noted 原值/新值/原因: Obama's parents card no
longer hits Matrunasa, strict Gajakesari no longer holds for Jobs or Taylor,
and Jobs's Virgo Saturn is now neutral. BUG-1599 goes to fixed-pending-verify
after the product decision to ship.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-04 23:09:39 +08:00
ClaudeandClaude Opus 5.5 e8b3d874d3 docs(bug-history): BUG-1599 confirmation eval of the round-2 pressure wording (investigating)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-04 23:04:19 +08:00
ClaudeandClaude Opus 5.5 a43905cbec chore: renumber the pressure-line record BUG-1590 -> BUG-1599
BUG-1590–1598 are taken by another session. Comments, test notes and the
BUG_HISTORY heading now say BUG-1599; earlier commit messages keep the old
number.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-04 23:04:18 +08:00
ClaudeandClaude Opus 5.5 ca5788c938 docs(bug-history): BUG-1590 server-counted pressure line, eval results (investigating)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-04 23:04:05 +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
ClaudeandClaude Opus 5.5 7141cc9919 test(chart): derive the Sun's expected Shadbala percent from total_rupas, not the 2-dp display value (BUG-1584)
Independent Staging Quality Gate / validate-frontend (push) Successful in 6m21s
Independent Staging Quality Gate / validate-python (push) Successful in 6m32s
Independent Staging Quality Gate / publish (push) Successful in 3m0s
backend-quality-gate #6711 on 43ccf3ad: 1 of 5672 frontend tests failed.
mapShadbala computes percent from the engine's total_rupas; the test rebuilt it
from the rounded display value. After #166 the Sun is 8.1836 Rupa: 8.18 / 6.5
-> 125.8, 8.1836 / 6.5 -> 125.9. Before, both rounded to 126.3. Code unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-04 22:14:47 +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 c4bc02723d docs: record BUG-1580 elder-parents hint shipped after the unified paired evaluation
Independent Staging Quality Gate / validate-frontend (push) Successful in 6m26s
Independent Staging Quality Gate / validate-python (push) Successful in 6m33s
Independent Staging Quality Gate / publish (push) Successful in 2m56s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-04 21:07:55 +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
Claude 8f15745ca1 Merge remote-tracking branch 'origin/staging' into codex/login-rectify-loading-1103
Independent Staging Quality Gate / validate-python (push) Successful in 6m35s
Independent Staging Quality Gate / validate-frontend (push) Successful in 6m35s
Independent Staging Quality Gate / publish (push) Successful in 2m51s
# Conflicts:
#	docs/BUG_HISTORY.md
2026-11-04 15:48:14 +08:00
ClaudeandClaude Opus 5.5 98443ece4a fix(consult): no name opener, bold the conclusion and key grounds, asked-for items as a list (BUG-1557)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-04 15:47:48 +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
Claude 6c1bb0dfd4 merge: Ashtakavarga strength on the evidence card
Independent Staging Quality Gate / validate-frontend (push) Successful in 6m49s
Independent Staging Quality Gate / validate-python (push) Successful in 6m58s
Independent Staging Quality Gate / publish (push) Successful in 2m48s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y

# Conflicts:
#	docs/research/pre_work_error_ledger.md
2026-11-04 14:57:12 +08:00
ClaudeandClaude Opus 5.5 20a00ebef7 fix(dasha): continue Vimshottari past the first 120-year cycle (BUG-1556)
The first mahadasha starts before birth, so the nine periods end before the
120th birthday. Historical charts past that point had no covering period:
cmd_dasha's current_dasha was null and the consultation card's
timing.vimshottari was empty (Frida Kahlo at 2026-09-27).

next_cycle_mahadashas (chart_dasha/birth_moment.py) continues with the same
lords, order and full 365.25-day years until a period covers the reference
day; cmd_dasha, the chart surfaces and the consultation sub-periods share it.
Nothing is added inside the first cycle. The frozen rectification identity
(dasha_analyzer, domain_calculation_service) is untouched, so no re-freeze.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-04 14:54:19 +08:00
ClaudeandClaude Opus 5.5 df7c0702f9 feat(consult): put Ashtakavarga strength on the evidence card house rows
Each domain house row on the consultation evidence card now carries
sav_strength: the raw SAV of the house's sign as 强 / 中 / 弱, never the
bindus. The band is the chart page's savBand (>= 28 强, 25-27 中, <= 24 弱),
sourced from references/ashtakavarga-complete-system.md §三 and the same
cut-offs as scripts/ashtakavarga.py sav_assessment (SAV_BAND_SOURCE).
A missing or mismatched engine row leaves the label off and lists a gap.
The system prompt's card description names the field in one clause.
Shadbala stays off the card (engines disagree).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-04 14:42:12 +08:00
ClaudeandClaude Opus 5.5 1b367e6ba8 chore(rectification): re-freeze sealed holdout and offset sweep for the data-audit engine fixes (ERR-110)
Independent Staging Quality Gate / validate-frontend (push) Successful in 6m17s
Independent Staging Quality Gate / validate-python (push) Successful in 6m20s
Independent Staging Quality Gate / publish (push) Successful in 2m43s
BUG-1545 (scripts/narayana_dasha.py, scripts/active_rectification_event_engine.py)
and BUG-1546 (scripts/shadbala.py) changed files in the frozen scoring
identity, so the integrity gate went red. Per ERR-110, new records were
created with each script's --freeze and replayed under the label
data_audit_2026_11_04; the scripts, contract, freshness test and frontend
gate test now point at them, following 129313e1. Prior records are kept
byte-for-byte.

Compared field by field with the d60_mapping_2026_10_29 records:
- sealed holdout: 20/20 trials identical; metrics unchanged.
- reported offset: 898/900 identical; 2 trials changed true_rank only
  (one case, radius 60, offsets -30/-20: 76->67, 80->77). Top-1,
  minute error, delivery coverage and summary are unchanged. Reverting
  only the BUG-1545 files restores the old ranks; reverting shadbala.py
  does not; a different PYTHONHASHSEED gives the same result.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-04 14:13:00 +08:00
Claude f91608244a merge: upstream sync 10 into the data audit branch
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y

# Conflicts:
#	docs/BUG_HISTORY.md
2026-11-04 12:41:54 +08:00
ClaudeandClaude Opus 5.5 1c69c1b7e2 fix(chart): chart-page Shadbala takes the precise path readings use (BUG-1548)
The chart API called calc_shadbala without a context and so used the
simplified fallback, and it rewrote `degree` as the in-sign degree, which the
precise Dig bala reads as a longitude. Readings and reports took the precise
path, so the same chart showed different strengths and a different strongest
planet (Jobs: Moon 10.61 vs 6.61 Rupa). The endpoint now builds the same
context as cmd_shadbala and passes absolute longitudes; a test locks the two
equal per planet. Also records the astrologer's ruling on waning-Moon Paksha.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-04 12:33:23 +08:00
ClaudeandClaude Opus 5.5 7dcf8112ad fix(saham): natal Vivaha Saham uses the shared day/night rule (BUG-1547, upstream 26d5a52d)
The natal marriage point was hard-coded to Venus - Saturn + Asc with no
zodiacal-order exception, while the annual Tajika point already followed
references/saham_rules.json (PVR Table 74: night reverses the operands, plus
the +30 exception). The same night-born person had two marriage points; 6 of
the 9 public charts move. The full reading, the vivah-saham command and the
consult card now share tajika._formula_saham_trace, with day/night from the
card's own day_night evidence. 0 deg Aries is no longer "missing".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-04 12:23:21 +08:00
ClaudeandClaude Opus 5.5 9cd1e35f94 fix(shadbala): fold the Sun-Moon elongation before Paksha bala (BUG-1546)
abs(Sun - Moon) / 3 was never folded to 0-180 degrees, so on charts whose
raw difference passes 180 benefics got more than 60, malefics went negative
and the doubled Moon passed 120 (Monroe's Moon -45.76; 5 of 19 benchmark
charts). PyJHora has the same line, which is why the comparison agreed.

Same audit, no code change: the +/-60 Kala gap is PyJHora's hora formula;
PyJHora is the outlier on Mars/Jupiter/Venus Chesta; Sun/Moon Chesta is a
school difference. Shadbala totals stay off the card until those settle.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-04 12:14:20 +08:00
ClaudeandClaude Opus 5.5 a6f5ffbb4f docs(sync10): record sync 10 in the ledger, changelog and progress note
Ledger entry for upstream 5fb8379c with target 9d69cd56 and rollback list.
The progress note has the inventory, what was not ported and why, test
results, and the status of the two 2026-10-03 upstream issues. Both are
fixed upstream: KARAKA_8 now follows BPHS order, and Narayana profiles now
reach calc_narayana_mahadasha.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyeZrYn6ryNcSe5Y2Y
2026-11-04 12:08:51 +08:00
ClaudeandClaude Opus 5.5 71510682dc fix(narayana): run the second cycle instead of replaying the first (BUG-1545)
The legacy current-period lookup took the age modulo the first-cycle total,
so anyone older than their first cycle (61-96 years on the nine public
charts) got a first-cycle period: an 80-year-old was placed in 2-12. The
second cycle runs the same signs for 12 minus their first-cycle years; the
lookup now places the age on both cycles and subdivides with the second
cycle's years. The rectification cache only covers the first cycle and falls
back to the live lookup past it, so first-cycle scoring is unchanged.

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