Repository navigation
fix(daily-cache): ranged parses never write days outside their range - #1131
Merged
Merged
Conversation
A turn anchored before the range start survives range slicing whole, so the aggregator can emit a residue day the parse never covered (#1130, found in #1127's root-cause work). The merge guards already defuse the overwrite; this stops the residue from reaching durable history at all. Applied at both ranged call sites (re-derive and gap); the aggregator and slicer semantics are untouched — whole-corpus callers still aggregate undated parses freely.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1130 part 1 (part 2 — the cache-version bump — already shipped via #1118's v29). A midnight-straddling turn survives range slicing with its original anchor, so
aggregateProjectsIntoDayscan emit a residue day outside the parsed range; #1129's merge guards defuse the overwrite, but the residue should never reach durable history at all.daysInRangefilters at both ranged call sites (re-derive + gap); aggregator and slicer untouched — whole-corpus callers unaffected. New test: a gap over D+1 with a straddler anchored on D writes nothing to D (persisted entry compares equal before/after hydration). Implementation by Kimi Code from the diagnosis spec; suite 3,286 green + tsc clean re-run by maintainer.