Elamur GroupantsโŒ•
โ˜ฐ

mova-serve-command

The groupant beside tools/mova-serve/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

componentlabelwhere
ApproximantpartialApproximant
Astpartialsyntax.json
Costsymbolic source derivedCost
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.

relationtypelabelwhere
Behavior complementbehavior complementpartial source derived modelBehavior complement
Reverse reconstructionreverse reconstructionpartial source derived modelReverse reconstruction
Model presencemodel presencepartial source derived modelModel presence

Model text

Descriptant

The command line: serve (load the models and the speech-act SLM, the shell, the sign-in settings and the plans; warm the cache; listen), bench (latency p50/p95 of 1-, 10- and 100-word texts cold and cached, memory, a determinism digest of 19 fixed answers), mcp-stdio (the MCP stdio transport forwarding to the HTTP endpoint with an API key).

Approximant

serve: args โ†’ (Engine::load, Shell, OauthConfig?, Plans) โ†’ App::new โ†’ warm_up โˆฅ server::run; bench: Engine โ†’ digest twice โ†’ App::respond timings; mcp-stdio: stdin lines โ†’ POST endpoint โ†’ stdout lines.

Invariant

--workers โ‰ฅ 1 in serve; sign-in settings with placeholders turn accounts off instead of failing; the bench asserts every cold call misses and every repeated call hits the cache.

Cost

Loading en.bin and fr.bin and training the perceptron: โ‰ˆ7 s and 821 MB resident (2026-11-06).

Behavior complement

No parsing logic of its own; no files written besides through App (the state directory); the bench writes nothing.

Reverse reconstruction

Stderr names each loaded model file and the silver size; the bench's digest identifies the answers of a model set.

Model presence

A language is parsed iff a --model (or the default $MOVA_DATA/<xx>/models/<xx>.bin) exists for it.

Tests

Two bench runs in two processes printed the same digest (8d567ae01408025d, 2026-11-06); the stdio transport was run end to end against a local server (initialize, tools/list, explain_sentence).

Provenance

This page in Markdown โ†’ https://md.groupants.elamur.ai/free/en/mova/tools/mova-serve/src/main.rs.groupant/