Share occurrence duplicate grouping bookkeeping
This commit is contained in:
@@ -116,6 +116,9 @@ and advisory responsibilities; [Configuration](../config.md#production-validator
|
||||
owns their order and replacement rules. Extraction containment requires the
|
||||
entire cited span inside the current chunk after ordinary reference validation.
|
||||
Scene descriptions instead require the exact one-scene identity/range.
|
||||
NPC and location occurrence normalizers share [duplicate-position bookkeeping](../../internal/modules/dnd/shared/duplicates.go);
|
||||
each family supplies exact identity and source-reference eligibility, clones its
|
||||
retained records, and maps positions back to original-input diagnostics.
|
||||
|
||||
Guidance describes all currently detectable model-controlled defects using
|
||||
contextual names, response fields, and source ranges. It does not copy operator
|
||||
|
||||
@@ -487,6 +487,11 @@ or move every family's checks without a demonstrated cross-stage need.
|
||||
|
||||
### CAT-021 — Exact-Duplicate Group Bookkeeping Is Reimplemented
|
||||
|
||||
**Progress:** NPC and location occurrence normalizers now share pure position
|
||||
grouping while retaining their own identity, eligibility, cloning, and original
|
||||
index diagnostics. Interleaved, invalid-reference, distinct-evidence, and
|
||||
permutation tests pass. Combat and the conditional spell review remain pending.
|
||||
|
||||
**Assessment:** Pure shared-helper opportunity; original medium.
|
||||
|
||||
**Source:** [EQ-002](10-equivalence.md#eq-002--exact-duplicate-collapse-repeats-stable-group-bookkeeping).
|
||||
|
||||
@@ -781,6 +781,12 @@ Update D&D family guidance.
|
||||
|
||||
## Stage 28 — Share NPC And Location Duplicate Bookkeeping
|
||||
|
||||
**Completed.** Shared grouping returns retained positions and duplicate groups
|
||||
in representative order; NPC and location families retain eligibility, identity,
|
||||
cloning, and original-index diagnostics. Independent tests cover interleaving,
|
||||
invalid references, distinct evidence, permutations, and ownership. The shared
|
||||
and both normalizer suites pass. Combat and spell review follow next.
|
||||
|
||||
**Coverage:** CAT-021 first callers. **Prerequisites:** preceding stage order.
|
||||
|
||||
Implement selected grouping helper and migrate NPC/location occurrences. Families
|
||||
|
||||
Reference in New Issue
Block a user