Size chunk range storage to the emitted windows

This commit is contained in:
2026-11-26 05:16:56 +00:00
parent b0210db974
commit f31b0f30a2
3 changed files with 39 additions and 3 deletions

View File

@@ -275,6 +275,14 @@ oracle is sufficient; no benchmark or framework is needed.
### ALG-003 — Chunk Range Capacity Can Scale With Source Size For One Range
**Status:** Completed. Range capacity now uses the first window plus quotient/
remainder arithmetic for uncovered units, so reservation follows emitted ranges
without overflowing addition. Literal high-overlap, exact/partial remaining-step,
ordinary overlap, and maximum-integer tests pass. The temporary diagnostic now
reserves one slot for each one-range case (4 and 40 source units); no permanent
capacity assertion was added. Final repository tests, vet, build, pipeline/chunker
race tests, and whitespace checks passed with all three remediations in place.
**Priority:** Low; avoidable space/zeroing cost for valid high-overlap settings.
Stage 1's overflow defect is fixed; this concerns the retained upper-bound capacity.