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

@@ -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{}

View File

@@ -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{}

View File

@@ -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{}

View File

@@ -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{}

View File

@@ -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{}

View File

@@ -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{}

View File

@@ -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{}

View File

@@ -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{}

View File

@@ -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{}

View File

@@ -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{}

View File

@@ -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{}

View File

@@ -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{}

View File

@@ -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{}

View File

@@ -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{}

View File

@@ -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{}

View File

@@ -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{}

View File

@@ -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{}

View File

@@ -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{}

View File

@@ -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{}

View File

@@ -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{}

View File

@@ -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{}

View File

@@ -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{}

View File

@@ -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{}

View File

@@ -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{}

View File

@@ -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{}

View File

@@ -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{}

View File

@@ -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{}

View File

@@ -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{}

View File

@@ -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{}

View File

@@ -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{}

View File

@@ -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{}

View File

@@ -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{}

View File

@@ -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{}

View File

@@ -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{}

View File

@@ -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{}

View File

@@ -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{}

View File

@@ -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{}

View File

@@ -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{}

View File

@@ -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{}

View File

@@ -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{}{

View File

@@ -17,7 +17,6 @@ import (
const (
Key = "extract/dnd/spells/catalog"
ReasonCode = "unknown_spell"
policy = "dnd.spells.validator.catalog.v2"
)
type Options struct{}

View File

@@ -14,7 +14,6 @@ import (
const (
Key = "extract/dnd/spells/shape"
ReasonCode = "invalid_spell_shape"
policy = "dnd.spells.validator.shape.v2"
)
type Options struct{}

View File

@@ -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{}

View File

@@ -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{}