merge: feat/persona-explainability → test(画像可解释性 + 历史联系最近一次 + ⑤g 未来回访排除闸)
三块内容,都在这个分支上做完并本地验过: 1. 画像可解释性(889dd6f0…3a85d4b1) · 水位对齐 fact 层 + 写入侧节流(修 ¥154,350 vs ¥195,750 那个漏算) · 到期改档精确调度(nextBoundaryAt),时间跨档能刷新但不靠全量扫 · 详情页说明收回 @pac/types 单一真理源 + 打通证据链 + 分组定序 + 圈人标签 hint 2. 历史联系「最近一次」(f634f274) · orchestrator 程序判定 isLatestPast,摘要开头必须交代最近一次 · prompt 加数据边界硬约束:源里只有标签、没有原话,没记的不许补 · 抽屉标「最近一次」/「未到期」;修 fallback 拿 items[0] 当最近一次的老 bug · 两处 orderBy 改 nulls:'last'(Postgres DESC 默认 NULLS FIRST 会让无日期记录冒充最新) 3. ⑤g 未来回访排除闸(5ed2e888) · 诊所已排未来回访 → 本轮不召,排到哪天挡到哪天,到期自愈 · 生产将挡下 30,426 条在池 plan(12.9%),其中 urgent 17,263 另含 eb4d01c6:.swcrc 的 exclude 是正则必须锚定(文件名含 dist 会被静默跳过)。 本地:477 单测通过 / service+web tsc 干净 / 真库跑引擎验过闸的两个方向。
Showing
This diff is collapsed.
Click to expand it.
apps/pac-service/tests/persona-diff.spec.ts
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.