The Chinese full-data body prints karaka names with parentheses after the glued-phrase pass. The BPHS order test still expected the KARAKA_CN literals and failed the full pytest run. Expect translate_zh_glued_phrases of KARAKA_CN instead of editing KARAKA_CN. Pytest of the karaka file, the six report contract files, and privacy markers: 154 passed. tsc exit 0. lint 0 errors, 125 warnings. Co-Authored-By: Grok (agent loop)
4.8 KiB
4.8 KiB
PROGRESS · 报告翻译缺口 · 2026-10-13
任务书:docs/tasks/TASK-report-translation-gaps-20261013.md。Issue #53。执行分支 codex/report-translation-gaps-20261013,基于当时的 origin/staging 05f880053(任务书基线 941b06c19 的后代)。D1、D2 按任务书推荐执行:图盘并入正文,同位列写「是 / 否」。不需要另请拍板。
状态一览
| 任务 | 状态 | 说明 |
|---|---|---|
| T1 正文图盘 | 完成 | 有星座可画的盘各一张北印度图,编号不重复;去掉重复的九分盘和画不出的空宫位标题 |
| T2 中文残留 | 完成 | 虚构日盘、虚构夜盘、公开名人盘(爱因斯坦)粘连 0、功能词 0。基线是粘连 14、功能词 218。未让步 |
| T3 上升行 | 完成 | 位置表首行是上升;主星表尊贵状态「不适用」 |
| T4 同位列 | 完成 | D9 写「是 / 否」,表头仍是「同位」;非 D9 无此列 |
| T5 记录 | 完成 | BUG-1312~1315、本文件、CHANGELOG。真机清单在基线上已有,步骤与实现一致,未改写 |
偏离
- 上升行的逆行、速度,任务书写横杠。完整数据版原有清理会把单独的横杠格改成「未列」(英文 not listed),与其它空格相同。主星表相邻两个空格里,后一格仍留下一条横杠。尊贵状态仍是「不适用」。测试不把那条横杠当成必须出现。
next build与首屏 gzip 未跑。任务书 §8 与执行提示把全量前端测试和 Python 快速门留给验收侧;本轮自测不含这两项,不写成通过。test:db未跑:没有改数据库。- 真机清单
docs/testing/report-translation-gaps-20261013.md已在分支基线上,八步与当前行为一致,本轮没有改它,也没有往BLOCKED.md加浏览器项。
自测
| 检查 | 命令 | 结果 |
|---|---|---|
| 类型 | frontend\node_modules\.bin\tsc --noEmit -p frontend |
退出码 0 |
| 规范 | 在 frontend 下 npm run lint |
退出码 0;0 error,125 条既有 warning |
| 改到的前端测试 | node node_modules/tsx/dist/cli.mjs --test tests/chart-varga-table.test.tsx tests/chart-page-hook.test.ts tests/report-calculation-charts.test.tsx |
39 通过,0 失败,0 取消 |
| 图盘 / 上升 / 残留 | .venv\Scripts\python -m pytest tests/test_report_chart_blank_columns.py -q --tb=line |
16 通过,退出码 0 |
| 英文版、附录、读者版、星盘表合同、完整数据修复、图盘围栏 | .venv\Scripts\python -m pytest tests/test_report_english_edition.py tests/test_reader_appendix_language.py tests/test_reader_appendix_shared_rules.py tests/test_report_reader_main.py tests/test_chart_page_vedic_tables_contract.py tests/test_report_full_data_fix.py tests/test_report_chart_block.py -q --tb=line |
88 通过,退出码 0 |
| 隐私标记 | .venv\Scripts\python -m pytest tests/test_repo_privacy_markers.py -q --tb=line |
63 通过,退出码 0 |
未跑:前端全量 npm test、Python 快速门、npm run test:db、next build。
第 1 次打回(2026-10-13)
修复单:docs/tasks/TASK-report-translation-gaps-fix-20261013.md。报告四项本身不改。
- 修复单要求变基到当时的最新
origin/staging(d79f42b04ba225e5be39d8567a7fdd38223e19fe)。本地变基后的文件内容与现在相同,但这台机器不允许改写已经推送过的分支。因此改为把这份 staging 合并进本分支:测试版是本分支的祖先,推送不用改写历史。报告生成和星位中文原名没有再动。 - 只改
tests/test_chara_karaka_8_bphs_order.py里报告星位表那一条。期望值改成translate_zh_glued_phrases(KARAKA_CN[role]),也就是「灵魂星(AK)」这一类。scripts/jaimini.py的KARAKA_CN没改。 - 检索
tests与frontend/tests:按KARAKA_CN原字面值断言完整数据版报告正文的,只有这一条。frontend/tests/fixtures/report-reader-main-fictional-zh-pair.json未改。咨询金样和旧阅读版夹具里的「灵魂星AK」不是这份报告正文,未改。 tests/test_prashna_sphuta_review_result_validator.py里基线已有的失败未动。
| 检查 | 命令 | 结果 |
|---|---|---|
| 星位表、§8 六个文件、隐私标记 | .venv\Scripts\python -m pytest tests/test_chara_karaka_8_bphs_order.py tests/test_report_chart_blank_columns.py tests/test_report_english_edition.py tests/test_reader_appendix_language.py tests/test_reader_appendix_shared_rules.py tests/test_report_reader_main.py tests/test_chart_page_vedic_tables_contract.py tests/test_repo_privacy_markers.py -q --tb=line |
154 通过,退出码 0 |
| 类型检查 | frontend\node_modules\.bin\tsc --noEmit -p frontend |
退出码 0 |
| 前端 lint | npm run lint --prefix frontend |
0 error,125 warning |
未跑:前端全量 npm test、Python 快速门、npm run test:db(本轮没动数据库)、next build。