Elamur GroupantsโŒ•
โ˜ฐ

mova-whale-answer

The groupant beside tools/whale/src/answer.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
approximantpartialForward approximant
astpartialsyntax.json
compositionpartialComposition
costpartialCost
descriptantpresentDescriptant
invariantpartialInvariant
testsfinite evidencetests.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.

idtypelabelwhere
behavior_complementbehavior_complementpartial source derived modelbehavior_complement
reverse_reconstructionreverse_reconstructionpartial source derived modelreverse_reconstruction

Model text

Descriptant

The Whales' English: deterministic sentences for describe, count, status (service and source), show and pause/resume, over mova_octopus::realize. Source: tools/whale/src/answer.rs.

Forward approximant

Structured results (Outcome list, count/status/show/marker JSON) -> sentences with number agreement (noun_count, be), lists, could_not, utc/thousands; opening(text, max) drops Markdown headings and cuts at a sentence end.

Invariant

Each sentence states only what its input says; unknown fields fall back to neutral words, never invented values.

Cost

Linear in the result size.

Composition

Parent: whale-workers; called by animal.rs Hands.

behavior_complement

Not done: summarizing a description (show quotes its opening), languages other than English, paraphrase variety. Evidence status: source-derived model with finite checks, not a proof.

reverse_reconstruction

From an answer one recovers the counts, ids, titles, states and paths it names; the structured JSON alongside it is the authority. Several inputs can give the same sentence (e.g. missing vs zero counts). No unique inverse is claimed.

tests.md

Command: cargo test --manifest-path tools/whale/Cargo.toml --offline: answer::tests (2) and the served English test (2026-11-04). These are finite fixtures; no live teacher or Whale run; not a proof.

This page in Markdown โ†’ https://md.groupants.elamur.ai/free/en/mova/tools/whale/src/answer.rs.groupant/