Reuse duplicate grouping for combat turns and spells
This commit is contained in:
@@ -116,9 +116,11 @@ 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.
|
||||
NPC and location occurrences, combat turns, and spell casts share
|
||||
[duplicate-position bookkeeping](../../internal/modules/dnd/shared/duplicates.go).
|
||||
Each family supplies identity and source-reference eligibility and owns its output
|
||||
and diagnostic mapping. Spells retain the original list when no duplicate is
|
||||
removed; item occurrences keep their bucket-plus-exact-equality check separately.
|
||||
|
||||
Guidance describes all currently detectable model-controlled defects using
|
||||
contextual names, response fields, and source ranges. It does not copy operator
|
||||
|
||||
@@ -487,10 +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.
|
||||
**Status:** Resolved. NPC/location occurrences, combat turns, and spell casts
|
||||
share pure position grouping while retaining family-owned identity, eligibility,
|
||||
output, and original-index diagnostics. Spell no-change and empty representations
|
||||
remain local; item occurrences deliberately retain their bucket-plus-exact-equality
|
||||
implementation. Independent normalizer and grouping tests pass.
|
||||
|
||||
**Assessment:** Pure shared-helper opportunity; original medium.
|
||||
|
||||
|
||||
@@ -802,6 +802,12 @@ Comment family-owned eligibility/mapping.
|
||||
|
||||
## Stage 29 — Reuse Grouping For Combat And Review Spells
|
||||
|
||||
**Completed.** Combat and spell duplicate grouping use the shared bookkeeping
|
||||
with family-owned keys and eligibility. Spell empty/no-change cases retain the
|
||||
original list; item occurrences deliberately keep bucket-plus-exact equality.
|
||||
Combat evidence/index ownership and spell no-change storage have regressions;
|
||||
the specified combat, spell, and item normalizer suites pass.
|
||||
|
||||
**Coverage:** CAT-021 completion. **Prerequisites:** Stage 28.
|
||||
|
||||
Migrate combat turns without identity/eligibility changes. Migrate spells only if
|
||||
|
||||
Reference in New Issue
Block a user