mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 13:22:14 +00:00
The native WHOOP recovery and the computed proxy stamp the same night on opposite clocks: WHOOP files the wake-morning instant (day D), the proxy files noon-UTC of the day that ended (day D-1). Bucketing raw measuredAt by calendar day leaves both alive as two competing recovery days. Bucket each source by the user's local wake-day instead — shifting the proxy's day-that-ended stamp forward one day to meet WHOOP's wake-morning stamp — so a single night collapses to one canonical row while distinct nights stay separate. Resolve the coach-nudge recovery trend and the coach-snapshot dedup through the same path so no surface blends the two series or drops a genuine native value on a numeric tie.