Files
Jyotisha/docs/tasks/PROGRESS-lagna-precheck-20261027.md
T
jesse-uxandGrok (agent loop) 9ca933968c
Independent Staging Quality Gate / validate (push) Successful in 17m49s
Independent Staging Quality Gate / publish (push) Successful in 3m55s
Resume an unfinished rectification from the chart link.
The chart page now continues a case already open instead of showing a conflict. Someone else's chart no longer offers that link.

tsc exit 0. lint 0 errors, 122 warnings. Precheck and chart-page tests 56 pass. Opening tests 70 pass.

Co-Authored-By: Grok (agent loop)
2026-10-27 07:43:40 +08:00

65 lines
5.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 进度 · 上升交界预检 + 校正开场限度(2026-10-27)
分支 `codex/lagna-precheck-20261027`。基线 `origin/staging` `009456d8e1db5ac2b284809c6e3c9623f5842f42`。任务书 `docs/tasks/TASK-lagna-precheck-20261027.md`。issue #112 选 A:不做 6 条断语。
## 做了什么
- L1:按出生资料算出要扫描的时间窗。医院记录、家人钟点、大概时间用前后分钟,缺了就用表单默认值。时段含跨午夜。不知道时间则当天 00:00–23:59。已采用或已确认的校正时间、旧资料导入,不显示。超过 1441 分钟就截断。
- L2:星盘请求旁边同时问现有的上升分段接口,只算本命,3 秒超时。失败就不上这一句,星盘仍是成功。
- L3:出生资料下面一行小字。上升已经确定时没有链接。时段把「前后约 N 分钟」整句换成「按你给的时间段(开始–结束)」,不套两层。
- L4:校正开场固定句和给模型的说明都加上限度。模型没写「不保证 / 精确到某一分钟」和「不准」时,换回固定句。
## 命令
| 检查 | 命令 | 结果 |
| --- | --- | --- |
| 类型 | `frontend\node_modules\.bin\tsc --noEmit -p frontend` | 退出码 0 |
| 规范 | `frontend` 下 `npm run lint` | 0 error,122 warning(原有,本轮没有新增 error) |
| 时间窗与句子 | `node node_modules/tsx/dist/cli.mjs --test tests/lagna-precheck.test.ts` | 2 pass |
| 分段映射与失败不挡星盘 | 同上 `tests/lagna-precheck-chart.test.ts` | 3 pass |
| 页头四种文案 | 同上 `tests/chart-page-view.test.tsx` | 该文件与同批 67 条 pass,0 fail |
| 开场文案 | `rectification-opening-plain-20260926.test.ts`、`.tsx`、`rectification-nearest-boundary-opening-20261012.test.ts`、`agent-voice-copy-contract.test.ts`、`rectification-spoken-collect.test.ts`、`chat-session-url.test.ts` | pass,0 fail |
| 校正代理 | `tests/rectification-v9-agent.test.ts` | 37 pass,1 fail |
| 星盘路由 | `tests/chart-view-route.test.ts` | 与上一条同批,路由用例 pass |
| 全量 `npm test` | 未跑 | Windows 执行约定不跑全量,Claude 复验 |
| `next build` | 未跑 | 同上 |
| Python 快速门 | 未跑 | 本单不改 Python |
| `test:db` | 未跑 | 没动表,也没有用 Docker |
`rectification-v9-agent.test.ts` 的那一条失败是技能目录路径:`endsWith("skills/jyotish-birth-time-rectification/versions/10.0.33")`。Windows 路径用反斜杠,对不上正斜杠。本轮没有改技能包,也没有改这条断言。同文件里开场简报那条是通过的。
## 断言三栏
- 开场句数上限:原值最多 3 句;新值最多 5 句;原因是限度占两句,交界说明仍夹在目标和做法中间(BUG-1445)。
- 无窗口开场、产品开场的整句:原值两句;新值在原两句后加限度两句;原因同上。
- 产品开场句数:原值 2;新值 4;原因同上。
- 交界说明在场时的句数:原值 3;新值 5;原因同上。
- 开场简报:原值「正文两句大白话」「放在这两句之间」;新值「正文三层大白话」「放在前两句之间」,并要求保留「不保证」和「不准」;原因同上。
## 偏离
- 人物档案里的人不能进入「他自己的」校正。现有校正只读本人资料,任务书也不许改表。点链接后回到首页,沿用原来的提示「生时校正暂时只支持本人。」本人仍走现有的打开校正入口。
- 已采用(accepted)和已确认(confirmed)都不显示这一句。候选时间仍显示。
- 顶栏在这一句出现时会高于原来的 46px,没有这一句时仍是 46px。见 `frontend/DESIGN.md`。
- Skill 文件没有改,版本不升。模型说明改在页面用的系统提示里;模型漏写限度时仍换回固定句。
## 第 1 次打回(修复单 TASK-lagna-precheck-fix-20261027)
开工前 `git merge origin/staging`(当时 staging `efede95bf`)。同一分支继续。
- 星盘页的「出生时间校正」改走首页那条路:已经有没做完的校正就回到那一次,没有才新建。不再走「新开一次」,所以不会再报「仍有未完成的校正」。重新开始的按钮没动。
- 人物档案里别人的星盘:上升会换或不知道时间时,句子停在换座时刻或「上升星座定不下来。」,没有链接,也不写去做校正。本人不变。
| 检查 | 命令 | 结果 |
| --- | --- | --- |
| 类型 | `frontend\node_modules\.bin\tsc --noEmit -p frontend` | 退出码 0 |
| 规范 | `frontend` 下 `npm run lint` | 0 error,122 warning(原有,没有新增 error) |
| 时间窗、页头、链接 | `tests/lagna-precheck.test.ts`、`tests/lagna-precheck-chart.test.ts`、`tests/lagna-precheck-rectify-entry.test.tsx`、`tests/chart-page-view.test.tsx`、`tests/chat-session-url.test.ts` | 56 pass,0 fail |
| 校正开场三份和入口合同 | `rectification-opening-plain-20260926.test.ts`、同名 `.tsx`、`rectification-nearest-boundary-opening-20261012.test.ts`,加上表面合同四份 | 70 pass,0 fail |
| 全量 `npm test`、`next build` | 未跑 | 留给验收 |
| Python 快速门、`test:db` | 未跑 | 没改 Python,没改表 |
既有断言的通过值没有改。新增的是别人星盘没有链接,以及 `?rectify=1` 走 homepage。
BUG-1446、BUG-1447。真人清单第 5、6 条已按这次改法重写。