Files
Jyotisha/docs/tasks/PROGRESS-rectification-adopt-narration-fix-20260904.md
T
Jesse_Chen 13dded9fff
Independent Staging Quality Gate / validate (push) Failing after 9m46s
Independent Staging Quality Gate / publish (push) Has been skipped
fix(rectification): run adopt narration on the last discriminator click
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>
2026-09-04 14:59:15 +08:00

2.0 KiB
Raw Blame History

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 新增可选 decisionpersistApplied / 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 --noEmit0 错
  • npm run lint0 error74 warning(既有)
  • rectification-adopt-narration-20260904 10/10;与 answer-choice / collect-stall / provisional-adopt 合计 66/66
  • tests/rectification-*.test.ts tests/agentic-rectification-*.test.ts tests/birth-time-rectification-contract.test.ts871 pass / 0 fail(基线 869 + 本单 2 条诊断/超时测试)