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

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

# mova-beaver-main

The groupant beside tools/beaver/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/beaver/src/main.rs`](https://github.com/ElamurAI/mova-free/blob/main/tools/beaver/src/main.rs)
- **repository folder:** [`tools/beaver/src/main.rs.groupant`](https://github.com/ElamurAI/mova-free/tree/main/tools/beaver/src/main.rs.groupant)

> **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](#forward-approximant) |
| **Ast** | partial | `syntax.json` |
| **Composition** | partial | [Composition](#composition) |
| **Cost** | partial | [Cost](#cost) |
| **Descriptant** | present | [Descriptant](#descriptant) |
| **Invariant** | partial | [Invariant](#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.

| relation | type | label | where |
|---|---|---|---|
| Behavior complement | behavior complement | partial source derived model | [Behavior complement](#behavior-complement) |
| Reverse reconstruction | reverse reconstruction | partial source derived model | [Reverse reconstruction](#reverse-reconstruction) |

## Model text


### Descriptant

The mova-beaver command line: scan, apply, status and watch with a configuration path. Source: `tools/beaver/src/main.rs`.

### Forward approximant

argv -> Config::load -> run::scan|apply|status|watch; anything else prints usage and exits 1.

### Invariant

Unknown commands or missing arguments have no effect beyond the usage message and a non-zero exit.

### Cost

Constant beyond the called pass.

### Composition

Calls run.rs.

### Behavior complement

Not done: no flags beyond those of scan/apply (--recent, --no-sol), no daemon mode beyond watch. Evidence status: source-derived model with finite checks.

### Reverse reconstruction

The printed report identifies the outcomes; the configuration is not recoverable from output.

### tests.md


cargo test --release --offline --manifest-path tools/beaver/Cargo.toml (2026-11-07): 9 unit tests and 4 end-to-end tests on a fake site tree. Negative control 2026-11-07: switching off heading masking turned the masking test red; restored. Pilot 2026-11-07 on five real deep dives: 13 inserts, 5 Sol calls, all pages re-attached.

## History


#### 2026-11-07 · document

##### Epoch 2026-11-07 (created)

Created with the Beaver for the operator's ask of 2026-11-07 (too few internal and external links in the research site's paper texts).

## Provenance

- **source SHA-256:** `dedda1d6628b5b02…`
- **repository commit:** `c755aaec0159`
