Files
zheromiku fe7edea1a3
build / build (push) Successful in 2m18s
fix(reconciliation): 对账任务入队 id 超长导致每批 queue_unavailable
enqueueRun 用 "job-" + run_id 当 jobs.id,而 jobs.id 是 VARCHAR(36);run_id 本身
已是 36 字符(rec- + 32 位 hex),拼出 40 字符,INSERT 必然失败,批次在 claim 之后
立刻被记成 failed/queue_unavailable——候选库里 19:37 起所有批次都是这个状态,C-101
起的用例全部无法开始。

改为 job 自带 "job-"+32 位 hex 的 id(36 字符),幂等仍由唯一 idempotency_key
(reconciliation-run:<run_id>)保证。补单测:CreateRun 入队请求 id 必须正好 36 字符、
type/idempotency_key/payload 与 run 一致。

验证:go test ./internal/reconciliation/ 通过;make verify 17 项 = 16 success + identity skipped。
2026-12-01 19:47:00 +08:00
..
…