Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Playable, accessible and authorable worlds across ID shells

Research snapshot of November 23, 2026. Code and issue observations refer to the cited revisions and collection times.

Design proposal v1. This extends the staged Clients, Roc and Lifecycle chapters and the existing six app fixtures. It specifies how a person proves an app works across hosts, how delayed input is handled and how an author changes the app. Repository evidence here is from main at 7310a95730791e66da98f7b0e13865930058a516. The examples below are independent acceptance oracles. Their implementation, physical-device results and any change to the shell contract require separate evidence. The checked guest ABI, shell contract and book keep their existing names and versions.

What is already present

Entry pointChecked behaviorConsequence for the design
Linux native shellMain registers scene, audio and widget plugins. Widget projection assigns rows in document order, skips display-only controls and implements focus traversal. A changed view rebuilds its controls and restarts focus. The plugin explicitly leaves keyboard or pointer capture and delivery for later wiring. Its capability statement still lists screen/text/form and excludes rich surfaces.Correct the published matrix against this pin. Record scene projection, scheduled audio cues, device playback, widget projection and widget activation as separate results. Existing statement tests validate frame vocabulary and exclusions but do not establish a human can activate a rendered widget. Main · Widget model · Statement · Statement tests
World presentation and wireWidget/1 defines button, toggle and link with IDs unique in the document, labels, declared actions, a 64-control and 64 KiB bound, and a text projection. The form result validates action and fields and can reject a mismatching presentation token. The agent-profile stale-decision flow names a screen revision. View patches have a base view revision.A control ID identifies what was displayed. It does not grant an action. Keep the form token, view revision, durable world sequence and program hash distinct. Document which profiles actually enforce each precondition before enabling cross-view activation. World presentation · Shell contract
Roc guestPlaza v1 is import-free Wasm. update consumes a journal event. view and optional layout produce representations. wants permits mediated requests. An older module can omit several projections and the ABI version getter. The existing runner permits a version getter without negotiating a version from it.Extend first through authoring and shell behavior. Any addition requiring a new mandatory guest type or effect needs an explicit admission/migration design for old modules. Guest ABI
Native semantic treeThe id-render native lowering constructs accessibility role/name and a tree from declared UI. World surfaces and this lowering have distinct representations.Adapt a widget to the smallest common semantic assertions. A universal new on-wire UI tree across both stacks would require evidence from at least two real adapters. Native lowering
Embedded shellThe hardware shell folds snapshots and events, resumes from a recorded head, and can answer a token-bound presented form. Its published profile excludes free text, rich rendering, running a world and provider offers.Offer a supported confirmation task. Typing, drawing and sprite play need stronger profiles. Protocol replay on a laptop verifies the fold, while a device claim requires physical evidence. Hardware fold and confirm
Offline authoringid world dev already compiles into a disposable local world, gates candidate promotion by fixtures, checks source snapshot identity, and hot-swaps through a probe, migration and replay. Different fixture and candidate module hashes are deliberately permitted in dev; truncated replay evidence has different comparison rules.Put direct manipulation and the inspector on top of this promotion path. The full-prefix fixture and named expected records matter when claiming an app update preserves behavior. Developer loop

Lessons worth carrying forward

SourceSpecific mechanismTransfer to ID and limit
Sutherland, Sketchpad (1963), chapter VIA master picture can have multiple transformed instances. An instance references shared geometry and carries its placement.Add a pinned symbol object to Sketch. Store per-instance transforms with explicit integer units and origin. Editing a master creates a new content ID. Provide an explicit operation that advances selected instances to the new ID. Current v1 can deliver reuse without a general constraint solver. Original thesis
Maloney and Smith, Morphic (1995)A person can inspect a visible object and manipulate its structure or layout while the environment remains live.An inspector can report the world, program and semantic control that produced a target. Editing opens a private candidate with its own scratch state. A world update still follows ID fixture, grant and publication checks. Authors’ paper
Andrew Plotkin, Glk 0.7.6 and BlorbGlk defines presentation capabilities and asynchronous events. It coalesces late timer notifications. Blorb stores text descriptions for significant image and sound resources.Distinguish a display wake-up from an admitted game tick. Attach an authored meaning to a consequential cue, retain it when media is missing or decode denied, and keep clip size and decoding out of guest state. Glk §4.4 · Blorb §9
Elm effects and the Wasm Component ModelElm routes effects through the runtime with commands and subscriptions. WIT distinguishes a temporarily borrowed resource handle from one whose ownership has transferred.Map guest wants, policy admission and returned events explicitly. Keep a decoder, microphone stream or device session handle host-local. A replayable record may contain a content ID and authorized receipt, never a host pointer or transferable access inferred from that ID. Retain Plaza v1. Elm guide · WIT resource types
W3C keyboard guidance and Android Compose semanticsKeyboard focus must survive predictable navigation and differ from selection. Compose’s usual tests inspect a merged semantics tree; accessibility services receive the unmerged tree and apply their own merging logic.Inspect both Compose trees and operate the app with TalkBack. Preserve focus by logical control identity on equivalent refreshes. Drawn labels and successful component lookup alone do not prove the person can complete the task. W3C practices · Android semantics
Bevy fixed time and LVGL display interfaceA render update can include zero, one or several fixed updates. LVGL supports partial rendering and flushing changed areas.Separate the committed simulation schedule from animation cadence. Permit the hardware renderer to hold a bounded area when the supported interactions fit the device. The mechanisms can be evaluated independently of installing either dependency in a pure Roc app. Bevy time · LVGL display

Task profiles and accessible interaction

An app release should declare the user tasks it offers. For each essential task record the entry screen, semantic target, allowed action, required input precision, alternate path, success record and availability under refusal of each requested effect. Use existing contract kinds and IDs where they suffice. A host reports which tasks it can complete and which it can only display. The declaration can begin as a fixture alongside the package. A protocol addition is warranted only when two independent hosts need to exchange a missing datum.

For example, Mine may resolve to the existing ore tile ID plus a mine action. A terminal participant moves to the tile or chooses its numbered entry. A touch user taps its labelled region. A screen-reader user chooses the object from a nearby-targets list and activates Mine. The authoritative result is the same world event and ore balance for equal starting conditions. Each route discloses the same cost before admission. A companion hardware shell that only supports existing token-bound forms may confirm a proposed limited action, but cannot claim playable spatial navigation merely by receiving its resulting world head. An app can require precise path input for a freehand stroke. Creating an authored polyline by entering points is an alternate task only when it has the same data semantics.

The host should track focus separately from persisted selection and gesture capture. Scope focus to a program, a view family and an author-stable control ID. Within that family keep focus if the active control survives a refresh and still acts. On removal, choose the next enabled surviving control in the old reading order, then the previous one. On a deliberate navigation between views move to the destination heading or first active control. Freeze the target and view revision at gesture start. A release activates only after validating the same logical binding and applicable host admission. Where stale-decision validation is confined to a negotiated profile, inspect the server enforcement before generalizing it. Use token-bound forms for actions that already use form confirmation. If the required precondition cannot cross the current boundary, disable the stale action and redisplay for explicit selection. A visual focus transition emits zero world events. A display acknowledgment never commits user intent.

Use a screen-reader-friendly object index for large boards. Give each actionable entity a name, position, state and available action list in deterministic reading order. Announce a player-relevant result once per accepted operation. Individual sprite animations and pointer movement need no announcement. Web checks include actual DOM accessibility attributes and keyboard traversal. Android checks include merged and unmerged trees plus a physical assistive-service walkthrough. IME pre-edit, selection handles, zoom and hover stay local. On committed text preserve the user’s exact string according to the field’s published semantics. A reconnect discards stale host-only gesture/IME state and resumes from accepted world state.

Acceptance fixture. View 40 lists controls A, B, C. Focus B. View 41 inserts D before A but preserves B’s binding. Focus remains B with zero journal events. Pointer-down on B at 41, followed by a replacement view 42 reusing the ID for a different action, then pointer-up, results in zero admitted actions and a refreshed choice. A fresh explicit activation against 42 commits its declared action once. With an Android labelled button containing an icon, the navigable action occurs once and has one accessible name. Verify first in the model, then through a real input adapter into the durable event stream. Re-running the production renderer to generate its own expected rows supplies no independent oracle.

Ticks, drawing and assets

Split three clocks. Input sample time is host-local. A committed logical tick is a guest input. Presentation time is host-local and can interpolate a committed state. When a node sleeps, reconnect from the last durable head and fold recorded ticks. Generating elapsed wall-clock ticks on each rejoining shell would multiply simulation work and outcomes. An app that intentionally advances during absence must specify which authority produces the bounded catch-up event, how it orders against inputs and how the limit is shown. Until that policy exists, a manual Step advances exactly once through the ordinary admission path. A replay on a 30 Hz display and a 90 Hz display should consume the same prefix and reproduce the same published records.

An asset manifest can map the semantic cue ore-collected to a text description, optional image/audio hashes, declared encoded sizes and media types. The entitlement, decode bounds and renderer capabilities are evaluated before opening media. Decorative assets can be marked as such. For the app suite, a loss of speaker output or a denied download must still communicate the collection through its published state and accessible description. Give each requested derivative a versioned decoder or transform identity when exact derivative bytes matter. A sprite palette, display size and resampling choice do not change the rules. Keep missing, inaccessible and failed media distinguishable in private host diagnostics. Do not disclose private media identifiers to participants outside their read scope.

A headless Bevy projection reads committed events and keys entities by stable world ID. Rebuild it at any valid checkpoint. For identical accepted inputs, a stalled renderer and a headless batch both yield the hand-computed world records, including deterministic tie-breaking between competing moves. Compare the source record and emitted intent per phase; this detects an ECS system writing authoritative state outside the journal. Frame-rate evidence measures display behavior separately from guest fuel.

Direct authoring, offline edits and distribution

An optional build sidecar, keyed by compiled module content ID, maps author-declared semantic IDs to package-relative source anchors. Validate it against the module and expose only source a user can read. The compiler/runtime may omit anchors for dynamic controls. A stale or missing sidecar yields an inspectable semantic target and explicit unavailable-source status. Never infer an editable file from a label, mutable row number or path sent by a guest. Selecting Inspect on a published world reads the authorized manifest and projection. Editing forks a local draft, recompiles, runs the existing fixture gate on a complete history and previews in the scratch world. Publishing requires package/write authority and the documented world upgrade policy. Changes to requested effects require a newly valid grant for the added effect. A participant with read/play permission can inspect public information and continue running the last accepted revision after a failed build.

Sketch example. One symbol is the segment from (0,0) to (2,0). Two instances reference its hash, with translations (1,1) and (5,1). The author creates a replacement segment ending at (3,0) and retargets only the first instance. Published endpoints become (4,1) and (7,1). Replaying the old revision yields (3,1) and (7,1). A drawn preview can cache raster tiles by document revision, viewport and renderer version. Neither a cache eviction nor a zoom should alter any endpoint. An absent symbol preserves the reference and placement and presents a missing-asset placeholder. Defer continuous constraints until fixed-point/range, iteration bound, cycle behavior, precise failure and fuel ceilings have independent examples. A deterministic failure cannot silently choose different geometry on another host.

Mind map example. Dragging a node or invoking “Move under…” must submit the same source and destination IDs. Rerender or reordering during a drag cannot reinterpret an array index as a different parent. A denied content grant between opening the chooser and commit keeps the committed graph and reports the failed operation without revealing private siblings. For concurrent structural moves, use the accepted content-class tree policy. Before declaring equivalence, specify the fixture’s old parent, both concurrent moves, actor identities and expected resulting tree, including how the UI exposes a superseded move. The archive’s CRDT/namespace record owns that choice. A client alone cannot settle it.

Physical device proof

Keep the current ESP32-class shell’s supported confirmation task. A physical proof should identify board, firmware revision, paired node, transport, input device, display, measured memory peak and reconnect results. A fresh wake retrieves the form, a deliberate press answers it, and disconnect/reconnect reproduces exactly the admitted action or its refusal. A missing presentation token results in no outgoing form result. Required free-text entry is unavailable on a confirmation-only profile. Degrade locally for presentation or refer the user to another owned shell after an explicit decision where a handoff is necessary. Preserve operation identity and avoid replaying the grant on another device by default.

A separate partial-display experiment has a measurable ceiling. A 240×240 RGB565 framebuffer uses 115,200 bytes of pixel storage. A 240×20 strip uses 9,600 bytes and two strips use 19,200 bytes, excluding stride padding, transport, stacks, decoded assets and driver allocations. Record those additional costs on the actual board. Do not reuse a strip until transfer completion. If a patch’s base view is missing, recover a full view through the existing contract before updating the displayed committed state. Measure display completion separately from durable event acceptance and readback. No board size, RAM or successful run is implied by the arithmetic.

A counterexample for simulation replay

Consider a proposed guest that starts at 2 and supports two authorized actions, double and add one. Accept them in that order and the result is 5. Reverse the order and it is 6. Equal guest bytes, fuel limits and a set of event IDs do not specify the outcome by themselves. Croquet gives its replicated model discrete virtual time and orders events for a session. ID can record a world-specific accepted input sequence with a defined tick order, or choose an operation algebra with a justified merge rule. Applying a blanket global order across the signed graph would exceed the Phase 8 causal-validity decision. In a parity test, specify the admitted order independently and vary the number of rendered frames on each client. Both clients should produce 5 for the first history and 6 for the second. Crossed offline branches need the app’s explicit admission or merge rule. Croquet model clock · ID design history and decisions carried forward

Integration order and oracles

Order and dependencyProposed workIndependent success condition
1. Current-main claim reconciliationReuse the open owner for the native capability statement and existing widget input work, if present. Refresh the table of render/activate/playback per surface and the documentation in the same change.A test or inspection locates registered presenters. The statement accurately distinguishes cue scheduling, real speaker output, widget display and accepted input.
2. Existing Linux projection and shell/1Exercise stable focus, stale activation, deliberate navigation and two activations of one logical target using the widget model and real host ingress. Only add a negotiated field where existing server admission proves insufficient.Run the A/B/C/D sequence above. Verify focus or selection and exact action count by reading the committed journal. Preserve fallback for older hosts.
3. Existing Roc fixtures and asset policyExtend Colony and Orbit with the same semantic target list and described cue. Exercise Burrow motion and Cells ticks with input order pinned. Ship the corpus through id world dev and retain each old module’s replay fixture.Refused decode leaves ore balance and description intact. Zero display frames between accepted ticks still produces the expected Cells state. A ten-period render stall that received one committed tick advances by one.
4. Android priority and release rungImplement the accepted Kotlin/Rust plan using the same guest package. Add Android input, IME and accessibility transcripts, process death, offline replay and TalkBack evidence. Then exercise Web, macOS and Windows in product priority order.Compare target, event and end-state evidence per host. Test focus after reorder, denied effect and actual assistive navigation. A compile or emulator screenshot cannot establish physical behavior.
5. Current authoring, distribution and object schemasAdd optional source-map inspection and a symbol-edit fixture to the existing developer loop. Bind preview, signed publish, upgrade and requested-capability deltas to separate checks.The segment oracle passes, old hashes replay unchanged, a missing sidecar is nonfatal, stale or unauthorized source is withheld, and a failed fixture gate leaves the last-good world active.
6. Hardware and advanced simulationsFirst prove wake/confirm on a named device. Keep rich display and parameterized constraints as separately measured experiments; record the result by profile.One press produces one confirmed effect or a determinate refusal. Framebuffer measurements fit the actual board. Constraint experiments have fixed expected outcomes and bounded work before adoption.

Before any issue claim or implementation, compare the owners and latest comments for the widget renderer PR, Android implementation, semantic cells, assets, ECS, embedded and authoring. These are routing references. Ownership, status, device access and the presence of newer issue numbers must be determined from current REST evidence. Read-only GitHub REST search for native capability statements also surfaced #10931, shared conformance packaging and #12817, second native shell. The staged issue delta records that #12657 closed after the widget merge. A search for a widget input title alone cannot establish the work is unowned. The staged six fixtures remain the starting corpus. None of the new cases above has been executed in this review.