---
title: "Shell, routing & UI contracts"
description: "One URL, two presentations, the first-party route registry, installed app hosting and the engine-neutral ui-contracts boundary."
url: "https://rumahl.com/developers/shell-contracts"
section: "Shell & UI"
group: "Frontend"
updated: "20 October 2026"
---

# Shell, routing & UI contracts

> One URL, two presentations, the first-party route registry, installed app hosting and the engine-neutral ui-contracts boundary.

**Area:** Shell & UI  
**Group:** Frontend  
**Updated:** 20 October 2026  
**Reading time:** 8 min  
**HTML:** https://rumahl.com/developers/shell-contracts

## One address, two presentations

Desktop or launcher is a persisted preference, not a route parameter. Reload and Back/Forward preserve the route; login returns to a validated deep link.

| URL | Meaning |
| --- | --- |
| / | Desktop dashboard or app grid in launcher mode |
| /apps | First-party apps and authorized installed-app catalog |
| /app/:appId/* | App identifier and an app-owned nested route |
| /settings/* | Settings modules and nested pages |
| /settings/display | Presentation controls |
| /recovery | Standalone Rust recovery environment |

## Route ownership

- App.tsx owns the live snapshot/session boundary, locale provider, router and shell.
- routing/routes.tsx is the first-party route table with navigation, title and window metadata.
- apps/registry.tsx registers trusted first-party app declarations and nested routes.
- Third-party manifests cannot register React components in this table.
- Installed apps are consumed through the Rust catalog and hosted in an isolated frame.
- Unknown apps and nested pages get explicit unavailable/not-found views.

## UI contracts

ui-contracts is the engine-neutral compatibility boundary between the authoritative Rust platform and replaceable shell renderers. It contains no React, Node.js, HTTP, database, runtime-engine or privileged platform integration.

- Strict ShellSnapshot parsing with explicit snapshot, UI and extension API versions
- Declarative theme manifests with an allowlisted token and variant set
- Deterministic CSS compilation from validated values
- Command, search-provider and reserved dashboard-widget projections
- Checked-in JSON schemas, TypeScript bindings and compatibility fixtures

## Preferences

Shell mode and device preferences are synchronized through versioned APIs. Account-wide settings follow the same account on other browser profiles; a device override takes priority and can be removed. Rust persists authoritative values; clients use Local Storage with Session Storage fallback and surface stale-write conflicts.
