feat(compare-alert): failed 混合单某平台真技术失败被业务 headline 盖住时补判 T1 #222

Merged
guke merged 4 commits from feat-compare-alert-mixed-failure-criteria into main 2026-08-06 16:45:46 +08:00

4 Commits

Author SHA1 Message Date
guke 0255d129b1 Merge remote-tracking branch 'origin/main' into feat-compare-alert-mixed-failure-criteria 2026-08-06 16:40:25 +08:00
guke b3138ef6c3 feat(compare-alert): 所有报警带末帧「平台·环节·页面」(退出/失败前在哪屏)
给每条报警补末帧定位:trace_stuck.StuckPoint 加 detected_page、label() 带出页面;
read_stuck_points 复用同一次读顺带返回 last(末帧,帧数最多平台的末帧);last_step 带页面。
worker 里 cancelled 走耗时兜底(超阈值但没卡点,如秒退)时用 res.last 补末帧;卡死/失败经
label() 自动带页面。卡片列名「卡点」→「末帧」。页面暂用 pricebot detected_page 原始英文
(待看清线上枚举后再补中文映射)。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-06 16:39:15 +08:00
guke 4cc667f5be feat(compare-alert): 报警卡片摘要加「判据」说明(深度放弃带配置阈值 / 技术失败口径)
卡片摘要追加一行判据,让收报警的人一眼知道为什么报:深度放弃=耗时>{配置}s 或 步数>{配置}
(阈值取自 COMPARE_ALERT_CANCELLED_MS/STEP_THRESHOLD、随配置变);系统技术失败=无业务原因的
系统错 或 任一平台 status=failed;T2/T6 同理,只列当期出现的类型。追加进摘要 markdown、不新增
卡片元素(不打断 table 位置)。format_alert_card 加两个阈值参数(默认=config 默认,worker 传实值)。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-06 15:42:36 +08:00
guke 50ae83ee43 feat(compare-alert): failed 混合单某平台真技术失败被业务 headline 盖住时补判 T1
一条比价里若某平台是干净业务结局(京东 items_not_found),fail_reason 会被派生成它当
headline,盖住另一平台的真技术崩溃(淘宝 status=failed / 比价过程出错),报警只看这单一
fail_reason → 静默漏报。新增 _target_technical_failure_reason 扫 raw_payload.platform_results:
任一目标平台 status=failed 且 reason 非业务话术(biz_exclude 过滤打烊/未找到等误标)→ 补判 T1。
纯业务失败仍不误报。线上 trace 20260806_144544。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-06 15:42:36 +08:00