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

# onto-judge-scores

The groupant beside onto/src/judge.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:** [`onto/src/judge.rs`](https://github.com/ElamurAI/mova-free/blob/main/onto/src/judge.rs)
- **source SHA-256:** `90c6e6dc9343201b…`
- **covers:** Trim >=5-column lines; parse usize after leading id removal and four u8 within1..5; last complete valid row overwrites BTreeMap; mean4 sums/4. (bytes 4665–5365)
- **part of:** [onto-judge](https://md.groupants.elamur.ai/free/en/mova/onto/src/judge.rs.groupant/)
- **repository folder:** [`onto/src/judge.rs.groupant/scores.groupant`](https://github.com/ElamurAI/mova-free/tree/main/onto/src/judge.rs.groupant/scores.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 | [approximant](#approximant) |
| **ast** | partial | `../syntax.json` |
| **composition** | partial | [composition](#composition) |
| **cost** | partial | [Cost](#cost) |
| **descriptant** | present | [descriptant](#descriptant) |
| **invariant** | partial | `model.md` |
| **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.

| id | 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) |
| `identifier_domain` | identifier_domain | partial source derived model | [identifier_domain](#identifier-domain) |
| `range_gate` | range_gate | partial source derived model | [range_gate](#range-gate) |
| `duplicate_policy` | duplicate_policy | partial source derived model | [duplicate_policy](#duplicate-policy) |
| `mean_units` | mean_units | partial source derived model | [mean_units](#mean-units) |

## Model text


### descriptant

#### onto-judge-scores

Trim >=5-column lines; parse usize after leading id removal and four u8 within1..5; last complete valid row overwrites BTreeMap; mean4 sums/4.

##### Epoch 2026-10-31

Prospective review preceded inline test edits. Tests used bounded synthetic CPU fixtures only. Scope bytes [4665,5365) in the parent source. Any invalid score excludes entire row; invalid duplicate leaves previous entry. Missing error defaults dash.

No production optimization, live teacher, corpus, assessment or database mutation. Registry presence denotes partial modeling; syntax is lexical and generated twice identically.

### approximant

#### Forward model: onto-judge-scores

Trim >=5-column lines; parse usize after leading id removal and four u8 within1..5; last complete valid row overwrites BTreeMap; mean4 sums/4.

##### Domain

Finite input arrays/text with resource availability and the source-specific bounds and representation assumptions in [invariant.md](https://md.groupants.elamur.ai/free/en/mova/onto/src/judge.rs.groupant/scores.groupant/#invariant). Exact categorical semantics; no executable percent surrogate is supplied. 1/2/5/10% caps need a meaningful metric and are not claimed.

##### Relations

For valid row r: M'=M[id↦([C,F,U,E],error_or_dash)], else M'=M. Valid(r)⇔width≥5∧usize(id)∧∀j∈1..4:parse_u8(r[j])∈[1,5]. mean4([a,b,c,d])=(a+b+c+d)/4 in f64.

### invariant

## Invariant and cost

Scope bytes [4665,5365) in the parent source. Any invalid score excludes entire row; invalid duplicate leaves previous entry. Missing error defaults dash.

### Cost

Linear traversed scope input/returned bytes except lookup logarithmic comparisons; allocations follow actual result buffers. Parent whole-pipeline cost is not assigned to this fragment.

No allocation, integer-overflow, malformed public-state or external-effect guarantee beyond explicitly described branches.

### composition

#### Composition

Scope output feeds its parent: describe files → deterministic item IDs → wdvmm::ask score responses → parser/report. No teacher or held-out input execution; pure parser success is not judge validity.

Child fragments specialize concrete byte scopes and share the parent syntax projection; they do not duplicate whole-file guarantees. No composition-wide approximation error budget is established.

### models

## Typed obernant catalog

Partial source-derived relations, not proofs. Complement excludes incompatible observations; reverse describes compatible antecedents.

### behavior_complement

Any invalid score excludes entire row; invalid duplicate leaves previous entry. Missing error defaults dash.

### reverse_reconstruction

Map admits earlier valid duplicates and arbitrary invalid later rows; row order not reconstructible.

### identifier_domain

Any usize accepted; no submitted-ID membership check.

### range_gate

1 and5 accepted;0,6 and fractions rejected.

### duplicate_policy

Last valid duplicate wins; iteration numeric key order.

### mean_units

Each rubric score weighted1/4, finite u8 arithmetic cast to f64.

### tests

#### Evidence, 2026-10-31

Selected command: cargo test --offline --locked -p onto --bin onto -- --exact --test-threads=1 judge::wave29::score_overwrite_and_cleaning

Named outcomes:

- judge::wave29::score_overwrite_and_cleaning

Two debug and two release/optimized executions returned zero and identical sorted nonempty named outcomes. Source-generated syntax pairs matched byte-for-byte. 1 compiled source mutation rejected by named test, exact source restored and positive rerun succeeded.

- Control: "(1..=5).contains(x) -> (1..=4).contains(x)" → "judge::wave29::score_overwrite_and_cleaning" (exit 101).

Finite synthetic examples only. Full ingestion, live workers, real corpus, allocation/I/O fault injection, GPU and full-school behavior remain unexecuted. No universal or executable-approximant assurance. External receipts: octopus-wave29-ontocore-2026-10-31 (native-commands.json, source-test-map.json, outcomes.json, controls.json and numeric exit/log files).
