Skip to content

YAML Conformance

Lanexio Parser targets full YAML 1.2.2 conformance against the yaml-test-suite, the official YAML language test corpus. Conformance is measured on two independent axes: structural validity (does the parser produce correct event streams for valid input) and error rejection (does the parser correctly reject malformed input).

268 of 268 valid cases pass — 100% structural conformance. Every YAML document in the test suite that the spec defines as valid parses to the correct event stream.

The conformance gate is an exact-count assertion: expect(passed).toBe(268). This is not a ceiling or a “less than or equal” check. If a future change regresses a single case, the gate fails.

82 of 82 error cases rejected — 100% error rejection. The parser correctly identifies and rejects every intentionally malformed YAML document in the test suite.

Error rejection is verified independently from structural conformance. Both axes carry exact-count gates that can only rise.

YAML is verified on all four invariant axes:

AxisResult
never-throw0 throws across full corpus + adversarial fuzz
well-formedcorpus WF = 0, 7 fuzz harnesses clean
losslesscorpus lossless = 0, byte-exact round-trip
conformance268/268 valid + 82/82 error

The yaml-test-suite consists of 268 valid input files and 82 error input files organized by case ID. Each case includes the input YAML and the expected event stream. Conformance is measured by comparing the parser’s event output against the expected stream — not by comparing AST structures, which can vary between implementations.