fix(sync): traceRawSourceTable 支持 union 回溯 — 修 refund_full 在 push/reparse 静默跳过
union-primary 资源(refund_full_rows ← union[status4, status3负额])此前回溯不到源表 (traceRawSourceTable 只认单 input/output),导致 push source=patient_settlement 时 refund_full assembler 不入选、reparse 也跳过 → **整单退费在这两条路径静默丢财务数据**。 修:union 各输入独立回溯,全部收敛到同一根表(两路都 → patient_settlement)才返回该根; 发散到多根则停在 union 输出(维持旧行为不误判)。export 供单测。 验证:108467 重推 patient_settlement → refund_full 落库(txn=1 新增,2 payment 幂等 dup); 单测 6 绿(union 收敛/发散/单链/route/lookup);全量 299 绿无回归。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Showing
Please
register
or
sign in
to comment