PureYAML/scripts
Mihaela M fc1a6db1dc refactor(validation): fold the tagged validator onto one framework
The tagged-node validator carried its own copy of the validation machinery:
a Tagged.Rule cloning Validation's check type and a Tagged.Context cloning
its context, differing only in subject type. That is the per-layer
duplication the validation idiom exists to prevent (principle 10).

Generalise the type-directed framework over both the subject and the
document: SubjectContext, Check, and AnyCheck now take a Document type
parameter for the validated tree's root. The model layer validates with a
Model.Value document, the tagged layer with a Tagged.Node document, each
truthful rather than forcing one root type to stand in for the other.

The tagged layer keeps only what is genuinely its own: the Node document
type, its built-in check (now Tagged.BuiltinCheck, a Check<Node, Node>), and
its traversal. Tagged.Rule and the tagged Context are removed. The validator
surface is unchanged but validating now takes a Check<Node, Node>.

All 399 tests pass; the coverage gate reconciles to 62 public types.
2026-06-28 10:41:10 +02:00
..
check-all.sh build: enforce validation coverage over every public type 2026-06-28 05:00:54 +02:00
check-changelog-touched.sh ci(gates): add full local verification script 2026-06-05 10:24:04 +02:00
check-corpus.sh feat(parser): harden diagnostics and streaming 2026-06-06 07:57:48 +02:00
check-forbidden-patterns.sh Harden parser against real YAML fixtures 2026-06-05 19:34:30 +02:00
check-json-compatibility.sh feat(parser): harden diagnostics and streaming 2026-06-06 07:57:48 +02:00
check-linux.sh ci: run optimized build gates 2026-06-05 22:36:28 +02:00
check-namespacing.sh refactor(code-style): one top-level type per source file 2026-06-26 06:14:21 +02:00
check-performance-phases.sh feat(parser): harden diagnostics and streaming 2026-06-06 07:57:48 +02:00
check-roadmap.sh docs(roadmap): collapse completed epic diagrams 2026-06-05 10:50:13 +02:00
check-style.sh chore(rules): vendor the rules-swift canon into docs/rules-swift 2026-06-26 05:36:12 +02:00
check-throughput.sh feat(parser): harden diagnostics and streaming 2026-06-06 07:57:48 +02:00
check-validation-coverage.sh build: enforce validation coverage over every public type 2026-06-28 05:00:54 +02:00
check-wasm.sh ci: run optimized build gates 2026-06-05 22:36:28 +02:00
check-windows.ps1 ci: run optimized build gates 2026-06-05 22:36:28 +02:00
check-yams-diagnostics.sh feat(parser): harden diagnostics and streaming 2026-06-06 07:57:48 +02:00
check-yams-differential.sh feat(parser): harden diagnostics and streaming 2026-06-06 07:57:48 +02:00
check-yams-validation.sh feat(parser): harden diagnostics and streaming 2026-06-06 07:57:48 +02:00
fetch-yaml-test-suite.sh test: measure conformance against the official YAML test-suite 2026-06-26 17:43:19 +02:00
validation-coverage.tsv refactor(validation): fold the tagged validator onto one framework 2026-06-28 10:41:10 +02:00