Resolve citations using coalesced source ranges
This commit is contained in:
@@ -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 **25 outstanding catalog entries
|
||||
and nine resolved entries**. Repeated responsibility findings are
|
||||
The **45 original finding entries** reduce to **24 outstanding catalog entries
|
||||
and ten 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,8 +65,8 @@ 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-001, CAT-002, CAT-007, CAT-011, CAT-012, CAT-013, CAT-015, CAT-016, and
|
||||
CAT-034 are resolved;
|
||||
CAT-001, CAT-002, CAT-004, CAT-007, CAT-011, CAT-012, CAT-013, 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
|
||||
@@ -136,6 +136,9 @@ unnecessary transient allocation, not a proven permanent leak.
|
||||
|
||||
**Assessment:** Source-established algorithmic opportunity; original P2.
|
||||
|
||||
**Status:** Resolved. Position intervals are validated, sorted, and coalesced
|
||||
before only their union is visited, with literal source-order regression cases.
|
||||
|
||||
**Source:** [EFF-002](02-efficiency.md#eff-002--build-cited-text-from-coalesced-ranges-not-a-document-wide-bitmap).
|
||||
|
||||
`CitationResolver.CitedText` allocates document-sized buffers and scans every
|
||||
|
||||
@@ -235,6 +235,11 @@ concrete containers. No shared-array ban, JSON round trip, or option-copier merg
|
||||
|
||||
## Stage 5 — Resolve Sparse Citations From Coalesced Intervals
|
||||
|
||||
**Completed.** Citation resolution validates in input order, sorts and coalesces
|
||||
position intervals, and visits only selected units. Literal tests cover sparse,
|
||||
overlapping, disjoint, invalid, non-monotonic, and empty-text cases. The specified
|
||||
shared and validator tests pass; no performance timing claim or follow-up remains.
|
||||
|
||||
**Coverage:** CAT-004. **Prerequisites:** none.
|
||||
|
||||
Rewrite `dnd/shared/citations.go` as selected. Validate refs in input order before
|
||||
|
||||
Reference in New Issue
Block a user