Commit Graph
1443 Commits
Author SHA1 Message Date
jesse-uxandGrok (agent loop) bf5186fe62 revert(#170): drop the info-deleting compression, keep the measurement (round 2 start)
按 FIX-token-card-1:
- references/product_runtime_contract.md 恢复原样
- 删除自拟任务书(以 Claude 的 TASK-token-card-20261109 为准)
- 三处被弱化的断言恢复原样
- consultation-evidence-card.ts 回到 staging:删信息换来的压缩全部作废,重新按
  「不删信息」做
- 新增测量脚本 consult-card-size-170.mts(真实工具链,state.evidenceCardChars)

基线 c032823f 实测(3 盘 × 10 领域):卡片 min 41,963 / 中位 46,017 / max 53,930 /
平均 46,587;modelVisibleChars 平均 91,559。块大小表见 PROGRESS。

Co-Authored-By: Grok (agent loop)
2026-11-09 12:48:28 +08:00
jesse-ux ebe0797b36 Merge remote-tracking branch 'origin/staging' into codex/token-card-compress-20261109
# Conflicts:
#	docs/BUG_HISTORY.md
2026-11-09 12:46:41 +08:00
Claude 5967b394eb merge: codex/counterexamples-20261109 into acceptance batch 1109
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8

# Conflicts:
#	docs/BUG_HISTORY.md
2026-11-09 09:58:54 +08:00
Claude 137b964d80 merge: codex/dasha-dates-engine-only-20261109 into acceptance batch 1109
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8

# Conflicts:
#	docs/BUG_HISTORY.md
2026-11-09 09:58:54 +08:00
Claude c723f7333d merge: codex/reports-no-web-wording-20261109 into acceptance batch 1109
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8

# Conflicts:
#	docs/BUG_HISTORY.md
2026-11-09 09:58:53 +08:00
jesse-uxandGrok (agent loop) e5c139367d perf(consult): card keeps only the route's layers (#170, BUG-1813)
Base card gated by EVIDENCE_CARD_SPECS[domain].route: dasha systems keep Vimshottari/Narayana only, yoga detail only on yoga domains, annual brief only on the annual route; yoga row planets become names. Model-visible contract+card 46,664 -> 32,153 chars on average (-31.1%), max 54,532 -> 43,419 over 3 public charts x 12 domains. New size/route test; three existing assertions updated with old/new/reason notes.

Co-Authored-By: Grok (agent loop)
2026-11-09 08:59:44 +08:00
jesse-uxandGrok (agent loop) 74a739b2dc feat(card): seven acceptance counterexamples end to end (BUG-1812)
- career layer gets the D1 longitudes, so the paksha has one source (Obama
  base vs career mismatch fixed)
- card carries movable_lagna_moon.reason, Narayana ad_status / ad_reason and
  the mahadasha cycle_index; running line says "sub-period undecided"
- engine keeps the MD when the AD is undecided; timingFollowing skips
  zero_duration rows explicitly
- timingKeys allowlist: adstatus / adreason / cycleindex / zeroduration
- fixtures + capture script, 16 engine tests, 7 card tests, PROGRESS, BUG-1812

Co-Authored-By: Grok (agent loop)
2026-11-09 08:38:56 +08:00
jesse-uxandGrok (agent loop) 152b298dd3 fix(chart): Chara dasha dates come from the engine, not the page (BUG-1811)
占星师 2026-11-08 第五轮裁定 5:所有大运日期必须由原生大运引擎生成,显示层
不得自己按年数比例重算。BUG-1752 只修了星盘页的 Vimshottari 轨;Chara 轨仍在
浏览器里按 365.25 天/年从出生日推大运、按年数比例切分运,与报告页的公历周年
口径最多差一天。

- 新增 scripts/chart_dasha/chara_dates.py:给 jaimini 的十二段与每段十二个
  分运写 start / end(本地日历日)与 start_ts / end_ts(UTC 秒);[start, end),
  末段终点钉在父段终点,0 年段保留 start == end,平年 2 月 29 日落 28 日。
- /api/dasha/chara 返回前写这些字段并带 date_basis。
- rashi_dashas_native._chara 改读同一模块(报告输出不变,已与旧版逐段对照)。
- 星盘页 charaTrack 只复制引擎日期;删掉 addYears;没有日期的行不显示。
- 文案 CHARA_ANTARDASHA_DATE_NOTE 改为「与大运同一套边界」。
- 两份真实引擎响应 fixture 的 chara 段用 _compute_chara_dasha 重抓。
- BUG_HISTORY BUG-1811;PROGRESS-dasha-dates-engine-only-20261109。

验证:pytest 新用例 6 passed,相关 63 passed;node --test 新用例 4 pass、
既有 105 pass;tsc exit 0;lint 0 error。

Co-Authored-By: Grok (agent loop)
2026-11-09 08:32:21 +08:00
jesse-uxandGrok (agent loop) 2e9ca2d73a fix(reports): drop web-verification wording from user-visible report text (BUG-1810)
产品负责人 2026-11-08:用户看到的报告文字不出现「联网 / 外部资料 / 外部核验 /
MEVG / 真实案例 / Real Case / Global Web」,后台记录保留。

- 个人报告写作提示词:依据与边界改为「没有用户经历可对照」,置信度封顶 B 不变
- 年报:技法执行情况跳过 MEVG / Real Case 两行;没有纳入的删掉对应条目
- 合盘:技法执行情况删掉「外部资料与真实案例核对:未进行」整行
- 产品导出审计章节:这两行不再渲染,证据边界同类一句删除,packet 原样保留
- 质量门:只要求 Functional Benefic/Malefic 渲染;新增后台检查,要求 packet
  仍带这两行且它们没有出现在 markdown 里

Tests: 新增 frontend/tests/report-no-web-wording-20261109.test.ts(4)与
tests/test_report_no_web_wording_20261109.py(3);更新年报、合盘、审计章节、
质量门既有断言(原值/新值/原因已注明)。

Co-Authored-By: Grok (agent loop)
2026-11-09 08:20:50 +08:00
ClaudeandClaude Opus 5.5 b7ba7f4e4f fix(consult): R3 witness fields and Narayana profile_config reach the real card (BUG-1786, BUG-1783)
Found in the round-7 cross-branch check: on public charts (Zidane, Obama)
the Neecha Bhanga row never reached yogas_detail. The compact detector entry
dropped formation_evidence, and the row sat past the 30-row cap. Keep the
witness fields when compacting and never cut a row that carries them (the
cap stays 30). The card's Narayana method_status also dropped the engine's
profile_config (timing key allowlist); carry it through.

Evidence-card golden recaptured with TTL=0 (Obama: row 30 is now Neecha
Bhanga); the load-dependent VedAstro closure reason is kept as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-09 00:03:21 +08:00
ClaudeandClaude Opus 5.5 b1a83761b3 feat(consult): 解读依据 rows read the receipt's result_line / display_status (BUG-1793)
The 简明解读 list's grey line is the receipt row's result_line (fallback: what
the layer computed); firm → 已算, conditional → 有条件. One backstage filter
(isBackstageAuditRow: external / MEVG / real-case, plus provider, engine,
packet, calibration, Western) is shared by withTechniqueEvidence and the list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-08 23:46:30 +08:00
ClaudeandClaude Opus 5.5 a9111fae20 merge: codex/chat-mode-ui-1108 into round7 integration (BUG-1795..1798)
Contract keeps BUG-1794 (no web / external / MEVG / real-case wording in either
mode) with BUG-1795's 深度解读 / 简明解读 names; the missing-audit-table repair
prompt keeps BUG-1794's "no verification rows" wording under the new name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-08 23:43:49 +08:00
ClaudeandClaude Opus 5.5 8aa0d0cbcd merge: codex/round7-rect-kp-1108 into round7 integration (BUG-1801..1804)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-08 23:41:07 +08:00
ClaudeandClaude Opus 5.5 94d5bd8008 merge: codex/round7-evidence-1108 into round7 integration (BUG-1789..1794)
Evidence card independence keeps both the engine's R3 `self_reference_only`
name list and the evidence branch's `self_reference` notes map.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-08 23:40:37 +08:00
ClaudeandClaude Opus 5.5 2fd91f2b9e fix(consult): fact guard skips a layer named only as the comparison (BUG-1789)
r8 blind eval: 「这一层给出的结构与 D1 同向:土星在巨蟹」 in a D10 line was read
as a D1 claim (3 false mismatches). A layer token followed by 同向 / 一致 /
对照 … no longer opens its own span; the matched-claim note is only shown on
mismatches.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-08 22:57:41 +08:00
ClaudeandClaude Opus 5.5 0df8a3283f fix(rectification): provisional vs comparable leader under unequal coverage (BUG-1801)
Raw totals are only compared when every candidate computed the same
(event, layer) evidence units. Otherwise winning_segment stays the raw
leader (provisional_leader) and comparable_leader re-ranks over the
units all candidates share; a missing unit is dropped for everyone,
never scored 0. The live stage Python engine now skips an event whose
Narayana is unavailable instead of scoring it 0, repeated facts count
once, and the stage labels an unequal-coverage leader as provisional.

占星师 2026-11-08 验收清单 §6 / §9 / §10.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-08 22:41:31 +08:00
ClaudeandClaude Opus 5.5 d784e99867 feat(narayana): round-6 R1 default AD direction, R2 strength scope and local propagation, R3 self-reference
- R1: default AD direction rath_p50_md_parity_v1 (start parity kept as a research
  profile); full profile config + algorithm version on every Narayana output, cache
  keys (consult, api chart, probes, long report, synastry) and the rectification run.
- R2: one strength profile at the seed, AD start and p.43 (d); selected / equal /
  unresolved kept apart; unresolved nodes block only what depends on them (seed
  candidates kept, dated MDs before an unresolved length kept, AD-only loss in
  rectification keeps the MD).
- R3: Neecha Bhanga witness fields (reference, relative_house, self_reference,
  independent_confirmation_allowed, self_reference_only) from the main detector to
  the evidence card yogas_detail rows; self-reference-only never counts as support.
- Sync her b54812c3 KP clock validation; port her round-5 / round-6 tests.
- BUG-1783..1787; 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 22:38:00 +08:00
ClaudeandClaude Opus 5.5 d3a752f415 feat(consult): no web / external / MEVG / real-case wording in answers, either mode (BUG-1794)
产品 2026-11-08 决定,偏离占星师「缺口不能隐藏」裁定(第五轮裁定 6 / 8):产品
选择不向用户展示;后台保留记录. The plain-mode gap sentence (BUG-1757) and the
professional audit table's four verification rows are no longer asked for;
the receipt's MEVG / Real Case Calibration rows are unchanged, and 「不写已验证 /
已校准」 stays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-08 22:28:31 +08:00
ClaudeandClaude Opus 5.5 1839ce918b feat(consult): receipt audit rows carry this chart's result_line and firm / conditional status (BUG-1793)
产品 2026-11-08(简明解读「解读依据(N 项)」): rows the evidence card speaks for
get techniqueAuditTable[i].result_line (one plain line built from card fields
only, never by the model) and display_status (firm / conditional from the
two-axis interpretation_status; Narayana with a method dispute -> conditional).
Provider, MEVG, calibration and Western rows get neither.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-08 22:28:31 +08:00
ClaudeandClaude Opus 5.5 df2d6fd58c fix(consult): contract note prefixes and no literal maxSteps on the fact repair (BUG-1789..1792)
Product-rule notes use the announced 「产品规则,不是占星师的方法:A-09..A-11」
prefix; the repair stream keeps the route's step settings (no literal maxSteps).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-08 22:19:14 +08:00
ClaudeandClaude Opus 5.5 d72277a597 feat(consult): reject and regenerate answer sentences the evidence card contradicts (BUG-1789)
占星师 2026-11-08 第六轮 R4 / V6: a sentence whose explicit layer / entity
claim (varga sign, lagna, house lord, D1 house with 本命, Karakamsha sign /
house / lord / lord house, Arudha sign / house / lord) does not match the card
is rejected after the answer finishes, regenerated once, and dropped if the
rewrite still mismatches, adds an execution status or breaks the table. The
corrected answer replaces the streamed one; only validation steps are recorded.
Anonymous minimal counterexamples for the three r6 real errors fail on the
previous code and pass now. Harness records the guard and the pre-guard text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-08 22:13:34 +08:00
ClaudeandClaude Opus 5.5 7dbf383cf1 feat(consult): evidence fact fields, derived deps, Karakamsha lord house, self-reference (BUG-1790..1792)
占星师 2026-11-08 第六轮 R3 / R4:
- independence gains derived (derived fact -> dependency); the Karakamsha
  chain (AK D9 sign -> D1 projection) is derived, its lord's placement a
  separate raw fact; evidenceCardFactRecords expands every item to the ten
  fields, raw -> relation / derived -> conclusion.
- base.natal.jaimini.karakamsha carries karakamsha_lord_natal_house and a
  reading line (113 of 210 blind answers copied the sign's house to the lord).
- yoga self-reference fields (self_reference / independent_confirmation_allowed
  / self_reference_only) read defensively: no support vote, her wording.
- runtime contract: plain layer names, mismatch rejection, self-reference rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-08 22:13:34 +08:00
ClaudeandClaude Opus 5.5 3b8a9803f4 fix(consult): keep the capability audit clean of verification-gate tokens (BUG-1798)
The backend capability audit lists "Case Validation" as user-visible when
frontend source contains the gate's acronym; the row filter, comments and
the dev preview fixture now avoid the literal token.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-08 22:10:16 +08:00
ClaudeandClaude Opus 5.5 9795033da7 feat(consult): 解读方式 pill, 解读依据 list, no 联网 rows (BUG-1795..1798)
Owner-approved chat answer-mode UI (2026-11-08):
- Modes named 深度解读 (professional, default) / 简明解读 (plain) in the UI,
  the model-facing mode line and the runtime contract (names only).
- 解读方式 pill left of send (常用问题 pill look); menu reuses the preset
  popup rows; 功能吉凶口径 (PVR 表 30 / BPHS 例外表) under 深度解读 only;
  Drawer on phone. Remembered per user in localStorage; applies from the
  next question; 重新生成 uses the current choice.
- Mode resolution: this question's words -> pill -> 深度解读; history no
  longer sets the mode. Request carries answerMode (+ functionalProfile
  only under 深度解读); engine gets analysis_mode / functional_profile.
- Receipt records answerMode / functionalProfile; 简明解读 answers show a
  collapsed 解读依据 hairline list built from the receipt audit rows.
- External verification rows (联网 / MEVG / 真实案例) are dropped from the
  rendered 深度解读 audit table and never listed.
- Composer stacks when the single-row field would be under 64px (320px).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-08 22:07:21 +08:00
ClaudeandClaude Opus 5.5 31f4028ca4 feat(consult): cross-layer same-source index on the evidence card (BUG-1773)
Each domain section gets independence: fact_id (D1 placement, conjunction,
aspect, combustion, functional role) -> the layers that reuse it (house lord /
occupant, role significator, Arudha lord, Jaimini karaka, yoga, career
analysis, Shadbala, dasha lord, affliction source), with support / pressure
as distinct fact ids. Product rule S-13 in the shared reading implements the
astrologer's 2026-11-08 acceptance note: several layers on one fact are one
source, layers named, never 多层一致. Golden recaptured (TTL 0): unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-08 19:28:33 +08:00
ClaudeandClaude Opus 5.5 d889617f2a fix(consult): backstop audit section starts its own paragraph (BUG-1765)
Independent Staging Quality Gate / validate-frontend (push) Successful in 5m15s
Independent Staging Quality Gate / validate-python (push) Successful in 6m50s
Independent Staging Quality Gate / publish (push) Successful in 3m15s
The missing-section continuation shared the length-continuation splice, so a
table written after an answer that ended mid-line was glued to the last
sentence and its H2 did not render.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-08 18:41:35 +08:00
Claude 528eaefb6a Merge branch 'codex/round6-engine-1108' into codex/round6-fixes-1108
# Conflicts:
#	docs/BUG_HISTORY.md
#	frontend/tests/fixtures/consult-evidence-card-golden.json
2026-11-08 16:52:48 +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 d610756966 fix: chart dasha exact boundaries as UTC seconds (BUG-1752 privacy marker collision)
The first exact-boundary format printed local clock times; a generated
hour:minute collided with a private marker the repo scan forbids. Boundaries
are now start_ts / end_ts (UTC epoch seconds) beside the engine's local days;
no time string is printed. Goldens recaptured (evidence card TTL=0).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-08 15:11:10 +08:00
ClaudeandClaude Opus 5.5 d676292343 fix: astrologer acceptance for BUG-1758/1763/1752 (source ledger, audit acceptance, engine boundaries)
- BUG-1758: the card's affliction layer is a source ledger: one entry per fact
  with its input, effect (conflicts / not_executed) and every house it bears
  on; a fact shared by two houses is one source, never two votes.
- BUG-1763: output acceptance after the one repair: a professional answer
  without the Technique Audit Table, or any answer without the engine audit
  rows (plain mode's evidence entry), fails as incomplete (kept text, no charge).
- BUG-1752: engine rows carry exact local start/end with UTC offset, parent
  start, cycle, and a meta block (365.25-day years, zone, [start, end)); the
  chart page copies them. Tests: midnight crossing, birth balance, second
  cycle, zero-length rows and 0-year Narayana / Chara MDs never current.
- Goldens recaptured (evidence card TTL=0; chart-view dasha from the engine).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-08 14:59:50 +08:00
ClaudeandClaude Opus 5.5 dd2cd83c3e fix: affliction sources not counts, audit-table backstop, chart page engine AD/PD (BUG-1758, BUG-1763, BUG-1764, BUG-1752)
- BUG-1758: the model card drops affliction_evidence.houses.*.signal_count
  (backend field kept); S-09, the pressure basis line and the professional
  voice name the sources and never a count.
- BUG-1763: a professional answer that stopped on its own without the
  Technique Audit Table gets one table-only continuation.
- BUG-1764: the backtest harness passes the answer mode (agent context,
  user-turn shape, length continuation); CONSULT_BACKTEST_ANSWER_MODE=plain.
- BUG-1752: /api/chart carries dasha.antardasha_timeline from
  chart_dasha.birth_moment.sub_period_timeline; the chart page copies the
  engine AD/PD rows and no longer cuts periods by year proportions.
- Goldens: chart-view golden dasha recomputed from birth_moment; evidence-card
  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 14:43:50 +08:00
ClaudeandClaude Opus 5.5 312678dacc fix: astrologer round-5 rulings 6/7/8 (BUG-1753..1757)
- Ruling 7: audit rows carry calculation_status + interpretation_status
  (her interpretation_status_contract axes, plus product not_used);
  「Used(候选)」 becomes executed + conditional. Schema, parser (new
  five-column header, legacy single-value rows mapped), disclosure,
  annual appendix, professional voice and contract updated.
- Ruling 8: the four verification rows use her names (本地计算 /
  预置来源匹配 / 实时联网 / 真实案例校准) and values, no 「MEVG ·」 prefix.
- Ruling 6 (F section): no "max two bases", no ≥2-affliction threshold
  (pressure line shows sources beside support and gaps), plain mode
  states the verification gap in one line, limits sit next to the
  conclusion, technique names when methods disagree, conflict sources
  shown when needed. Both voices updated.

Changed expectations carry 原值/新值/原因 comments.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-08 12:37:15 +08:00
ClaudeandClaude Opus 5.5 d43be3152b Merge branch 'codex/chat-followups-1108' into codex/round5-integration-1108
BUG_HISTORY: both sides kept, ordered by number (1734..1739 before 1741).
Contract: round-5 Narayana five-profile wording kept; chat-followups
additions (steps_to_name, running, Used(候选) table, four MEVG rows)
kept. NARAYANA_STEP_ZH gains the round-5 `start` step.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-08 12:16:43 +08:00
ClaudeandClaude Opus 5.5 00b5c92097 Merge branch 'codex/narayana-profiles-1108' into codex/functional-pvr-1108
Combines BUG-1741..1743 (Narayana named profiles) with BUG-1746..1752
(PVR functional table, Shadbala, KP first segment, Mudda wording).
BUG_HISTORY entries kept in number order; runtime contract keeps the
round-5 Mudda sentence and the profile-based Narayana rule; evidence-card
golden recaptured with TTL 0 / PYTHONHASHSEED=0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-08 12:00:41 +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 0404d0a07c fix(narayana): split into five named source profiles with per-step comparisons (BUG-1741..1743)
Astrologer round-5 ruling 1 (2026-11-08, B3/B4): seed, years, dual lord,
AD direction and start are separate named profiles (Sanjay Rath source
version). Each comparison profile is recomputed with one step swapped; the
step is disputed when the running MD/AD changes, blocked when the source
cannot decide. method_status names exactly those steps with her round-5
sentence; B3/B4 open item removed. Undecided years now block the layer.
The narayana-dasha CLI passes the birth moment. Engine values on the three
public charts are unchanged; Drig and rectification scoring unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-08 11:46:12 +08:00
ClaudeandClaude Opus 5.5 3b4a9e7919 fix(consult): Narayana steps/sign on the card, Used(候选), Q6 four rows, Argala idle note, annual Mudda crossing (BUG-1734..1739)
- BUG-1734: method_status.steps_to_name says exactly which steps the answer
  may call undetermined ("unknown" names none); contract: name only the
  card's unresolved_steps, never infer one from open_items.
- BUG-1735: method_status.running (right after chat_use) copies the running
  Narayana MD / AD sign, house and dates from dasha_systems; a candidate
  window still states its sign. r2's 6 "omissions" were regex misses.
- BUG-1736: audit Status gains candidate, written Used(候选); her Q1 table
  in the contract; blocked only for seed / dual lord / sub-period that
  cannot be selected. Parser, labels, annual appendix updated.
- BUG-1737: a Virodhargala house facing an empty Argala house is labelled
  as obstructing nothing (virodhargala_note); engine counts unchanged.
  Bhava Bala / SAV / co-tenant cases checked: the card is clear there.
- BUG-1738: her Q6 four status rows (local compute, preset-source match
  = 不足 with no library, live web = 不可用, real case = 未完成); no
  "MEVG passed" summary.
- BUG-1739: annual report appendix shows her Q2 wording when a Mudda
  segment crosses the next return; the writer gets the same line.
- Golden recaptured with TTL=0: identical except the environment-dependent
  VedAstro timeout reason, so the committed fixture is kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-08 10:57:18 +08:00
ClaudeandClaude Opus 5.5 20fafa3c29 fix(consult): receipt section cap, calendar year and Narayana method status on the card, answer-first (BUG-1729..1733)
- BUG-1729 (P0): the execution receipt capped methodologySections at 12 while
  the loader allows 32; a wealth turn delivers 14 and every receipt failed.
  The cap now lives in consultation-methodology-limits.ts and both read it;
  a sweep of all 2509 domain combinations x 3 questions passes the receipt.
- BUG-1730 (tooling): the offline model-input manifest moves to
  tests/helpers (scripts must not import tests, BUG-1140); the fact-checker
  reads the timing route's nested slow_transits.
- BUG-1731: the card carries the engine's calendar_year (both Tajika years
  and the splitting return); runtime contract rule A-08 (her Q2).
- BUG-1732: narayana_method_status names the undetermined / disputed step
  (seed, years, dual_lord, ad_direction) from the engine, "unknown" when it
  cannot; B3/B4 recorded as open; chat_use single_system_candidate /
  no_judgment; her Q1 sentence in the contract; B-02 rewritten.
- BUG-1733: the conclusion's first sentence answers the question; the
  frozen time range follows it (her Q5).
- Golden recaptured with TTL=0 (method_status; VedAstro offline reason is
  environment-dependent).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-08 07:28:00 +08:00
Claude 152848da4e Merge branch 'codex/chat-reopt-1107' into codex/phase2-chat-merge-1107
# Conflicts:
#	docs/BUG_HISTORY.md
2026-11-07 23:57:45 +08:00
ClaudeandClaude Opus 5.5 32e4d5609e docs(bug-history): BUG-1719..1724; consult projection carries mudda_view / calendar_year (BUG-1722)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-07 23:53:33 +08:00
ClaudeandClaude Opus 5.5 010c545e41 feat(consult): run her method layers, route-driven sub-skills, Arudha houses, product rules in the contract file (BUG-1725..1728)
- BUG-1725: evidence card Arudha rows carry pada_house_from_lagna and
  lord_natal_house plus arudha_columns; her phrasing rule
  「A2 位于水瓶;其主星土星位于本命第 2 宫」 is in the runtime contract.
- BUG-1726: methodology delivers her files in her three layers (ruling
  2026-11-07 Q3): router, status contract, output contract (skeleton
  §5/§6) and §0.4 every turn; §2.3, the matching event-judgment branch,
  the transit guide and route-needed sub-skills per question; maintenance
  files never. methodology.delivery records layer and reason. Removes
  the dead sharedConsultationMethodMarkdown.
- BUG-1727: sub-skills follow route techniques through her
  skill_family_router.json triggers (ruling Q4); question words are
  auxiliary; product domain table kept as labelled floor;
  specialized-jyotish reachable as technique paragraphs plus its
  boundaries; skill_read reads allowlisted skills/<family>/ files.
- BUG-1728: CHAT_METHOD_BOUNDARIES, natal instructions, MEVG policy and
  the shared reading move to references/product_runtime_contract.md
  (loaded by block name, each rule annotated as a product rule); her Q5
  rulings added; current order and a list of rules that may cross her
  writing floor recorded for her.
- Offline model-input manifest mode in consult-model-input-manifest.mts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-07 23:52:05 +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 198208ac5b feat(sync): astrologer handoff 2e5485f5 — Sodhita entry, Narayana strength profile, 71 unimplemented yogas, Argala tie, Bhava relative points
- A1: ashtakavarga_shodhana.calc_sodhita_av (her entry; ashtakavarga.py frozen),
  level=not_calibrated + prediction_scoring_allowed=False on the chain; legacy
  subtraction stays removed (BUG-1209).
- A2: select_narayana_seed_sign strength_profile rath_empty_sign_lord_strength_v1,
  shared by source-aware seed, MD and AD (matches her function on 6000 draws).
- A3: preflight of logical branches; placeholder not an implementation;
  reference_only rules listed; 71 not_implemented; cmd_yoga not_implemented_count.
- A4: neechabhanga_kendra name/category per her handoff.
- 9e971559: Vimshottari AD record lord and native current PD in dasa convergence.
- B10: Argala equal count stays strength_comparison_required (no Narayana borrow).
- B11: full-reading bhava_bala.reference_relative_points, labelled
  product_relative_points_not_traditional, no bands.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-07 22:46: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 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 04bcded84f fix(ashtakavarga): stop applying the old Sodhita wealth cut to the reduced scale; label SAV scales
Astrologer third-round review 2026-11-07, item 4a. The finance bridge
flagged sodhita_wealth_friction when 2nd and 11th Sodhita were <= 19, a
cut set on the removed calc_sodhita_av table (total ~204); the current
Trikona -> Ekadhipatya values (total ~70-100) meet it on nearly every
chart and the narrative turned it into money not staying. The bridge now
lists the values as reference_only with their scale. The evidence card
labels each SAV column with its scale and forbids reading a low reduced
value as a wealth conclusion.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-07 20:17:19 +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 45a7b01353 fix(yoga): report rule evaluation failures and unimplemented rules apart from not formed
Astrologer third-round review 2026-11-07, item 1. _run_custom_expr no
longer swallows exceptions; YogaEngine.detect records evaluation_failed
rows with the error class, and rules naming a condition type no evaluator
implements (69 BVR rules) are listed as not_implemented instead of being
silently never formed. The consultation sieve moves such packet members
to not_evaluated, and the card lists them. dhana_yoga no longer imports
math; parvata_yoga is disabled pending a definition ruling (BUG-1571).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-07 20:01:18 +08:00
ClaudeandClaude Opus 5.5 d890ecb7be eval(consult): model-input manifest, claim fact-checker, structure-only prompt fixes (占星师 2026-11-07 评测意见)
- Backtest harness writes, per run, the exact model request bodies (no
  headers or key), the computed card and a manifest: system prompt
  sections with char counts, tool calls and results, and a truncation
  check of the transmitted card (parses in full, equals the computed card,
  strings at the 800 cap, arrays at projection caps or shorter than the
  engine output, card gaps). --no-manifest turns it off.
- consult-answer-factcheck.py extracts checkable claims (regex, plus
  optional model extraction into JSON only) and verifies every claim
  deterministically against the card: matches / contradicts / not_on_card
  / status_mislabeled; per-layer transmitted / named / cited-correctly /
  audit status with "Used but never cited" flags; date precision,
  conclusion position and grade-rule checks; --report confirms answers
  written from a skill report.
- Professional voice (structure only): a short 结论 block first; point and
  lord facts only from the card field, one value per point; status words
  copied (the Yoga line no longer says 「只写 yogas.hits 里成立的」); a dasha
  level the card does not give is 未交付; dates are 名义计算边界 unless the
  birth time is rectified; each grade cites its rule and missing items.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-07 17:39:46 +08:00
Claude 5f73e0641e merge codex/sync-features-1107 into upstream-full integration 2026-11-07 17:05:33 +08:00