translation-flow-report
The groupant beside tools/translate/src/report.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-and-cost |
| descriptant | present | descriptant |
| invariant | partial | invariant-and-cost |
| tests | bounded helpers only | 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 |
class_transport | class_transport | partial source derived model | class_transport |
zero_denominator | zero_denominator | partial source derived model | zero_denominator |
missing_metric | missing_metric | partial source derived model | missing_metric |
write_prefix | write_prefix | partial source derived model | write_prefix |
Model text
descriptant
translation-flow-report
group maps all classes into six fixed task groups; by_class collapses layer coordinates, groups_of sums bits across residual references, per divides by max(n,1). write renders systems, block/world comparisons, delta diagnostics, examples and TSVs, then writes report.md, examples.md, numbers.tsv, lexicon.tsv, deltas.tsv sequentially.
Epoch 2026-10-31
Prospective predictions saved before edits in the external wave32 tr_flow receipts. Original production bytes preserved; only appended synthetic test modules added. Selected actual helpers exercised; five compiled behavior controls rejected with exact byte restoration and positive reruns. Source syntax projection is partial, not expanded semantic Rust. Diagnostic reconstruction with residual is not semantic understanding or persistent learning.
Finite residuals for partial_cmp sorting; delta and shuffled-delta arrays index-compatible; counter additions representable. Missing delta matches intentionally yield NaN. Grouping preserves summed bits modulo floating addition order but loses layer identity.
approximant
Forward relation
group maps all classes into six fixed task groups; by_class collapses layer coordinates, groups_of sums bits across residual references, per divides by max(n,1). write renders systems, block/world comparisons, delta diagnostics, examples and TSVs, then writes report.md, examples.md, numbers.tsv, lexicon.tsv, deltas.tsv sequentially.
Scope: source-derived conditional transition model at the manifest SHA. Finite residuals for partial_cmp sorting; delta and shuffled-delta arrays index-compatible; counter additions representable. Missing delta matches intentionally yield NaN. Grouping preserves summed bits modulo floating addition order but loses layer identity.
composition
Composition
Scoped children are projections of this file, not independent executables. Main population filtering feeds aggregation; order/text helpers feed measure's exact decoder; many's agreement and storage read the same MTok with intentionally different punctuation treatment, streaming accounting consumes reader costs, clustering consumes normalized PairM. Uncovered branches remain source-derived; finite helper checks do not establish orchestration wiring.
catalog
Typed models
All entries bind the source SHA and optional byte range in manifest.json. Observation is one admitted helper call or the explicitly described orchestration trace. Relations are partial source-derived models, not universal proofs. Finite test names and unexecuted effects are in tests.md.
behavior_complement
Zero denominator cannot divide by zero because per uses max1; absent direct cells display em dash even if direct gate counter is nonzero. Layer-collapsed report cannot distinguish equal class contributions from different layers.
Domain and held-fixed assumptions: the invariant/forward documents for this exact scope. Status: partial source-derived relation; complement is a conditional inner exclusion, reverse retains ambiguity, other types specify the named projection/intervention. Oracle: relevant named synthetic tests when listed; otherwise source inspection only.
reverse_reconstruction
A class total admits all layer partitions whose sum equals it. Rounded text numbers admit float intervals; TSV rows retain stage/class yet not original residual examples. Sequential output prefix is compatible with failure at any later write, not evidence of all writes completing.
Domain and held-fixed assumptions: the invariant/forward documents for this exact scope. Status: partial source-derived relation; complement is a conditional inner exclusion, reverse retains ambiguity, other types specify the named projection/intervention. Oracle: relevant named synthetic tests when listed; otherwise source inspection only.
class_transport
Lexical/Dropped/PronName/Quantity/Neg→0; Attachment/Tense/Sentence/Links/Quote/Repetition and page trees→1; Order2; Function3; punctuation/layout/meta/markup/given/repeat4; Form/Choice/Spelling/Accent5.
Domain and held-fixed assumptions: the invariant/forward documents for this exact scope. Status: partial source-derived relation; complement is a conditional inner exclusion, reverse retains ambiguity, other types specify the named projection/intervention. Oracle: relevant named synthetic tests when listed; otherwise source inspection only.
zero_denominator
per(x,0)=x and per(x,1)=x. Therefore displayed nonzero bits with zero population are possible from arbitrary synthetic Agg state, not normalized empirical averages.
Domain and held-fixed assumptions: the invariant/forward documents for this exact scope. Status: partial source-derived relation; complement is a conditional inner exclusion, reverse retains ambiguity, other types specify the named projection/intervention. Oracle: relevant named synthetic tests when listed; otherwise source inspection only.
missing_metric
No matching autoencoder returns NaN; missing direct cells render absence. These distinct missingness conventions must survive any report adapter.
Domain and held-fixed assumptions: the invariant/forward documents for this exact scope. Status: partial source-derived relation; complement is a conditional inner exclusion, reverse retains ambiguity, other types specify the named projection/intervention. Oracle: relevant named synthetic tests when listed; otherwise source inspection only.
write_prefix
Report, examples, numbers, lexicon, deltas ordered effects stop at first filesystem error. Rendered user-provided strings are not Markdown/TSV escaping guarantees.
Domain and held-fixed assumptions: the invariant/forward documents for this exact scope. Status: partial source-derived relation; complement is a conditional inner exclusion, reverse retains ambiguity, other types specify the named projection/intervention. Oracle: relevant named synthetic tests when listed; otherwise source inspection only.
tests
Evidence and gaps
Native checks
report::wave32::class_conservation_and_zero_denominator
These selected names ran twice debug and twice release with exact filtering and one test thread; raw logs and numeric status files are in the external octopus-wave32-tr_flow-2026-10-31 receipt directory. All test bodies inspected before selection. Inline cases use only synthetic in-memory records; the existing blocks filesystem test was not selected. Tests listed at file level do not execute every function or this entire scoped fragment.
Controls
Five compiled source-behavior mutants: main gate counter suppressed; many strict chapter comparison relaxed; measure noncanonical-gap recording disabled; pages Meta filter reversed; blocks literal-change predicate reversed. All failed the corresponding assertion and passed after original bytes/hash restoration. Zero assertion-only mutants; zero surviving exploratory mutants.
Limitations
CLI argument/effect paths, live corpus/model/annotation/training, full Run::verse, page filesystem and reports remain source-derived only. Source syntax projections generated twice and byte-compared. No corpus-quality, persistent-learning, throughput or universal semantic coverage claim.
invariant-and-cost
Domain, invariant and cost
Invariant
Finite residuals for partial_cmp sorting; delta and shuffled-delta arrays index-compatible; counter additions representable. Missing delta matches intentionally yield NaN. Grouping preserves summed bits modulo floating addition order but loses layer identity.
Cost
O(cells log classes) by_class aggregation, O(cells) groups; sorting residual classes O(C log C), lexicon clusters O(Vlog V), rendering O(output bytes). Five sequential writes may leave prefix on failure; no live write exercised.
Integer additions/casts require representability; finite floating inputs where comparisons are modeled. These symbolic costs are not measurements of corpus throughput. No useful cheaper executable percentage surrogate established; future supported caps only 1/2/5/10%.
This page in Markdown → https://md.groupants.elamur.ai/free/en/mova/tools/translate/src/report.rs.groupant/