Elamur Groupants⌕
☰

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

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
astpartial../syntax.json
costpartialinvariant-and-cost
descriptantpresentdescriptant
invariantpartialinvariant-and-cost
testsbounded or representationtests

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.

idtypelabelwhere
behavior_complementbehavior_complementpartial source derived modelbehavior_complement
reverse_reconstructionreverse_reconstructionpartial source derived modelreverse_reconstruction
prefix_vs_numericprefix_vs_numericpartial source derived modelprefix_vs_numeric
lossy_utf8lossy_utf8partial source derived modellossy_utf8
time_roundingtime_roundingpartial source derived modeltime_rounding
launch_failurelaunch_failurepartial source derived modellaunch_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%.

This page in Markdown → https://md.groupants.elamur.ai/free/en/mova/tools/bench/src/main.rs.groupant/extract.groupant/