roundtrip-tests-synthetic_residuals
The groupant beside tools/roundtrip/src/tests.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 |
residual_witness | residual_witness | partial source derived model | residual_witness |
scope_precondition | scope_precondition | partial source derived model | scope_precondition |
resource_boundary | resource_boundary | partial source derived model | resource_boundary |
observation_projection | observation_projection | partial source derived model | observation_projection |
Model text
descriptant
Synthetic residual witnesses
2026-10-31 epoch: source scope bytes [883,4672); Three initial fixtures cover projective orders, parsed-realized scripts, and world dedup/sentence reconstruction; all avoid the optional model loader.
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
Synthetic residual witnesses
Three initial fixtures cover projective orders, parsed-realized scripts, and world dedup/sentence reconstruction; all avoid the optional model loader.
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-tests-synthetic_residuals, source hash 7d1dbfa26a29fb87a9562f16de3dfbe0542e87b7db28ef675a358a9471f3153c, transition observation.
For Synthetic residual witnesses, excluded transitions violate the stated scoped rule: Three initial fixtures cover projective orders, parsed-realized scripts, and world dedup/sentence reconstruction; all avoid the optional model loader. 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-tests-synthetic_residuals, source hash 7d1dbfa26a29fb87a9562f16de3dfbe0542e87b7db28ef675a358a9471f3153c, transition observation.
Fix outputs and post-state of synthetic_residuals; compatible antecedents are all scoped inputs/pre-state satisfying: Three initial fixtures cover projective orders, parsed-realized scripts, and world dedup/sentence reconstruction; all avoid the optional model loader. 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.
residual_witness
Subject: roundtrip-tests-synthetic_residuals, source hash 7d1dbfa26a29fb87a9562f16de3dfbe0542e87b7db28ef675a358a9471f3153c, transition observation.
tree_script and world reconstruction tests compare full structures then remove inserts/patches/toggles and require inequality; this checks residual dependence, not normal-mode equivalence.
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-tests-synthetic_residuals, source hash 7d1dbfa26a29fb87a9562f16de3dfbe0542e87b7db28ef675a358a9471f3153c, transition observation.
Synthetic residual witnesses requires the coordinate/state assumptions of this fragment; inspect its exact byte range. Three initial fixtures cover projective orders, parsed-realized scripts, and world dedup/sentence reconstruction; all avoid the optional model loader. 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-tests-synthetic_residuals, source hash 7d1dbfa26a29fb87a9562f16de3dfbe0542e87b7db28ef675a358a9471f3153c, transition observation.
Synthetic residual witnesses: allocations/clones and recursion/scans within this scope are retained. Parent cost bound is conservative for this subroutine: Finite fixture work bounded by fixed words/frames plus called helper costs. Compilation includes all tests but only exact named safe tests execute; model() and its filesystem/model-load effects remain excluded.
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.
observation_projection
Subject: roundtrip-tests-synthetic_residuals, source hash 7d1dbfa26a29fb87a9562f16de3dfbe0542e87b7db28ef675a358a9471f3153c, transition observation.
Observe only outputs/state produced by Synthetic residual witnesses, holding caller state fixed. Three initial fixtures cover projective orders, parsed-realized scripts, and world dedup/sentence reconstruction; all avoid the optional model loader. Downstream aggregation is not an injective observation of this scope.
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
Three initial fixtures cover projective orders, parsed-realized scripts, and world dedup/sentence reconstruction; all avoid the optional model loader.
Finite fixture work bounded by fixed words/frames plus called helper costs. Compilation includes all tests but only exact named safe tests execute; model() and its filesystem/model-load effects remain excluded.
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/tests.rs.groupant/synthetic_residuals.groupant/