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

# treestore-tests

The groupant beside tools/treestore/tests/roundtrip.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
- **status:** partial source bound model
- **source:** [`tools/treestore/tests/roundtrip.rs`](https://github.com/ElamurAI/mova-free/blob/main/tools/treestore/tests/roundtrip.rs)
- **repository folder:** [`tools/treestore/tests/roundtrip.rs.groupant`](https://github.com/ElamurAI/mova-free/tree/main/tools/treestore/tests/roundtrip.rs.groupant)

> **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` |
| **Composition** | partial | [Composition](#composition) |
| **Cost** | symbolic source derived | [Invariant](#invariant) |
| **Descriptant** | present | [Descriptant](#descriptant) |
| **Invariant** | partial | [Invariant](#invariant) |
| **Tests** | executed bounded checks | [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.

| relation | 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) |

## Model text


### Descriptant

The store's gates on synthetic records in the wikicorpus layout (60 records, three structure modes): lossless round
trip byte for byte including a CoNLL-U field the codec cannot take, deterministic model and files, batch and
streaming writers identical, and negative controls. Epoch 2026-11-06.

### Approximant

Builds records with sentence rows, CoNLL-U (with a clitic split and SpaceAfter), frames and pragmatics; trains a model
on half; writes, reads, damages bytes.

### Invariant

Passes only if every record decodes to its exact bytes, the odd records keep their CoNLL-U raw (6 of 60), two writes
and the streaming writer give identical files, no damaged file returns wrong bytes and at least one damage is
caught, and a wrong model id is refused.

### Composition

Exercises model::train, store::write, store::Writer, store::Shard and store::sentences end to end.

### Behavior complement

Does not cover real Wikipedia records (the real-data gate is `treestore verify`), concurrency, or files larger than
memory.

### Reverse reconstruction

Inapplicable: a test outcome does not determine its fixtures.

### Tests

`round_trip_determinism_and_negative_controls`.

## Provenance

- **source SHA-256:** `16f133e48db26524…`
- **repository commit:** `f55191f0d47f`
