onto-wdvmm
The groupant beside onto/src/wdvmm.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 |
| composition | partial | composition |
| cost | partial | Cost |
| descriptant | present | descriptant |
| invariant | partial | model.md |
| 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 |
budget_guard | budget_guard | partial source derived model | budget_guard |
round_robin | round_robin | partial source derived model | round_robin |
answer_projection | answer_projection | partial source derived model | answer_projection |
effect_order | effect_order | partial source derived model | effect_order |
Parts
Model text
descriptant
onto-wdvmm
spent sums numeric cost_usd from valid JSONL, unreadable/invalid=0. ask refuses spent+reserve>cap before mkdir/teacher, otherwise shared teacher then append log then is_error. pick_disputed requires13 fields, empty mean, lo<=confidence<hi; sorted-property round robin. parse in-range1-based yes/no/refine, last valid duplicate wins.
Epoch 2026-10-31
Full source reviewed before changes; prospective predictions retained in the external wave29 receipt. Added tests preserve production behavior. Parser overwrite, malformed spent records and early over-cap before cwd creation plus parse_answer executed. No teacher/model/environment-success/log effect run. Registration is partial modeling, not semantic proof.
approximant
Forward relation
spent sums numeric cost_usd from valid JSONL, unreadable/invalid=0. ask refuses spent+reserve>cap before mkdir/teacher, otherwise shared teacher then append log then is_error. pick_disputed requires13 fields, empty mean, lo<=confidence<hi; sorted-property round robin. parse in-range1-based yes/no/refine, last valid duplicate wins.
Scoped equation
v=vec(None,n). For each trimmed-tab row with>=2 fields, i=parse(strip_all_leading#(f0)); if1<=i<=n and lowercase(f1)∈{yes,no,refine}, v[i-1]=(verdict,f2_or_empty).
Domain: finite in-memory synthetic inputs and fresh tiny temporary fixtures, valid graph/CSR/rank coordinates when graph APIs are used, sufficient resources and representable integer intermediates. Malformed-input behavior is only claimed where explicitly stated; no universal panic-freedom. External teacher, live dump, corpus and database effects were not executed.
Executable approximant gap: no useful percentage metric established for these categorical/effectful observations. No surrogate or production substitution. Future caps 1/2/5/10% require a metric/domain and evidence; no numerical error bound follows here.
invariant
Invariant
Budget equality passes; NaN unvalidated. parse len=n, invalid ID/verdict never overwrites; missing why empty. prompt assumes>=6 columns. Teacher effect may precede log failure.
Cost
spent O(B) full log each ask; pick O(R log P+nP) plus clones; parse O(bytes+n). Teacher latency/cost unknown, reserve not actual bound.
Domain: finite in-memory synthetic inputs and fresh tiny temporary fixtures, valid graph/CSR/rank coordinates when graph APIs are used, sufficient resources and representable integer intermediates. Malformed-input behavior is only claimed where explicitly stated; no universal panic-freedom. External teacher, live dump, corpus and database effects were not executed.
composition
Composition
spent sums numeric cost_usd from valid JSONL, unreadable/invalid=0. ask refuses spent+reserve>cap before mkdir/teacher, otherwise shared teacher then append log then is_error. pick_disputed requires13 fields, empty mean, lo<=confidence<hi; sorted-property round robin. parse in-range1-based yes/no/refine, last valid duplicate wins.
Fragment answer-projection covers bytes [3682,4357); its equation contributes the indicated local relation. Other source branches/effects remain in the parent model; fragment does not inherit a whole-file proof.
Actual joins: wdx::Tsv emits rank-bearing unquoted schemas read by wdgraph and wdlex; wdgraph rebuilds local indices so wdwalk/rank_kinds must remap Q IDs. wdalign source masks serialize through src_names into wdwalk::n_sources_str (all16 categories checked). Wd uses first-step P31 even for present graph nodes, whereas wdwalk::run only adds P31 for absent graph Qs: these are distinct adapters. wdwalk candidates feed coresel confirmation; wdvmm parsing does not prove truth. wsd consumes model::Graph, kb::up/ancestors, query::lookup and core::of_concept; eval scores query::Answer rather than proof correctness. build::Builder consumes Zip::read; central/local offsets and method gates are not full ZIP validation.
models
behavior_complement
Strict over-cap excludes mkdir/teacher/log write. Invalid parse rows excluded but repeated valid overwrite allowed. Written log does not imply success; NaN guard not budget assurance.
reverse_reconstruction
Parsed Some(no,b) requires last accepted occurrence normalize to no,b; arbitrary ignored/overwritten lines compatible. Spent total admits many cost sequences/corrupt records; no unique call history.
budget_guard
s+reserve>cap not >=; actual cost may exceed reserve.
round_robin
BTree property order; preserve row order within property.
answer_projection
Trim fields, repeated leading# allowed, ASCII lowercase verdict, extra fields discarded.
effect_order
mkdir→teacher→append→log→is_error; append failure masks teacher error.
tests
Executed checks
Native command: cargo test --offline -p onto --bin onto -- --exact --test-threads=1 wdvmm::t::parse_answer wdvmm::wave29_ontowiki::parse_overwrite_and_budget_refusal (add --release before -- for optimized profile). These exact names were included in the inspected selected command, twice per profile. All 21 sorted named outcomes matched across four runs. This source's compiled mutant returned exit101 with a failing assertion; exact source restoration followed by its passing test.
Parser overwrite, malformed spent records and early over-cap before cwd creation plus parse_answer executed. No teacher/model/environment-success/log effect run.
Syntax generated twice identically after restoring source. Evidence receipts: debug-1/debug-2/release-1/release-2 logs, outcomes and exit files; negative-wdvmm, restored-wdvmm, controls.json and native-commands.json in external wave29 ontowiki run.
No strict Clippy claim: inherited dependency/target warnings observed; no production logic changed, focused rustfmt applied to added test modules only.
This page in Markdown → https://md.groupants.elamur.ai/free/en/mova/onto/src/wdvmm.rs.groupant/