<web-island> multi-origin host shell
Portals and conversational shells often need live interactive widgets from separate third-party sites without giving those widgets access to host DOM, cookies, or unapproved actions. This lab demonstrates /.well-known/web-island.json discovery, MessageChannel theme and size syncing, explicit <dialog> batch approval, and signed ECDSA hold receipts across three isolated widget origins.
Hypothesis
Combining
/.well-known/web-island.jsondiscovery,sandbox="allow-scripts",MessageChanneltheme/size negotiation, explicit<dialog>batch confirmation, and ECDSA receipts enables multi-origin UI composition without granting widgets ambient host authority.
What confirms it: Three separate island workers synchronize styling tokens and resize geometry via ResizeObserver over isolated channels, require explicit <dialog> approval for batched WebMCP calls, and verify signed ECDSA hold receipts.
What falsifies or bounds it: Intrinsic sizing latency (ResizeObserver ping-pong) or multi-step authentication flows degrade cleanly below usability inside double-isolated frames.
What this lab tests
How does a browser portal or conversational shell compose multiple independent interactive widgets from different origins without surrendering host DOM access or losing origin authentication?
Web Island Host Shell (GitHub) discovers /.well-known/web-island.json manifests for three isolated widgets (seats, budget, calendar), mounts each as a <web-island> custom element enclosing sandbox="allow-scripts", synchronizes design tokens and intrinsic height over MessageChannel + ResizeObserver, enforces hub-and-spoke routing, gates batched WebMCP calls behind a <dialog> confirmation modal, and verifies ECDSA P-256 hold receipts.
Open questions
- How should allowlisted CSS custom property negotiation avoid palette spoofing or UI redressing attacks inside an island?
- Can browsers make
MessageChannel+ResizeObserversizing a declarative attribute on a native<web-island>element?
Iteration log
- — Deployed 3 isolated widget workers (
seats,budget,calendar),.well-known/web-island.jsondiscovery, Invoker<dialog>batch gate, and ECDSA hold verification. - — Moved island scripts/CSS out of inline tags, added live handshake/resize telemetry, real peer-isolation + ECDSA tamper probes, CSP-safe DOM syntax highlighting, and
no-cacheWorker-routed asset headers for 700px embeds.
Primitives tested: Custom Elements v1, <iframe sandbox>, MessageChannel, /.well-known/web-island.json, CSS Custom Properties, WebMCP.
This is an active lab under /labs/ and stays off the main RSS feed until graduated into a full essay.