mlab-suite-parse-check
The groupant beside mlab/src/suite.rs in the Mova repository: what the code computes, what it never does, how to go back from its outputs, its invariants, cost and checks.
Facts
Implementation material. A Mova code model describes this code at one source revision: partial models, finite checks and their stated scope. It is not a reviewed general exposition, and its labels are shown as written, never raised.
Components
| component | label | where |
|---|---|---|
| approximant | partial | approximant |
| ast | partial | ../syntax.json |
| cost | symbolic source derived | invariant |
| descriptant | present | descriptant |
| invariant | partial | invariant |
| tests | executed bounded checks | tests |
Obernants
The typed relations around the forward model: the behaviour complement (what the code never does), the reverse reconstruction (every input compatible with an output) and specialised views.
| id | type | label | where |
|---|---|---|---|
behavior_complement | behavior_complement | partial source derived model | behavior_complement |
reverse_reconstruction | reverse_reconstruction | partial source derived model | reverse_reconstruction |
blank_line | blank_line | partial source derived model | blank_line |
delimiter | delimiter | partial source derived model | delimiter |
missing_header | missing_header | partial source derived model | missing_header |
first_mismatch | first_mismatch | partial source derived model | first_mismatch |
Model text
descriptant
mlab-suite-parse-check
Scenario text normalization and line comparator.
Epoch 2026-10-31
Half-open source bytes [499,3525); bound by parent source hash and scoped byte hash. Model covers only this fragment; parent composition explains joins.
approximant
Scoped forward relation
Headers split on | (first three only); code ends at exact ---; expectations recognize >*, > and > text. Compare exact/prefix, return earliest mismatch.
Domain and gap
Source-generated states within resource limits. Categorical relation has no executable percent surrogate.
invariant
Scoped invariant
got empty has no lines; got LF has one empty line.
Cost
Linear text and output/expectation traversal, allocating scenario/code/line vectors. String prefixes cost compared bytes; mismatch short-circuits.
models
Scoped typed relations
behavior_complement
Preamble without header excludes scenarios. Prefix matching excludes extra output lines. Comparator mismatch excludes matching any later line as a replacement for the first error.
reverse_reconstruction
Different ignored preambles and extra header fields map to same scenario; prefix ab accepts abc and ab.
blank_line
got empty has no lines; got LF has one empty line.
delimiter
Whitespace around --- prevents delimiter recognition.
missing_header
Text without ### header returns zero scenarios.
first_mismatch
Comparison stops earliest mismatch and reports k+1.
tests
Evidence scope
Parent selected tests: wave30_synthetic_suite_boundaries, wave30_synthetic_gate_fail_fast. This fragment shares parent syntax and finite checks; no separate test count or complete fragment coverage claim. Assertion-control association and unexecuted paths are in parent tests.md and source-test-map.json.
This page in Markdown โ https://md.groupants.elamur.ai/free/en/mova/mlab/src/suite.rs.groupant/parse-check.groupant/