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).
Structural conformance
Section titled “Structural conformance”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.
Error rejection
Section titled “Error rejection”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.
Four-axis bar
Section titled “Four-axis bar”YAML is verified on all four invariant axes:
| Axis | Result |
|---|---|
| never-throw | 0 throws across full corpus + adversarial fuzz |
| well-formed | corpus WF = 0, 7 fuzz harnesses clean |
| lossless | corpus lossless = 0, byte-exact round-trip |
| conformance | 268/268 valid + 82/82 error |
Test corpus
Section titled “Test corpus”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.