Jesse_Chen and Claude Opus 5
63c419f375
perf(consultation): 健康探测加 TTL、yoga 表达式只编译一次
...
Independent Staging Quality Gate / validate (push) Canceled after 27s
Independent Staging Quality Gate / publish (push) Canceled after 0s
BUG-734: probe_official_rest_health 不是 ping —— 它把一份虚构 smoke 排盘
POST 给官方 HoroscopePredictions(实测单次 1,034 ms),还经 call() 吃掉对方
每分钟 5 个限流令牌之一,而结论零 TTL。连续 6 轮前台请求下,第 6 次探测会被
本地限流器挡下、反过来报出假的 official_blocked,真正的业务调用还要和它抢令牌。
加进程级 TTL 缓存(成功 60 s / 失败 10 s,配置变即失效,缓存键只记 key 配没配
的布尔)。force_refresh 默认 True:诊断端点调的是裸 gateway_status() 且该文件
本轮不得改,默认实时才不会让运维看到旧结论;run_gateway_packet 显式走 False。
探测在锁外执行。6 轮实测:探测 6→1、握手 5→1、限流令牌 6→1。
连接复用(任务书 6.2)按让步顺序砍掉:实测 urllib.request 没有连接池,模块级
共享 opener 在 6 次请求下仍开 6 条 TCP 连接,按任务书写法只能骗过「同一个
opener 实例」的断言而省不掉任何握手。另立单。
BUG-735: yoga_engine._eval_custom 对静态规则表的表达式每请求重新编译。实测每次
检测 386 次源码编译(182 次 eval 字符串 + 204 次 ast.parse/compile)。拆出
_build_custom_exec_globals(每次新建,绑定当前盘 ctx)与 lru_cache 的
_compiled_eval_code / _compiled_exec_code,只缓存 code object,绝不缓存求值
结果。求值语义逐条对齐改前。第二次检测起编译 0 次,单次 27.4 ms → 3.3 ms。
等价用同进程差分(BUG-733 的做法):192 条去重表达式 × 3 张公开虚构示例盘,
与逐字复刻的改前实现同值,另有反向验证证明差分非恒真。
未改 scripts/jyotish_api_server.py。既有断言一条未改。新增 23 条测试。
快速门唯一红的 test_chat_page_uses_authenticated_cloud_persistence 经干净
origin/staging 检出复跑确认为基线红,记入 BLOCKED.md BLK-002,不顺手修。
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
Claude-Session: https://claude.ai/code/session_01JUei7K13cYxLHE3Axe4A45
2026-09-16 02:01:33 +00:00
jesse-ux
6b3248bf53
fix(vedastro): pin SDK at install and cap free-tier wait
...
Independent Staging Quality Gate / validate (push) Successful in 9m36s
Independent Staging Quality Gate / publish (push) Successful in 18m18s
Image build patches vedastro.check_for_update to a no-op after pip install so import cannot hit pypi or upgrade the pin. Free-tier queue waits are capped to VEDASTRO_TIMEOUT_SECONDS and fail fast as free_tier_rate_limited. Gateway status exposes runtime mode as booleans without secrets. BUG-719 resolved; BUG-720 stays investigating until production env is filled in.
2026-09-16 00:25:15 +08:00
Jesse_Chen and Cursor
45d132588f
feat(upstream): snapshot a6f47abd, REST VedAstro path, and 116-technique truth layer
...
Advance the one-way import to git commit a6f47abd with consultation keypath golden, switch official VedAstro comparison to the REST Calculate bridge, and receive the 25 new registry entries behind research_only_blocked.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-03 17:35:26 +08:00
Jesse_Chen
10724e9dab
fix: request official VedAstro evidence in gateway
Staging Backend Quality Gate / validate (push) Successful in 11m17s
Staging Backend Quality Gate / publish (push) Successful in 6m26s
2026-08-10 20:17:35 +08:00
732642856 and GitHub
4ceb3a5157
feat: enforce commercial rectification evidence contracts
...
* feat: enforce precise timing output contract
* fix: recognize package imports in fragment audit
* test: make workflow stream contract formatting-independent
* fix: preserve VedAstro evidence across async workflows
* feat: enforce commercial technique truth contract
* feat: add rectification technique receipt
* feat: extend rectification event evidence
* feat: score rectification arudha evidence
* feat: gate high rigor rectification confirmation
* feat: add controlled transit to rectification
* feat: include d11 in rectification finance scoring
* feat: add ashtakavarga rectification auxiliary
* feat: show rectification technique receipt
* feat: use verified shadbala components in rectification
* fix: trace transitive script references in fragment audit
* feat: run request-level rectification parity packet
2026-07-19 22:23:29 +08:00
732642856
f6fd53cca6
feat: invoke VedAstro for chart and rectification
2026-07-18 04:15:19 +08:00
732642856
9ae7c69cc7
fix: archive official VedAstro snapshot raw
2026-07-17 16:40:24 +08:00
732642856
fa434fa7c5
feat: harden VedAstro parity evidence
2026-07-16 23:29:48 +08:00
732642856
27aa2db40c
fix: require VedAstro raw response for official closure
2026-07-08 23:10:20 +08:00
732642856
21565dc42f
feat: expose VedAstro official readiness in gateway
2026-07-08 22:13:05 +08:00
732642856
09dcfb9bcc
feat: list VedAstro official raw archives
2026-07-08 20:35:42 +08:00
732642856
99d00c4124
feat: archive VedAstro official raw responses
2026-07-08 20:06:06 +08:00
732642856
dcdd30709a
feat: add VedAstro gateway job worker
2026-07-08 19:21:34 +08:00
732642856
92358f2645
feat: add VedAstro gateway polling queue
2026-07-08 19:08:48 +08:00
732642856
dd1a792256
Add VedAstro gateway run packet
2026-07-02 23:43:19 +08:00
732642856
dc5e164ef9
Add VedAstro gateway status contract
2026-07-02 23:41:49 +08:00