roundtrip-pipeline-grouping
The groupant beside tools/roundtrip/src/pipeline.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 | partial | invariant-and-cost |
| descriptant | present | descriptant |
| invariant | partial | invariant-and-cost |
| tests | 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 |
context_partition | context_partition | partial source derived model | context_partition |
damage_precedence | damage_precedence | partial source derived model | damage_precedence |
scope_precondition | scope_precondition | partial source derived model | scope_precondition |
resource_boundary | resource_boundary | partial source derived model | resource_boundary |
Model text
descriptant
Grouping and damage controls
2026-10-31 epoch: source scope bytes [3334,6971); Groups produce contiguous partition intervals; damage mutates one first eligible residual component using layer-specific precedence.
No annotator/model loading, live corpus, full suite, teacher, GPU or persistent-learning evidence. No executable percentage surrogate: categorical codecs/effects need a useful metric before future caps 1/2/5/10%.
approximant
Grouping and damage controls
Groups produce contiguous partition intervals; damage mutates one first eligible residual component using layer-specific precedence.
Domain: bounded synthetic values, valid source-specific coordinates, nonoverflowing counts, available allocation; fixed environment controls. Relations are source-derived partial models with finite checks, not universal proofs.
catalog
behavior_complement
Subject: roundtrip-pipeline-grouping, source hash 88be3b618dd828411c1e6633432af60ba9fa905429b55cff88fbc31b5ae721da, transition observation.
For Grouping and damage controls, excluded transitions violate the stated scoped rule: Groups produce contiguous partition intervals; damage mutates one first eligible residual component using layer-specific precedence. This is an inner source-derived exclusion under the domain, not a complement of arbitrary unseen runtime behavior.
Domain: bounded synthetic values, valid source-specific coordinates, nonoverflowing counts, available allocation; fixed environment controls. Relations are source-derived partial models with finite checks, not universal proofs.
Evidence: external wave32 rt_core receipt includes native-commands.json, exact named outcomes twice debug/twice release, raw status/log files, compiled production controls with byte restoration and paired syntax. Only named synthetic helpers execute; model_path/export and live CLI paths have representation/source evidence.
Status: partial source-derived model.
reverse_reconstruction
Subject: roundtrip-pipeline-grouping, source hash 88be3b618dd828411c1e6633432af60ba9fa905429b55cff88fbc31b5ae721da, transition observation.
Fix outputs and post-state of grouping; compatible antecedents are all scoped inputs/pre-state satisfying: Groups produce contiguous partition intervals; damage mutates one first eligible residual component using layer-specific precedence. Fields outside this byte scope are held fixed; discarded fields remain ambiguous.
Domain: bounded synthetic values, valid source-specific coordinates, nonoverflowing counts, available allocation; fixed environment controls. Relations are source-derived partial models with finite checks, not universal proofs.
Evidence: external wave32 rt_core receipt includes native-commands.json, exact named outcomes twice debug/twice release, raw status/log files, compiled production controls with byte restoration and paired syntax. Only named synthetic helpers execute; model_path/export and live CLI paths have representation/source evidence.
Status: partial source-derived model.
context_partition
Subject: roundtrip-pipeline-grouping, source hash 88be3b618dd828411c1e6633432af60ba9fa905429b55cff88fbc31b5ae721da, transition observation.
Unit Sentence resets reader context each sentence; Block and World share volume reader context. Unit World resets realizer/world only, preserving read frames.
Domain: bounded synthetic values, valid source-specific coordinates, nonoverflowing counts, available allocation; fixed environment controls. Relations are source-derived partial models with finite checks, not universal proofs.
Evidence: external wave32 rt_core receipt includes native-commands.json, exact named outcomes twice debug/twice release, raw status/log files, compiled production controls with byte restoration and paired syntax. Only named synthetic helpers execute; model_path/export and live CLI paths have representation/source evidence.
Status: partial source-derived model.
damage_precedence
Subject: roundtrip-pipeline-grouping, source hash 88be3b618dd828411c1e6633432af60ba9fa905429b55cff88fbc31b5ae721da, transition observation.
Tokens gaps before tails; Tree spell before spacing before order; Frames first Insert/patch; World patches before toggles before inserts; Route false. Empty sentences alone are not damaged.
Domain: bounded synthetic values, valid source-specific coordinates, nonoverflowing counts, available allocation; fixed environment controls. Relations are source-derived partial models with finite checks, not universal proofs.
Evidence: external wave32 rt_core receipt includes native-commands.json, exact named outcomes twice debug/twice release, raw status/log files, compiled production controls with byte restoration and paired syntax. Only named synthetic helpers execute; model_path/export and live CLI paths have representation/source evidence.
Status: partial source-derived model.
scope_precondition
Subject: roundtrip-pipeline-grouping, source hash 88be3b618dd828411c1e6633432af60ba9fa905429b55cff88fbc31b5ae721da, transition observation.
Grouping and damage controls requires the coordinate/state assumptions of this fragment; inspect its exact byte range. Groups produce contiguous partition intervals; damage mutates one first eligible residual component using layer-specific precedence. Invalid arbitrary state is outside the reconstruction law.
Domain: bounded synthetic values, valid source-specific coordinates, nonoverflowing counts, available allocation; fixed environment controls. Relations are source-derived partial models with finite checks, not universal proofs.
Evidence: external wave32 rt_core receipt includes native-commands.json, exact named outcomes twice debug/twice release, raw status/log files, compiled production controls with byte restoration and paired syntax. Only named synthetic helpers execute; model_path/export and live CLI paths have representation/source evidence.
Status: partial source-derived model.
resource_boundary
Subject: roundtrip-pipeline-grouping, source hash 88be3b618dd828411c1e6633432af60ba9fa905429b55cff88fbc31b5ae721da, transition observation.
Grouping and damage controls: allocations/clones and recursion/scans within this scope are retained. Parent cost bound is conservative for this subroutine: groups O(n) singleton storage or O(1) Block. drop_class O(n^2) worst-case ancestor walking, O(n) vectors. run cost sums segmentation, annotation, frame realization, alignments, world passes and text diffs; retained intermediate payload is proportional to all generated representations, not streaming constant memory.
Domain: bounded synthetic values, valid source-specific coordinates, nonoverflowing counts, available allocation; fixed environment controls. Relations are source-derived partial models with finite checks, not universal proofs.
Evidence: external wave32 rt_core receipt includes native-commands.json, exact named outcomes twice debug/twice release, raw status/log files, compiled production controls with byte restoration and paired syntax. Only named synthetic helpers execute; model_path/export and live CLI paths have representation/source evidence.
Status: partial source-derived model.
tests
Scoped evidence
Evidence: external wave32 rt_core receipt includes native-commands.json, exact named outcomes twice debug/twice release, raw status/log files, compiled production controls with byte restoration and paired syntax. Only named synthetic helpers execute; model_path/export and live CLI paths have representation/source evidence.
Coverage is limited to this fragment's reached branches; parent tests do not prove every scoped branch.
invariant-and-cost
Scoped invariant and cost
Groups produce contiguous partition intervals; damage mutates one first eligible residual component using layer-specific precedence.
groups O(n) singleton storage or O(1) Block. drop_class O(n^2) worst-case ancestor walking, O(n) vectors. run cost sums segmentation, annotation, frame realization, alignments, world passes and text diffs; retained intermediate payload is proportional to all generated representations, not streaming constant memory.
The parent bound is conservative; unrelated parent effects are excluded from this fragment.
This page in Markdown โ https://md.groupants.elamur.ai/free/en/mova/tools/roundtrip/src/pipeline.rs.groupant/grouping.groupant/