translation-flow-many-stream_measure
The groupant beside tools/translate/src/many.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 |
refusal_branch | refusal_branch | partial source derived model | refusal_branch |
whole_missing | whole_missing | partial source derived model | whole_missing |
sample_gate | sample_gate | partial source derived model | sample_gate |
retained_state | retained_state | partial source derived model | retained_state |
Model text
descriptant
translation-flow-many-stream_measure
Train Standard/deltas from training Seen, drop Seen, stream dev blocks. Parse translations, optionally intersect keys; measure own tails; compare each present ordered pair both ordinary and shuffled; sum own/pair/block metrics; sample full code into reference and back; retain dev metas only rules && name=many pairs.
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.
Valid Ctx indices and actual model state; cross residual uses target words and tail, not symmetric population. No live execution in this epoch.
approximant
Forward relation
Train Standard/deltas from training Seen, drop Seen, stream dev blocks. Parse translations, optionally intersect keys; measure own tails; compare each present ordered pair both ordinary and shuffled; sum own/pair/block metrics; sample full code into reference and back; retain dev metas only rules && name=many pairs.
Scope: source-derived conditional transition model at the manifest SHA. Valid Ctx indices and actual model state; cross residual uses target words and tail, not symmetric population. No live execution in this epoch.
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
Whole absent block cannot increment p.blocks/p.verses/cross tail, although canonical bits and absent_words recorded. parallel_only rejects incomplete translation set before measurements.
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
Pair sums admit multiple block/verse sequences; sample whole-code gate constrains only step_by3 subset. Cannot recover missing blocks from cross alone; need nomatch/absent metrics and source pools.
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.
refusal_branch
aligned>alone switches to structural charge alone=reader_bits([],target)+1; equality remains aligned.
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.
whole_missing
Missing whole side records target level bits without tail; missing target verse inside otherwise present block counts words, reader and target tail.
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.
sample_gate
Every third common verse into reference/back gives finite code-gap check; no exhaustive correctness from sample.
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.
retained_state
Metas retained for rules only in many-pairs variant; ordinary streaming drop does not imply constant total memory because training/interner/pairs remain.
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
many::tests::clustering_puts_near_ones_togethermany::tests::agreement_and_its_controlmany::tests::a_block_meta_world_is_stored_oncemany::tests::versification_drops_a_shifted_chaptermany::wave32::empty_ties_and_accounting
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
Valid Ctx indices and actual model state; cross residual uses target words and tail, not symmetric population. No live execution in this epoch.
Cost
Training state retained; current block corpora/metas/tails O(block bytes) plus pair mapO(P²); optional kept accumulates all dev metas. Per-pair reader/logic sums dominate; no timing inference.
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/many.rs.groupant/stream_measure.groupant/