Scripts
Objects in The Wired can carry behavior as WebAssembly scripts.
A script is called on three fixed entry points: init, once on load;
update, once per rendered frame; and fixed-update, on a fixed interval
independent of frame rate.
Scripts are sandboxed. They act on the world only through the interfaces a host exposes to them, with no ambient network or filesystem access.
Trust
A script is granted a fixed set of interfaces when loaded — a capability list, fixed at load time. The space owner decides which documents, and therefore which scripts, are loaded into a space.
Portability
Scripts compile to a single WebAssembly binary, stored as a blob and loaded from that one blob by any UNAVI client — desktop, VR, or web.