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
Commit 3d3d67b
Browse filesBrowse the repository at this point in the historyBrowse files
feat(pass2): share year-aligned window segments across queries (Q60)
Pass 2's window-composition rule gains shared segments: approximate
single-estimate targets over windows of one scan (same estimate up to
accuracy, same grouping, no filters) share one summary per segment of a
grid whose width is the gcd of every window's lookback and offset. Each
query merges the segments its range covers; composition builds identical
segments, which the identical-expression rule merges. Merging disjoint
KLLs is exact, so each segment is sized for the strictest consumer and no
accuracy is split.
Only the all-shared form is offered (Q62), as its own Stage 1 variant
(Sharing::WindowSegments, "· shared segments") in which each grouped
target has the segment form as its only alternative. A group is skipped
when its windows are identical, the union has more than MAX_PANES
segments, or its queries recur at different cadences. Example 3a gets one
candidate with five 1-year KLL segments; 4a, repeated monthly, can also
maintain them at ingestion time (Q61).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
assert_eq!(sizes.len(),1,"one ε, one KLL size: {sizes:?}");
159
159
}
160
160
161
-
/// The identical-expression rule shares only raw input (scan, range, shift), never a quantile or summary, and keeps the unshared variant.
161
+
/// The identical-expression rule shares only raw input (scan, range, shift), never a quantile or summary, and keeps the unshared variant. (The shared-segment candidate shares its segments; see below.)
0 commit comments