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

@@ -20,8 +20,8 @@ The [Core And Integration API Roadmap](../core-integration-api.md) established
the core/integration boundary. The reassessment below distinguishes its completed
work from the remaining audit remediation.
The **45 original finding entries** reduce to **30 outstanding catalog entries
and four resolved entries**. Repeated responsibility findings are
The **45 original finding entries** reduce to **28 outstanding catalog entries
and six resolved entries**. Repeated responsibility findings are
merged. Regression gaps are attached to the defects they protect rather than
counted as additional runtime bugs. In particular, TEST-001, TEST-002, and
TEST-004 each cover several distinct defects; TEST-003's native-fixture oracle
@@ -65,7 +65,7 @@ Original P2/P3 ratings and relative refactoring priorities are retained for
context; they are not one universal severity scale. No audit establishes a P1
incident or a measured end-to-end production speedup.
CAT-007, CAT-015, CAT-016, and CAT-034 are resolved; the other entries remain
CAT-001, CAT-007, CAT-011, CAT-015, CAT-016, and CAT-034 are resolved; the other entries remain
outstanding. The original reports and their baseline observations are historical.
"Refactoring" denotes a maintenance opportunity, not a confirmed runtime
failure. CAT-024 explicitly requires revisiting an existing evidence-convenience
@@ -88,6 +88,10 @@ any of those findings.
**Assessment:** Reproduced correctness defect; original P2.
**Status:** Resolved. Chunk planning uses overflow-safe capacity and endpoint
arithmetic; option-decoding and planning regressions cover maximum size and
ordinary overlap.
**Sources:** [Correctness / Finding 1](01-correctness.md#finding-1-a-valid-large-generic-chunk-size-causes-a-panic),
[TEST-001](08-testing.md#test-001--accepted-numeric-boundaries-lack-regression-cases).
@@ -248,6 +252,9 @@ Signal handling stays at the executable boundary; implementation remains pending
**Assessment:** Reproduced latent internal-API defect; original P3.
**Status:** Resolved. Context expansion is bounded by source distance before
arithmetic; regressions cover the maximum radius, cited flags, and material limit.
**Sources:** [Correctness / Finding 3](01-correctness.md#finding-3-context-radius-addition-can-overflow-and-omit-all-evidence),
[TEST-001](08-testing.md#test-001--accepted-numeric-boundaries-lack-regression-cases).