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
| 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 |
strict_relation | strict_relation | partial source derived model | strict_relation |
failure_order | failure_order | partial source derived model | failure_order |
row_transaction | row_transaction | partial source derived model | row_transaction |
index_invariant | index_invariant | partial source derived model | index_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/