The check read "already sent?" and recorded the send afterwards, so two overlapping checks could both notify. Claim the (goal, day) row first with ON CONFLICT DO NOTHING and release it if ntfy fails, so a later check retries. The handler now returns a typed result instead of a map[string]any, and shares one ntfy client. Fix two comments that still said nginx. Co-Authored-By: Claude Opus 5.5 <[email protected]>