fix(consult): pin daily entrypoint domains and sentence-filter thinking (BUG-612/613)
Homepage「深入看今日」was rewritten to natal 综合, then each compose slice burned its only step on a tool call, so the answer stayed empty. Pin the route theme, write the three daily sections with tools disabled, and filter thinking by sentence so English word-salad cannot leak. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
# PROGRESS · 「深入看今日」empty_answer + 思考区英文词渣(2026-09-09)
|
||||
|
||||
- 工作树:`.worktrees/consultation-daily-empty-answer-20260909`
|
||||
- 分支:`codex/consultation-daily-empty-answer-20260909`(track 当时的 `origin/staging` @ `48d2ff80`)
|
||||
- 基线:任务书 `docs/tasks/TASK-consultation-daily-empty-answer-20260909.md`
|
||||
- BUG:**BUG-612**、**BUG-613**
|
||||
- 未改计费、`AGENT_MAX_STEPS = 8`、`AGENT_TIMEOUT_MS = 110s`、Skill;未 commit / 未 push
|
||||
|
||||
## 做了什么
|
||||
|
||||
| 任务 | 状态 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| 4.1 入口钉死领域 | 完成 | `entrypoint` 为 `daily_starlanguage` / `birth_time_rectification` 时 `canonicalDomainPlan` 只执行路由 `theme`;模型改写记 `planOverrideIgnored` |
|
||||
| 4.3 分段禁用工具 + 空切片重试 | 完成 | `composeSection` 传 `toolChoice: "none"`;`composeByHeadings` 对无新正文的标题再写一次 `section-empty-retry` |
|
||||
| 4.2 今日三节写作计划 | 完成 | `dailyConsultationThinkingPlan()`:今日趋势 / 适合推进 / 需要避开 / 一个行动;id 不是 `close`,不会被拆成审计表+现代生活 |
|
||||
| 4.4 思考流按句过滤 | 完成 | `createPublicThinkingSanitizer`;事故英文 3–6 字符切开后无 ≥4 字母英文、无 `run-jyotish` |
|
||||
| 4.5 记录 | 完成 | BUG-612/613、CHANGELOG、本文件、走查清单;任务板改「待验收」。staging 已把 609~611 给 sync2 修复单,本单改用 612/613。 |
|
||||
|
||||
没有砍让步项。额外做了:`getJyotishAgent` 在今日入口换成 daily 标题规则,避免 `retryForAnswer` 仍按本命骨架写。
|
||||
|
||||
## 口径(与任务书一致)
|
||||
|
||||
- 普通问题仍允许模型传 `domains`。
|
||||
- 模型在入口请求里传了不同或非法领域:忽略,不抛、不扣步。
|
||||
- `planOverrideIgnored` 只在为真时出现在 receipt,既有 `deepEqual` 回执测试不用改。
|
||||
- 空回答仍走 `empty_answer`、不扣点。
|
||||
|
||||
## 偏离
|
||||
|
||||
1. **路由里用 `consultEntrypoint` 闭包变量,而不是在嵌套函数里读 `parsed.data.entrypoint`。** `runAgenticConsultation` 是内嵌函数,TS 不把外层 `safeParse` 的收窄传进去。取值仍来自同一份请求。
|
||||
2. **无终止符的英文思考若后面直接接中文句,按中文句起点切开,英文前缀丢掉。** 任务书只写了按句号切;不这样切,既有「The proposedKind…」+「先看事业宫的结构。」回归会把英文残词粘进中文。
|
||||
|
||||
## 测试数字
|
||||
|
||||
```
|
||||
cd frontend
|
||||
./node_modules/.bin/tsc --noEmit
|
||||
./node_modules/.bin/tsx --test \
|
||||
tests/consultation-agentic-runtime.test.ts \
|
||||
tests/consultation-thinking-plan.test.ts \
|
||||
tests/consultation-workflow-contract.test.ts \
|
||||
tests/public-thinking.test.ts \
|
||||
tests/consultation-entrypoint.test.ts
|
||||
```
|
||||
|
||||
119/119 通过。另跑 `application-billing-contract` 与 `rectification-v9-stream` 思考通道,未红。未跑全量 `npm test`。
|
||||
|
||||
## 待验收
|
||||
|
||||
见 `docs/testing/consultation-daily-empty-answer-20260909.md`。需要 staging 部署本分支后,用已校验星盘账号从首页点「深入看今日」。
|
||||
@@ -86,7 +86,7 @@
|
||||
| `TASK-rectification-timeline-20260909.md` | — | 常驻吸顶时间轴:轴锁**当前**搜索窗口并随放宽缩放、时段/分钟两套标记、候选点二元编码不分置信度(BUG-560 blocked)、无 hover(BUG-575)、只读不可采用。实现用第三个 grid 行而非 `position: sticky`,`useConversationScrollAnchor` 一行不改;条高固定是正确性要求;吸顶条只留区间与宽度两个元素 | 已验收通过;宽度口径与空心点两处未通过→修复单 | `ce91a0d2` |
|
||||
| `TASK-rectification-timeline-fix-20260909.md` | `PROGRESS-rectification-timeline-fix-20260909.md` | 时间轴修复单:宽度读数改含两端分钟数(与 BUG-593 报告/卡片一致);标记改读推断层候选全集,被淘汰分钟留在原地变空心(客户端投影只含 active,DESIGN §10 描述在真实数据下画不出) | 已验收通过 | `92e3d5e7`(BUG-602~603) |
|
||||
| `TASK-rectification-conversation-economy-20260909.md` | `PROGRESS-rectification-conversation-economy-20260909.md` | 对照竞品后产品拍板三条:开场三句讲做法 + 一次收多件(推翻 opening brief「不要一次说完/不举例」与 SKILL L52);采集题「没有 / 记不清」按钮(不做示例骨架条);每轮只留一句(方法句进活动记录、点选旁白去领先落后、证据轮正文一句复述 + 服务端裁剪);Skill 10.0.19 | 已验收通过(2 条 P3 备注) | `aa7ccb30` + `1453fb16`(BUG-604~606,Skill 10.0.19) |
|
||||
| `TASK-consultation-daily-empty-answer-20260909.md` | `PROGRESS-consultation-daily-empty-answer-20260909.md` | 首页「深入看今日」计算完成却 `empty_answer`:入口定的 `timing` 被模型改成 `general`(`canonicalDomainPlan` 以模型为准),分段写作标题与今日格式错位,分段 `maxSteps=1` 且工具仍可调 → 模型在分段里再调工具、零正文;思考流按 chunk 过滤漏出缺词英文 | 待执行 | `codex/consultation-daily-empty-answer-20260909`(BUG-612~613;609~611 已被 sync2 修复单占用) |
|
||||
| `TASK-consultation-daily-empty-answer-20260909.md` | `PROGRESS-consultation-daily-empty-answer-20260909.md` | 首页「深入看今日」计算完成却 `empty_answer`:入口定的 `timing` 被模型改成 `general`(`canonicalDomainPlan` 以模型为准),分段写作标题与今日格式错位,分段 `maxSteps=1` 且工具仍可调 → 模型在分段里再调工具、零正文;思考流按 chunk 过滤漏出缺词英文 | 待验收 | `codex/consultation-daily-empty-answer-20260909`(BUG-612~613);走查 `docs/testing/consultation-daily-empty-answer-20260909.md` |
|
||||
| `TASK-rectification-compare-card-polish-20260909.md` | `PROGRESS-rectification-compare-card-polish-20260909.md` | 三列卡两列经历对照 0、三列无未来窗:引擎按引擎前三算 by_time,卡片按推断前三查表,键不匹配(BUG-614);交付旁白被 BUG-606 裁成一句(BUG-615);设计减法:相同性格句只写一次、经历对照说人话、删小标题、右栏本命宫位改北印星盘、换升时刻默认折叠 | 待执行 | `codex/rectification-compare-card-polish-20260909`(BUG-614~615) |
|
||||
|
||||
### 聊天主链路与首页
|
||||
|
||||
Reference in New Issue
Block a user