langseg-gates
The groupant beside tools/langseg/tests/gates.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 |
fixture_partition | fixture_partition | partial source derived model | fixture_partition |
label_intervention | label_intervention | partial source derived model | label_intervention |
serialization_tolerance | serialization_tolerance | partial source derived model | serialization_tolerance |
observed_identity | observed_identity | partial source derived model | observed_identity |
Model text
descriptant
Descriptant
Prospective epoch
2026-10-31 source review predicted: Twelve invented TMR/MISH strings train Counts, optionally swapped columns. Five tests observe script/transliteration, features, two held classifications, planted Viterbi split and temp model roundtrip. Resource model: Constant tiny fixture training/segmentation; roundtrip adds one write/read/delete. No performance claim. External prospective.md predates test additions and preserves APIs, effect order, hazards and interaction hypotheses.
Observed epoch
Bounded real helper checks in tests.md constrain these models; syntax is a partial lexical projection with no macro expansion, name resolution or proof. Production expressions unchanged; five inline test modules added. Compiled mutants are temporary and exactly restored. Existing malformed-input and nonfinite domains remain explicit, not silently repaired. Parent composes this scope with siblings without adding overlapping costs twice.
Finite harness joins, no universal semantic coverage.
approximant
Forward relation
Twelve invented TMR/MISH strings train Counts, optionally swapped columns. Five tests observe script/transliteration, features, two held classifications, planted Viterbi split and temp model roundtrip.
Domain: Fixtures bounded in source; roundtrip owns pid directory under dedicated TMPDIR. Swapped-label/infinite-switch controls are input controls, not source mutants. Repeated equality is finite evidence.
invariant
Invariant and cost
Invariant
Fixtures bounded in source; roundtrip owns pid directory under dedicated TMPDIR. Swapped-label/infinite-switch controls are input controls, not source mutants. Repeated equality is finite evidence.
Cost
Constant tiny fixture training/segmentation; roundtrip adds one write/read/delete. No performance claim.
Limits
Finite harness joins, no universal semantic coverage. No percentage surrogate is implemented: categorical parsing/effect observations lack an admitted numerical error metric. Any future profile must define its metric/domain and use only1/2/5/10 percent caps.
models
Typed source-bound relations
Subject: exact source SHA-256 in manifest. Domain and resource premises are in invariant.md. Each model is partial, source-derived, over a single helper invocation or the described finite trace. Complements are proposed inner exclusions under those premises; reverse relations retain all compatible antecedents, with no unique inverse claim. The oracle is the named checks in tests.md; unexecuted cases remain hypotheses. No numerical approximation certificate.
behavior_complement
No live corpus or teacher consulted. Passing cases cannot certify unseen text. Swapped model must disagree on both held labels.
reverse_reconstruction
Pass trace admits any implementation agreeing on finite observations, including unseen wrong behavior. Roundtrip tolerance admits many score arrays; labels do not identify unique model.
fixture_partition
TMR/MISH train and HELD contains2 invented strings, unrelated to frozen assessment.
label_intervention
Swapping model columns must change both labels; input intervention counted separately from source mutation.
serialization_tolerance
Feature count/predictions preserved and summed scores drift<.01 only on HELD. Near-tie labels elsewhere may change.
observed_identity
Repeated segmentation compares(start,end,lang), not explanations. External exact named results repeat debug/release.
tests
Checks and evidence
Named source/helper checks: script_runs_and_transliteration, cue_features_fire_on_pointed_and_unpointed_forms, classifier_learns_and_shuffled_labels_fail, viterbi_cuts_a_planted_sentence_and_only_with_a_finite_switch, deterministic_and_model_round_trip.
Wave31 on2026-10-31:30 distinct exact tests passed twice debug and twice release, with equal sorted named outcomes. This node claims only its listed subset; empty subset means source review only. Six actual source-behavior mutants compiled, failed assertions, restored exact bytes/hash, and passed focused green reruns. No assertion-only mutants; existing swapped-input controls are separate. Receipt bundle: $MOVA_DATA/runs/octopus-wave31-corpus-2026-10-31 (native-commands.json, source-test-map.json, mutation-results.json, .status/.log). No live corpus, teacher, frozen assessment, download or production data used.
Finite harness joins, no universal semantic coverage.
This page in Markdown โ https://md.groupants.elamur.ai/free/en/mova/tools/langseg/tests/gates.rs.groupant/