mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
A take whose slot the legacy resolver rejected fell back to a standalone insert that kept the client's scheduledFor, parking a second live row on an anchor the reminder projector had already minted — the partial unique index permits that because it spans source. Both intake write routes now probe the slot source-agnostically and converge onto the existing row before inserting, and a standalone insert anchors on the take time per the ad-hoc contract. The compliance rollup counts distinct slots instead of rows, which also corrects historical duplicates on the next recompute, and the slot dedup pass runs nightly instead of only at worker boot.