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
Member
No description provided.
guke added 4 commits 2026-08-06 16:43:44 +08:00
一条比价里若某平台是干净业务结局(京东 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>
卡片摘要追加一行判据,让收报警的人一眼知道为什么报:深度放弃=耗时>{配置}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>
给每条报警补末帧定位: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>
guke merged commit 51c08a8de7 into main 2026-08-06 16:45:46 +08:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: WonderableAI/shaguabijia-app-server#222