- BUG-2433: run-jyotish-consultation takes horizon_years (the writer's own
judgment); the program cuts the strip over those years (first year as
before, then one stretch per Vimshottari sub-period, dasha rules only),
names the section 「接下来N年」 and hands strip_heading to the writer.
- BUG-2434: in a time section, sub-headings and loose lines go back to the
body as markdown (one block per line); the strip footer keeps only the
turning-point sentence.
- BUG-2435: the session title call disables provider thinking; with
thinking on, its 30 tokens went to reasoning and the title stayed the raw
question.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2Vp62Ur3C7yRWQdSq
- western_chart "only" (the writer's structured declaration): the model view drops the timing claim card and its
evidence_index entries; the server card, the answer-side time strip and Indian / both-sides turns are unchanged.
Measured: tool result 163k -> 107k / 141k -> 85k chars, miss tokens -28k per answer, cost -24-30%.
- One price table (model-token-prices.ts, official DeepSeek page read 2026-11-27): hit 0.04 / miss 2 / out 8 CNY/M
for deepseek-flash, 0.30 / 9 / 27 for deepseek-v4-pro. Chat settlement prices the provider's cache-hit tokens at the
hit price; the launch estimate uses the BUG-2424 measured hit share (79.6k of 151k).
- Fix the admin-clarity estimate assertion left stale by BUG-2424.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2Vp62Ur3C7yRWQdSq
- strict-workflow-router, interpretation status contract and working order §0.4 (same text every turn) move from the tool
result to the end of the natal system prompt (<jyotish-method-every-turn>); the tool result names them in
methodology.in_system_prompt; plan, delivery record and section count unchanged. About 7,300 fewer full-price
input tokens per first answer.
- The fact-guard rewrite and the missing-section continuation run with thinking on like the answer step: the provider
keeps a separate prompt and cache per thinking mode, so the ~36k-token resend hit 384 tokens. Length continuation
keeps thinking off.
- Backtest manifests record each request's provider usage; launch chat cost estimate follows the new measurement.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2Vp62Ur3C7yRWQdSq
The answer-clock truncation case raced a real 250 ms clock against the
first streamed sentence; on a loaded CI runner the clock passed first and
the run correctly became empty_answer. Tests now get the run clock's
deadlines as controllers (manual-deadlines-test-support.ts) and fire them
at a fixed point; the fake models can hold a stream (holdAt/release).
Same treatment for the other sleep/ms-gap clock cases in single-pass,
evidence-lookup, answer-clock and answer-truncation tests. No product
change. 50/50 under 6 concurrent + 1 CPU hog per core.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2Vp62Ur3C7yRWQdSq
Owner decision 2026-11-26: the product stops using VedAstro.
- scripts/vedastro_switch: VEDASTRO_ENABLED=1 turns it on; default off.
- Adapter, gateway, foreground session, consult gate, orchestrator,
user entrypoint, REST/MCP/SDK bridges answer "disabled" at once:
no network, no subprocess, no wait, no cache writes.
- vedastro_priority: a disabled snapshot leaves the local chart as is;
an official chart replaces it only when every chart/house answer
echoes the requested time, place and ayanamsa.
- Model input drops VedAstro audit rows, cross-check and must-use layer;
privacy policy drops the VedAstro data line.
- VEDASTRO_API_KEY optional and unused; env examples, deploy/README,
AGENTS.md updated. Frozen files untouched.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
- postgres 1g + oom_score_adj -500; api 1536m + init; web 768m; caddy 128m
(BUG-2416 hardening kept; web keeps its own SIGTERM handling)
- disk alert 80% -> 65%, below the 70% backup stop line
- ops-check: container_memory_high at 85% of the container's own limit
- after a verified production deploy: keep newest 5 pre-release recovery
points (+ baseline) and current/previous app images; dry-run supported
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
- deploy/backup-production-config.sh: env files, .monitor.env, state records,
compose/Caddyfile, Caddy data+config volumes and host units bundled, encrypted
to the owner's OpenPGP public key only, kept locally (14) and uploaded to OSS
production/config/ with the existing write-only key; --dry-run lists only.
- systemd unit + timer (05:05 Asia/Shanghai) and a root installer.
- sync-production-tree.sh no longer deletes /.monitor.env on every deploy.
- Restore drill on 83.229.126.99 (isolated temp Postgres, ~12 s, counts match),
config restore doc, capacity note (#355).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
The card's yoga row lists the met conditions with the participants' real placements and what is missing; the plain voice
asks for a synthesis of the met part with lords, dispositors, aspects, vargas and strength, support and pressure together,
and converging time windows; dismissive clauses (没有据此加强 / 强弱另评 / 还不能明确判断 / 不单独当成…依据) are dropped in
body and basis; the internal-word table and the 「解读依据」 line say 只对上一部分条件 / 盘上有这个组合. Reports unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2Vp62Ur3C7yRWQdSq
Mobile Safari and WeChat drop a download started after an await. The export
sheet now asks for its code on open; the click marks and downloads at once,
then confirms the code in the background (confirm_report_export: edition,
scope, exported_at). With no code at hand the file is exported unmarked, no
error toast, and the server logs one [ops-signal] export_unmarked line
(monitor threshold 3 per window, Feishu wording added).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2Vp62Ur3C7yRWQdSq
Owner 2026-11-26: a re-posted export should be traceable to the account that
exported it, invisibly. Before writing the .md file, the export sheet asks
POST /api/report-exports for a random 96-bit code; the server stores (code,
account, report, kind, format, edition, scope) in a new additive table
report_exports through a security-definer function (own reports only, 500 a
day). The code is written twice, independently: zero-width marks after the
heading markers of the title and up to three section headings (never in a
number, date, table, fence or the reading-basis part), and a whitespace-only
blank line after the title. The rendered page and visible text are unchanged.
The admin page 导出溯源 reads codes from pasted text or a chosen file in the
browser and looks them up (admin.customers.read; admin_runtime policy).
Privacy policy gains one line next to the BUG-2402 one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2Vp62Ur3C7yRWQdSq
- channel = sub lord S's own A–D from the planet interface (S.A = T's house, S.C = T's houses), not T's A–D; paths kept; bad types rejected
- nodes: own A–D plus sign-lord agent, no star-lord repeat, conjunction/aspect not computed, loop guard, one fact once
- writer declares event_classes / kp_only on run-jyotish-consultation; each class reads only its cusps and house groups
- 36-cell candidate meanings with combination rules; synthesis consistent / complementary / single-system, no vote
- verdict and strip stay definite; body tendency words allowed where supported; disclaimer list extended
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2Vp62Ur3C7yRWQdSq
Alert only, never blocks or slows a user. Counts reuse BUG-2402's
request_rate_counters (digests only, no question text); one [ops-signal]
line per account and window with a UUID-shaped HMAC account reference that
the admin customers search resolves. Monitor maps the three codes
(threshold 1, Chinese labels). Defaults: exports >20/h or >60/day,
same question on >5 profiles/h, >10 new profiles/h; env-configurable.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp2Vp62Ur3C7yRWQdSq
Same rule as BUG-2413: when a rule has no condition sentence, show the
yoga's plain effect, or 「—」. Tables already have an effect column, so a
condition cell that would only repeat it reads 「—」; yoga pages do not
print the effect as a 「组合」.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXp3RzgZVEpT1PXxkwHj
Staging gate 8768: the step-2 second round ran ahead of the BUG-1913/2008 basis
fixes, the BUG-1994 practice rebinding and the BUG-2183 salvage, so a model
rewrite replaced evidence those passes would have rebound (losing the
birth-time candidate note). The second round now runs only while a hard
failure remains that none of those passes can settle.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
Re-applied the 11-07 step-2 commit (3f5e44374) onto staging. Newer staging
behaviour wins: detailed repair notes and hints (BUG-1897), the full banned
verdict list (BUG-1912), program fixes and salvage (BUG-1913/1994/2183) and
draft checkpoints (BUG-2352) are kept. Added on top: a citable fact line on
every chart-contact row, up to two model rewrite rounds (the second only while
non-readability failures remain), v3 prompts that prefer fact lines as
evidence, a private_term hint, and the basis key check for the old structure.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
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