fix: feed current dasha into web marriage path and keep chart fences on failure (BUG-609, BUG-610, BUG-611)

Consultation was passing the birth mahadasha into event-class splits, so marriage hits stayed empty and timing still said 缔结. Read live MD/AD from dasha_sub_periods, derive activation copy from the split, and isolate fence failures so one bad varga cannot 500 the whole report.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Jesse_Chen
2026-09-09 16:58:46 +08:00
co-authored by Cursor
parent ee6173e887
commit 7d3bb0c5ed
15 changed files with 573 additions and 25 deletions
@@ -0,0 +1,38 @@
# PROGRESS · 上游同步二修复单(网页婚恋 dasha_info / 围栏 / 版本号,2026-09-09
- 工作树:`.worktrees/upstream-sync2-fix-20260909`
- 分支:`codex/upstream-sync2-fix-20260909`track `origin/staging`
- 基线:`origin/staging` @ `ee6173e8`(含任务书 `26ef220f`
- BUG**BUG-609 / 610 / 611**
- 未改 `.gitea/workflows/**`,不提升 `main`,未 push
## 做了什么
| 任务 | 状态 | 说明 |
| --- | --- | --- |
| 1 喂正确 MD/AD | 完成 | `_thematic_dasha_info` 先读 `dasha_sub_periods.current`,再回退 `vimshottari_analysis`;咨询路径把 `full_modules` 并进 chart。当前 AD 补进 timeline,避免 `Saturn-Unknown` |
| 2 婚恋 activation 句 | 完成 | `report_orchestrator``event_class_split` 出句;legal 才写「缔结」;romantic/formation 写「不等于领证」;无命中写「本期无婚恋事件类命中」。AD 缺失只写 MD |
| 3 围栏失败不打断 | 完成 | `_render_south_chart` 围栏 `try/except`,失败返回 SVGwarning 只带 chart id |
| 4 版本字符串 | 完成 | health / chart / fallback 三处读 `jyotish_vedic.__version__` |
| 5 记录 | 完成 | BUG-609/610/611、CHANGELOG、本文件、走查清单补 MD/AD 一致 |
`scripts/jyotish_api_server.py` `wc -l` = 11313(基线 11300,净增 13,上限 15)。前端未改。
## 测试
| 项 | 结果 |
| --- | --- |
| `tests/test_thematic_dasha_info_source.py` | 绿 |
| `tests/test_report_orchestrator_marriage_timing.py` | 绿 |
| `tests/test_relationship_event_class_evidence.py` | 绿(含 1990 虚构咨询形黄金件) |
| `tests/test_report_chart_block.py` | 绿(含中文上升名保留 SVG) |
| `tests/test_api_server_security.py::test_health_endpoint_exposes_runtime_accuracy_metadata` | 绿 |
| `tests/test_api_server_growth_contract.py` | 绿 |
| `tests/test_consultation_workflow_domains.py` | 绿 |
| in-process 咨询形 thematic `theme=marriage` | `Romantic-activation` hits `5L_dasha``Relationship-formation` hits `7L_dasha``dasha_period=Saturn-Jupiter`activation 为「不等于领证」 |
虚构盘说明:Leo 上升,5L=Jupiter7L=Saturn,月亮在 7 宫;当前 Saturn MD / Jupiter AD,所以 5L 与 7L 都会命中。未换出生。
## 偏离
没有砍让步项。时间轴原先只有 MD 行、AD 为 `Unknown`;为满足「不再含 Unknown」且与当前小运一致,把 `dasha_sub_periods.current` 的 AD 填回对应 MD 行。没有从 `dasha.periods` 手算日期。
+1 -1
View File
@@ -151,7 +151,7 @@
| `TASK-upstream-sync-20260903.md` | `PROGRESS-upstream-sync-20260903.md`、`PROGRESS-upstream-capabilities-20260903.md` | 上游快照推进到 `a6f47abd`、引擎三方合并、health 三窗 / VedAstro REST 桥 / 专业报告导出 / 新字段接聊天与报告 / 校正解冻三项 | 已验收 | 0/1/2/4/6`45d13258`、`f2241463`、`734d2059`3/5/7`c2f23131``6063c1f7`BUG-514)。staging 已部署 `6063c1f7`。修复单 `4ee79210` 已验收 |
| `TASK-upstream-sync-fix-20260903.md` | `PROGRESS-upstream-sync-fix-20260903.md` | 非原生主题恢复 `degraded`、finance Yogi/D11/confidence cap、模板注册表引用、VedAstro/MCP finance 路由与 quick CORE 扩列 | 已验收 | `4ee79210`BUG-515);staging health 已到该 SHA;十主题 e2e 合同全对,Python 红 90→69 无新增 |
| `TASK-upstream-sync2-20260909.md` | `PROGRESS-upstream-sync2-20260909.md` | 上游活跃分支 `b9a0ef8f`(未进 main):婚恋三层触发模型(punarphoo / event_class_split 进证据链)+ 十套条件大运接 full reading 与长报告时间系统表;快照锁推进;Skill 6.9.16;不取 shadbala profile / PL9 用户版 / 校正泄漏项 | 已验收(04ad3325):定向 176 通过、quick 门 708/1 env 失败、pl9 时间系统表 5+10 行;1 P1(网页咨询路径 `dasha_info` 无 MD/AD,事件类拆分空转)→ 修复单 `TASK-upstream-sync2-fix-20260909.md` | 分支 `codex/upstream-sync2-20260909`BUG-608 |
| `TASK-upstream-sync2-fix-20260909.md` | | 修复单:`_thematic_dasha_info` 改读 `dasha_sub_periods.current`、婚恋 activation 句按事件类出、`_render_south_chart` 围栏失败不打断报告、health 版本读 `__version__` | 待领取 | 分支 `codex/upstream-sync2-fix-20260909`BUG-609611 |
| `TASK-upstream-sync2-fix-20260909.md` | `PROGRESS-upstream-sync2-fix-20260909.md` | 修复单:`_thematic_dasha_info` 改读 `dasha_sub_periods.current`、婚恋 activation 句按事件类出、`_render_south_chart` 围栏失败不打断报告、health 版本读 `__version__` | 待验收 | 分支 `codex/upstream-sync2-fix-20260909`BUG-609611 |
## 命名与归档