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

# qagen-report-collection

The groupant beside qagen/src/report.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:** [`qagen/src/report.rs`](https://github.com/ElamurAI/mova-free/blob/main/qagen/src/report.rs)
- **source SHA-256:** `4abf85ffbd32f228…`
- **covers:** Project supplied Lemmas into doubtful implicit marks; collect validates accounting, gathers outputs, optionally loads lemmas, renders distributions, serializes params and writes artifacts. (bytes 4775–13766)
- **part of:** [qagen-report](https://md.groupants.elamur.ai/free/en/mova/qagen/src/report.rs.groupant/)
- **repository folder:** [`qagen/src/report.rs.groupant/collection.groupant`](https://github.com/ElamurAI/mova-free/tree/main/qagen/src/report.rs.groupant/collection.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 source model | [forward](#forward) |
| **ast** | partial | `../syntax.json` |
| **composition** | partial source model | [composition](#composition) |
| **cost** | partial source model | [cost](#cost) |
| **descriptant** | partial source model | [epoch-memory](#epoch-memory) |
| **invariant** | partial source model | [invariant](#invariant) |
| **tests** | partial source model | [checks](#checks) |

## 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 |
|---|---|---|---|
| `qagen-report-collection-complement` | behavior_complement | partial source model | [behavior-complement](#behavior-complement) |
| `qagen-report-collection-reverse` | reverse_reconstruction | partial source model | [reverse-reconstruction](#reverse-reconstruction) |
| `qagen-report-collection-preflight` | preflight | partial source model | [preflight](#preflight) |
| `qagen-report-collection-distribution` | distribution | partial source model | [distribution](#distribution) |
| `qagen-report-collection-span-accounting` | span_accounting | partial source model | [span-accounting](#span-accounting) |
| `qagen-report-collection-artifact-order` | artifact_order | partial source model | [artifact-order](#artifact-order) |

## Model text


### forward
Project supplied Lemmas into doubtful implicit marks; collect validates accounting, gathers outputs, optionally loads lemmas, renders distributions, serializes params and writes artifacts.

### invariant
All preparation errors precede artifact writes. Statistics share the same Collected object and batch-local coordinates.

### behavior-complement
Universe: finite supplied values and filesystem observations, return values, errors and writes in this scope. No locking, atomic publication or fsync. Filesystem races may mix observations from different instants.

### reverse-reconstruction
F^-1(y) contains all compatible inputs and initial states yielding y. QA retains accepted text/anchor IDs but loses raw formatting; aggregate params do not identify unique paragraphs, call lists or lemma model. No complete inverse solver or unique recovery claim.

### cost
O(paragraphs, pairs, rejection text and render bytes) with map log factors, gate/calls/model costs added; buffers proportional to artifact bytes.

### composition
Retries count selected batch retry targets; calls count all log rows. V1 bypasses lemma load; V2 adds doubts/span counters. Three writes can fail independently.

### preflight
Invalid rule, retry IO, calls parse/overflow, raw read, model or serialization errors all precede writes.

### distribution
Accepted-pair histogram excludes selected paragraphs with zero accepted pairs.

### span-accounting
Explicit offered=accepted explicit+pair rejections with explicit: prefix; percentages zero for denominator zero.

### artifact-order
After params serialization: qa.tsv, rejects.tsv, params.json. No rollback after write failure.

### 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.
