fix(rectification): narrate the credible range and stop scoring periods by length (BUG-569–570)
Choice copy was comparing the search window, so every answer said the range had not changed. Block-scan summed raw scores, so longer afternoon windows won before any evidence difference. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -8806,4 +8806,36 @@
|
||||
- 复发自:无
|
||||
- 修复版本:待合入 `origin/staging`(`codex/rectification-convergence-exit-fix-20260906`)
|
||||
|
||||
## BUG-569 | 答后旁白把搜索窗口当成可信区间,每题都说「范围没变」
|
||||
|
||||
- 状态:resolved
|
||||
- 首次发现:2026-09-07
|
||||
- 最近更新:2026-09-07
|
||||
- 影响面:`composeChoiceNarration`、`applyRectificationChoice`、`probe-explain.explainRangeChange`
|
||||
- 用户现象:顶部只读范围已经随答题收窄,助手旁白仍说「范围没变」。
|
||||
- 触发条件:点选区分卡 A/B/C,搜索窗口 `range_start/range_end` 不变,而 `credible_range` 变了。
|
||||
- 根因:`applyRectificationChoice` 把 `InferenceState.range_start/range_end`(开工搜索窗口)传给旁白。答题改的是 `credible_range`。直喂 `composeChoiceNarration` 的单测没走这条路径。
|
||||
- 修复:旁白改比 `previous.credible_range` 与 `applied.state.credible_range`。入参改名 `credibleBefore/credibleAfter`。任一为空则不说范围句。
|
||||
- 验证:`frontend/tests/rectification-answer-choice.test.ts`:搜索窗口固定、`credible_range` 收窄时旁白含「范围从 X 收到 Y」;`credible_range` 不变时仍说「范围没变」。源扫描锁定不再传 `range_start`。
|
||||
- 防复发:不得把 `range_start/range_end` 再传给答后范围句。新增端到端用例必须走 `applyRectificationChoice`,不能只直喂纯函数。
|
||||
- 相关记录:BUG-568
|
||||
- 复发自:过程解释层(`814c924e`)把搜索窗口误当可信区间
|
||||
- 修复版本:待合入 `origin/staging`(`codex/rectification-capability-fix-20260907`)
|
||||
|
||||
## BUG-570 | 时段支持度按段内原始分求和,长时段先天占优
|
||||
|
||||
- 状态:resolved
|
||||
- 首次发现:2026-09-07
|
||||
- 最近更新:2026-09-07
|
||||
- 影响面:`scripts/rectification/api_service.py::block_scan`
|
||||
- 用户现象:完全不清楚出生时间时,第一张时段卡下午段支持度偏高,即使各分钟分数相同。
|
||||
- 触发条件:`stage=block_scan`、10 分钟步长扫 24 小时。五段候选数 24/24/36/30/30。
|
||||
- 根因:`relative_support` 用段内 `sum(score)`。下午 36 个候选,清晨 24 个;引擎原始分底座远大于事件差,于是在没有证据差异时也是在比时段长度。
|
||||
- 修复:`raw_support = max(mean(score in block) − min(all scores), 0)`,再归一。全部为零时五段各 20%。不进采用门,不改分钟级 `_relative_support`。
|
||||
- 验证:`tests/test_rectification_v5_services.py`:144 行同分 → 五段各 20.0;只抬高清晨 → 清晨最高,下午不再因长度领先。`minute_step=1` 指纹用例未改。
|
||||
- 防复发:`block_scan` 不得再对段内原始分求和。分钟级 prior 仍走原来的正比例归一(BUG-560)。
|
||||
- 相关记录:BUG-560
|
||||
- 复发自:unknown-time `block_scan`(`814c924e`)按时段长度偏置
|
||||
- 修复版本:待合入 `origin/staging`(`codex/rectification-capability-fix-20260907`)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user