Compare commits

..

8 Commits

Author SHA1 Message Date
guke fbe2f15f59 Merge branch 'main' into feat-compare-alert-last-frame-dwell 2026-08-07 19:13:09 +08:00
guke 2e86d2ce27 test(compare-alert): 补 review 缺口——continue 分支回归 + <1s 边界
- read_stuck_points 最忙平台末帧损坏 → last fallthrough 到干净平台
  (重构最险分支的回归测试,原只在一次性验证脚本里)
- _fmt_last round 边界:500→<1s、999→停留1s
- continue 注释点明与旧版 _platform_stuck→None 等价

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-07 18:05:39 +08:00
guke 4e6f7b29d6 feat(compare-alert): 末帧列显「停留Xs」(dwell-only,不显总帧数)
failed 与 cancelled 兜底两条末帧路径用 _fmt_last 显示环节·页面+末段停留;
只带 dwell、不带总帧数,规避原注释担心的「总帧数配末段时长」误导;
缺 ts/时钟回退降级只显环节。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-07 17:49:35 +08:00
guke 37a95181e1 feat(compare-alert): read_stuck_points.last 附 dwell_ms
cancelled 兜底末帧拿到末段停留;循环改为每平台一次 _last_segment,
判卡死与末帧候选共用同一次末段扫描,零增量 IO。顺带删重构后
无人调用的 _platform_stuck(逻辑已被 read_stuck_points 内联)。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-07 17:47:05 +08:00
guke 5e85c0121f feat(compare-alert): last_step 附末段停留 dwell_ms
failed 末帧路径拿到「末帧所在屏停留」;frames 仍为总帧数、口径不变。
worker 调用同步传 max_tail(格式化留待接线)。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-07 17:43:47 +08:00
guke dafa0445e3 refactor(compare-alert): 抽 _last_segment、StuckPoint 加 dwell_ms 字段
末段扫描+时长算法抽成 _last_segment 供三处复用;StuckPoint 新增
dwell_ms(默认 None、承载末帧所在屏停留),T5 行为不变。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-07 17:41:32 +08:00
guke 0b9016ae5e docs(compare-alert): 末帧停留时长实现计划
5 个 TDD task:抽 _last_segment + StuckPoint.dwell_ms(重构)、
last_step 附 dwell、read_stuck.last 附 dwell、worker _fmt_last 接线、回归+lint。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-07 17:38:08 +08:00
guke 1c2189e02b docs(compare-alert): 末帧停留时长增强设计 spec
failed / cancelled 兜底两种末帧路径补「末帧所在屏停留 Xs」,
新增 StuckPoint.dwell_ms(与 stuck_ms 语义分离),dwell-only 显示
规避「总帧数配末段时长」误导;缺 ts/时钟回退降级只显环节。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-07 17:10:35 +08:00

Diff Content Not Available