---
title: "bench-main-extract — Mova code model"
description: "Mova code model of tools/bench/src/main.rs: components with their labels, obernants and the model text."
url: "https://groupants.elamur.ai/free/en/mova/tools/bench/src/main.rs.groupant/extract.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/bench/src/main.rs.groupant/extract.groupant/>

# bench-main-extract

The groupant beside tools/bench/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_fragment
- **status:** partial source bound model
- **source:** [`tools/bench/src/main.rs`](https://github.com/ElamurAI/mova-free/blob/main/tools/bench/src/main.rs)
- **source SHA-256:** `7a5aff2d66b34bbe…`
- **covers:** Spawn configured command, lossily decode stdout+stderr, first prefix match per pick, lexical number at index or ?, append rounded elapsed. (bytes 1049–2166)
- **part of:** [bench-main](https://md.groupants.elamur.ai/free/en/mova/tools/bench/src/main.rs.groupant/)
- **repository folder:** [`tools/bench/src/main.rs.groupant/extract.groupant`](https://github.com/ElamurAI/mova-free/tree/main/tools/bench/src/main.rs.groupant/extract.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 | [approximant](#approximant) |
| **ast** | partial | `../syntax.json` |
| **cost** | partial | [invariant-and-cost](#invariant-and-cost) |
| **descriptant** | present | [descriptant](#descriptant) |
| **invariant** | partial | [invariant-and-cost](#invariant-and-cost) |
| **tests** | bounded or representation | [tests](#tests) |

## 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](#behavior-complement) |
| `reverse_reconstruction` | reverse_reconstruction | partial source derived model | [reverse_reconstruction](#reverse-reconstruction) |
| `prefix_vs_numeric` | prefix_vs_numeric | partial source derived model | [prefix_vs_numeric](#prefix-vs-numeric) |
| `lossy_utf8` | lossy_utf8 | partial source derived model | [lossy_utf8](#lossy-utf8) |
| `time_rounding` | time_rounding | partial source derived model | [time_rounding](#time-rounding) |
| `launch_failure` | launch_failure | partial source derived model | [launch_failure](#launch-failure) |

## Model text


### descriptant

#### bench-main-extract

##### Epoch 2026-10-31

Prospective inspection identified this relation before additions: Spawn configured command, lossily decode stdout+stderr, first prefix match per pick, lexical number at index or ?, append rounded elapsed.

The production implementation is unchanged; only selected inline tests are appended. Source-bound syntax is generated twice and compared. Native checks exercise bounded helpers; entry orchestration, teacher calls, models and corpora remain source-derived. Partial syntax is not semantic proof. Preserve failure prefixes and ambiguity when refining this model.

### approximant

#### Forward relation

Spawn configured command, lossily decode stdout+stderr, first prefix match per pick, lexical number at index or ?, append rounded elapsed.

##### Composition

This fragment isolates the stated helper relation; parent composition retains surrounding effects and failures.

### catalog

## Typed observations: bench-main-extract

Subject: tools/bench/src/main.rs, SHA-256 7a5aff2d66b34bbe237903eefacc2f794692b2b28ca50dfb0595422fd443326e. Domain: bounded source inputs, declared filesystem/environment state and normal allocations. Each view is a partial source-derived relation, not a universal proof. Observation is one helper call or the explicitly described trace. Checks are in tests.md; unexecuted effects remain gaps.

### behavior_complement

No matching line excludes a numeric extraction and yields ?. Exit 7 does not exclude successful return.

Scope: the bound source interval and stated assumptions. Evidence: source inspection plus the checks explicitly named in tests.md; no finite check establishes all inputs.

### reverse_reconstruction

One extracted token constrains only indexed digit/dot run of first matching combined line; surrounding text and all later matches arbitrary.

Scope: the bound source interval and stated assumptions. Evidence: source inspection plus the checks explicitly named in tests.md; no finite check establishes all inputs.

### prefix_vs_numeric

Prefix itself may contain digits that enter token indexing; extraction never strips prefix before numeric scan.

Scope: the bound source interval and stated assumptions. Evidence: source inspection plus the checks explicitly named in tests.md; no finite check establishes all inputs.

### lossy_utf8

Invalid stdout/stderr bytes become replacement characters and numeric delimiters; exact bytes cannot be reconstructed.

Scope: the bound source interval and stated assumptions. Evidence: source inspection plus the checks explicitly named in tests.md; no finite check establishes all inputs.

### time_rounding

Seconds formatted with zero decimals; compatible elapsed intervals round to same output. No stable timing equality is asserted.

Scope: the bound source interval and stated assumptions. Evidence: source inspection plus the checks explicitly named in tests.md; no finite check establishes all inputs.

### launch_failure

Spawn error returns contextual Err before extraction; successfully spawned failing status still extracts.

Scope: the bound source interval and stated assumptions. Evidence: source inspection plus the checks explicitly named in tests.md; no finite check establishes all inputs.

### tests

#### Checks and limits

wave33_tests::synthetic_extraction_preserves_current_lossiness verifies negative/exponent loss, first stdout precedence, missing/out-of-range and nonzero status.

Exact native outcomes and command metadata are retained in the external wave33 cycle receipt bundle. Selected names run twice in debug and release; syntax is independently regenerated twice. Compiled mutations and source restoration receipts distinguish behavior changes from assertion-only controls. These claims are finalized in evidence.md. No live teacher, real model/corpus, benchmark CLI or lesson-learning CLI is run.

### invariant-and-cost

#### Invariant and cost

Status not checked; matching prefix may appear only after indentation trimming, tokens derived from whole untrimmed line.

O(output bytes×picks), child output buffering O(bytes) and subprocess cost external.

No executable percentage surrogate is claimed: effects, categorical acceptance and report text have no justified approximate metric here. Future profiles require a useful metric, zero case, reference and evidence at caps 1/2/5/10%.
