Skip to content

G15 plan-wizard insertedCount 语义修正 #102

Closed

Description

@FeatherHunter

任务

render/planPlate.ts:71 直接写 insertedCount: 0, dryRun: true,键名暗示可落库实际只校验;而 #84 把该页算"已有"。

验收

  • 要么改名/改文案(校验器),要么补真正的插入路径。
  • 与 47 页同质票的口径一致。

进度:100%(收尾完成,待 close)

  • 方案:改名+改文案(校验器,零落库诚实化),不补真插入(动迁移风险大)。
  • 变更(commit ad675bf,5 文件):PlanWizardView.insertedCount → validatedCount(输入计划含的会话数,未写库;终结恒 0 死度量);cmd_read.ts metrics 同名;HTML dryRun/预览插入 N → 纯校验/不写库/已校验 N 个会话;SKILL.md 同步;render-t41 加断言(validatedCount:1 且无 insertedCount)。
  • 口径:随 G12 写链落库断言+软删文案统一 #101 三档如实化(名实一致、零落库明示);fetch/plan.ts 真写路径 writePlan.insertedCount 未动(名实本就相符)。
  • 证据:pnpm --filter skill-calorie build exit 0;包全量 node --test 177/177;证据脚本 .scratch/t102-evidence.mjs 直调同 dispatch:metrics {"errorCount":0,"warningCount":0,"validatedCount":1}、无 insertedCount 键、HTML 命中纯校验/不写库/已校验 1 个会话、坏计划 errorCount:2 照计。
  • 放行影响:#119 的 #102 前置侧可解(同文件 cmd_read.ts 串行约束解除待总控调度)。

Resolution(总控裁决落地,commit 2353975)

  • 改名理由(总控按核心目标裁决):validatedCount 仍有"已通过"歧义(过宣),最诚实口径=已检查≠已通过,故终名 checkedSessions。
  • 双审查 P1 闭环:蓝 94 放行(无 P0P1);红 82 有条件通过(无 P0),要求 validated 过宣→改 checkedSessions 或注明≠通过数+错误态区分——已全部落地:接口注释"≠通过数:坏计划也计 N,通过与否看 errorCount";HTML 错误态「已检查 N 个会话(X硬止)」与首 KPI「有硬止」呼应;render-t41 断言坏计划 checkedSessions:1 且 HTML 命中 (\d+硬止)。
  • 47 个已有模板 HTML 同质改造(含 8 个子集补齐) #84 备注替代(不强改 CLOSED 票):47 个已有模板 HTML 同质改造(含 8 个子集补齐) #84 已 CLOSED 且票面无 wizard 行对照表结构;校验器备注记于此——calorie.view.plan-wizard=纯校验 dryRun(buildPlanWizardView → validatePlan,不写库;checkedSessions 为已检查计数≠通过数)+ SKILL.md 已同步同口径。
  • 变基提示:输出命名动态段与后缀复刻(M10 残项) #119 基于新键 checkedSessions 变基(validatedCount 已移除;wizard 路径从未返 insertedCount;fetch/plan.ts 真写路径 writePlan.insertedCount 未动)。
  • 变更(commit 2353975,5 文件):PlanWizardView.validatedCount → checkedSessions;cmd_read.ts metrics 同名;HTML 已校验 N 个会话 → 已检查 N 个会话(错误态追加 (X硬止));SKILL.md 同步;render-t41 更新断言+新增错误态断言。
  • 证据:pnpm --filter skill-calorie build exit 0;render-t41 10/10;包全量 node --test 177/177;证据脚本 .scratch/t102-evidence.mjs 直调同 dispatch:metrics {"errorCount":0,"warningCount":0,"checkedSessions":1}、无 insertedCount/validatedCount 键、HTML 命中纯校验/不写库/已检查 1 个会话、坏计划 errorCount:2 照计 checkedSessions:1 且 HTML「已检查 1 个会话(2硬止)」。

Activity

  1. self-assigned this
    on Sep 9, 2026
  2. FeatherHunter commented on Sep 9, 2026

    @FeatherHunter
    OwnerAuthor

    结论:按推荐方案落地(改名+改文案为校验器,不补真插入)。commit ad675bf;build exit 0;包全量 177/177;证据脚本 metrics/HTML 断言全绿。进度已写 95% 待总控确认,确认后由总控调度 close(#119 前置侧可解)。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

wayfinder:task

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions