Fix overflow in chunk and reconciliation ranges

This commit is contained in:
2026-11-26 01:26:46 +00:00
parent cecd68f161
commit 4026e26e76
6 changed files with 77 additions and 10 deletions

View File

@@ -153,6 +153,12 @@ comparators for unproven inputs; canonical fast paths retain their existing prem
## Stage 1 — Fix Accepted Range Arithmetic
**Completed.** Chunk planning uses overflow-safe capacity and remaining-length
arithmetic; reconciliation bounds expansion by source distance. Regressions
reproduced both failures before the fixes and cover maximum values, overlap,
cited flags, and the material budget. The specified package tests pass. No
follow-up remains for this stage.
**Coverage:** CAT-001/CAT-011. **Prerequisites:** none.
Inspect generic `chunk/units/chunker.go` and reconciliation `preparation.go` plus