mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 20:42:43 +00:00
QA Specialist-H2 (v1.4.39): the original 90-day cap on the per-type live-fallback loop in `/api/analytics` silently nulled `summarize().avg30LastYear` (year-ago tile) on every fall-through path because the window stopped at day 90 and the year-ago aggregate reads days 365-395. Widened the cap to 425 days (365 + 30 for the year-ago bucket span + 30 buffer) so the year-over-year comparison tile stays populated on cold mounts. The slim slice and rollup-backed comprehensive aggregator already operate on tighter windows so this only affects the legacy live-fallback path the fast-path coverage gate misses. Adjusted the W-SINCE test that pinned the 90-day cap and updated the route's `meta.analytics.bp_aggregate.live_since` annotation rationale.