mova-modules-command
The groupant beside tools/modules/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
| component | label | where |
|---|---|---|
| approximant | partial source model | forward |
| ast | partial | syntax.json |
| composition | partial source model | composition |
| cost | partial source model | cost |
| descriptant | partial source model | epoch-memory |
| invariant | partial source model | invariant |
| tests | partial source model | checks |
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 |
|---|---|---|---|
mova-modules-command-behavior-complement | behavior_complement | partial source model | behavior-complement |
mova-modules-command-reverse-reconstruction | reverse_reconstruction | partial source model | reverse-reconstruction |
Model text
forward
Collects the arguments after the program name; modules ⦠calls mova_modules::main_args with the rest; anything
else is a usage error. An error prints mova: <chain> to stderr and exits 1.
invariant
No other effect than main_args; exit status 0 only on success.
cost
Argument collection O(arguments) plus the called command.
composition
Leaf adapter over mova-modules-lib; world modules ⦠reaches the same main_args.
behavior-complement
Does not parse options itself, read configuration, or provide subcommands other than modules.
reverse-reconstruction
From the exit status, only success or failure; the failing step is recoverable from the stderr chain.
checks
The library tests cover main_args' commands; the binary was exercised end to end on 2026-11-04 (install, list,
info, verify, make-torrent, install-torrent without a client, install into a Git work tree refused).
epoch-memory
2026-11-04, first epoch.
This page in Markdown ā https://md.groupants.elamur.ai/free/en/mova/tools/modules/src/main.rs.groupant/