diff --git a/docs/roadmap/audit/catalog.md b/docs/roadmap/audit/catalog.md index 99364cd7..3236d507 100644 --- a/docs/roadmap/audit/catalog.md +++ b/docs/roadmap/audit/catalog.md @@ -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 diff --git a/docs/roadmap/implementation.md b/docs/roadmap/implementation.md index 21d66449..838d7453 100644 --- a/docs/roadmap/implementation.md +++ b/docs/roadmap/implementation.md @@ -925,6 +925,8 @@ relevant race checks and manual call-site comparison. ## Stage 35 — Remove Confirmed Dead Metadata And Helpers +**Completed.** + **Coverage:** CAT-030/CAT-031. **Prerequisites:** preceding moves complete. Recheck audit/12-deadcode.md against callers. Delete unused validator policy, diff --git a/internal/core/config/config.go b/internal/core/config/config.go index aee03287..442e42b3 100644 --- a/internal/core/config/config.go +++ b/internal/core/config/config.go @@ -44,17 +44,6 @@ func cloneConfig(in Config) Config { return out } -func cloneStringMap(in map[string]string) map[string]string { - if len(in) == 0 { - return nil - } - out := make(map[string]string, len(in)) - for key, value := range in { - out[key] = value - } - return out -} - func cloneValue[T any](value *T) *T { if value == nil { return nil diff --git a/internal/framework/pipeline/handoff.go b/internal/framework/pipeline/handoff.go index a6195cd2..5f90cb2b 100644 --- a/internal/framework/pipeline/handoff.go +++ b/internal/framework/pipeline/handoff.go @@ -47,12 +47,6 @@ func referenceTargetReuseEligible(input RunInput, target ResolvedReferenceTarget return !ok || eligible } -func laneReferencesReuseEligible(input RunInput, lane ResolvedArtifactLane) bool { - return referenceTargetReuseEligible(input, lane.ExtractReferences) && - referenceTargetReuseEligible(input, lane.MergeReferences) && - referenceTargetReuseEligible(input, lane.NormalizeReferences) -} - // buildStepReferenceReuseEligibility carries reuse eligibility alongside // generated references without exposing the internal lineage flag in artifact // payloads. A target becomes ineligible when any generated input is ineligible. diff --git a/internal/framework/pipeline/validator_registry.go b/internal/framework/pipeline/validator_registry.go index 9859af43..230b6156 100644 --- a/internal/framework/pipeline/validator_registry.go +++ b/internal/framework/pipeline/validator_registry.go @@ -4,7 +4,6 @@ import ( "context" "fmt" "reflect" - "sort" "strings" "gitea.maximumdirect.net/eric/notarius/internal/framework/contracts" @@ -339,10 +338,6 @@ func normalizeValidatorSpec(spec ValidatorSpec) (ValidatorSpec, error) { return normalized, nil } -func sortValidatorSpecs(specs []ValidatorSpec) { - sort.Slice(specs, func(i, j int) bool { return specs[i].Key < specs[j].Key }) -} - func cloneValidatorSpec(spec ValidatorSpec) ValidatorSpec { spec.Prompts = append([]string(nil), spec.Prompts...) return spec diff --git a/internal/modules/dnd/normalize/combatturns/normalizer.go b/internal/modules/dnd/normalize/combatturns/normalizer.go index 53bbc3ba..4d308cbc 100644 --- a/internal/modules/dnd/normalize/combatturns/normalizer.go +++ b/internal/modules/dnd/normalize/combatturns/normalizer.go @@ -19,9 +19,7 @@ import ( ) const ( - Key = "dnd/combat-turns" - normalizationPolicy = "dnd.combat_turns.normalize.v2" - NormalizationPolicy = normalizationPolicy + Key = "dnd/combat-turns" ReasonCodeActorCanonicalized = "combat_actor_canonicalized" ReasonCodeSourceRefsNormalized = "source_references_normalized" diff --git a/internal/modules/dnd/normalize/enemyevents/normalizer.go b/internal/modules/dnd/normalize/enemyevents/normalizer.go index cfcaa3cb..82e1804e 100644 --- a/internal/modules/dnd/normalize/enemyevents/normalizer.go +++ b/internal/modules/dnd/normalize/enemyevents/normalizer.go @@ -17,9 +17,7 @@ import ( ) const ( - Key = "dnd/enemy-events" - normalizationPolicy = "dnd.enemy_events.normalize.v1" - NormalizationPolicy = normalizationPolicy + Key = "dnd/enemy-events" ReasonCodeNameCanonicalized = "enemy_event_name_canonicalized" ReasonCodeSourceRefsNormalized = "source_references_normalized" diff --git a/internal/modules/dnd/normalize/itemoccurrences/normalizer.go b/internal/modules/dnd/normalize/itemoccurrences/normalizer.go index 6da972f8..a5ca2e80 100644 --- a/internal/modules/dnd/normalize/itemoccurrences/normalizer.go +++ b/internal/modules/dnd/normalize/itemoccurrences/normalizer.go @@ -17,9 +17,7 @@ import ( ) const ( - Key = "dnd/item-occurrences" - normalizationPolicy = "dnd.item_occurrences.normalize.v1" - NormalizationPolicy = normalizationPolicy + Key = "dnd/item-occurrences" ReasonCodeNameCanonicalized = "item_occurrence_name_canonicalized" ReasonCodeUnknownItemID = "item_occurrence_unknown_item_id" diff --git a/internal/modules/dnd/normalize/locationoccurrences/normalizer.go b/internal/modules/dnd/normalize/locationoccurrences/normalizer.go index 3adc5a44..1faa1f4e 100644 --- a/internal/modules/dnd/normalize/locationoccurrences/normalizer.go +++ b/internal/modules/dnd/normalize/locationoccurrences/normalizer.go @@ -18,9 +18,7 @@ import ( ) const ( - Key = "dnd/location-occurrences" - normalizationPolicy = "dnd.location_occurrences.normalize.v1" - NormalizationPolicy = normalizationPolicy + Key = "dnd/location-occurrences" ReasonCodeNameCanonicalized = "location_occurrence_name_canonicalized" ReasonCodeUnknownLocationID = "location_occurrence_unknown_location_id" diff --git a/internal/modules/dnd/normalize/npcoccurrences/normalizer.go b/internal/modules/dnd/normalize/npcoccurrences/normalizer.go index 9a8ec591..ecb946b9 100644 --- a/internal/modules/dnd/normalize/npcoccurrences/normalizer.go +++ b/internal/modules/dnd/normalize/npcoccurrences/normalizer.go @@ -17,9 +17,7 @@ import ( ) const ( - Key = "dnd/npc-occurrences" - normalizationPolicy = "dnd.npc_occurrences.normalize.v2" - NormalizationPolicy = normalizationPolicy + Key = "dnd/npc-occurrences" ReasonCodeSourceRefsNormalized = "source_references_normalized" ReasonCodeOccurrencesReordered = "npc_occurrences_reordered" diff --git a/internal/modules/dnd/normalize/scenedescriptions/normalizer.go b/internal/modules/dnd/normalize/scenedescriptions/normalizer.go index cfdf5fa8..b6286b56 100644 --- a/internal/modules/dnd/normalize/scenedescriptions/normalizer.go +++ b/internal/modules/dnd/normalize/scenedescriptions/normalizer.go @@ -17,7 +17,6 @@ import ( const ( Key = "dnd/scene-descriptions" - normalizerPolicy = "dnd.scene_descriptions.normalizer.v1" ReasonCodeProseNormalized = "scene_description_prose_normalized" ReasonCodeOrderNormalized = "scene_description_order_normalized" ReasonCodeDuplicateCollapsed = "scene_description_duplicate_collapsed" diff --git a/internal/modules/dnd/normalize/spells/normalizer.go b/internal/modules/dnd/normalize/spells/normalizer.go index 1f3a9667..280b57be 100644 --- a/internal/modules/dnd/normalize/spells/normalizer.go +++ b/internal/modules/dnd/normalize/spells/normalizer.go @@ -17,9 +17,7 @@ import ( ) const ( - Key = "dnd/spells" - normalizationPolicy = "dnd.spells.normalize.v2" - NormalizationPolicy = normalizationPolicy + Key = "dnd/spells" ) const ( diff --git a/internal/modules/dnd/validate/combatturns/invariants/validator.go b/internal/modules/dnd/validate/combatturns/invariants/validator.go index 744c3b99..dde05c25 100644 --- a/internal/modules/dnd/validate/combatturns/invariants/validator.go +++ b/internal/modules/dnd/validate/combatturns/invariants/validator.go @@ -20,7 +20,6 @@ import ( const ( Key = "normalize/dnd/combat-turns/invariants" ReasonCode = "invalid_combat_turn_normalization" - policy = "dnd.combat_turns.validator.normalized.v2" ) type Options struct{} diff --git a/internal/modules/dnd/validate/combatturns/shape/validator.go b/internal/modules/dnd/validate/combatturns/shape/validator.go index 2eb3ff14..1e356071 100644 --- a/internal/modules/dnd/validate/combatturns/shape/validator.go +++ b/internal/modules/dnd/validate/combatturns/shape/validator.go @@ -14,7 +14,6 @@ import ( const ( Key = "extract/dnd/combat-turns/shape" ReasonCode = "invalid_combat_turn_shape" - policy = "dnd.combat_turns.validator.shape.v2" ) type Options struct{} diff --git a/internal/modules/dnd/validate/combatturns/source_refs/validator.go b/internal/modules/dnd/validate/combatturns/source_refs/validator.go index 3a58eb02..7e5943b0 100644 --- a/internal/modules/dnd/validate/combatturns/source_refs/validator.go +++ b/internal/modules/dnd/validate/combatturns/source_refs/validator.go @@ -16,7 +16,6 @@ import ( const ( Key = "extract/dnd/combat-turns/source_refs" ReasonCode = "invalid_combat_turn_source_refs" - policy = "dnd.combat_turns.validator.source_refs.v3" ) type Options struct{} diff --git a/internal/modules/dnd/validate/combatturns/source_relatedness/validator.go b/internal/modules/dnd/validate/combatturns/source_relatedness/validator.go index f9ad4442..29a8c2ba 100644 --- a/internal/modules/dnd/validate/combatturns/source_relatedness/validator.go +++ b/internal/modules/dnd/validate/combatturns/source_relatedness/validator.go @@ -15,7 +15,6 @@ import ( const ( Key = "extract/dnd/combat-turns/source_relatedness" ReasonCode = "combat_turn_not_near_source" - policy = "dnd.combat_turns.validator.source_relatedness.v2" ) type Options struct{} diff --git a/internal/modules/dnd/validate/enemyevents/engagements/validator.go b/internal/modules/dnd/validate/enemyevents/engagements/validator.go index 01bbb772..cad9374a 100644 --- a/internal/modules/dnd/validate/enemyevents/engagements/validator.go +++ b/internal/modules/dnd/validate/enemyevents/engagements/validator.go @@ -16,7 +16,6 @@ import ( const ( Key = "extract/dnd/enemy-events/engagements" ReasonCode = "duplicate_enemy_engagement" - policy = "dnd.enemy_events.validator.engagements.v2" ) type Options struct{} diff --git a/internal/modules/dnd/validate/enemyevents/invariants/validator.go b/internal/modules/dnd/validate/enemyevents/invariants/validator.go index 1946bdd1..d76e200f 100644 --- a/internal/modules/dnd/validate/enemyevents/invariants/validator.go +++ b/internal/modules/dnd/validate/enemyevents/invariants/validator.go @@ -20,7 +20,6 @@ import ( const ( Key = "normalize/dnd/enemy-events/invariants" ReasonCode = "invalid_enemy_event_normalization" - policy = "dnd.enemy_events.validator.normalized.v1" ) type Options struct{} diff --git a/internal/modules/dnd/validate/enemyevents/shape/validator.go b/internal/modules/dnd/validate/enemyevents/shape/validator.go index 837b70b5..65a906fd 100644 --- a/internal/modules/dnd/validate/enemyevents/shape/validator.go +++ b/internal/modules/dnd/validate/enemyevents/shape/validator.go @@ -16,7 +16,6 @@ import ( const ( Key = "extract/dnd/enemy-events/shape" ReasonCode = "invalid_enemy_event_shape" - policy = "dnd.enemy_events.validator.shape.v2" ) type Options struct{} diff --git a/internal/modules/dnd/validate/enemyevents/source_refs/validator.go b/internal/modules/dnd/validate/enemyevents/source_refs/validator.go index 0ad87d90..be939107 100644 --- a/internal/modules/dnd/validate/enemyevents/source_refs/validator.go +++ b/internal/modules/dnd/validate/enemyevents/source_refs/validator.go @@ -17,7 +17,6 @@ import ( const ( Key = "extract/dnd/enemy-events/source_refs" ReasonCode = "invalid_enemy_event_source_refs" - policy = "dnd.enemy_events.validator.source_refs.v2" ) type Options struct{} diff --git a/internal/modules/dnd/validate/enemyevents/source_relatedness/validator.go b/internal/modules/dnd/validate/enemyevents/source_relatedness/validator.go index d0c3130a..478c0690 100644 --- a/internal/modules/dnd/validate/enemyevents/source_relatedness/validator.go +++ b/internal/modules/dnd/validate/enemyevents/source_relatedness/validator.go @@ -16,7 +16,6 @@ import ( const ( Key = "extract/dnd/enemy-events/source_relatedness" ReasonCode = "enemy_event_not_near_source" - policy = "dnd.enemy_events.validator.source_relatedness.v1" ) type Options struct{} diff --git a/internal/modules/dnd/validate/itemoccurrences/invariants/validator.go b/internal/modules/dnd/validate/itemoccurrences/invariants/validator.go index 83d42b89..9d4b5ced 100644 --- a/internal/modules/dnd/validate/itemoccurrences/invariants/validator.go +++ b/internal/modules/dnd/validate/itemoccurrences/invariants/validator.go @@ -18,7 +18,6 @@ import ( const ( Key = "normalize/dnd/item-occurrences/invariants" ReasonCode = "invalid_normalized_item_occurrence_invariants" - policy = "dnd.item_occurrences.normalize_invariants.v1" ) type Options struct{} diff --git a/internal/modules/dnd/validate/itemoccurrences/registry/validator.go b/internal/modules/dnd/validate/itemoccurrences/registry/validator.go index 6fc65592..6e16e847 100644 --- a/internal/modules/dnd/validate/itemoccurrences/registry/validator.go +++ b/internal/modules/dnd/validate/itemoccurrences/registry/validator.go @@ -16,7 +16,6 @@ import ( const ( Key = "extract/dnd/item-occurrences/registry" ReasonCode = "invalid_item_occurrence_registry" - policy = "dnd.item_occurrences.validator.registry.v2" ) type Options struct{} diff --git a/internal/modules/dnd/validate/itemoccurrences/shape/validator.go b/internal/modules/dnd/validate/itemoccurrences/shape/validator.go index 9bb9729f..d43bcbdb 100644 --- a/internal/modules/dnd/validate/itemoccurrences/shape/validator.go +++ b/internal/modules/dnd/validate/itemoccurrences/shape/validator.go @@ -16,7 +16,6 @@ import ( const ( Key = "extract/dnd/item-occurrences/shape" ReasonCode = "invalid_item_occurrence_shape" - policy = "dnd.item_occurrences.shape.v3" ) type Options struct{} diff --git a/internal/modules/dnd/validate/itemoccurrences/source_refs/validator.go b/internal/modules/dnd/validate/itemoccurrences/source_refs/validator.go index 68449041..83d2c2a6 100644 --- a/internal/modules/dnd/validate/itemoccurrences/source_refs/validator.go +++ b/internal/modules/dnd/validate/itemoccurrences/source_refs/validator.go @@ -17,7 +17,6 @@ import ( const ( Key = "extract/dnd/item-occurrences/source_refs" ReasonCode = "invalid_item_occurrence_source_references" - policy = "dnd.item_occurrences.source_refs.v2" ) type Options struct{} diff --git a/internal/modules/dnd/validate/itemoccurrences/source_relatedness/validator.go b/internal/modules/dnd/validate/itemoccurrences/source_relatedness/validator.go index fe7af440..0275b3fd 100644 --- a/internal/modules/dnd/validate/itemoccurrences/source_relatedness/validator.go +++ b/internal/modules/dnd/validate/itemoccurrences/source_relatedness/validator.go @@ -16,7 +16,6 @@ import ( const ( Key = "extract/dnd/item-occurrences/source_relatedness" ReasonCode = "item_occurrence_not_near_source" - policy = "dnd.item_occurrences.source_relatedness.v1" ) type Options struct{} diff --git a/internal/modules/dnd/validate/itemregistry/identity/validator.go b/internal/modules/dnd/validate/itemregistry/identity/validator.go index 62eded42..872ef331 100644 --- a/internal/modules/dnd/validate/itemregistry/identity/validator.go +++ b/internal/modules/dnd/validate/itemregistry/identity/validator.go @@ -14,10 +14,8 @@ import ( ) const ( - Key = "normalize/dnd/item-registry/identity" - ReasonCode = "invalid_item_identity" - policy = domainidentity.Policy - correctionPolicy = "dnd.item_registry.validator.identity.v2" + Key = "normalize/dnd/item-registry/identity" + ReasonCode = "invalid_item_identity" ) type Options struct{} diff --git a/internal/modules/dnd/validate/itemregistry/shape/validator.go b/internal/modules/dnd/validate/itemregistry/shape/validator.go index aa8141d7..a0b424bb 100644 --- a/internal/modules/dnd/validate/itemregistry/shape/validator.go +++ b/internal/modules/dnd/validate/itemregistry/shape/validator.go @@ -15,7 +15,6 @@ import ( const ( Key = "extract/dnd/item-registry/shape" ReasonCode = "invalid_item_shape" - policy = "dnd.item_registry.validator.shape.v2" ) type Options struct{} diff --git a/internal/modules/dnd/validate/itemregistry/source_refs/validator.go b/internal/modules/dnd/validate/itemregistry/source_refs/validator.go index c6086efc..ffc05c71 100644 --- a/internal/modules/dnd/validate/itemregistry/source_refs/validator.go +++ b/internal/modules/dnd/validate/itemregistry/source_refs/validator.go @@ -17,7 +17,6 @@ import ( const ( Key = "extract/dnd/item-registry/source_refs" ReasonCode = "invalid_item_source_refs" - policy = "dnd.item_registry.validator.source_refs.v2" ) type Options struct{} diff --git a/internal/modules/dnd/validate/itemregistry/source_relatedness/validator.go b/internal/modules/dnd/validate/itemregistry/source_relatedness/validator.go index b20d5ef4..856623a0 100644 --- a/internal/modules/dnd/validate/itemregistry/source_relatedness/validator.go +++ b/internal/modules/dnd/validate/itemregistry/source_relatedness/validator.go @@ -16,7 +16,6 @@ import ( const ( Key = "extract/dnd/item-registry/source_relatedness" ReasonCode = "item_not_near_source" - policy = "dnd.item_registry.validator.source_relatedness.v1" ) type Options struct{} diff --git a/internal/modules/dnd/validate/locationoccurrences/invariants/validator.go b/internal/modules/dnd/validate/locationoccurrences/invariants/validator.go index d651e4ab..0126d6b0 100644 --- a/internal/modules/dnd/validate/locationoccurrences/invariants/validator.go +++ b/internal/modules/dnd/validate/locationoccurrences/invariants/validator.go @@ -20,7 +20,6 @@ import ( const ( Key = "normalize/dnd/location-occurrences/invariants" ReasonCode = "invalid_location_occurrence_normalization" - policy = "dnd.location_occurrences.validator.normalized.v1" ) type Options struct{} diff --git a/internal/modules/dnd/validate/locationoccurrences/registry/validator.go b/internal/modules/dnd/validate/locationoccurrences/registry/validator.go index dd775f3a..e10bd47b 100644 --- a/internal/modules/dnd/validate/locationoccurrences/registry/validator.go +++ b/internal/modules/dnd/validate/locationoccurrences/registry/validator.go @@ -16,7 +16,6 @@ import ( const ( Key = "extract/dnd/location-occurrences/registry" ReasonCode = "invalid_location_occurrence_registry" - policy = "dnd.location_occurrences.validator.registry.v2" ) type Options struct{} diff --git a/internal/modules/dnd/validate/locationoccurrences/shape/validator.go b/internal/modules/dnd/validate/locationoccurrences/shape/validator.go index 0e92d985..4dd9db88 100644 --- a/internal/modules/dnd/validate/locationoccurrences/shape/validator.go +++ b/internal/modules/dnd/validate/locationoccurrences/shape/validator.go @@ -15,7 +15,6 @@ import ( const ( Key = "extract/dnd/location-occurrences/shape" ReasonCode = "invalid_location_occurrence_shape" - policy = "dnd.location_occurrences.validator.shape.v2" ) type Options struct{} diff --git a/internal/modules/dnd/validate/locationoccurrences/source_refs/validator.go b/internal/modules/dnd/validate/locationoccurrences/source_refs/validator.go index 3fe94545..ebdb0db1 100644 --- a/internal/modules/dnd/validate/locationoccurrences/source_refs/validator.go +++ b/internal/modules/dnd/validate/locationoccurrences/source_refs/validator.go @@ -17,7 +17,6 @@ import ( const ( Key = "extract/dnd/location-occurrences/source_refs" ReasonCode = "invalid_location_occurrence_source_refs" - policy = "dnd.location_occurrences.validator.source_refs.v2" ) type Options struct{} diff --git a/internal/modules/dnd/validate/locationoccurrences/source_relatedness/validator.go b/internal/modules/dnd/validate/locationoccurrences/source_relatedness/validator.go index 24dc7f8d..ae2bc998 100644 --- a/internal/modules/dnd/validate/locationoccurrences/source_relatedness/validator.go +++ b/internal/modules/dnd/validate/locationoccurrences/source_relatedness/validator.go @@ -16,7 +16,6 @@ import ( const ( Key = "extract/dnd/location-occurrences/source_relatedness" ReasonCode = "location_occurrence_not_near_source" - policy = "dnd.location_occurrences.validator.source_relatedness.v1" ) type Options struct{} diff --git a/internal/modules/dnd/validate/locationregistry/identity/validator.go b/internal/modules/dnd/validate/locationregistry/identity/validator.go index 87836656..00306348 100644 --- a/internal/modules/dnd/validate/locationregistry/identity/validator.go +++ b/internal/modules/dnd/validate/locationregistry/identity/validator.go @@ -14,10 +14,8 @@ import ( ) const ( - Key = "normalize/dnd/location-registry/identity" - ReasonCode = "invalid_location_identity" - policy = domainidentity.Policy - correctionPolicy = "dnd.location_registry.validator.identity.v2" + Key = "normalize/dnd/location-registry/identity" + ReasonCode = "invalid_location_identity" ) type Options struct{} diff --git a/internal/modules/dnd/validate/locationregistry/shape/validator.go b/internal/modules/dnd/validate/locationregistry/shape/validator.go index 300cab34..39010ab7 100644 --- a/internal/modules/dnd/validate/locationregistry/shape/validator.go +++ b/internal/modules/dnd/validate/locationregistry/shape/validator.go @@ -15,7 +15,6 @@ import ( const ( Key = "extract/dnd/location-registry/shape" ReasonCode = "invalid_location_shape" - policy = "dnd.location_registry.validator.shape.v2" ) type Options struct{} diff --git a/internal/modules/dnd/validate/locationregistry/source_refs/validator.go b/internal/modules/dnd/validate/locationregistry/source_refs/validator.go index 2bd2d6ec..6de98973 100644 --- a/internal/modules/dnd/validate/locationregistry/source_refs/validator.go +++ b/internal/modules/dnd/validate/locationregistry/source_refs/validator.go @@ -17,7 +17,6 @@ import ( const ( Key = "extract/dnd/location-registry/source_refs" ReasonCode = "invalid_location_source_refs" - policy = "dnd.location_registry.validator.source_refs.v3" ) type Options struct{} diff --git a/internal/modules/dnd/validate/locationregistry/source_relatedness/validator.go b/internal/modules/dnd/validate/locationregistry/source_relatedness/validator.go index 832503d4..14704865 100644 --- a/internal/modules/dnd/validate/locationregistry/source_relatedness/validator.go +++ b/internal/modules/dnd/validate/locationregistry/source_relatedness/validator.go @@ -16,7 +16,6 @@ import ( const ( Key = "extract/dnd/location-registry/source_relatedness" ReasonCode = "location_not_near_source" - policy = "dnd.location_registry.validator.source_relatedness.v2" ) type Options struct{} diff --git a/internal/modules/dnd/validate/npcoccurrences/invariants/validator.go b/internal/modules/dnd/validate/npcoccurrences/invariants/validator.go index fd6676fe..bc6435d0 100644 --- a/internal/modules/dnd/validate/npcoccurrences/invariants/validator.go +++ b/internal/modules/dnd/validate/npcoccurrences/invariants/validator.go @@ -20,7 +20,6 @@ import ( const ( Key = "normalize/dnd/npc-occurrences/invariants" ReasonCode = "invalid_npc_occurrence_normalization" - policy = "dnd.npc_occurrences.validator.normalized.v1" ) type Options struct{} diff --git a/internal/modules/dnd/validate/npcoccurrences/registry/validator.go b/internal/modules/dnd/validate/npcoccurrences/registry/validator.go index 79425619..2bc97f36 100644 --- a/internal/modules/dnd/validate/npcoccurrences/registry/validator.go +++ b/internal/modules/dnd/validate/npcoccurrences/registry/validator.go @@ -16,7 +16,6 @@ import ( const ( Key = "extract/dnd/npc-occurrences/registry" ReasonCode = "invalid_npc_occurrence_registry" - policy = "dnd.npc_occurrences.validator.registry.v2" ) type Options struct{} diff --git a/internal/modules/dnd/validate/npcoccurrences/shape/validator.go b/internal/modules/dnd/validate/npcoccurrences/shape/validator.go index af12fc35..8df104f4 100644 --- a/internal/modules/dnd/validate/npcoccurrences/shape/validator.go +++ b/internal/modules/dnd/validate/npcoccurrences/shape/validator.go @@ -15,7 +15,6 @@ import ( const ( Key = "extract/dnd/npc-occurrences/shape" ReasonCode = "invalid_npc_occurrence_shape" - policy = "dnd.npc_occurrences.validator.shape.v2" ) type Options struct{} diff --git a/internal/modules/dnd/validate/npcoccurrences/source_refs/validator.go b/internal/modules/dnd/validate/npcoccurrences/source_refs/validator.go index d5ef62d9..50990082 100644 --- a/internal/modules/dnd/validate/npcoccurrences/source_refs/validator.go +++ b/internal/modules/dnd/validate/npcoccurrences/source_refs/validator.go @@ -17,7 +17,6 @@ import ( const ( Key = "extract/dnd/npc-occurrences/source_refs" ReasonCode = "invalid_npc_occurrence_source_refs" - policy = "dnd.npc_occurrences.validator.source_refs.v3" ) type Options struct{} diff --git a/internal/modules/dnd/validate/npcoccurrences/source_relatedness/validator.go b/internal/modules/dnd/validate/npcoccurrences/source_relatedness/validator.go index 2b2f642b..b90aba80 100644 --- a/internal/modules/dnd/validate/npcoccurrences/source_relatedness/validator.go +++ b/internal/modules/dnd/validate/npcoccurrences/source_relatedness/validator.go @@ -16,7 +16,6 @@ import ( const ( Key = "extract/dnd/npc-occurrences/source_relatedness" ReasonCode = "npc_occurrence_not_near_source" - policy = "dnd.npc_occurrences.validator.source_relatedness.v2" ) type Options struct{} diff --git a/internal/modules/dnd/validate/npcregistry/identity/validator.go b/internal/modules/dnd/validate/npcregistry/identity/validator.go index 56794712..afb9f045 100644 --- a/internal/modules/dnd/validate/npcregistry/identity/validator.go +++ b/internal/modules/dnd/validate/npcregistry/identity/validator.go @@ -14,10 +14,8 @@ import ( ) const ( - Key = "normalize/dnd/npc-registry/identity" - ReasonCode = "invalid_npc_identity" - policy = domainidentity.Policy - correctionPolicy = "dnd.npc_registry.validator.identity.v2" + Key = "normalize/dnd/npc-registry/identity" + ReasonCode = "invalid_npc_identity" ) type Options struct{} diff --git a/internal/modules/dnd/validate/npcregistry/shape/validator.go b/internal/modules/dnd/validate/npcregistry/shape/validator.go index c4147ddf..3785999c 100644 --- a/internal/modules/dnd/validate/npcregistry/shape/validator.go +++ b/internal/modules/dnd/validate/npcregistry/shape/validator.go @@ -14,7 +14,6 @@ import ( const ( Key = "extract/dnd/npc-registry/shape" ReasonCode = "invalid_npc_shape" - policy = "dnd.npc_registry.validator.shape.v2" ) type Options struct{} diff --git a/internal/modules/dnd/validate/npcregistry/source_refs/validator.go b/internal/modules/dnd/validate/npcregistry/source_refs/validator.go index 3b0093c2..e1b2a768 100644 --- a/internal/modules/dnd/validate/npcregistry/source_refs/validator.go +++ b/internal/modules/dnd/validate/npcregistry/source_refs/validator.go @@ -16,7 +16,6 @@ import ( const ( Key = "extract/dnd/npc-registry/source_refs" ReasonCode = "invalid_npc_source_refs" - policy = "dnd.npc_registry.validator.source_refs.v3" ) type Options struct{} diff --git a/internal/modules/dnd/validate/npcregistry/source_relatedness/validator.go b/internal/modules/dnd/validate/npcregistry/source_relatedness/validator.go index 7a2530bc..d1d1c4a7 100644 --- a/internal/modules/dnd/validate/npcregistry/source_relatedness/validator.go +++ b/internal/modules/dnd/validate/npcregistry/source_relatedness/validator.go @@ -15,7 +15,6 @@ import ( const ( Key = "extract/dnd/npc-registry/source_relatedness" ReasonCode = "npc_not_near_source" - policy = "dnd.npc_registry.validator.source_relatedness.v2" ) type Options struct{} diff --git a/internal/modules/dnd/validate/scenedescriptions/invariants/validator.go b/internal/modules/dnd/validate/scenedescriptions/invariants/validator.go index f8531504..86646d47 100644 --- a/internal/modules/dnd/validate/scenedescriptions/invariants/validator.go +++ b/internal/modules/dnd/validate/scenedescriptions/invariants/validator.go @@ -17,7 +17,6 @@ import ( const ( Key = "normalize/dnd/scene-descriptions/invariants" ReasonCode = "invalid_scene_description_normalization" - policy = "dnd.scene_descriptions.validator.invariants.v1" ) type Options struct{} diff --git a/internal/modules/dnd/validate/scenedescriptions/shape/validator.go b/internal/modules/dnd/validate/scenedescriptions/shape/validator.go index 3981957a..39a28047 100644 --- a/internal/modules/dnd/validate/scenedescriptions/shape/validator.go +++ b/internal/modules/dnd/validate/scenedescriptions/shape/validator.go @@ -16,7 +16,6 @@ import ( const ( Key = "extract/dnd/scene-descriptions/shape" ReasonCode = "invalid_scene_description_shape" - policy = "dnd.scene_descriptions.validator.shape.v2" ) type Options struct{} diff --git a/internal/modules/dnd/validate/scenedescriptions/source_refs/validator.go b/internal/modules/dnd/validate/scenedescriptions/source_refs/validator.go index 3449684c..95f0f0f0 100644 --- a/internal/modules/dnd/validate/scenedescriptions/source_refs/validator.go +++ b/internal/modules/dnd/validate/scenedescriptions/source_refs/validator.go @@ -16,7 +16,6 @@ import ( const ( Key = "extract/dnd/scene-descriptions/source_refs" ReasonCode = "invalid_scene_description_source_refs" - policy = "dnd.scene_descriptions.validator.source_refs.v1" ) type Options struct{} diff --git a/internal/modules/dnd/validate/scenedescriptions/source_relatedness/validator.go b/internal/modules/dnd/validate/scenedescriptions/source_relatedness/validator.go index 5d9c3f06..cdd301ee 100644 --- a/internal/modules/dnd/validate/scenedescriptions/source_relatedness/validator.go +++ b/internal/modules/dnd/validate/scenedescriptions/source_relatedness/validator.go @@ -18,7 +18,6 @@ import ( const ( Key = "extract/dnd/scene-descriptions/source_relatedness" ReasonCode = "scene_description_not_near_source" - policy = "dnd.scene_descriptions.validator.source_relatedness.v1" ) var stopwords = map[string]struct{}{ diff --git a/internal/modules/dnd/validate/spells/catalog/validator.go b/internal/modules/dnd/validate/spells/catalog/validator.go index 08e52098..0ba26da2 100644 --- a/internal/modules/dnd/validate/spells/catalog/validator.go +++ b/internal/modules/dnd/validate/spells/catalog/validator.go @@ -17,7 +17,6 @@ import ( const ( Key = "extract/dnd/spells/catalog" ReasonCode = "unknown_spell" - policy = "dnd.spells.validator.catalog.v2" ) type Options struct{} diff --git a/internal/modules/dnd/validate/spells/shape/validator.go b/internal/modules/dnd/validate/spells/shape/validator.go index 7cc0886e..b18333db 100644 --- a/internal/modules/dnd/validate/spells/shape/validator.go +++ b/internal/modules/dnd/validate/spells/shape/validator.go @@ -14,7 +14,6 @@ import ( const ( Key = "extract/dnd/spells/shape" ReasonCode = "invalid_spell_shape" - policy = "dnd.spells.validator.shape.v2" ) type Options struct{} diff --git a/internal/modules/dnd/validate/spells/source_refs/validator.go b/internal/modules/dnd/validate/spells/source_refs/validator.go index f066bf00..c7ed1641 100644 --- a/internal/modules/dnd/validate/spells/source_refs/validator.go +++ b/internal/modules/dnd/validate/spells/source_refs/validator.go @@ -16,7 +16,6 @@ import ( const ( Key = "extract/dnd/spells/source_refs" ReasonCode = "invalid_source_refs" - policy = "dnd.spells.validator.source_refs.v3" ) type Options struct{} diff --git a/internal/modules/dnd/validate/spells/source_relatedness/validator.go b/internal/modules/dnd/validate/spells/source_relatedness/validator.go index 3f5ae62b..81c587d7 100644 --- a/internal/modules/dnd/validate/spells/source_relatedness/validator.go +++ b/internal/modules/dnd/validate/spells/source_relatedness/validator.go @@ -16,7 +16,6 @@ import ( const ( Key = "extract/dnd/spells/source_relatedness" ReasonCode = "spell_not_near_source" - policy = "dnd.spells.validator.source_relatedness.v1" ) type Options struct{}