Mova0.6 pre-release

onto — the world model

A model of abstractions kept separate from the narrative: TBox versus ABox, as described in docs/context.md, "World model — separate from the narrative". The guiding idea: build the world model before the mathematics; it still has to be taught, much like in fairy tales, that an apple is a fruit.

The core does not depend on en: lemmas and parts of speech come from OEWN itself. Only the hs module (goods classifier) takes parses from en and exact numbers from math.

Parts of the crate:

How it works

Model (model.rs)

Build (build.rs, zip.rs) and snapshot (store.rs)

Seeds (seeds/) and layers

Inheritance (kb.rs)

A query on layer L sees only the seeds of L and its ancestors. An exception applies on its own layer and below: the fable CanSpeak does not make real crows speakers.

  1. Layer: the most specific layer where at least one visible seed concerns the concept or its ancestor decides. A fable overrides the real world only where it has said something of its own.
  2. Concept: within that layer the most specific concept wins. An ancestor's seed is overridden by a descendant's seed, and the proof shows it.
  3. Nixon diamond: two incomparable seeds with different values give "undetermined" with both proofs, not a random choice.
  4. Strength: Strict is not overridden on its own layer. A lower layer may explicitly override anything — that is what layers are for.

Word sense selection (query.rs)

Without a sentence, the context comes from the query itself (for isa and haspart the candidates are then ranked by the WSD score, section Word sense selection by context):

Every answer says which sense was taken, why, and at what frequency rank.

Queries

querywhat"no" or "unknown"
isa X YX is a kind or instance of Y; IsA/InstanceOf chain"no" — with two chains to the common ancestor where they diverge
can X V · prop X P [--layer L]property on a layer; chain to the seed, the defeated seed, the layer"unknown" if no seed applies
haspart X Y · partof Y X · memberof Y X · madeof X Yparts, including those inherited from ancestors, parts of partsOEWN meronymy is incomplete, so we never say "no" — only "unknown"
parts Xdirect parts, members and substances of the concept and its ancestors
frame V · role V R · inherits F Ga verb's frames with Core and other roles, frame inheritance"unknown" if the word is not among the lexical units
entails X Y · causes X Yverb entailment and causation, with hypernyms
word W · up Xa word's senses; ancestors

An unknown word gives "unknown", not a guess.

Examples:

$ onto can crow speak --layer fable
yes
  sense: crow → oewn-01581669-n «crow» (1st of 6, noun.animal; first sense) — «black birds having a raucous call»
  inherited: «crow» —IsA→ «corvine bird» —IsA→ «oscine» —IsA→ «passerine» —IsA→ «bird» —IsA→ «vertebrate» —IsA→ «chordate» —IsA→ «animal»
  seed d62 [fable — genre, Default]: oewn-00015568-n «animal» CanSpeak=yes — source: fable genre: animals talk (Aesop; …)
  exception of layer fable (applies only on it and below)
$ onto can crow speak          → no: seed d10 [real] animal CanSpeak=no
$ onto can penguin fly         → no: seed d14 penguin CanFly=no (gloss: «flightless»); overrides d13 bird CanFly=yes and d26 object CanFly=no
$ onto isa whale fish          → no: whale (2nd sense, noun.animal) ⊂ cetacean ⊂ aquatic mammal ⊂ placental ⊂ mammal ⊂ vertebrate;
                                  fish ⊂ aquatic vertebrate ⊂ vertebrate; diverge under «vertebrate»
$ onto frame buy               → yes: Commerce_buy ← buy.v (LU 2966); Core: Buyer, Goods; other: Money, Seller, …; Inherits Getting
$ onto prop nixon pacifist     → undetermined: d60 Quaker Pacifist=yes ⇐ Nixon —InstanceOf[r01]→ Friend;
                                  d61 Republican Pacifist=no ⇐ Nixon —InstanceOf[r02]→ Republican
$ onto isa blorft animal       → unknown: the word «blorft» is not in the world model (OEWN 2025+) — not guessing

Bridge to the narrative world (bridge.rs, read-only)

Evaluation sets and controls

Sources and licenses

sourceversion, filelicensewhat we take
Open English WordNet2025+ (english-wordnet-2025-plus.xml.gz; the base english-wordnet-2025.xml.gz — only for the "plus" bit)CC BY 4.0: Lexicon header in both files. Commercial use — yes, with attributionsynsets, glosses, lemmas and sense order, IsA, InstanceOf, parts, members, substances, entails, causes
Berkeley FrameNet1.7 (framenet_v17.zip from nltk_data)CC BY 3.0 per the nltk_data index; no text found on the ICSI site; FrameNet 1.5 in nltk_data is NC. Check before commercial use (raw/en-framenet-1-7/SOURCES.md)frames, roles, lexical units, frame relations
Wikidata lexemesdump 2026-09-23 (wikidata-20260923-lexemes.json.bz2)CC0P5137 "item for this sense", P8814 "WordNet 3.1 synset", English glosses
Full Wikidata dumplatest-all.json.bz2CC0→ wikidata.duckdb (section Wikidata: pass and database); the dump and the database are not kept locally, rebuilding needs a fresh copy of the dump
Seeds seeds/our ownours (closed part)OEWN glosses are quoted with the attribution above
FairytaleQA, "The Jelly Fish and the Monkey"texts — Project Gutenbergpublic domainone quote in seed d66

The papers Reiter 1980 ("A logic for default reasoning") and Reiter & Criscuolo 1981 (Nixon diamond) are only sources of ideas, not of data.

Wikidata

Lexemes and trial alignment (onto wd-lexemes, onto wd-map)

wd-lexemes collects lexeme statistics over all languages (senses, P5137, P8814). wd-map aligns English senses with P5137 to OEWN synsets: P8814 where present; otherwise an unambiguous match (one sense on both sides), or overlap of gloss words (at least 2 and ahead of the runner-up). Ambiguous senses get no guess; lemmas missing from OEWN and part-of-speech mismatches are reported. Keyword overlap can mislead (apple Q89 → apple tree via "tree" and "genus"), and "unambiguous" trusts a lexeme's single sense.

onto wd-probe reads the first N GB of the full dump and reports entity counts and throughput; its decompression is bzip2-bound, which is why the full pass uses lbzip2.

Wikidata: pass and database

Wikidata is loaded into DuckDB; it also carries translations — how an article, or an apple, is rendered in different languages. One streaming pass over the full dump → derived TSV (zstd) wikidata-derived → a separate database wikidata.duckdb (the main mova.duckdb attaches it via ATTACH … (READ_ONLY)). The full dump and wikidata.duckdb are not kept locally: the paths below are where the commands write when rebuilt from a fresh copy of the dump.

How: dump copier (counts compressed bytes) → lbzip2 -dc -n 8 → 8 MiB chunks → 2 parser threads (Cow, labels first as RawValue) → each writes its own <table>-w<N>.tsv.zst; nice -n 10, a progress log every minute. The bottleneck is bzip2. wd-sample estimates the budget from bzip2 blocks at arbitrary bit offsets, chunks spread evenly over the file (the start of the dump holds the most popular items, so a pilot on it overestimates).

tablewhat
itemsQ, labels en/mul/uk, descriptions en/uk, sitelinks, Wikipedias, label languages, is_class (P279 as subject or value), is_taxon
labelslabels and aliases in all languages — for classes, items with a sitelink, and taxa
sitelinksarticle titles of language Wikipedias (without Commons, Species, Wikisource, Abstract Wikipedia; disambiguators in parentheses kept)
claims(s, p, o, rank)P31, P279, P171, P361, P527, P186, P1034, P4733, P1582, P105, P1672, P2670, P3113, P462, P1419, P2974, P366, P1552, P3094 (why — PROPS in src/wdx.rs)
strs, mono, quantP225, P2888, P1709, P5063 ILI, P8814; P1843 with language; mass, length, height, speed, lifespan — with unit and qualifiers
propsproperty names en/uk, type
isa_edges, isa_cycles, closureP279 + P171 without cycle edges; closure — for nodes with a Wikipedia article
lexemes, lemmas, forms, glosseslexemes, forms with grammatical features, senses with glosses
sense_items, sense_links, sense_strs, lex_claimsP5137 → Q; P5972 translation, P5973 synonym, P5974 antonym; P8814
synset_qOEWN synset ↔ Q with status and support (loose rule)

Macros: wd_label(q, lang) (lang → mul → en), wd_ancestors(q), wd_descendants(q), wd_isa(x, y).

Design decisions:

Check queries (sql/wikidata-checks.sql): apple ⊂ fruit ⊂ food with labels and article titles in several languages; whale ⊂ Mammalia, and also ⊂ fish through cladistics (Cetacea —P171…→ Osteichthyes —P279→ fish), which the walker's folk rule stops (section A whale is not a fish); common names of a taxon in many languages.

P279/P171 cycles: the gate lists them; the edges are removed from the closure and recorded; after breaking the graph is a DAG. Negative control: an injected edge fruit ⊂ apple turns the gate red.

Synset ↔ Q (wd-align): candidates from lexemes (P5137), P5063 ILI, P8814 and English labels, accepted with an ancestor check. The run reports a silver score (direct P5063/P8814 versus choosing from lexemes and labels only) and a shuffled-labels control. This loose rule is the synset_q table of the database; the walker and the core use the strict rule (section Strict synset ↔ Q alignment).

How to update: new dump → wd-extract → wd-lex → wd-senses + wd-map → wd-closure → wd-align → sql/wikidata-load.sql and sql/wikidata-closure.sql → sql/wikidata-checks.sql. Commands — section Commands.

License: Wikidata — CC0 1.0, both the full dump and lexemes: commercial use without restrictions, attribution not required, but the wikidata row is recorded in en/data/train-licenses.tsv. The dump lives in the geography project — only read, nothing written to its folder.

Wikidata walker

A small walker goes through Wikidata and collects seed candidates for the core. Sounds (P4733) are not collected. Numbers are kept as distributions, not as one specific animal: a lion's mass comes from a normal distribution. The database and derived files are read-only.

A whale is not a fish (src/wdwalk.rs)

Wikidata cladistics leads the whale into fish: whale —P279→ Cetacea —P171…→ mammal [class] —P171…→ Sarcopterygii [class] → Osteichthyes [superclass] —P279→ fish. Folk "is a kind of":

With the rule: whale → mammals yes, whale → fish no, crow → birds yes, shark → fish yes, bat → bird no, pike → fish yes. With full cladistics (the control) whale → fish goes back to yes.

Strict synset ↔ Q alignment (wd-align)

The loose rule plus: a generality threshold for the common ancestor of 2% (loose: 5%), and two supporting sources — label, lexeme, direct link (ILI and P8814 together count as one support, they are set together), folk ancestors. Ancestor support with a single source gets status single. Flags: --generic, --min-src, --no-folk.

Core walker (onto wd-walk)

Confidence = anchor (strict 0.9 · two supports 0.7 · one support or anchor taxon 0.6) × statement rank (preferred 1 · normal 0.9) × 0.85^steps to the ancestor. Numbers: own — ×0.95, distribution over descendants — ×0.7.

Examples: cat — part tail, claw, paw, tooth, snout; knife — part blade, handle, tang, use cutting; bread — material flour, water, salt; lion — food ungulate.

LLM: a second opinion (onto wd-confirm)

The LLM (the teacher) runs with no tools and with a call cap; log vmm-calls.jsonl. The answer is "yes / no / refine + why". The criterion is the typical instance, default knowledge. Disputed candidates (confidence between --lo and --hi) go to seeds/wd-confirm.tsv.

Systematic candidate errors the LLM flags: no_part "human" for mammals (P3113 of a general class); material "human food" / "food ingredient" (P186); "parts" that are not parts (P527); P1034 as all possible prey rather than typical food; colours from a different sense (spade — black, from the card suit).

Character — only in fables

At the cost of 5 Prop values (Cunning Vain Greedy Industrious Wise, preference noun.animal) — seeds on layer fable (d67–d73): the fox is cunning, the crow vain (Perry 124), the wolf greedy (Perry 156), the ant industrious, the grasshopper not (Perry 373), the owl wise (Perry 437), the donkey not (Perry 188). The real layer is silent about character: prop fox cunning → "unknown", with --layer fable → "yes".

Compiled core, context-based sense selection, description

Well-known standard animals and objects live a compiled life, not as a dynamic class (docs/context.md, "World model — separate from the narrative").

Core in code (build.rs, src/core.rs, src/coresel.rs, src/coregate.rs)

Word sense selection by context — WSD (src/wsd.rs)

A sense's score is a sum of terms, each visible in the explanation (onto wsd mouse "The cat caught a mouse"):

  1. Extended Lesk (Banerjee & Pedersen 2003): words shared between the sentence and the glosses and lemmas of the synset (weight 1) and of its neighbours — hypernyms up to 2 steps, hyponyms, parts, whole, substances (weight ½); IDF weights over OEWN glosses.
  2. Predominant sense from a corpus — McCarthy et al. 2004 (ACL P04-1036), onto wsd-prior:
    • a word's distributional neighbours — from within-sentence co-occurrences in the Leipzig corpora: eng_wikipedia_2016_1M, eng_news_2024_1M, co_s, significance, top-200 contexts, cosine;
    • neighbours vote for senses close in the graph: Wu–Palmer similarity to the 8th power (McCarthy used the sharp jcn);
    • output → sense-prior.tsv (ONTO_PRIOR).
  3. Core: +0.5 for a sense that is a core concept.
  4. Domain: the share of sentence words whose senses (ranks 1, ½, ⅓) lie in the sense's lexfile; senses vote by rank.

The weights are fixed in advance. onto wsd-eval runs the WSD frozen set (data/wsd-frozen.tsv + .sha256: sentences for ambiguous words such as dolphin, oak, bank, bass, mouse, cricket), reports each component alone and each ablation, and a negative control: shuffled glosses (a sense's signature taken from a random synset) must drop to the first-sense baseline.

Concept description: onto describe

onto describe fox --layer fable [--no-core] gives:

Every row has a source.

onto describe-eval describes the classes of the tale and fable worlds "before" (graph and seeds, without the core) and "after" (the core, then the graph) and reports fields filled and "unknown" by category.

Teacher judge (onto describe-judge): scores all "before" and "after" descriptions blind — versions shuffled under random numbers — with a fixed rubric: C — correctness, F — completeness, U — usefulness, E — errors, each 1–5. Classes are split by name hash into a training and a held-out part. describe-judge report summarizes; a judge control re-scores a sample with a differently worded rubric.

Architect (describe-judge architect): sees only the training part of the judge's scores and proposes changes. Its proposals so far (not implemented):

  1. word sense by score, not the first one: lemmatization of plurals (shoes → shoe); fairy-tale lexfiles (artifact, animal, plant, food, person) up, state and communication down; a threshold below which the LLM breaks ties;
  2. parts and material only from physical ancestors and no further than 3 steps; general ancestors (whole, structure) give no parts; for magical creatures — a bridge to creature;
  3. WordNet glosses into fields via templates ("made of", "used for", "having a … and a …", "feeds on"), with source gloss and lower confidence.

To compare rounds, the judge must use stable ids (class + version); currently scores depend on the shuffle of a single run.

Pronoun API (src/pron.rs)

Independent tests

More tests for the common-sense builder. The sets are in tests/data/vmm/ (LLM-authored) and in …/ext/, and the same files run on any build: onto vmm <tag> [--haspart rows.json] (the hash of every file is checked before the run; report — vmm-<tag>.md and .tsv in ONTO_RUNS).

LLM questions

The teacher wrote the questions without seeing the code or the data (prompts — tests/data/vmm/prompts/); the gold standard is common sense and biology, and every question has an explanation. The set is frozen by hashes. Groups: isa with traps and made-up words; parts, materials, members; abilities, properties and fable/fairy layers; measure X mass|height|length|speed|lifespan — ranges, and made-up animals; sense W | sentence — lexicographer file and keyword. "Unknown" instead of "yes" for parts is expected: OEWN meronymy is incomplete, and we never say "no" about parts.

From the internet: catalog

setwherelicenseuse
hasPart KB (Bhakthavatsalam et al. 2020)HF community-datasets/has_part"unknown" on the card — measurement only, not in the reposample in tests-onto-ext
NumerSense ("a bird has two legs")HF INK-USC/numer_senseMITloaded by a script (data from GitHub): not downloaded
CommonsenseQAHF tau/commonsense_qaMITcatalog (multiple-choice questions)
PIQAHF ybisk/piqa"unknown" on the cardcatalog; measurement only
GenericsKBHF community-datasets/generics_kbCC BY 4.0catalog; a source of generalization seeds
DoQ (quantity distributions)GitHub only—family rule: we do not access GitHub
Verb Physics (size comparisons)GitHub only—same

HS: world model of goods

The goods classifier (HS, from the import-export project) is read into a word ontology, as for the tales. HS is a ready-made world model of goods (docs/context.md, "Thousands of domains"): a tree, "others", features, thresholds.

Data and license.

How it works (src/hs.rs, src/hsmap.rs)

  1. Tree: chapters → headings → subheadings, with parents (data/hs/tree.tsv). "Others" are marked separately: by code (…9, …90), textual (n.e.c., other than), or both.
  2. Parsing. en (ONTO_EN_MODEL) gives lemmas, parts of speech and the tree. The HS telegraphic style ("Fruit, edible: apples, fresh") is split by colon into levels (0 — the heading top) and by commas into pieces. A piece is either features from closed enums (enum State, Process, Attr) or a noun phrase. Rules:
    • the list "of sheep, goats, horses" extends across commas;
    • "excluding …" and "not fillets, meat of 0304…" — exclusions to the end of the level, "(excluding X)" — only within the parentheses;
    • "men's or boys'" — a purpose, not a product;
    • Latin names in parentheses — taxa;
    • "Nuts, edible" → edible nut, "Lighters: cigarette" → cigarette lighter, if such a compound exists in OEWN.
  3. Thresholds — via math:
    • "over 1000 but not over 1500cc" → Capacity ∈ (0.001, 0.0015] m³: exact rationals Rat, bounds with inclusivity;
    • units from math::units (kg, g, m, cm, mm, %), g/m² and cm³ — via Mono; t, l, kW, kVA, V, dtex, years — with an exact multiplier.
  4. Alignment (data/hs/terms.tsv, codes.tsv), with the reason on every row. Steps:
    1. Phrase → the longest one present in OEWN; British spelling as a fallback.
    2. WSD with the heading context: Lesk, corpus, core, domain.
    3. Product state: live → animal or plant; fresh, frozen… → food (also accepts animal). If the longer phrase lacks such a sense, the shorter one is taken: fatty liver — a disease, liver — food.
    4. Chapter domain — in a second pass: the lexfile share of the chapter's head concepts, "one sense per text".
    5. Then — the core concept, and then a Q via strict alignment (accepted).
  5. LLM confirmation (onto hs confirm → data/hs/sense-confirm.tsv).
    • Key — phrase, chapter and state class: live and frozen fish are not merged.
    • Disputed keys (margin below --margin) and the most frequent keys are sent; the LLM agrees, picks another sense, or says none fits.
    • WSD errors in frequent words are the most costly (rubber in chapter 40 — a condom, iron — a clothes iron), so frequent keys are confirmed first.

Outputs: data/hs/feats.tsv — features per subheading (state, processing, "of X" — material, source organism or other, form, purpose, parts, taxon, threshold, composition, exceptions); data/hs/new-concepts.tsv — phrases that are neither in the core nor in the graph; hs-report.md in the run directory.

Gates and controls:

Blind teacher judge (onto hs judge): a sample of subheadings by code hash across all chapters, plus decoys — the output of another code attached to a foreign description; everything shuffled. Rubric 1–5: M — head concept and its sense; F — completeness of features; P — precision. Decoys must score at the bottom, so the rubric does not praise foreign output.

Labels in other languages (onto hs labels, sql/hs-labels.sql): Q labels from Wikidata (CC0, data/hs/labels.tsv) are checked against the translation project's translations of HS names: does the stem of our concept's label occur in the subheading's translation. Mismatches are typically taxa with a Latin label, families instead of species, or synonyms.

onto hs describe examples:

080810 — subheading of heading 0808 [apple, pear, quince] of chapter 08 [fruit, coconut, almond, apple]
head concept (goods): apple → oewn-07755101-n «apple» (noun.food; core: Apple; Q89)
  why: Lesk 0.77 [fruit, edible] + corpus 1.17 + core 0.50 + domain 0.32 + HS state 1.00 + chapter 0.94 = 4.70
  is a kind of (OEWN): apple → edible fruit → produce → solid food → food → …
HS: apple ⊂ edible fruit — ours: yes
features: state: edible; fresh
world model: parts pericarp; mass ≈ 0.167 kg ± 0.047; risks eat → allergy p ≈ 0.01 [core, with sources]

030213 — subheading of heading 0302 [fish, Alaska pollock, Atlantic salmon, Nile perch] of chapter 03
head concept (goods): Pacific salmon → oewn-02537365-n «salmon» (noun.animal; core: Salmon; Q2796766)
HS: Pacific salmon ⊂ fish — ours: yes (salmon → food fish → fish)
features: state fresh; chilled · except fillet; meat; fish offal · reference 0304 · taxon Oncorhynchus nerka, … (7)

870322 — subheading of heading 8703 [vehicle] of chapter 87
head concept (heading head): vehicle → oewn-04531608-n «vehicle» (noun.artifact)
features: threshold Capacity ∈ (0.001, 0.0015] m³ · composition: spark ignition internal combustion piston engine

Commands

export PATH=$HOME/.cargo/bin:$PATH
cargo build --release
../target/release/onto build                        # OEWN 2025+ and FrameNet 1.7 → $MOVA_DATA/onto/onto-v1.bin (ONTO_SNAPSHOT)
../target/release/onto isa apple fruit
../target/release/onto can crow speak --layer fable
../target/release/onto haspart bird beak · parts bird · frame buy · role buy Seller · inherits Commerce_buy Getting
../target/release/onto entails snore sleep · word whale · up crow
../target/release/onto eval blind                   # frozen set → frozen-blind.{md,tsv} in ONTO_RUNS (default $MOVA_DATA/runs/onto-2026-09-26)
../target/release/onto controls | bridge | bench | stats
../target/release/onto wd-lexemes $MOVA_DATA/raw/wikidata/20260923/wikidata-20260923-lexemes.json.bz2 <dir>
../target/release/onto wd-map <dir>
nice ../target/release/onto wd-probe $MOVA_DATA/raw/wikidata-all/latest-all.json.bz2 1 <dir>
# Wikidata pass and database (needs a fresh copy of the dump; runs — ONTO_WD_RUNS, default $MOVA_DATA/runs/wikidata-2026-09-26)
D=$MOVA_DATA/raw/wikidata-derived
nice -n 10 ../target/release/onto wd-sample $MOVA_DATA/raw/wikidata-all/latest-all.json.bz2 <dir> --k 48 --mb 12 --level 9 --skip-wm
nice -n 10 ../target/release/onto wd-extract $MOVA_DATA/raw/wikidata-all/latest-all.json.bz2 $D --bz 8 --workers 2 --level 9 --skip-wm [--gb 2]
nice -n 10 ../target/release/onto wd-lex $MOVA_DATA/raw/wikidata/20260923/wikidata-20260923-lexemes.json.bz2 $D
../target/release/onto wd-senses $D <run>/wd-senses-en.tsv && ../target/release/onto wd-map <run>
nice -n 10 ../target/release/onto wd-closure $D --threads 8
nice -n 10 ../target/release/onto wd-align $D --wd-map <run>/wd-map.tsv [--generic 0.02] [--min-src 2] [--no-folk] [--out synset_q.tsv]
# walker (runs — ONTO_WD_RUNS=$MOVA_DATA/runs/onto2-2026-09-26)
nice -n 10 ../target/release/onto wd-walk $D [--align <run>/synset_q-v2.tsv] [--core data/core.tsv] [--out seeds/wd-candidates.tsv]
../target/release/onto wd-confirm [--n 60] [--batch 30] [--cap 10] [--lo 0.45 --hi 0.8] [--out seeds/wd-confirm.tsv]   # LLM
../target/release/onto prop fox cunning --layer fable
(cd $D && ~/bin/duckdb $MOVA_DATA/db/wikidata.duckdb < <repo>/onto/sql/wikidata-load.sql)
~/bin/duckdb -readonly $MOVA_DATA/db/wikidata.duckdb < sql/wikidata-checks.sql
# core, WSD, description (runs — ONTO_RUNS / ONTO_WD_RUNS=$MOVA_DATA/runs/onto3-2026-09-26)
../target/release/onto core-vmm confirm [--batch 50] [--cap 7]      # LLM goes through candidates without a verdict
../target/release/onto core-vmm risks [--batch 50] [--cap 8]        # risks of core concepts
../target/release/onto core-select                                  # → data/core-props.tsv; then cargo build (completeness gate)
../target/release/onto wsd-prior                                    # predominant senses from the Leipzig corpora → $MOVA_DATA/onto/sense-prior.tsv
../target/release/onto wsd mouse "The cat caught a mouse in the kitchen"
../target/release/onto wsd-eval                                     # WSD frozen set + shuffled-gloss control
../target/release/onto describe fox --layer fable [--no-core]
../target/release/onto describe-eval                                # tale classes before/after the core, completeness
../target/release/onto describe-judge [--cap 15] | describe-judge report   # blind teacher judge
# HS (runs — ONTO_RUNS, default $MOVA_DATA/runs/hsonto-2026-09-26)
../target/release/onto hs build [--no-confirm]                      # HS22 (BACI) → data/hs/*.tsv, report hs-report.md
../target/release/onto hs describe 080810 [--text]                  # product description; --text — WCO description from a local file
../target/release/onto hs parse 030213                              # parsing debug (tokens and features)
../target/release/onto hs confirm [--n 240] [--margin 0.15]         # LLM confirms disputed and frequent senses
../target/release/onto hs judge [--n 150] [--decoys 20]             # blind teacher judge, decoys as control
(cd $ONTO_RUNS && ~/bin/duckdb -readonly $MOVA_DATA/db/wikidata.duckdb < <repo>/onto/sql/hs-labels.sql) && ../target/release/onto hs labels
cargo test --release                               # world model, Wikidata, folk rule, anchors, LLM, core, pronouns, HS

Variables: ONTO_SNAPSHOT (graph snapshot), ONTO_RUNS and ONTO_WD_RUNS (run folders), ONTO_PRIOR (sense prior, default sense-prior.tsv), ONTO_EN_MODEL (default mova.mlm#en), ONTO_HS_CSV (the BACI HS22 product-codes CSV), ONTO_MODEL and ONTO_EFFORT (teacher model and effort for the review steps; the teacher is the shared Codex CLI transport mova-teacher, effort medium by default), ONTO_VMM_THREADS (teacher threads, 1 by default, at most 2), ONTO_CORE_BOOTSTRAP=1 (build time: first build without core-props.tsv), ONTO_CORE_GATE=off (diagnostics only: warn instead of failing on core contradictions).

Limits

Files

filewhat
src/model.rsconcepts, words, Pos, Src, Rel, Core, LEXFILES, CSR graph
src/build.rsOEWN XML and FrameNet → graph, build gates
src/zip.rsminimal zip reader
src/store.rsbinary graph snapshot
src/kb.rslayers, seeds, extra edges, inheritance, Nixon diamond, seed gates
src/query.rssense selection, queries with proof
src/bridge.rsbridge to the narrative world
src/eval.rsfrozen set, evaluation, negative controls
src/wikidata.rsfull dump probe, lexemes, trial alignment
src/wdx.rspass over the full dump: lbzip2 → multi-threaded parsing → TSV zstd; sampling from the middle of the dump
src/wdlex.rslexemes → lemmas, forms, senses, translations; wd-senses for wd-map
src/wdgraph.rs"is a kind of" graph (P279 + P171), cycle gate, closure
src/wdalign.rssynset ↔ Q alignment with ancestor check, shuffled control, silver; strict rule — two supports, 2%, folk ancestors, gold
src/wdwalk.rsfolk "is a kind of" (P171 up to class, grade, bypassing clades), core walker, anchors, number distributions, check queries
src/wdvmm.rsLLM — "yes / no / refine", cap and log
sql/wikidata-load.sql, sql/wikidata-closure.sqlloading derived files into wikidata.duckdb, macros
sql/wikidata-checks.sql, sql/wikidata-core-coverage.sqlcheck queries; core coverage of fable classes
build.rsbuild script — core data/core.tsv + data/core-props.tsv → enum CoreId, CORE (completeness gate)
src/core.rs, src/coregate.rs, src/coresel.rs, src/corevmm.rscore types and the "core ↔ graph" gate; completeness gate; selection; LLM (confirmation pass, risks)
src/wsd.rsWSD — Lesk, McCarthy 2004 from the Leipzig corpora, core, domain; shuffled-gloss control
src/describe.rs, src/judge.rsconcept description with proofs, completeness; blind teacher judge
src/pron.rspronoun API — gender, animacy, humanness
src/hs.rs, src/hsmap.rsHS: code tree, description parsing (en), features and thresholds (math); alignment with the world model, gates, controls, hs describe, judge, LLM confirmation, labels
data/hs/*.tsvHS: derived data only — tree, code → concept, features, terms, new concepts, contradictions, LLM confirmations, Wikidata labels (CC0); no WCO texts
sql/hs-labels.sqlHS: concept labels in eight languages from wikidata.duckdb
data/core-props.tsvcore — every "concept × field" cell explicit, with a source
data/wsd-frozen.tsv + .sha256WSD frozen set (60 sentences)
seeds/wd-confirm-high.tsv, seeds/wd-confirm-v3.tsv, seeds/core-risks.tsvLLM verdicts: confident sample, confirmation pass; risks of core concepts
src/tests.rstests on a synthetic graph
seeds/layers.tsv, seeds/defaults.tsv, seeds/relations.tsvseeds (including the character seeds on layer fable)
seeds/wd-candidates.tsvseed candidates from Wikidata, with source, confidence and distributions; not truth
seeds/wd-confirm.tsvLLM second opinion on disputed candidates
data/core.tsvcore — 294 concepts (lemma, domain, optional explicit synset)
data/align-gold.tsv100 synset ↔ Q pairs checked by hand (loose- and strict-rule samples)
data/frozen.tsv + .sha256frozen set (74 questions)
data/fable-questions.tsv + .sha256fable questions (14)

This page in Markdown https://md.mova.elamur.ai/free/en/docs/onto/