Commit Graph
3306 Commits
Author SHA1 Message Date
ClaudeandClaude Opus 5.5 caf3af6b7e fix(monitor): alerts by Feishu and email, host checks, OTP retry, off-host probe (BUG-2348)
- notify-feishu.sh: add a Resend email channel (key read from .env.production
  via a header file, never argv/stdout); both channels when configured, one
  acceptance counts; fixed Chinese labels on every alert line.
- classify_error_log.py: per-code thresholds for low-volume signals, the
  [ops-signal] marker, api access-log 429/5xx counted without query strings.
- ops-check.sh: container restarts/OOM, host memory, report queue wait, new
  feedback count (no content).
- OTP sender: retry network/429/5xx once with the same idempotency key; final
  failure logs otp_send_failed (no address).
- install-production-monitor.sh: idempotent cron install + --test-alert.
- monitor-public-health.yml: off-host probe every 5 minutes on the runner.
- Tests: tests/test_monitor_alerts_2348.py (on the quick list), OTP sender and
  ops-signal tests. Issues #350, #354.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-25 11:03:45 +08:00
ClaudeandClaude Opus 5.5 049614ffa0 fix(model): the admin's fallback model answers when the default provider fails (BUG-2347, #352)
Independent Staging Quality Gate / validate-python (push) Successful in 6m38s
Independent Staging Quality Gate / validate-frontend (push) Successful in 6m48s
Independent Staging Quality Gate / publish (push) Successful in 7m54s
- A provider-side failure (401/403/408/409/429/5xx, timeout, network) before any
  answer content reached the user moves the call once to the published fallback
  model; a stream is never switched after content has streamed.
- Settlement prices the tokens with the model that answered (per-request /
  per-job scope); credits charged are unchanged.
- 功能开关「暂停聊天」 (ops.chat_paused): an emergency stop, answered before any
  credit is reserved; a failed read keeps chat open.
- Daily model spend alert from usage_ledger (MODEL_DAILY_SPEND_ALERT_USD, default
  $30), throttled, forwarded by the monitor on first occurrence; per-user spend
  view on /admin/usage.

Checks: tsc clean; eslint 0 errors; new tests model-fallback-2347 (11) and
model-spend-alert-2347 (5) pass; digest Python tests pass; Python quick gate
passed; full frontend suite 5334 tests, 28 failures, all the known
environment set (PostgreSQL, compose, YAML, staging sync, swisseph).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-25 10:58:47 +08:00
ClaudeandClaude Opus 5.5 a026ea9c11 fix(chat): basis rows say yogas, neecha-bhanga and Narayana plainly; no 「见上面」 (BUG-2344)
Independent Staging Quality Gate / validate-frontend (push) Successful in 6m8s
Independent Staging Quality Gate / validate-python (push) Successful in 7m44s
Independent Staging Quality Gate / publish (push) Successful in 2m57s
Program-printed 「判断依据」 rows: detected yoga as 「有 X(条件)」, neecha-bhanga as
「落陷;有缓解」, Narayana without the start-year disagreement note, a row cited
twice restated by its first clause. Rewrite table no longer produces
还没核实 / 从哪年起算还有分歧. Backstage status fields unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2Vp62Ur3C7yRWQdSq
2026-11-25 10:43:13 +08:00
ClaudeandClaude Opus 5.5 63c28d0f13 fix(db): one connection budget for every web pool; max_connections 60 (BUG-2345, #349)
Independent Staging Quality Gate / validate-frontend (push) Successful in 6m10s
Independent Staging Quality Gate / validate-python (push) Successful in 7m44s
Independent Staging Quality Gate / publish (push) Successful in 3m32s
Four pools at max 10 each (40) ran against max_connections=30. Pool maxima now
come from lib/db/pool-limits.ts (identity 6, app 12, service 8, admin 3,
health 1 = 30, env-tunable 1-20) with a reserve of 10 for backup, migration,
psql and the second web container during a deploy. Idle connections close
after 10 s. Postgres max_connections 30 -> 60. A test pins the budget against
the compose file and forbids hard-coded pool maxima.

Production picks this up on the next deploy: run-production-deploy.sh runs
`compose up -d --wait postgres`, which recreates the Postgres container once
(a few seconds; data stays on the volume).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-25 10:25:23 +08:00
ClaudeandClaude Opus 5.5 042489a5ae fix(login): the authenticator step after a password sign-in starts idle and sends its code (BUG-2346)
signInWithPassword set busy and returned on twoFactorRedirect without
resetting it, so the two-step step showed 「验证中」 and verifyTwoFactor
returned before sending the six digits. The admin login is password-only,
so every MFA-enrolled operator was stuck; reproduced in headless Chrome
on staging with a throwaway account.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-25 10:21:03 +08:00
ClaudeandClaude Opus 5.5 6bb596926f fix(chat): Western answers clean by structure — writer-declared scope, program-enforced shape (BUG-2342 round 2)
Independent Staging Quality Gate / validate-frontend (push) Successful in 6m11s
Independent Staging Quality Gate / validate-python (push) Successful in 8m7s
Independent Staging Quality Gate / publish (push) Successful in 15m3s
western_chart is now "only" | "both" (true = "only"), the writer's judgment.
"only": no day calendar, the time section and time label removed, Indian
paragraphs sent to the one repair call (dropped if they survive), the
evidence box is Western rows printed from western_natal (Indian keys and
items dropped and logged), no Indian method rows or chart-data table.
"both": the body sits under 印度盘怎么看 / 西洋盘怎么看 (missing headings are
regrouped by the same repair call, kept as written when the reply fails its
checks), the verdict names both sides, rewrites keep the side they name,
mixed basis items are split and the box shows 印度盘 / 西洋盘 groups. Ties in
the top element / modality are given to the writer and a single-winner
sentence or title goes to the repair. Backstage notes (几种方法一致 and
similar) are cleaned from every answer. Non-Western cards are byte-identical.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2Vp62Ur3C7yRWQdSq
2026-11-25 10:05:43 +08:00
ClaudeandClaude Opus 5.5 570d69e7fc fix(chat): Western-astrology questions read the Western chart, not the Indian card (BUG-2342)
run-jyotish-consultation takes an optional western_chart flag (the writer's
judgment); when set, the result carries western_natal next to the card: the
Western tab's facts from /api/western (ten-planet element / modality /
hemisphere counts, dignities, angles, stelliums, patterns, every major
aspect). The western:natal lookup returns the same facts. Without the flag
the result and the card are byte-identical. The writing rule bases Western
claims only on these facts; the fact guard accepts Western positions the
writer read, and Western basis items borrow no Indian rows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2Vp62Ur3C7yRWQdSq
2026-11-25 10:05:35 +08:00
ClaudeandClaude Opus 5.5 84176c3a4a fix(chat): week/month calendar answer says each day once (BUG-2343)
Independent Staging Quality Gate / publish (push) Canceled after 0s
Independent Staging Quality Gate / validate-python (push) Canceled after 4m38s
Independent Staging Quality Gate / validate-frontend (push) Canceled after 3m48s
- Verdict card is its sentence only when the day calendar is shown; writing
  rule asks for one direct sentence, no label rows.
- verdict_meta check: a verdict opening that talks about the answer goes to
  the existing rewrite; a rewrite still meta is refused. One-line verdicts
  naming both sides are read clause by clause.
- Detail title is the date only.
- Detail box sized to this calendar's own longest panel (texts stacked
  unseen in one grid cell); tool.completed carries the texts so the
  skeleton reserves the same height.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2Vp62Ur3C7yRWQdSq
2026-11-25 09:55:48 +08:00
ClaudeandClaude Fable 5.2 10074c2f30 fix(western): move the chart-page layers into scripts/western_page (BUG-2340 follow-up)
Independent Staging Quality Gate / validate-frontend (push) Successful in 6m20s
Independent Staging Quality Gate / validate-python (push) Successful in 8m8s
Independent Staging Quality Gate / publish (push) Successful in 3m38s
The product-owned module does not belong in the scripts root (the root count
budget guards it); logic unchanged.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2Vp62Ur3C7yRWQdSq
2026-11-25 00:48:25 +08:00
ClaudeandClaude Opus 5.5 fab333c39d feat(chart): Western tab redesign per the approved prototype; node out of element counts (BUG-2340)
Independent Staging Quality Gate / validate-frontend (push) Successful in 6m13s
Independent Staging Quality Gate / validate-python (push) Failing after 7m44s
Independent Staging Quality Gate / publish (push) Skipped
- /api/western (non-frozen western_chart_engine + new western_page_layers):
  classical layer (sect, dignities, bound lords, Lots of Fortune and Spirit)
  and, with transit_date, today's slow transits, profection and progressed
  Moon. Element/modality counts skip the north node.
- chart-view-load sends today's date (cache scope western:<date>); mapWestern
  maps MC, ruler chains, classical, transits, the person's ayanamsa offset and
  recounts elements/modalities over the ten planets with member names.
- ChartWesternTab rebuilt: wheel card (420px) + 「这张盘的样子」 summary,
  five-column planet table with dignity words, grouped aspects with
  fade-only filters, element/modality/hemisphere bars, folded 「更多数据」.
- BUG_HISTORY: BUG-2340 (fixed-pending-verify), BUG-2341 zodiacal-release L2
  lengths (investigating, not fixed).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2Vp62Ur3C7yRWQdSq
2026-11-25 00:27:09 +08:00
ClaudeandClaude Opus 5.5 c4aa1790cc fix(chat): strip slot reserves the panel's worst case by slot width; enforce 36/24/24 stretch lengths (BUG-2339)
Independent Staging Quality Gate / validate-frontend (push) Successful in 6m13s
Independent Staging Quality Gate / validate-python (push) Successful in 8m7s
Independent Staging Quality Gate / publish (push) Successful in 3m53s
The strip grew 300 -> 317px at completion on desktop (a 54-character
sentence). Stretches longer than 36 / 24 / 24 characters now go to the
existing segment rewrite (rejected again if still long; program-written
strips refused); nothing is cut. The reserved height follows the slot's own
width (container query: 436 / 392 / 324 / 300px), each band at its measured
worst case, so skeleton, cross-fade and final heights are equal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2Vp62Ur3C7yRWQdSq
2026-11-24 23:41:59 +08:00
ClaudeandClaude Opus 5.5 99074e916a fix(chat): skeletons for the strip / week / month calendar while streaming, one cross-fade at completion (BUG-2339)
The answer slot shows a skeleton of what it will hold (strip, or the day
calendar for the writer's day_range) built from the real component's boxes,
with the chart pages' slow-pulse skeleton blocks; when the whole answer is
complete the component is drawn in the same grid cell and the two cross-fade
once (opacity, --motion-standard / --ease-standard; instant under reduced
motion). Dark 平 legend chip gets a tertiary-ink hairline ring.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2Vp62Ur3C7yRWQdSq
2026-11-24 23:25:02 +08:00
ClaudeandClaude Opus 5.5 87e043bd78 fix(chat): open the precise-timing gate for chat answers only; reports keep today's gate (BUG-2335)
Independent Staging Quality Gate / validate-frontend (push) Successful in 6m23s
Independent Staging Quality Gate / validate-python (push) Successful in 8m57s
Independent Staging Quality Gate / publish (push) Successful in 5m4s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2Vp62Ur3C7yRWQdSq
2026-11-24 22:33:11 +08:00
ClaudeandClaude Opus 5.5 66b5500f12 feat(chat): in-answer day calendar in the strip slot (BUG-2337)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2Vp62Ur3C7yRWQdSq
2026-11-24 22:33:11 +08:00
ClaudeandClaude Opus 5.5 8aef250370 feat(chat): personal day calendar on the card for the writer's day range, checked against the answer (BUG-2336)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2Vp62Ur3C7yRWQdSq
2026-11-24 22:33:10 +08:00
ClaudeandClaude Opus 5.5 64ad0b140f fix(chat): dates by birth-time source, precise timing closed only without a birth minute, no 'cannot be more precise' lines, running periods named once (BUG-2335)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2Vp62Ur3C7yRWQdSq
2026-11-24 22:33:10 +08:00
ClaudeandClaude Opus 5.5 62106f3b64 fix(chart): keep the board up while the next chart type loads (BUG-2338)
Independent Staging Quality Gate / publish (push) Canceled after 0s
Independent Staging Quality Gate / validate-python (push) Canceled after 3m22s
Independent Staging Quality Gate / validate-frontend (push) Canceled after 3m22s
Switching to a chart type whose layer had not arrived swapped the board for the
waiting skeleton, so the layer landed on a freshly mounted drawing and the
planets popped in instead of moving between cells. The card now holds the board
just drawn (dimmed after a short wait, not clickable, aria-busy) and the same
nodes move when the layer lands. The skeleton stays for the first draw only;
a failed layer still shows its note and retry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-24 22:16:23 +08:00
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
Claude 7950712886 Merge branch 'claude/motion-1.2' into claude/motion-review-fixes-2334
Independent Staging Quality Gate / validate-frontend (push) Successful in 6m19s
Independent Staging Quality Gate / validate-python (push) Successful in 8m26s
Independent Staging Quality Gate / publish (push) Successful in 3m57s
# Conflicts:
#	frontend/tests/motion-chat-2328.test.ts
2026-11-24 21:05:19 +08:00
Claude 14c16f7760 Merge remote-tracking branch 'origin/staging' into claude/motion-review-fixes-2334 2026-11-24 21:05:09 +08:00
ClaudeandClaude Opus 5.5 87f9440f1d fix(motion): review fixes on the 1.2 motion overhaul (BUG-2334)
Planets glide between houses (one flat body layer in fixed planet order); the
inspector fades in place without remounting (focus kept); composer entrances
play on state changes only; tabs never transition `all` and the pill follows
resizes; no height/grid-rows animations left (timeline, chart-choice fold,
drawer); one popup start (scale .96), one scrim beat, full-edge sheets, quick
disclosures; no spring curve, raw CSS durations mapped to tokens; sidebar rows
fade only for new conversations; SplitBar label rides with the line.

Measured 1440x900, 400-section page, 8 toggles: layouts 124 -> 8,
layout time 29ms -> 3ms, no frame over 20ms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-24 21:04:46 +08:00
ClaudeandClaude Opus 5.5 ef188ff36f test(motion): bound the 2328 chat guard to its own CSS block after the 1.2 merge (BUG-2332)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-24 20:58:13 +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 7cced78e28 fix(motion): the sidebar toggle settles its contents with transform/opacity and takes its width in one layout; width var and flag live on the slot (BUG-2332)
Animating flex-basis/width (BUG-2331) re-laid-out and re-styled the whole page every
frame on long reports; the custom property on .shell-frame re-styled every element.
Measured 1440x900, 400-section page, 4 toggles: frames >20ms 5-12 -> 0, layout
0.42s -> 0.04s, style recalc 0.15s -> 0.01s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-24 20:42:51 +08:00
Claude 81f5fcd579 Merge branch 'claude/motion-shell-2331' into claude/motion-1.2
# Conflicts:
#	docs/BUG_HISTORY.md
#	frontend/src/app/globals.css
2026-11-24 20:37:50 +08:00
Claude f04d7a24a0 Merge branch 'claude/motion-reports-2330' into claude/motion-1.2
# Conflicts:
#	docs/BUG_HISTORY.md
#	frontend/src/app/globals.css
2026-11-24 20:37:39 +08:00
Claude 6d78a8309a Merge branch 'claude/motion-chart-2329' into claude/motion-1.2
# Conflicts:
#	docs/BUG_HISTORY.md
#	frontend/src/app/globals.css
2026-11-24 20:37:26 +08:00
Claude 410b8aa9a7 Merge branch 'claude/motion-chat-2328' into claude/motion-1.2 2026-11-24 20:37:12 +08:00
Claude ddf1bcb7d0 Merge branch 'claude/motion-foundation-2327' into claude/motion-1.2
# Conflicts:
#	docs/BUG_HISTORY.md
2026-11-24 20:37:12 +08:00
ClaudeandClaude Opus 5.5 4a6c93dfbd fix(motion): chart page and chat chart panel move on the motion language (BUG-2329)
- planets live in one layer keyed by planet and placed by transform, so a
  chart-type or person switch moves each planet to its new cell (standard,
  ease-out, interruptible); changed cell labels fade in quick
- north/south and skeleton -> board crossfade; caption parts crossfade
- opt-in sliding tab indicator (translate only) on the chart area's lists
- inspector body crossfades on a new selection; disclosures unfold from
  their toggle; chevrons, cell fills, yoga cards, ephemeris day, birth-sky
  control and the western redraw on tokens; reduced motion turns all off
- guard test motion-chart-2329; pinned body-position test updated

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-24 20:36:37 +08:00
ClaudeandClaude Opus 5.5 9d1bc50c7e test(motion): update three pins for the shell glide and the ticking balance (BUG-2331)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-24 20:31:09 +08:00
ClaudeandClaude Opus 5.5 08b41d848c fix(motion): chat page speaks the BUG-2327 motion language (BUG-2328)
Sent question rises from the composer, phone composer controls settle in,
send/stop and copy/like icons pop in place, follow-ups stagger, jump-to-latest
and the chart panel enter from their edges; every chat timing retimed to the
motion tokens; opacity/transform only; reduced motion off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-24 20:26:48 +08:00
ClaudeandClaude Opus 5.5 561ec70b55 fix(motion): reports, annual, synastry and rectification follow the motion language — split bar and progress move by transform, question panel slides in, disclosures and counts fade (BUG-2330)
- 生时纠正 self-choice split bar: block widths change at once; a full-width track carries the
  accent fill (translate + scaleX), the line and the reported-time mark (translate). Was
  flex-basis / left transitions, a layout every frame. Row clips horizontal overflow.
- Report and annual progress bars fill by scaleX (was a width transition).
- Report question panel slides in from its edge (emphasis, ease-sheet); width drag has no
  transition. 生时纠正 phone sheet slides from the bottom edge.
- Report / annual / synastry / rectification disclosures: the opened body rises in (quick),
  no height animation. 「提问 N」 count fades in on change. TOC selection: instant fill swap.
- Every area-C duration and curve now uses the BUG-2327 tokens; reduced motion = none.
- Frame timing (headless Chrome, 390 wide, ~400-section page): scroll, panel open and split
  moves all 16.7 ms per frame, none over 20 ms, 3 layouts in the whole run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-24 20:24:00 +08:00
ClaudeandClaude Opus 5.5 3e981c4d86 fix(motion): app shell speaks the motion language — sidebar glides on toggle, steps slide in, points tick, no overshoot, admin on the same tokens (BUG-2331)
Desktop sidebar collapse/expand glides the column one standard step (never while
the edge is dragged); session rows, menus, subject picker, account menu and
tooltips move on quick/instant with faster exits; login and onboarding steps
arrive 8px from the reading direction; points numbers tick from the side they
moved (CreditsValue); redeem success settles on emphasis + ease-out; antd
motion tokens follow lib/motion/tokens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-24 20:18:29 +08:00
ClaudeandClaude Opus 5.5 d02b1d484f fix(motion): one motion language and token-based shared primitives (BUG-2327)
- CSS tokens --motion-instant/quick/standard/emphasis/stagger and
  --ease-standard/exit/sheet (reusing --ease-out); reduced motion zeroes them
- lib/motion/tokens.ts mirrors the tokens; presets.ts derives from them
- dialog, alert-dialog, popover, dropdown-menu, tooltip, select: interruptible
  starting/ending-style transitions from the trigger origin, faster exits
- sheet/drawer/button/tabs/toggle/input-otp/inputs/table/toasts on tokens
- guard test motion-language-2327; pinned tests updated with notes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-24 20:07:57 +08:00
ClaudeandClaude Opus 5.5 18a3a299e2 fix(chat): strip labels by precedence — the sub-sub-period lord decides, long transits are the year's background, the minor side is a plain clause; follow-ups keep the previous subject; the areas row lists the route's houses and only verdict / strip citations outside it, D9 / DK / UL as the 7th on relationship answers only, the 7th named 「合作」 on career and money (BUG-2326)
Independent Staging Quality Gate / validate-frontend (push) Successful in 6m16s
Independent Staging Quality Gate / validate-python (push) Successful in 8m2s
Independent Staging Quality Gate / publish (push) Successful in 3m38s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2Vp62Ur3C7yRWQdSq
2026-11-24 19:21:46 +08:00
ClaudeandClaude Opus 5.5 ab5d8612e0 docs(bug-history): BUG-2326 investigating — strip labels saturate at 「有机会,但费力」 (presence-only labelOf, long transits under the year share, timing follow-ups fall back to general houses); chart row lights 感情和伴侣 on career answers (answerAreas adds every cited house, D9 → 7)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2Vp62Ur3C7yRWQdSq
2026-11-24 19:06:07 +08:00
ClaudeandClaude Opus 5.5 aacf363df8 feat(chat): KP support and resistance as strip stretch reasons beside the BUG-2310 rules — running lord leaning to the matter's houses (with the cusp's promise) or to the negating houses; same four labels, plain words, KP names only in 判断依据 (BUG-2325)
Separate on purpose: on the public chart it turns career from 4/6 to 6/6 「有机会,但费力」 (BUG-2326), so it can be dropped until the labels weigh their reasons.

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
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
ClaudeandClaude Opus 5.5 c9d92d4a4b fix(report): the English audit note no longer says "parity", so the English edition passes the site's leak check again (BUG-2324)
Independent Staging Quality Gate / validate-frontend (push) Successful in 6m1s
Independent Staging Quality Gate / validate-python (push) Successful in 7m45s
Independent Staging Quality Gate / publish (push) Successful in 3m18s
BUG-2294 added English notes for the engine's audit rows; the Narayana/Patyayini/Tajika
row said "while external parity is open". acceptEnglishEdition runs ordinaryOutputLeaks
on the English markdown and `parity` is a backstage word there, so every personal report
since that change was stored with englishUnavailable=public_leak and export offered
Chinese only. The new test reads the English leak patterns from report-public-projection.ts
and checks every English audit note and a public chart's whole English edition.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-24 18:43:57 +08:00
ClaudeandClaude Opus 5.5 e29b7e3a71 fix(mobile): the composer sits on the keyboard and at the bottom of the phone home (BUG-2323)
Independent Staging Quality Gate / validate-frontend (push) Successful in 5m51s
Independent Staging Quality Gate / validate-python (push) Successful in 7m32s
Independent Staging Quality Gate / publish (push) Successful in 3m9s
- While the chat composer has focus on a phone and the visible part is shorter by a keyboard,
  the shell takes exactly the visible part (data-chat-keyboard + --chat-kb-top/height from
  visualViewport); no window scroll is touched, WeChat's full-height viewport is left alone.
- Phone empty home: composer at the bottom (no balance row), greeting centred above, starter
  rows 44px on one line, 换一组 on the small row above them, header above the composer layer.
- Phone composer is one row while idle and empty (常用问题 icon, example, send) and the two-row
  card once focused or holding text; focus moving to its own buttons keeps it open.
- The empty composer shows a rotating example question instead of 「想聊什么都可以」.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-24 17:44:29 +08:00
ClaudeandClaude Opus 5.5 cf53e1625e fix(annual): rows that would form only if one planet were already in its next sign are no longer counted as this year's formed annual yogas — labelled counterfactual-only and kept apart (BUG-2322)
Independent Staging Quality Gate / validate-frontend (push) Successful in 5m56s
Independent Staging Quality Gate / validate-python (push) Successful in 7m37s
Independent Staging Quality Gate / publish (push) Successful in 3m21s
Ports the astrologer's counterfactual relabel from upstream 58f37ee5b (draft
and authority). The annual named-yoga field read by the report tables, the
writer's facts, the annual service and the chat card moves those rows to
counterfactual_rows. The two public charts have none in 2016-2040, so their
reports are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2U3BH1SxwAGyhhbe1
2026-11-24 17:14:37 +08:00
ClaudeandClaude Opus 5.5 04f9e20f92 feat(annual): saving a chart pre-computes the three report years' continuous motion in a low-priority background worker, so the first report no longer waits for it (BUG-2321)
One daemon thread, bounded queue (drop oldest), coalesced per chart, pauses
whenever the heavy-compute gate or a consult warm is busy, and scans each year
in 15-day sub-ranges merged exactly into the whole-year result. Same cache keys
as the report (verified: a report after prewarm scans nothing).
JYOTISH_ANNUAL_MOTION_PREWARM=0 turns it off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2U3BH1SxwAGyhhbe1
2026-11-24 17:14:37 +08:00
ClaudeandClaude Opus 5.5 9133e58e57 fix(chat): tidy answer layout — strip in one fixed slot reserved from the first frame, dates only in the strip, one footer line, legend on the heading row, round jump button, title checks, dark strip tones (BUG-2320)
Independent Staging Quality Gate / validate-frontend (push) Successful in 5m56s
Independent Staging Quality Gate / validate-python (push) Successful in 7m56s
Independent Staging Quality Gate / publish (push) Successful in 3m40s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2Vp62Ur3C7yRWQdSq
2026-11-24 16:00:23 +08:00
ClaudeandClaude Opus 5.5 f5aa7a52f4 docs(bug-history): BUG-2315 cold and warm full report timings
Independent Staging Quality Gate / validate-frontend (push) Successful in 5m59s
Independent Staging Quality Gate / validate-python (push) Successful in 8m18s
Independent Staging Quality Gate / publish (push) Successful in 3m50s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2U3BH1SxwAGyhhbe1
2026-11-24 15:44:33 +08:00
ClaudeandClaude Opus 5.5 f22db59dfc fix(annual): the shared annual pack never runs the motion scan — the audit row also read the motion request, so every annual-service and chat pack scanned a whole year (BUG-2315)
The motion inputs are stripped at the pack's entry; only the solar-return
field's tajika_motion keeps them for the report.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2U3BH1SxwAGyhhbe1
2026-11-24 15:44:33 +08:00
ClaudeandClaude Opus 5.5 40b01b82e6 feat(reading): the writer's annual facts carry each year's bounded motion summary — up to 20 dated contacts, sign changes and stations tied to the year's named yogas and lords — with the astrologer's boundary sentence (BUG-2318)
Fictional-chart facts grow 119,739 -> 126,181; budget unchanged at 140,000.
Test sessions keep the motion cache in a temporary directory.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2U3BH1SxwAGyhhbe1
2026-11-24 15:44:33 +08:00
ClaudeandClaude Opus 5.5 0ff2d1d395 feat(report): annual appendix chapter per year — range and method, the year's exact contacts, sign changes and stations in time order, and each named yoga's own contacts; Chinese and English (BUG-2317)
Lists in full the events of the year's named-yoga pairs and of the year lord
and Muntha lord; the Moon's and all other events are counted by kind.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2U3BH1SxwAGyhhbe1
2026-11-24 15:44:32 +08:00
ClaudeandClaude Opus 5.5 defa105774 feat(annual): every annual named-yoga row, helper and interferer rows included, carries its own pair's computed contacts and motion changes for that year (BUG-2316)
Ports the astrologer's _row_motion_evidence (upstream 58f37ee5b). Stored as
indexes into the year's event list, so rows do not repeat hundreds of events.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2U3BH1SxwAGyhhbe1
2026-11-24 15:44:32 +08:00
ClaudeandClaude Opus 5.5 9358cb01ff feat(annual): each report year computes its own continuous Tajika motion — exact contacts, ingresses and stations from this return to the next — cached per year and time-bounded (BUG-2315)
Ports the astrologer's transit_search.py verbatim (upstream 58f37ee5b), the
solar-return motion request and the annual condition status pack. The scan
runs only in the full-data report (report_render/annual_motion.py), never in
the chat annual card.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2U3BH1SxwAGyhhbe1
2026-11-24 15:44:32 +08:00