mova-whale-lib
The groupant beside tools/whale/src/lib.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 | Forward approximant |
| ast | partial | syntax.json |
| composition | partial | Composition |
| cost | partial | Cost |
| descriptant | present | Descriptant |
| invariant | partial | Invariant |
| tests | finite evidence | tests.md |
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 |
Model text
Descriptant
Public mova-whale module boundary and test serialization guard. Source: tools/whale/src/lib.rs. Public, domain-agnostic: concrete prompts, schemas, gate parameters and deployments come from pinned configuration.
Forward approximant
Declare the Result type and modules; re-export WhaleRoles; under test, provide a process-wide mutex for tests that spawn processes or observe lifetime leases.
Invariant
No dependency on private code; the serialization guard exists only in test builds.
Cost
None at run time.
Composition
Root module of the crate.
behavior_complement
Excluded: concrete specifications, prompts, models or deployment paths (none are compiled in). Evidence status: source-derived model with finite checks, not a proof.
reverse_reconstruction
The module list is recoverable from the source; behavior is in child modules. No unique inverse is claimed.
Epoch 2026-11-04 (Whales in English)
Epoch 2026-11-04: modules animal (English service) and answer (English realization).
Epoch 2026-11-04 (Sea Spider live: singleton and callers)
Epoch 2026-11-04: Exports the new seaspider client module.
Epoch 2026-11-04 (Whales reading papers)
Epoch 2026-11-04 (Whales reading papers): modules paper, reader and terminal.
Epoch 2026-11-04 (learning Whales)
Modules batch, clause, compose, gates, knowledge and learn.
Epoch 2026-11-04
New modules pod, review, topic.
tests.md
Indirect: all crate tests.
Command: cargo test --manifest-path tools/whale/Cargo.toml --offline --locked (74 tests, fake teachers/executables; two identical runs on 2026-11-03). These are finite fixtures; no live run, model call or deployment was exercised.
2026-11-04: cargo test --manifest-path tools/whale/Cargo.toml --offline --locked with MOVA_OCTOPUS_TEST_MODEL=$MOVA_DATA/download/0/0.4/en.bin (unit tests incl. 5 service tests, 2 realizer tests, 3 length-gate tests; 2 English tests: 18 prompts, 10 refusals, a served end-to-end run with the real mova-whale child and a fake Codex executable; two identical runs on 2026-11-04)
2026-11-04: cargo test --manifest-path tools/whale/Cargo.toml --offline with MOVA_OCTOPUS_TEST_MODEL (85 unit incl. the Sea Spider client test, 2 English tests; 2026-11-04)
2026-11-04: cargo test --manifest-path tools/whale/Cargo.toml --offline --locked with MOVA_OCTOPUS_TEST_MODEL=$MOVA_DATA/download/0/0.4/en.bin (paper/terminal/reader unit tests; tests/terminal_adapter.rs against a fake bash LLM in a private tmux server; Mova-only dry run on five CC BY 4.0 papers, two byte-identical runs; 2026-11-04)
2026-11-04: cargo test (98 unit tests, 2 English, 4 terminal-adapter tests) with MOVA_OCTOPUS_TEST_MODEL.
This page in Markdown โ https://md.groupants.elamur.ai/free/en/mova/tools/whale/src/lib.rs.groupant/