Elamur GroupantsโŒ•
โ˜ฐ

qagen-run-batching

The groupant beside qagen/src/run.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
approximantpartial source modelforward
astpartial../syntax.json
compositionpartial source modelcomposition
costpartial source modelcost
descriptantpartial source modelepoch-memory
invariantpartial source modelinvariant
testspartial source modelchecks

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
qagen-run-batching-complementbehavior_complementpartial source modelbehavior-complement
qagen-run-batching-reversereverse_reconstructionpartial source modelreverse-reconstruction
qagen-run-batching-groupinggroupingpartial source modelgrouping
qagen-run-batching-coordinatecoordinatepartial source modelcoordinate
qagen-run-batching-summarysummarypartial source modelsummary
qagen-run-batching-trait-domaintrait_domainpartial source modeltrait-domain

Model text

forward

batches partitions Para references by key; Tales exposes ascending keys, total sentence count, prompt and gate summary.

invariant

Every input reference appears once; check excludes note-level entries from rejection count.

behavior-complement

Universe: finite supplied values and filesystem observations, return values, errors and writes in this scope. No paragraph deduplication or within-batch sorting. Unknown direct Tales batch index can panic.

reverse-reconstruction

F^-1(y) contains all compatible inputs and initial states yielding y. Within-key order survives, cross-key input interleavings are lost. Summary counts lose individual pair/rejection identities. No complete inverse solver or unique recovery claim.

cost

O(P log B) grouping and O(P+B) storage; prompt and check delegate text costs.

composition

prompt, size and check share all[b]; gate local coordinates must index the same ordered paragraph list.

grouping

Partition conserves total reference count.

coordinate

Gate paragraph p indexes ordered batch position p-1.

summary

Format rejection is separate from count excluding Level::Note.

trait-domain

Job: Sync permits scoped threads but arbitrary implementations can panic or return duplicate IDs.

checks

Finite synthetic Rust tests in owned sources; broad offline qagen lib suite twice per profile, explicitly skipping lemma::tests::doubt_with_en_model. Compiled production mutations reach named assertion failures. Exact outcomes and hashes are in the file groupant evidence.md.

epoch-memory

2026-10-30 prospective model saved before repairs. Old-code witnesses demonstrated token overflow, JSON null from float overflow, premature report replacement, and masked metadata errors. Ordinary output keys, finite negative history and legacy Option lookup semantics are preserved. Scheduler was not redesigned.

limitations

Partial source models and finite observations, not proof of all concurrent/filesystem states. Syntax projection is partial; macros opaque. Allocation failure, races and crashes may prevent completion. No live teacher/model/corpus/database was used. No useful certified metric for a numerical surrogate of these error-sensitive operations was identified; executable approximant is absent, with no invented error budget or speed claim.

This page in Markdown โ†’ https://md.groupants.elamur.ai/free/en/mova/qagen/src/run.rs.groupant/batching.groupant/