13dded9fff
The early-exit reused the pre-click dossier, so the agent never ran on the common path. Use this-turn decision, log agent vs template outcome, and time out after 8s. Co-authored-by: Cursor <cursoragent@cursor.com>
2.0 KiB
2.0 KiB
PROGRESS · 采用旁白点选入口修复(2026-09-04)
工作树:.worktrees/rectification-adopt-narration-fix-20260904
分支:codex/rectification-adopt-narration-fix-20260904
基线:任务书写 0aaa0d70;本工作树从当时 origin/staging e18bd25b(修复单提交)拉出。
任务书:docs/tasks/TASK-rectification-adopt-narration-fix-20260904.md
未改 Python、未 bump Skill、未放宽采用门。未提交、未 push。
| 任务 | 状态 | BUG |
|---|---|---|
| 5.1 早退分支用本轮决策 | 完成 | BUG-521 |
| 5.2 提示词同口径、诊断字段、8s 超时 | 完成 | BUG-522 |
5.3 stopFactsFromDropped 婚恋标签 |
推迟 | — |
实现要点
persistNextInterviewAfterChoice新增可选decision。persistApplied/applyCollectFocusDenial/persistNextInterviewIfIdle都传入本轮决策。未传时走decideAfterInferenceChange。函数体内不再出现decideFromDossier(。adoptDeliveryFacts与模板兜底用dossierWithCurrentInference合成后的 receipt,活跃分数来自本轮decisionState。deliverAdoptNarration返回adopt_narration枚举并打console.info(无模型原文)。AbortSignal.any([request.signal, AbortSignal.timeout(8000)]);超时 / 抛错走template:model_error。- 提示词改为「不要出现『确认』『精确』这两个词」。校验器仍打回「这不是确认的分钟」。
偏离 / 推迟
- 5.3 按让步顺序推迟:
not_renderable仍可能被标成「婚恋题只覆盖窗口两端」。 - 意图分类器没有超时:既有缺口,本单不修,记在此处,不改
BLOCKED.md。
测试
tsc --noEmit:0 错npm run lint:0 error,74 warning(既有)rectification-adopt-narration-2026090410/10;与 answer-choice / collect-stall / provisional-adopt 合计 66/66tests/rectification-*.test.ts tests/agentic-rectification-*.test.ts tests/birth-time-rectification-contract.test.ts:871 pass / 0 fail(基线 869 + 本单 2 条诊断/超时测试)