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

# world-narr-routing

The groupant beside world/src/narr.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:** [`world/src/narr.rs`](https://github.com/ElamurAI/mova-free/blob/main/world/src/narr.rs)
- **source SHA-256:** `bb5c39260b0854bf…`
- **covers:** public_reveal_rollback_after_cause_edge compares real public rollback against intentional internal partial mutation. No universal internal transaction claim. (bytes 1942–5955)
- **part of:** [world-narr](https://md.groupants.elamur.ai/free/en/mova/world/src/narr.rs.groupant/)
- **repository folder:** [`world/src/narr.rs.groupant/routing.groupant`](https://github.com/ElamurAI/mova-free/tree/main/world/src/narr.rs.groupant/routing.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 |
|---|---|---|---|
| `world-narr-routing-behavior-complement` | behavior_complement | partial source model | [behavior-complement](#behavior-complement) |
| `world-narr-routing-reverse-reconstruction` | reverse_reconstruction | partial source model | [reverse-reconstruction](#reverse-reconstruction) |
| `world-narr-routing-coupling` | composition_relation | partial source model | [coupling](#coupling) |

## Model text


Partial source-bound model, 2026-10-30. The reference is the exact sibling Rust source. The domain is valid finite typed values reachable through checked World::apply, except explicitly constructed graph/helper fixtures. Public mutable graph/frame fields are not defended against arbitrary corruption. No live parser, teacher, corpus, GPU or persistence is exercised.

### forward

Find nearest ancestor owning a world; take and restore root Story; route local execution and register new canonical events. worlds returns root then each owned frame world.

### invariant

Valid ancestry is rooted and acyclic; frame worlds are restored after Result errors. Public transaction ownership belongs to World::apply.

### cost

Ancestor traversal O(depth); query scans O(frames plus entities/events searched); cloned world effects external.

### composition

public_reveal_rollback_after_cause_edge compares real public rollback against intentional internal partial mutation. No universal internal transaction claim.

### checks

Native narr::wave9_models tests exercise the bounded domains described in evidence.md at the file root. Ordinary test bodies have partial syntax projections; macro token contents are opaque. The graph oracle uses a dense three-state Floyd closure, not the implementation BFS/bitset algorithm. Typed commands call the real public World::apply boundary.

### epoch-memory

Initial modeling epoch: distinguish admitted graph states from arbitrary public-field edits, and internal mutation from public commit. No production bug was established. In particular narr::relate restores its multi-edge batch, and World::apply discards a cloned failed command even when apply_root has already added a cause edge. Creation ordering has a deliberate 64-round fallback, not an unrestricted topological-sort guarantee. No percentage-error approximant or performance claim.

### behavior-complement

Subject: world-narr-routing, source-bound revision. Domain and observation: the finite typed state/transition family in forward, with dependencies fixed. Operator: A returned Result error cannot permanently remove Story via normal apply_root completion. Panics are outside this guarantee.

Assurance: source-derived partial relation, with finite native evidence where named in checks. Unknown paths remain unknown; no universal coverage or unique inverse is inferred. Complement claims are inner absent-behavior bounds under their stated premises; reverse relations retain all compatible antecedents in their declared family.

### reverse-reconstruction

Subject: world-narr-routing, source-bound revision. Domain and observation: the finite typed state/transition family in forward, with dependencies fixed. Operator: World-only query results retain multiple frame origins when the same canonical id occurs across copies. event_any selects first root/frame occurrence; ent_any chooses most nonproject states with last maximum tie.

Assurance: source-derived partial relation, with finite native evidence where named in checks. Unknown paths remain unknown; no universal coverage or unique inverse is inferred. Complement claims are inner absent-behavior bounds under their stated premises; reverse relations retain all compatible antecedents in their declared family.

### coupling

Subject: world-narr-routing, source-bound revision. Domain and observation: the finite typed state/transition family in forward, with dependencies fixed. Operator: public_reveal_rollback_after_cause_edge compares real public rollback against intentional internal partial mutation. No universal internal transaction claim.

Assurance: source-derived partial relation, with finite native evidence where named in checks. Unknown paths remain unknown; no universal coverage or unique inverse is inferred. Complement claims are inner absent-behavior bounds under their stated premises; reverse relations retain all compatible antecedents in their declared family.
