You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
hardening: aggregateProjectsIntoDays can emit days outside the parsed range #1130
Found during #1127's root-cause work. A turn whose user message anchors before the parse range's start survives range slicing whole (parser keeps the original anchor when ALL calls are in range), so aggregateProjectsIntoDays emits a residue day the parse range never covered. Since #1129's guarded gap merge, this is non-load-bearing — the residue slice fails hasSliceData and cannot clobber anything — but any future consumer of aggregateDays output that assumes 'days ⊆ parse range' inherits the trap.
Options: an assertion/filter (daysInRange) at the gap call site, or re-anchoring whole-turn slices to their first in-range call. Low priority; document-or-guard, not urgent.
Release note for 0.9.21 cut: consider bumping DAILY_CACHE_VERSION 28→29 — the #1129 residue self-heal only reaches days inside the 7-day settle window, so v28 dev-build users with an older residue day never heal without a bump (v17-and-older users heal via version adoption regardless). One lossless full re-derive, absorbed by the progressive cold paint.
Activity
fix(daily-cache): ranged parses never write days outside their range