Elamur GroupantsโŒ•
โ˜ฐ

onto-kb-seed-gates

The groupant beside onto/src/kb.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

componentlabelwhere
approximantpartialapproximant
astpartial../syntax.json
compositionpartialcomposition
costpartialcost
descriptantpresentdescriptant
invariantpartialinvariant
testsexecuted bounded checkstests

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.

idtypelabelwhere
behavior_complementbehavior_complementpartial source derived modelbehavior_complement
reverse_reconstructionreverse_reconstructionpartial source derived modelreverse_reconstruction
strict_relationstrict_relationpartial source derived modelstrict_relation
failure_orderfailure_orderpartial source derived modelfailure_order
row_transactionrow_transactionpartial source derived modelrow_transaction
index_invariantindex_invariantpartial source derived modelindex_invariant

Model text

descriptant

onto-kb-seed-gates

insert(a)=validate duplicate,same-node conflict,strict ancestry; then append+index

Epoch 2026-10-31

Specialized source fragment bytes [15201,16694); shared parent AST. Excludes unrelated parent operations and added test module.

approximant

Scoped forward

insert(a)=validate duplicate,same-node conflict,strict ancestry; then append+index

Domain

This byte-scoped operator uses the parent valid-state domain plus the following local restrictions:

Same layer/property opposite value with strict ancestor fails both insertion directions

Duplicate before conflict before strict

One insertion atomic; file sequence not atomic

by_concept records exact appended index

No executable percentage surrogate established.

invariant

Local observations

Rejected seed excludes mutation; gates=false cannot bypass duplicate/same-node conflict

Same layer/property opposite value with strict ancestor fails both insertion directions

Duplicate before conflict before strict

One insertion atomic; file sequence not atomic

by_concept records exact appended index

cost

Scoped cost

Duplicate/same-node scans O(A); ancestor(a) BFS plus potentially one BFS per opposite strict ancestor check. Temporary ancestors can occupy O(Va) each sequentially. Successful index append expected O(1) after scans; failure before mutation.

Symbolic accounting; no timing claim or whole-system speed bound.

composition

Parent join

seed-gates supplies the parent relation: insert(a)=validate duplicate,same-node conflict,strict ancestry; then append+index

Output compatibility is conditional on the local domain and earlier-branch exclusions. Other parent branches are outside this fragment.

models

behavior_complement

Rejected seed excludes mutation; gates=false cannot bypass duplicate/same-node conflict

reverse_reconstruction

Successful appended state recoverable by removing last seed/index if no public mutation

strict_relation

Same layer/property opposite value with strict ancestor fails both insertion directions

failure_order

Duplicate before conflict before strict

row_transaction

One insertion atomic; file sequence not atomic

index_invariant

by_concept records exact appended index

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/kb.rs.groupant/seed-gates.groupant/