State the rectification opening limit.
The fixed opening and the model brief now say the step does not guarantee a single minute, and an opening that skips that limit falls back. Assertion updates record old value, new value, and why. Ran the opening copy tests: 0 fail. tsc --noEmit exit 0. npm run lint 0 errors. Co-Authored-By: Grok (agent loop)
This commit is contained in:
co-authored by
Grok (agent loop)
parent
24d645ea48
commit
903d206f3b
@@ -0,0 +1,44 @@
|
||||
# 进度 · 上升交界预检 + 校正开场限度(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 文件没有改,版本不升。模型说明改在页面用的系统提示里;模型漏写限度时仍换回固定句。
|
||||
Reference in New Issue
Block a user