Align D&D validator ordering
This commit is contained in:
@@ -29,6 +29,12 @@ variants. The D&D production registrar registers the canonical typed spell,
|
||||
NPC, and combat implementations, including their kind-specific merge and
|
||||
normalize behavior.
|
||||
|
||||
For D&D artifact defaults, generic JSON syntax validation runs first. Rejecting
|
||||
domain validators then own semantic diagnostics before generic JSON Schema
|
||||
validation provides the final rejecting representation backstop; warning-only
|
||||
relatedness validators run last. This default composition does not reorder an
|
||||
explicitly configured validator chain.
|
||||
|
||||
Prepared extractors, extract validators, and codecs may be reused concurrently
|
||||
by the run-wide extract pool. Production implementations are immutable after
|
||||
construction: they retain only typed options, immutable assets, or the shared
|
||||
@@ -410,7 +416,8 @@ validator owns display normalization, comparison-unique targets, canonical
|
||||
source-reference order, chronology, and exact duplicate identity; it defers
|
||||
shape and source-reference failures. All four validators are deterministic and
|
||||
expose local policy fingerprints. The D&D registrar orders them after generic
|
||||
JSON and response-schema validation at extraction and normalization.
|
||||
JSON validation and before response-schema validation at extraction and
|
||||
normalization.
|
||||
|
||||
## Production Registration
|
||||
|
||||
|
||||
@@ -298,6 +298,13 @@ canonical chunk JSON or artifact codec bytes. Validators execute in resolved
|
||||
order and stop at the first error or rejection. An empty chain approves the
|
||||
result.
|
||||
|
||||
Production D&D artifact chains keep generic JSON syntax validation first, then
|
||||
run every rejecting domain validator before generic JSON Schema validation. The
|
||||
domain validator therefore owns expected semantic diagnostics; the generic
|
||||
schema validator remains the final rejecting representation backstop, before
|
||||
warning-only relatedness validation. Explicitly configured validator chains
|
||||
retain their configured order.
|
||||
|
||||
`runWithRetry` applies the effective retry policy around module execution and
|
||||
its complete validation chain. A module or validator error becomes a framework
|
||||
error when attempts are exhausted. A rejection becomes a recorded
|
||||
|
||||
Reference in New Issue
Block a user