The engine has returned ashtakoota_36.additional_checks since 9bce1d6b1;
the golden fixture was never rewritten, so the snapshot test failed on
staging. Regenerated; the only change is the added key (CRLF kept).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp3RzgZVEpT1PXxkwHj
The synastry dossier and the chat table helper cut the engine label
「落陷取消(Neecha Bhanga)」 at its bracket and left a bare 「落陷取消」.
Both now give the owner's 11-23 wording, as the report and chat card do.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp3RzgZVEpT1PXxkwHj
Owner 2026-11-26 approved items 1-4 (not Rogagrastha, not M10). Frozen
jyotish_engine.py / yoga_engine.py / yoga_rules.json changed only for these.
Her texts are rewritten without book/author names or disclaimers; Nishkapata
keeps its plain meaning instead of a conduct gate that printed another rule's
sentence. A combust Budhaditya says Mercury is combust.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp3RzgZVEpT1PXxkwHj
Form location line, chart page birth chips/出生时区 and transit caption, and the
Chinese report's birth tables use one rule: +8 北京时间, +9 in a 1986-1991 summer
北京时间(夏令时), +6 at a Xinjiang place 新疆时间; elsewhere and English keep UTC.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2Vp62Ur3C7yRWQdSq
BUG-2392 writes formation_note_zh / formation_note_en on formed Raja rows
whose lords also rule 6, 8 or 12. The report now prints that note after the
status in the body yoga table, after the formation line on the yoga page,
and in the appendix table's formation cell. Also updates a stale assertion
from BUG-2367 (the PD-only cell in the house-lord column).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp3RzgZVEpT1PXxkwHj
Owner 2026-11-25: beta testers who report bugs get credits. A new additive
migration allows the ledger type admin_grant and adds admin_grant_credits
(billing.adjustments.write, verified actor, 1-10000 credits, reason required,
one ledger row + one audit row, idempotent by request id). The customer list
gets a 加积分 action showing the new balance; the user's ledger reads 赠送点数.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp3RzgZVEpT1PXxkwHj
Codes sent to addresses like x@qq.con bounced; the bounce rate rose to 21%,
far above the provider's risk line. The email field now offers the corrected
address inline, and the server refuses the four code-sending endpoints for
suffixes no mail domain uses, before a code is made.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp3RzgZVEpT1PXxkwHj
KP stays a required input: the KC promise row (houses and levels only) says whether
the matter is promised; the channel comes from the KP star-lord row and new keyed PC
rows (7th lord, planets in the 7th, A7, DK, Venus / 10th lord, planets in the 10th,
D10 10th and lagna lords, AmK / 2nd and 11th lords, planets in them, A2, A11), read
with the same house meanings, with a per-house agreement row. Writing rule: agreeing
houses lead, one-system houses are the second route, no event upgrade. The basis
drops the back-office phrase 来路那一层写得很具体.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2Vp62Ur3C7yRWQdSq
Career stage clean-up split sentences inside a bold numbered heading and
left a literal '** ' (item 二 lost its heading). Sentence units now keep
bold spans whole and never delete headings; lone ** at line edges is
removed; a deterministic final markdown pass balances **, drops emptied
bold and closes numbering gaps.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2Vp62Ur3C7yRWQdSq
Owner 2026-11-25 option A. Kind by the two exchanged houses (Phaladeepika ch.6:
28 Maha / 8 Khala / 30 Dainya). yoga_engine.py (frozen) edit approved by the
owner for exactly these three rules: parivartana_class condition, product
formation contracts looked up before hers, sign_exchange/house_class checks.
Chart page drops the plain exchange support card when a named one is formed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
- 2377 appendix yoga table: kind, formation, also-needs, condition and meaning source (book title only)
- 2378 Saham trace: A, B, C, A − B + C, arc test, +30°, final value
- 2379 daridra_2 「第二宫主落陷…」 no longer classified as Neecha Bhanga
- 2380 Neecha variant names on page titles; Raja add-on line
- 2381 Pancha Mahapurusha page agrees with its basis; degree, Moolatrikona, same-fact line
- 2382 no book/page "Source:" lines in the body Yoga Expression chapter
- 2383 yoga pages state participants' combustion, Shadbala, functional role
- 2384 unresolved-rule records stay backstage (packet only)
- 2385 Neecha verified state matches the row's own fallen planet
- 2386 no hedge line for uncomputed Neecha notes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp3RzgZVEpT1PXxkwHj
- 2364 KP sub-lord in the Nakshatra Reference: proportional, not equal ninths (upstream calc_sub_lord)
- 2365 birth-time sensitivity KP cusps: Placidus + Krishnamurti, same source as the formal KP table
- 2366 expression paths: D2/D11/D24/D4 house counted from the varga's own ascendant
- 2367 Bhavesh table: PD-only lord labelled, not "Yes", when the PD range is not stable
- 2368 KP cusp table: very strong significator is a lead, not a promise
- 2369 yoga wording: no blanket "cancellation not checked"; detector match is not "conditions hold"
- 2370 Neecha self-reference marked per condition
- 2371 reading guide: feedback only in rectification; all applicable systems, two dashas minimum
- 2372 audit table: progress/index rows are observation only
- 2373 Saptavargaja by chart
- 2374 Manahoo interferer never one of the pair (upstream 322e2f30)
- 2375 KP monthly table seeded under the KP profile (owner-approved frozen-file edit) + profile line
- 2376 annual continuous motion: full event list per year in the appendix (owner-approved)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp3RzgZVEpT1PXxkwHj
The relationship, career and money cards now carry the program's KP reading of the
domain cusp (sub lord promise and nature, its star lord's houses as the source /
channel / kind, A-D levels and node agency, meanings per question type) as keyed
KC rows; checklist and status rules no longer call KP optional; the areas row lists
the KP-named areas.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2Vp62Ur3C7yRWQdSq
A beta user on a computer could not find where to redeem a code, and hovering
the icons named nothing. The account menu now has its own 兑换码 row that opens
账户与点数 on its 兑换码 page with the box focused (desktop only); the balance
on the account row is its own button (opens 账户与点数, tooltip 点数与兑换码);
the desktop sidebar toggle and the collapsed rail's avatar are named on hover,
and the rail's screen-reader name is Chinese.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
Level-2 periods were scaled from the parent and all twelve were laid out, so a
12-year Sagittarius period held 214 years of sub-periods. Now per Valens: 360-day
release years, level 2 in months starting from the parent sign, cut at the parent
end, jump to the opposite sign once the twelve are used; Capricorn 27 years.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2Vp62Ur3C7yRWQdSq
Admin mutations check identity.users.role through
admin_verified_actor_email, but the console only wrote the RBAC tables,
so a new Owner could read every admin page and got 403 on creating codes.
A trigger now keeps identity.users.role in step with admin_users /
admin_user_roles in the same transaction (grant on role insert; remove
only when the admin user is revoked or deleted, so owner recovery still
finds identity admins), plus a one-time backfill that logs a count.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
- 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
- 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
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
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