onto-main-startup
The groupant beside onto/src/main.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 | invariant |
| 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 |
gate_switch | gate_switch | partial source derived model | gate_switch |
loader_order | loader_order | partial source derived model | loader_order |
shape_join | shape_join | partial source derived model | shape_join |
effect_domain | effect_domain | partial source derived model | effect_domain |
Model text
descriptant
onto-main-startup
Result composition snapshot→layers→relations→defaults→core gate
Epoch 2026-10-31
Specialized source fragment bytes [2238,2989); shared parent AST. Excludes unrelated parent operations and added test module.
approximant
Scoped forward
Result composition snapshot→layers→relations→defaults→core gate
Domain
This byte-scoped operator uses the parent valid-state domain plus the following local restrictions:
Only exact ONTO_CORE_GATE=off allows conflicts with warning
Layer names must exist before relation/default parsing
store shape checks precede Kb construction, not semantic DAG checks
Reads real resources in production; startup unexecuted by selected helpers
No executable percentage surrogate established.
invariant
Local observations
Snapshot error excludes seed loads; core contradiction excludes Ok unless switch off
Only exact ONTO_CORE_GATE=off allows conflicts with warning
Layer names must exist before relation/default parsing
store shape checks precede Kb construction, not semantic DAG checks
Reads real resources in production; startup unexecuted by selected helpers
cost
Scoped cost
Reads whole snapshot plus three TSV files; decode/check cost O(snapshot bytes+references), seed load repeatedly traverses graph, then core::check. Errors terminate later stages; all effects here are reads and optional stderr warning, but file sizes are not capped.
Symbolic accounting; no timing claim or whole-system speed bound.
composition
Parent join
startup supplies the parent relation: Result composition snapshot→layers→relations→defaults→core gate
Output compatibility is conditional on the local domain and earlier-branch exclusions. Other parent branches are outside this fragment.
models
behavior_complement
Snapshot error excludes seed loads; core contradiction excludes Ok unless switch off
reverse_reconstruction
Successful Kb compatible with all resource paths containing same snapshot/seeds; environment lost
gate_switch
Only exact ONTO_CORE_GATE=off allows conflicts with warning
loader_order
Layer names must exist before relation/default parsing
shape_join
store shape checks precede Kb construction, not semantic DAG checks
effect_domain
Reads real resources in production; startup unexecuted by selected helpers
tests
Evidence
Parent tests.md identifies selected actual-code checks. Fragment is a source-scoped partial model; parent finite fixtures do not establish exhaustive branch coverage or every local equation.
This page in Markdown → https://md.groupants.elamur.ai/free/en/mova/onto/src/main.rs.groupant/startup.groupant/