- 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
Ports her yinduzhanxing 17a135457ec16b621f86dd57ba3926612ce1b9b8 (docs ee34700357): timing_evidence_packets.py
(new), kp_monthly_report_packet / theme_support / vimshottari / transits, kp_system, with her tests. The report path
(frozen engine, no timing systems supplied) keeps its earlier packet byte for byte; her profile and window run when
the caller supplies the periods it already computed (engine tool kp_timing_packet, cached per chart and window).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2Vp62Ur3C7yRWQdSq
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
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
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
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
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
Production 2-core host: adaptive packet scans measured 21-163 s cold, the web
side aborted at 8 s (BrokenPipe, 「排盘服务暂时没有响应」). The API's per-IP
limiter saw only the web container, so every user shared 120 calls a minute
(jyotish_api_429 on launch night). Frozen-file change limited to the limiter
default, owner-approved for production blockers.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
Owner 2026-11-23 overrides the BUG-2132 structure-only copy for this page: each card asks
e.g. 「工作上你更像哪一种?」, each side gets a short label and one or two tendency sentences
from the fixed tables in scripts/chart_choice/portraits.py (phrase table drafted by
jyotisha-ac), built only from the positions that differ; never two identical portraits.
Positions move to a folded 「依据」 as 「金星在第 10 宫(事业)」. Old lines without a
portrait still list their differences.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
B-S1: JSON rule rows count as 成立 / 留意 only when their own assessment is
formed_under_source; candidates (no reviewed source definition) stay hidden.
B-S2: 落陷取消 reads 「落陷,有没有缓解还没核实」 (verified: 「落陷(有缓解因素)」) in the
planet table, inspector, divisional table and yoga card. B-S3/B-S4: plain tooltips,
no BPHS / PVR / Goel titles, pages or links. B-S5: one line instead of the
method-dependence details. B-S6: divisional dignity in the D1 Chinese words.
B-S7: point names written once. B-S8: reader_condition_tidy_zh drops stray 「:」,
empty 「//」 and branch-status tails; 「日前行星 Yoga(精确)」 shows as 「太阳前一宫有星」.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
BUG-2234 (astrologer 2026-11-22 section 5, owner approved): migration reads houses
3/4/9/12, their lords, dasha and transits with D4 as a residence aid; D12 is the
parents chart. Education reads D1 houses 4/5/9 and their lords plus D24, not D5.
Registry, plan contract, evidence card spec, checklist, card facts, orchestrator
dispatch and the two _ROUTE_REQUIRED_LAYERS rows change together.
BUG-2235: the repair call added optional layers at about three times the main
answer's error rate and appended 「在这件事上是中性的」 lines on follow-ups. Now:
follow-ups get no layer gap-fill; first turns only get the domain's must-mention
layers that are truly absent, with full rows; added text that is neutral, not
asked for, or fails the fact guard / table checks is dropped; the writing rules
no longer ask for neutral lines and the clean-up removes them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2Vp62Ur3C7yRWQdSq
- BUG-2204: the English edition wrote the stored Chinese-first place label
verbatim, so every English edition was dropped as han_leak. English place
labels now translate country names, drop Han parentheticals and fall back
to coordinates for all-Chinese places.
- BUG-2215: the first-chart reveal's layout is inline, so the browser's
dialog padding cannot push 「跳过,查看星盘」 off screen before the lazy
stylesheet lands.
- BUG-2216: the admin create response fills kind, batch/campaign fields and
success text from what was sent.
- BUG-2217: reader-facing 「来源」 wording in data chapters and yoga status
words renamed (Python and the frontend mirror in sync).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
BUG-2179: the plan-timing clarify reply (~70 chars) went through the smalltalk
free completion, which the database caps at 20 chars, so every save failed;
it now settles through the feedback free completion (400 chars, still free).
BUG-2180: hospital/ID records saved as 「记录下来的」 store
birth_time_uncertainty_known=false (no range given); birthTimeUncertain no
longer reads that as 「说不准」.
BUG-2181: exact-day dates left in the eight body sections are shortened to the
month; data-chapter labels drop 「来源」; children-related yoga effects use the
「传统上与…有关」 form (topic map regenerated, topics unchanged).
BUG-2182: an explicit length request from the user overrides the default answer
shape in chat and in-report questions.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
The echo check guarded single-request cache reads only; the full-snapshot
semantic cache and the foreground snapshot cache still served records stored
before it, so two runs could see official data once and blocked data once
(gate 8375, test_consultation_native_layers). New cache key / schema v2.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8