Remove unused policy metadata and helpers

This commit is contained in:
2026-11-26 03:11:54 +00:00
parent 753cd2081c
commit 9074f96b6e
56 changed files with 27 additions and 98 deletions

View File

@@ -665,6 +665,14 @@ assertions.
**Assessment:** Confirmed private dead metadata; original medium for clarity,
not runtime impact.
**Status:** Resolved. Removed the unused validator, correction, and scene
normalizer labels. The spell, combat-turn, enemy-event, item-occurrence,
NPC-occurrence, and location-occurrence normalization aliases and their private
strings were also removed: all are internal, have no callers or documented
consumer contract, and do not participate in cache or identity. Live domain
identity policy bytes, validator keys, reasons, schemas, and guidance remain.
Focused D&D tests and repository vet pass.
**Source:** [DEAD-002](12-deadcode.md#dead-002--obsolete-private-policy-labels-remain-disconnected).
Remove the 48 confirmed unused private constants: 44 deterministic-validator
@@ -674,16 +682,17 @@ domain identity constants, keys, reason codes, schemas, and guidance. In
particular, identity policy bytes affect durable IDs. Do not resurrect cache
fingerprints to justify unused labels.
The same finding identifies six exported `NormalizationPolicy` aliases for
separate consumer-contract review. Their absence of repository callers is not
enough to approve deletion. That conditional scope is not part of the confirmed
48-constant cleanup, and needs no absence/count change-detector test.
The separately reviewed internal aliases have the disposition recorded above;
no absence/count change-detector test was added.
### CAT-031 — Three Private Helpers Are Unused
**Assessment:** Confirmed dead declarations; original low; no runtime speedup
is implied by deleting code that already does not execute.
**Status:** Resolved. The three disconnected helpers were removed. The live
spell catalog copier and scoped reuse eligibility remain; focused tests and vet pass.
**Source:** [DEAD-001](12-deadcode.md#dead-001--three-private-helpers-have-no-references).
Delete config's `cloneStringMap`, pipeline's `laneReferencesReuseEligible`, and