Remove unused policy metadata and helpers
This commit is contained in:
@@ -665,6 +665,14 @@ assertions.
|
|||||||
**Assessment:** Confirmed private dead metadata; original medium for clarity,
|
**Assessment:** Confirmed private dead metadata; original medium for clarity,
|
||||||
not runtime impact.
|
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).
|
**Source:** [DEAD-002](12-deadcode.md#dead-002--obsolete-private-policy-labels-remain-disconnected).
|
||||||
|
|
||||||
Remove the 48 confirmed unused private constants: 44 deterministic-validator
|
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
|
particular, identity policy bytes affect durable IDs. Do not resurrect cache
|
||||||
fingerprints to justify unused labels.
|
fingerprints to justify unused labels.
|
||||||
|
|
||||||
The same finding identifies six exported `NormalizationPolicy` aliases for
|
The separately reviewed internal aliases have the disposition recorded above;
|
||||||
separate consumer-contract review. Their absence of repository callers is not
|
no absence/count change-detector test was added.
|
||||||
enough to approve deletion. That conditional scope is not part of the confirmed
|
|
||||||
48-constant cleanup, and needs no absence/count change-detector test.
|
|
||||||
|
|
||||||
### CAT-031 — Three Private Helpers Are Unused
|
### CAT-031 — Three Private Helpers Are Unused
|
||||||
|
|
||||||
**Assessment:** Confirmed dead declarations; original low; no runtime speedup
|
**Assessment:** Confirmed dead declarations; original low; no runtime speedup
|
||||||
is implied by deleting code that already does not execute.
|
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).
|
**Source:** [DEAD-001](12-deadcode.md#dead-001--three-private-helpers-have-no-references).
|
||||||
|
|
||||||
Delete config's `cloneStringMap`, pipeline's `laneReferencesReuseEligible`, and
|
Delete config's `cloneStringMap`, pipeline's `laneReferencesReuseEligible`, and
|
||||||
|
|||||||
@@ -925,6 +925,8 @@ relevant race checks and manual call-site comparison.
|
|||||||
|
|
||||||
## Stage 35 — Remove Confirmed Dead Metadata And Helpers
|
## Stage 35 — Remove Confirmed Dead Metadata And Helpers
|
||||||
|
|
||||||
|
**Completed.**
|
||||||
|
|
||||||
**Coverage:** CAT-030/CAT-031. **Prerequisites:** preceding moves complete.
|
**Coverage:** CAT-030/CAT-031. **Prerequisites:** preceding moves complete.
|
||||||
|
|
||||||
Recheck audit/12-deadcode.md against callers. Delete unused validator policy,
|
Recheck audit/12-deadcode.md against callers. Delete unused validator policy,
|
||||||
|
|||||||
@@ -44,17 +44,6 @@ func cloneConfig(in Config) Config {
|
|||||||
return out
|
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 {
|
func cloneValue[T any](value *T) *T {
|
||||||
if value == nil {
|
if value == nil {
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
@@ -47,12 +47,6 @@ func referenceTargetReuseEligible(input RunInput, target ResolvedReferenceTarget
|
|||||||
return !ok || eligible
|
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
|
// buildStepReferenceReuseEligibility carries reuse eligibility alongside
|
||||||
// generated references without exposing the internal lineage flag in artifact
|
// generated references without exposing the internal lineage flag in artifact
|
||||||
// payloads. A target becomes ineligible when any generated input is ineligible.
|
// payloads. A target becomes ineligible when any generated input is ineligible.
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"reflect"
|
"reflect"
|
||||||
"sort"
|
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"gitea.maximumdirect.net/eric/notarius/internal/framework/contracts"
|
"gitea.maximumdirect.net/eric/notarius/internal/framework/contracts"
|
||||||
@@ -339,10 +338,6 @@ func normalizeValidatorSpec(spec ValidatorSpec) (ValidatorSpec, error) {
|
|||||||
return normalized, nil
|
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 {
|
func cloneValidatorSpec(spec ValidatorSpec) ValidatorSpec {
|
||||||
spec.Prompts = append([]string(nil), spec.Prompts...)
|
spec.Prompts = append([]string(nil), spec.Prompts...)
|
||||||
return spec
|
return spec
|
||||||
|
|||||||
@@ -19,9 +19,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Key = "dnd/combat-turns"
|
Key = "dnd/combat-turns"
|
||||||
normalizationPolicy = "dnd.combat_turns.normalize.v2"
|
|
||||||
NormalizationPolicy = normalizationPolicy
|
|
||||||
|
|
||||||
ReasonCodeActorCanonicalized = "combat_actor_canonicalized"
|
ReasonCodeActorCanonicalized = "combat_actor_canonicalized"
|
||||||
ReasonCodeSourceRefsNormalized = "source_references_normalized"
|
ReasonCodeSourceRefsNormalized = "source_references_normalized"
|
||||||
|
|||||||
@@ -17,9 +17,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Key = "dnd/enemy-events"
|
Key = "dnd/enemy-events"
|
||||||
normalizationPolicy = "dnd.enemy_events.normalize.v1"
|
|
||||||
NormalizationPolicy = normalizationPolicy
|
|
||||||
|
|
||||||
ReasonCodeNameCanonicalized = "enemy_event_name_canonicalized"
|
ReasonCodeNameCanonicalized = "enemy_event_name_canonicalized"
|
||||||
ReasonCodeSourceRefsNormalized = "source_references_normalized"
|
ReasonCodeSourceRefsNormalized = "source_references_normalized"
|
||||||
|
|||||||
@@ -17,9 +17,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Key = "dnd/item-occurrences"
|
Key = "dnd/item-occurrences"
|
||||||
normalizationPolicy = "dnd.item_occurrences.normalize.v1"
|
|
||||||
NormalizationPolicy = normalizationPolicy
|
|
||||||
|
|
||||||
ReasonCodeNameCanonicalized = "item_occurrence_name_canonicalized"
|
ReasonCodeNameCanonicalized = "item_occurrence_name_canonicalized"
|
||||||
ReasonCodeUnknownItemID = "item_occurrence_unknown_item_id"
|
ReasonCodeUnknownItemID = "item_occurrence_unknown_item_id"
|
||||||
|
|||||||
@@ -18,9 +18,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Key = "dnd/location-occurrences"
|
Key = "dnd/location-occurrences"
|
||||||
normalizationPolicy = "dnd.location_occurrences.normalize.v1"
|
|
||||||
NormalizationPolicy = normalizationPolicy
|
|
||||||
|
|
||||||
ReasonCodeNameCanonicalized = "location_occurrence_name_canonicalized"
|
ReasonCodeNameCanonicalized = "location_occurrence_name_canonicalized"
|
||||||
ReasonCodeUnknownLocationID = "location_occurrence_unknown_location_id"
|
ReasonCodeUnknownLocationID = "location_occurrence_unknown_location_id"
|
||||||
|
|||||||
@@ -17,9 +17,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Key = "dnd/npc-occurrences"
|
Key = "dnd/npc-occurrences"
|
||||||
normalizationPolicy = "dnd.npc_occurrences.normalize.v2"
|
|
||||||
NormalizationPolicy = normalizationPolicy
|
|
||||||
|
|
||||||
ReasonCodeSourceRefsNormalized = "source_references_normalized"
|
ReasonCodeSourceRefsNormalized = "source_references_normalized"
|
||||||
ReasonCodeOccurrencesReordered = "npc_occurrences_reordered"
|
ReasonCodeOccurrencesReordered = "npc_occurrences_reordered"
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ import (
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
Key = "dnd/scene-descriptions"
|
Key = "dnd/scene-descriptions"
|
||||||
normalizerPolicy = "dnd.scene_descriptions.normalizer.v1"
|
|
||||||
ReasonCodeProseNormalized = "scene_description_prose_normalized"
|
ReasonCodeProseNormalized = "scene_description_prose_normalized"
|
||||||
ReasonCodeOrderNormalized = "scene_description_order_normalized"
|
ReasonCodeOrderNormalized = "scene_description_order_normalized"
|
||||||
ReasonCodeDuplicateCollapsed = "scene_description_duplicate_collapsed"
|
ReasonCodeDuplicateCollapsed = "scene_description_duplicate_collapsed"
|
||||||
|
|||||||
@@ -17,9 +17,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Key = "dnd/spells"
|
Key = "dnd/spells"
|
||||||
normalizationPolicy = "dnd.spells.normalize.v2"
|
|
||||||
NormalizationPolicy = normalizationPolicy
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
Key = "normalize/dnd/combat-turns/invariants"
|
Key = "normalize/dnd/combat-turns/invariants"
|
||||||
ReasonCode = "invalid_combat_turn_normalization"
|
ReasonCode = "invalid_combat_turn_normalization"
|
||||||
policy = "dnd.combat_turns.validator.normalized.v2"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
Key = "extract/dnd/combat-turns/shape"
|
Key = "extract/dnd/combat-turns/shape"
|
||||||
ReasonCode = "invalid_combat_turn_shape"
|
ReasonCode = "invalid_combat_turn_shape"
|
||||||
policy = "dnd.combat_turns.validator.shape.v2"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
Key = "extract/dnd/combat-turns/source_refs"
|
Key = "extract/dnd/combat-turns/source_refs"
|
||||||
ReasonCode = "invalid_combat_turn_source_refs"
|
ReasonCode = "invalid_combat_turn_source_refs"
|
||||||
policy = "dnd.combat_turns.validator.source_refs.v3"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
Key = "extract/dnd/combat-turns/source_relatedness"
|
Key = "extract/dnd/combat-turns/source_relatedness"
|
||||||
ReasonCode = "combat_turn_not_near_source"
|
ReasonCode = "combat_turn_not_near_source"
|
||||||
policy = "dnd.combat_turns.validator.source_relatedness.v2"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
Key = "extract/dnd/enemy-events/engagements"
|
Key = "extract/dnd/enemy-events/engagements"
|
||||||
ReasonCode = "duplicate_enemy_engagement"
|
ReasonCode = "duplicate_enemy_engagement"
|
||||||
policy = "dnd.enemy_events.validator.engagements.v2"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
Key = "normalize/dnd/enemy-events/invariants"
|
Key = "normalize/dnd/enemy-events/invariants"
|
||||||
ReasonCode = "invalid_enemy_event_normalization"
|
ReasonCode = "invalid_enemy_event_normalization"
|
||||||
policy = "dnd.enemy_events.validator.normalized.v1"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
Key = "extract/dnd/enemy-events/shape"
|
Key = "extract/dnd/enemy-events/shape"
|
||||||
ReasonCode = "invalid_enemy_event_shape"
|
ReasonCode = "invalid_enemy_event_shape"
|
||||||
policy = "dnd.enemy_events.validator.shape.v2"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
Key = "extract/dnd/enemy-events/source_refs"
|
Key = "extract/dnd/enemy-events/source_refs"
|
||||||
ReasonCode = "invalid_enemy_event_source_refs"
|
ReasonCode = "invalid_enemy_event_source_refs"
|
||||||
policy = "dnd.enemy_events.validator.source_refs.v2"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
Key = "extract/dnd/enemy-events/source_relatedness"
|
Key = "extract/dnd/enemy-events/source_relatedness"
|
||||||
ReasonCode = "enemy_event_not_near_source"
|
ReasonCode = "enemy_event_not_near_source"
|
||||||
policy = "dnd.enemy_events.validator.source_relatedness.v1"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
Key = "normalize/dnd/item-occurrences/invariants"
|
Key = "normalize/dnd/item-occurrences/invariants"
|
||||||
ReasonCode = "invalid_normalized_item_occurrence_invariants"
|
ReasonCode = "invalid_normalized_item_occurrence_invariants"
|
||||||
policy = "dnd.item_occurrences.normalize_invariants.v1"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
Key = "extract/dnd/item-occurrences/registry"
|
Key = "extract/dnd/item-occurrences/registry"
|
||||||
ReasonCode = "invalid_item_occurrence_registry"
|
ReasonCode = "invalid_item_occurrence_registry"
|
||||||
policy = "dnd.item_occurrences.validator.registry.v2"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
Key = "extract/dnd/item-occurrences/shape"
|
Key = "extract/dnd/item-occurrences/shape"
|
||||||
ReasonCode = "invalid_item_occurrence_shape"
|
ReasonCode = "invalid_item_occurrence_shape"
|
||||||
policy = "dnd.item_occurrences.shape.v3"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
Key = "extract/dnd/item-occurrences/source_refs"
|
Key = "extract/dnd/item-occurrences/source_refs"
|
||||||
ReasonCode = "invalid_item_occurrence_source_references"
|
ReasonCode = "invalid_item_occurrence_source_references"
|
||||||
policy = "dnd.item_occurrences.source_refs.v2"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
Key = "extract/dnd/item-occurrences/source_relatedness"
|
Key = "extract/dnd/item-occurrences/source_relatedness"
|
||||||
ReasonCode = "item_occurrence_not_near_source"
|
ReasonCode = "item_occurrence_not_near_source"
|
||||||
policy = "dnd.item_occurrences.source_relatedness.v1"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -14,10 +14,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Key = "normalize/dnd/item-registry/identity"
|
Key = "normalize/dnd/item-registry/identity"
|
||||||
ReasonCode = "invalid_item_identity"
|
ReasonCode = "invalid_item_identity"
|
||||||
policy = domainidentity.Policy
|
|
||||||
correctionPolicy = "dnd.item_registry.validator.identity.v2"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
Key = "extract/dnd/item-registry/shape"
|
Key = "extract/dnd/item-registry/shape"
|
||||||
ReasonCode = "invalid_item_shape"
|
ReasonCode = "invalid_item_shape"
|
||||||
policy = "dnd.item_registry.validator.shape.v2"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
Key = "extract/dnd/item-registry/source_refs"
|
Key = "extract/dnd/item-registry/source_refs"
|
||||||
ReasonCode = "invalid_item_source_refs"
|
ReasonCode = "invalid_item_source_refs"
|
||||||
policy = "dnd.item_registry.validator.source_refs.v2"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
Key = "extract/dnd/item-registry/source_relatedness"
|
Key = "extract/dnd/item-registry/source_relatedness"
|
||||||
ReasonCode = "item_not_near_source"
|
ReasonCode = "item_not_near_source"
|
||||||
policy = "dnd.item_registry.validator.source_relatedness.v1"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
Key = "normalize/dnd/location-occurrences/invariants"
|
Key = "normalize/dnd/location-occurrences/invariants"
|
||||||
ReasonCode = "invalid_location_occurrence_normalization"
|
ReasonCode = "invalid_location_occurrence_normalization"
|
||||||
policy = "dnd.location_occurrences.validator.normalized.v1"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
Key = "extract/dnd/location-occurrences/registry"
|
Key = "extract/dnd/location-occurrences/registry"
|
||||||
ReasonCode = "invalid_location_occurrence_registry"
|
ReasonCode = "invalid_location_occurrence_registry"
|
||||||
policy = "dnd.location_occurrences.validator.registry.v2"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
Key = "extract/dnd/location-occurrences/shape"
|
Key = "extract/dnd/location-occurrences/shape"
|
||||||
ReasonCode = "invalid_location_occurrence_shape"
|
ReasonCode = "invalid_location_occurrence_shape"
|
||||||
policy = "dnd.location_occurrences.validator.shape.v2"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
Key = "extract/dnd/location-occurrences/source_refs"
|
Key = "extract/dnd/location-occurrences/source_refs"
|
||||||
ReasonCode = "invalid_location_occurrence_source_refs"
|
ReasonCode = "invalid_location_occurrence_source_refs"
|
||||||
policy = "dnd.location_occurrences.validator.source_refs.v2"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
Key = "extract/dnd/location-occurrences/source_relatedness"
|
Key = "extract/dnd/location-occurrences/source_relatedness"
|
||||||
ReasonCode = "location_occurrence_not_near_source"
|
ReasonCode = "location_occurrence_not_near_source"
|
||||||
policy = "dnd.location_occurrences.validator.source_relatedness.v1"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -14,10 +14,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Key = "normalize/dnd/location-registry/identity"
|
Key = "normalize/dnd/location-registry/identity"
|
||||||
ReasonCode = "invalid_location_identity"
|
ReasonCode = "invalid_location_identity"
|
||||||
policy = domainidentity.Policy
|
|
||||||
correctionPolicy = "dnd.location_registry.validator.identity.v2"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
Key = "extract/dnd/location-registry/shape"
|
Key = "extract/dnd/location-registry/shape"
|
||||||
ReasonCode = "invalid_location_shape"
|
ReasonCode = "invalid_location_shape"
|
||||||
policy = "dnd.location_registry.validator.shape.v2"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
Key = "extract/dnd/location-registry/source_refs"
|
Key = "extract/dnd/location-registry/source_refs"
|
||||||
ReasonCode = "invalid_location_source_refs"
|
ReasonCode = "invalid_location_source_refs"
|
||||||
policy = "dnd.location_registry.validator.source_refs.v3"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
Key = "extract/dnd/location-registry/source_relatedness"
|
Key = "extract/dnd/location-registry/source_relatedness"
|
||||||
ReasonCode = "location_not_near_source"
|
ReasonCode = "location_not_near_source"
|
||||||
policy = "dnd.location_registry.validator.source_relatedness.v2"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
Key = "normalize/dnd/npc-occurrences/invariants"
|
Key = "normalize/dnd/npc-occurrences/invariants"
|
||||||
ReasonCode = "invalid_npc_occurrence_normalization"
|
ReasonCode = "invalid_npc_occurrence_normalization"
|
||||||
policy = "dnd.npc_occurrences.validator.normalized.v1"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
Key = "extract/dnd/npc-occurrences/registry"
|
Key = "extract/dnd/npc-occurrences/registry"
|
||||||
ReasonCode = "invalid_npc_occurrence_registry"
|
ReasonCode = "invalid_npc_occurrence_registry"
|
||||||
policy = "dnd.npc_occurrences.validator.registry.v2"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
Key = "extract/dnd/npc-occurrences/shape"
|
Key = "extract/dnd/npc-occurrences/shape"
|
||||||
ReasonCode = "invalid_npc_occurrence_shape"
|
ReasonCode = "invalid_npc_occurrence_shape"
|
||||||
policy = "dnd.npc_occurrences.validator.shape.v2"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
Key = "extract/dnd/npc-occurrences/source_refs"
|
Key = "extract/dnd/npc-occurrences/source_refs"
|
||||||
ReasonCode = "invalid_npc_occurrence_source_refs"
|
ReasonCode = "invalid_npc_occurrence_source_refs"
|
||||||
policy = "dnd.npc_occurrences.validator.source_refs.v3"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
Key = "extract/dnd/npc-occurrences/source_relatedness"
|
Key = "extract/dnd/npc-occurrences/source_relatedness"
|
||||||
ReasonCode = "npc_occurrence_not_near_source"
|
ReasonCode = "npc_occurrence_not_near_source"
|
||||||
policy = "dnd.npc_occurrences.validator.source_relatedness.v2"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -14,10 +14,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Key = "normalize/dnd/npc-registry/identity"
|
Key = "normalize/dnd/npc-registry/identity"
|
||||||
ReasonCode = "invalid_npc_identity"
|
ReasonCode = "invalid_npc_identity"
|
||||||
policy = domainidentity.Policy
|
|
||||||
correctionPolicy = "dnd.npc_registry.validator.identity.v2"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
Key = "extract/dnd/npc-registry/shape"
|
Key = "extract/dnd/npc-registry/shape"
|
||||||
ReasonCode = "invalid_npc_shape"
|
ReasonCode = "invalid_npc_shape"
|
||||||
policy = "dnd.npc_registry.validator.shape.v2"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
Key = "extract/dnd/npc-registry/source_refs"
|
Key = "extract/dnd/npc-registry/source_refs"
|
||||||
ReasonCode = "invalid_npc_source_refs"
|
ReasonCode = "invalid_npc_source_refs"
|
||||||
policy = "dnd.npc_registry.validator.source_refs.v3"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
Key = "extract/dnd/npc-registry/source_relatedness"
|
Key = "extract/dnd/npc-registry/source_relatedness"
|
||||||
ReasonCode = "npc_not_near_source"
|
ReasonCode = "npc_not_near_source"
|
||||||
policy = "dnd.npc_registry.validator.source_relatedness.v2"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
Key = "normalize/dnd/scene-descriptions/invariants"
|
Key = "normalize/dnd/scene-descriptions/invariants"
|
||||||
ReasonCode = "invalid_scene_description_normalization"
|
ReasonCode = "invalid_scene_description_normalization"
|
||||||
policy = "dnd.scene_descriptions.validator.invariants.v1"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
Key = "extract/dnd/scene-descriptions/shape"
|
Key = "extract/dnd/scene-descriptions/shape"
|
||||||
ReasonCode = "invalid_scene_description_shape"
|
ReasonCode = "invalid_scene_description_shape"
|
||||||
policy = "dnd.scene_descriptions.validator.shape.v2"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
Key = "extract/dnd/scene-descriptions/source_refs"
|
Key = "extract/dnd/scene-descriptions/source_refs"
|
||||||
ReasonCode = "invalid_scene_description_source_refs"
|
ReasonCode = "invalid_scene_description_source_refs"
|
||||||
policy = "dnd.scene_descriptions.validator.source_refs.v1"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
Key = "extract/dnd/scene-descriptions/source_relatedness"
|
Key = "extract/dnd/scene-descriptions/source_relatedness"
|
||||||
ReasonCode = "scene_description_not_near_source"
|
ReasonCode = "scene_description_not_near_source"
|
||||||
policy = "dnd.scene_descriptions.validator.source_relatedness.v1"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var stopwords = map[string]struct{}{
|
var stopwords = map[string]struct{}{
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
Key = "extract/dnd/spells/catalog"
|
Key = "extract/dnd/spells/catalog"
|
||||||
ReasonCode = "unknown_spell"
|
ReasonCode = "unknown_spell"
|
||||||
policy = "dnd.spells.validator.catalog.v2"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
Key = "extract/dnd/spells/shape"
|
Key = "extract/dnd/spells/shape"
|
||||||
ReasonCode = "invalid_spell_shape"
|
ReasonCode = "invalid_spell_shape"
|
||||||
policy = "dnd.spells.validator.shape.v2"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
Key = "extract/dnd/spells/source_refs"
|
Key = "extract/dnd/spells/source_refs"
|
||||||
ReasonCode = "invalid_source_refs"
|
ReasonCode = "invalid_source_refs"
|
||||||
policy = "dnd.spells.validator.source_refs.v3"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ import (
|
|||||||
const (
|
const (
|
||||||
Key = "extract/dnd/spells/source_relatedness"
|
Key = "extract/dnd/spells/source_relatedness"
|
||||||
ReasonCode = "spell_not_near_source"
|
ReasonCode = "spell_not_near_source"
|
||||||
policy = "dnd.spells.validator.source_relatedness.v1"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Options struct{}
|
type Options struct{}
|
||||||
|
|||||||
Reference in New Issue
Block a user