Elamur GroupantsโŒ•
โ˜ฐ

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

componentlabelwhere
approximantpartialapproximant
astpartial../syntax.json
costsymbolic source derivedinvariant
descriptantpresentdescriptant
invariantpartialinvariant
testsexecuted bounded checkstests

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.

idtypelabelwhere
behavior_complementbehavior_complementpartial source derived modelbehavior_complement
reverse_reconstructionreverse_reconstructionpartial source derived modelreverse_reconstruction
blank_lineblank_linepartial source derived modelblank_line
delimiterdelimiterpartial source derived modeldelimiter
missing_headermissing_headerpartial source derived modelmissing_header
first_mismatchfirst_mismatchpartial source derived modelfirst_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/