Table of contents

Views and live tiles

PlannedPwshUpdated 2026-10-02

Status: design, 2026-10-02. Gates and receipts are in Managed UI gates; the console view is specified in Console reference specification and Console host and Recovery. A Windows-first implementation contract for the same model is being written in the QuickPS repository.

The model

The hosted runspace and its scripts are the real thing; every view and every tile is a projection of them. Views are the console, a Start screen of live tiles, a settings view, a desktop (windowed, DeX-style), and the editor.

On a TV the Start view is the natural home screen: large tiles, remote navigation through the same verbs, scripts as apps. Android lets an app offer itself as a home screen through the HOME intent category; whether Google TV lets a third-party home screen become the default is not yet checked, so this is a candidate, not a planned claim.

Views are peers

A tile that opens the console, a desktop command, and a desktop that shows the same tiles form a cycle, and the cycle is harmless:

Failure stays local

Failure Behaviour
A tile script throws The tile shows an error face; Edit stays available
A tile script hangs Tile scripts run in their own runspace with a stop deadline; the tile shows Busy
A saved source does not parse The previous version keeps running; the editor shows the errors
A view fails to load Its error page offers Edit and Back; other views are unaffected
An event storm Coalesced per tile; the latest face wins

Endpoint tiles and zones

A tile may serve something on a port: a page, speech, a camera stream, a command pipe. A command endpoint is remote code execution into the runspace, so two independent gates apply, restated from the author's earlier subsystem, a private repository (src/runspace/Host/Firewall.cs, commit 2c8dd804):

The scene model is the accessibility tree. Each node has an id, role, name, value, state, bounds and supported actions; children are in reading order, which is layout order. Keyboard, screen readers, tests and agents use the same verbs: Move(Up|Down|Left|Right), Next, Previous, Invoke, Edit, Open, SetValue, Swipe, Back. A test or an agent drives the surface by node, without screenshots or coordinates. Exposing the same tree to Android's accessibility services needs a view-side bridge, which is part of the text-input bridge work and not yet designed.

Motion and type

Behaviour references

The author's conformance scripts (Start, Desktop, Rubiks, Tetris, CanvasDemo, each with a TypeScript twin) are the workloads these views must run; the TypeScript twins are the behaviour reference, not the structure of their PowerShell ports (the Start port, for one, redraws the whole screen on every animation frame with no damage tracking). A reference that is optimized is optimized by measured, one-change-at-a-time steps against a deterministic metric (canvas operations issued over a fixed scenario suite) with pixel hashes of every checkpoint as the guard; see Working practices.

Lowering boundary

The view host, tile model, layout, queue, semantic tree, navigation and failure handling are fixed code, written in a typed subset and lowered when complete and covered by vectors (Lowering PowerShell to IL). Tile scripts, knobs, face providers and control actions are user code: they stay editable source and are never built into the shipped assemblies. Any run-time lowering of their hot paths is a cache derived from the source and discarded on edit.