M1: three realms, one TodoMVC - #150
Merged
Merged
Conversation
The runtime component (kernel crate + world) boots in a SharedWorker over a kv import and wasi:http, serves device state, the app registry (bundles fetched from the home origin, assets re-hashed), in-memory tasks per app, and a long-poll event export; app sessions get a bound MessagePort that reaches exactly the tasks mirror and the three asset calls. The visor component (Dioxus over stream-dom) renders the strip and two drawer tenants with voices as types; the TodoMVC app component keeps its state in the tasks service. Glue: boot/worker/frame, a WIT- over-MessagePort proxy, the frame policy, the hash-pinned srcdoc loader, build + translate, five Playwright scenarios. Found on the way and recorded in docs/design.md: generate! must not set async: true (the translator, not wasm-tools, catches the async lowering of a sync WIT function); and a polyengine liveness bug — a parked driver's stale pendingHostCalls snapshot — fixed upstream (#289) and consumed here at that git revision with the pre-<sha> translator asset.
lannbot
enabled auto-merge
September 6, 2026 23:24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Runtime component in the SharedWorker (kernel crate: device, app registry with asset re-hashing, in-memory
tasks, long-pollevents,apps.abort), visor component (Dioxus over stream-dom; voices as types; strip + Apps/Settings tenants), TodoMVC app component overpolyvisor:app/tasks, and the glue:boot.ts/worker.ts/frame.ts, WIT-over-MessagePort RPC, the frame policy on stream-dom'sPolicy, hash-pinned srcdoc loader withdefault-src 'none', build + translate, e2e.Gates:
just cigreen;deno task e2e5/5 — boot, open-app (opaque frame; strip geometry immobile), todo-roundtrip (through the worker, survives a tab reload with a second tab holding the worker), frame-network-dead (zero requests from the frame), instantiates-without-jspi.Two findings recorded in
docs/design.md:generate!never setsasync: true; the translator (notwasm-tools validate) catches an async lowering of a sync WIT function, sositeis now part ofjust ci.pendingHostCallsrace snapshot) — fixed upstream in driver: a host call registered while a driver is parked wakes it (stale race snapshot) polyengine#289; this tree consumes polyengine at that git revision with thepre-<sha>translator asset until a release carries it.Deferred to M2: the browser-level frame-teardown scenario (needs a hostile fixture component; the path was exercised by the policy catching the example's outbound
href).Automerge armed.