---
title: "mova-modules-command — Mova code model"
description: "Mova code model of tools/modules/src/main.rs: components with their labels, obernants and the model text."
url: "https://groupants.elamur.ai/free/en/mova/tools/modules/src/main.rs.groupant/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Research](https://md.research.elamur.ai/free/en/) · **Groupants**

This page as HTML: <https://groupants.elamur.ai/free/en/mova/tools/modules/src/main.rs.groupant/>

# 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

- **kind:** groupant
- **status:** partial source bound model
- **source:** [`tools/modules/src/main.rs`](https://github.com/ElamurAI/mova-free/blob/main/tools/modules/src/main.rs)
- **source SHA-256:** `81686c0550da9a9c…`
- **repository folder:** [`tools/modules/src/main.rs.groupant`](https://github.com/ElamurAI/mova-free/tree/main/tools/modules/src/main.rs.groupant)
- **repository commit:** `855da7bd4a7b`

> **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](#forward) |
| **ast** | partial | `syntax.json` |
| **composition** | partial source model | [composition](#composition) |
| **cost** | partial source model | [cost](#cost) |
| **descriptant** | partial source model | [epoch-memory](#epoch-memory) |
| **invariant** | partial source model | [invariant](#invariant) |
| **tests** | partial source model | [checks](#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](#behavior-complement) |
| `mova-modules-command-reverse-reconstruction` | reverse_reconstruction | partial source model | [reverse-reconstruction](#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.
