HanzoHIPs
Back to HIPs
HIP-1414DraftStandards TrackInfrastructure

Hanzo OS — Reproducible Native and Web Runtime

Hanzo AI
Created: 2026-11-28
Requires: HIP-0119

HIP-1414: Hanzo OS — Reproducible Native and Web Runtime

Abstract

This HIP defines the runtime profiles and distribution contract of Hanzo OS, owned by the existing public repository hanzoai/os. The operating environment runs on native machines, in browsers, at the edge and on authorized network hosts. The browser-first application path compiles first-party components directly to the web platform. An optional Linux compatibility guest runs a Linux kernel compiled to WebAssembly and emulates ARM64 Linux userspace, with a graphical compositor adapter. Native machines retain the reproducible declarative system and sandbox-image foundation already in the repository. All profiles implement the same application, identity, file, model and workflow contracts. The OS is not a new queue, database, model gateway, application registry or identity system.

Motivation

A full conventional distribution in every tab imposes avoidable startup and memory costs and creates a second application ecosystem. Native systems, browser-hosted applications, portable guest programs and persistent workers instead require different execution mechanisms with shared contracts. Reproducibility, explicit placement, recoverability and user control are requirements, not optional modes. Browser capabilities are not equivalent to native hardware access; advertising that equivalence without evidence is non-conformant.

Specification

The key words MUST, MUST NOT, SHOULD, SHOULD NOT and MAY are to be interpreted as in RFC 2119.

1. Runtime profile and ownership

ProfileImplementationRequired boundary
NativeReproducible Linux images and declarative host configurationSigned bootable artifact, local machine control, recovery
WebHanzo app shell, web components, native WebAssembly modules and browser GPUBrowser sandbox, capability detection, no mandatory guest
Linux compatibilityLazily loaded WebAssembly kernel and ARM64 guest userspaceSeparate guest process/worker, isolated guest disk and scoped bridge
DesktopExisting native Hanzo application host on supported OSesOne launcher/shell, platform permission adapter
EdgeMinimal reproducible machine/sandbox imageDevice-capability discovery, bounded resources
NetworkExisting authorized fleet/worker runtimesIAM-scoped leases, admission and accounting

hanzoai/os owns distribution images, profiles, pinned runtime artifacts, bootstrap, update and recovery. The application shell and mods remain in hanzoai/app (HIP-0528); the UI substrate and component library remain the HIP-0504 design system. Visor owns sandbox isolation on supported managed hosts (HIP-1343), not a second app shell. Engine and Enso own model serving and routing; Flow authors graphs, Tasks owns durable execution, Auto owns triggers, Base owns structured records, and Disk/VFS/S3 own durable file services. The OS MUST compose these rather than fork them.

Personal OS and Business OS are workspace profiles of the same shell, identity and capabilities, not separate OS distributions. The personal workspace is a distinct authorized scope; a business workspace follows organization membership, roles, retention and policies. A workspace switch MUST invalidate previous scoped client state and re-resolve permissions. A user MUST explicitly authorize any cross-workspace transfer. No agent may merge personal and business memory, files, secrets, billing or automations by default. HIP-0528 owns shell and personalization behavior; tenancy and identity standards remain authoritative.

2. First-party web execution

The first-party shell MUST render and open supported applications without booting a Linux guest. Reusable Rust engines SHOULD target native and WebAssembly with the same typed SDK and conformance fixtures. Use web workers for compute, WebGPU for supported acceleration, AudioWorklet for real-time audio, and browser-native storage/graphics/codec APIs when capability-tested. All hardware-dependent capabilities MUST be discovered at runtime. Failure to initialize GPU, shared memory, codec or device features MUST yield a truthful degraded or unavailable state, not a silent server fallback. Fallback requires permission, placement policy and a visible execution indicator.

The app registry serves a small signed manifest; modules, model weights, guest images and creative engines load on demand. Shared UI components, commands, project formats and permissions MUST remain the same across native and web. Do not ship all creative engines in the initial shell bundle. UI rendering MUST remain responsive while a worker boots or runs code. Real-time audio MUST NOT block on a guest, network, model or durable queue. Use HIP-1413 for sample-clock and audio processing invariants.

Browser persistence uses scoped IndexedDB or OPFS when supported, with explicit quotas and eviction handling. Local-only projects MUST NOT upload implicitly. A user MUST be able to export portable data, recover an interrupted write and delete a local guest or workspace. Browser storage is not represented as indefinitely durable or equivalent to a managed filesystem. Synchronization to the existing Hanzo file and record services requires authorization and an explicit conflict/recovery protocol.

3. Linux compatibility backend

The selected initial upstream backend is a Linux-to-WebAssembly kernel port with ARM64 user-mode emulation and a JavaScript SDK. Its technical provenance is recorded below. This is a required implementation target for the compatibility profile, not a claim that Hanzo has shipped it.

The guest MUST be optional and initialized on demand in a dedicated worker where supported. Pin the kernel, emulator, guest root image, SDK, compiler, runtime ABI and patches by digest; build from source in controlled CI. Use a minimal ARM64 distribution root as the default, and an additional distribution only where package compatibility warrants it. Default root images are immutable; changes land in an isolated, writable per-workspace overlay. Never mount the entire host filesystem or expose the host app's session, bearer token or key store to the guest. A guest receives only operation-scoped filesystem mounts, IPC and tool capabilities.

A bridge MUST expose lifecycle (create, start, stop, reset, checkpoint, restore, export), terminal PTY, scoped file import/export, network policy, resource limits, and typed application-window events. These are logical SDK operations; do not invent served routes before the operation registry implements them. The guest is not an authoritative task scheduler. Guest processes may stop on tab close, browser eviction or crash. A recovery manifest records guest image hash, disk generation and validated checkpoint metadata. Restore MUST fail closed on incompatible or untrusted data.

Detect JavaScript Promise Integration, WebAssembly features, cross-origin isolation, SharedArrayBuffer/worker support, memory limits, browser storage, GPU and audio support before boot. Test each declared browser/OS release combination. Never promise arbitrary x86 binaries, kernel modules, hardware drivers, direct GPU device access or real-time latency inside an emulated guest. Supported ARM64 packages MUST be measured, including CPU-heavy tools and thread/fork behavior. Optional guest acceleration MUST be reported as distinct from native WebGPU/graphics. No direct kernel or emulator dependency is permitted in first-party application startup.

4. Graphical application integration

Guest-native Wayland applications MAY be presented as windows in the Hanzo shell through a separately pinned compositor/relay adapter; an authorized native/remote host MAY also relay a window. Reuse the shell's window management, focus, accessibility affordances, shortcuts and appearance. Do not run two desktop shells as a required path. Differentiate local guest windows, browser-native applications and remote sessions in the UI.

Clipboard, keyboard, drag and drop, file mounts, camera, microphone, audio, fullscreen and remote input MUST be capability-scoped and subject to explicit user grants. Clipboard is not a hidden transport for credentials. Relay sessions require authentication, tenant binding, short-lived credentials, origin checks, replay protection, rate/resource limits and revocation; no unauthenticated public listener or ambient host filesystem. The guest compositor is not trusted to enforce platform authorization. If graphical relaying is unavailable, terminal access and supported browser-native tools remain available. Persistent remote sessions must recover through their authorized host, not be inferred from a browser tab.

5. Networking and execution security

Browser guests cannot be assumed to have raw TCP sockets. Where networking is supported, use a first-party authorized socket proxy or a scoped host bridge with destination policy, DNS and connection quotas, SSRF protection, auditable egress and revocable credentials. Default guest networking is off until the workspace grants it; local-only and offline profiles MUST never silently use an external relay, model or telemetry endpoint. Document that plaintext traffic is visible to a forwarding proxy; prefer end-to-end encrypted protocols. Block access to metadata, management and private endpoints unless explicitly authorized through the platform network policy. Do not depend on an upstream demo proxy.

Run untrusted native or guest code with least privilege, memory/CPU/disk and wall-time budgets, bounded IPC, output quotas, crash recovery and kill controls. Treat imported files, guest applications, package metadata, web content and generated code as untrusted. No automatic install or execution merely because a model recommends a package. The trusted host enforces authorization; guest root is not platform root. Separate origin and storage scopes, protect the session from guest and mod code, and test boundary escapes. Verify dependency signatures/digests, record SBOM and supply corresponding source and license notices.

6. Native distribution and updates

Extend the existing Nix-based hanzoai/os foundation rather than fork a second general-purpose distribution. Produce reproducible pinned native images for supported hardware, with the shared Hanzo application shell, application registry, local model manager and machine daemon. Use the existing Hanzo CLI and node lifecycle, k3s/containerd and Visor where the profile runs local cloud services. No Docker daemon requirement. Native boot, install, secure update, rollback, recovery and user-controlled disk encryption must be proven per hardware profile. Use explicit user consent for firmware, privileged OS changes, remote administration and network compute participation. Native profiles MUST support offline use for declared local capabilities; platform authentication is required only for operations that require platform access.

Images, packages, kernel modules and third-party firmware follow their own licenses and distribution obligations. Reproducible image builds, signed manifest and release provenance MUST be retained. Updates MUST be staged, reversible and verified against a known-good recovery image. No agent may disable recovery or update verification through an ordinary app-level grant.

7. Persistent agents, compute and placement

Local interactive apps and real-time processing use local runtimes. Long running workflows, scheduled actions, render jobs and research runs MUST use Tasks (HIP-1062) through the established owner interface. Flow (HIP-1064) owns authored graphs; Auto (HIP-1063) owns event triggers. Browser sessions can author, submit and observe work, but a claimed persistent run must execute on an authorized native or managed worker that remains available after the tab closes. A browser-only execution must clearly report its lifetime and recovery limits. Never represent browser timers or service workers as guaranteed 24/7 execution.

The placement policy pins data class, tenant, location, capability, model/engine versions, resource budget and allowed providers. Local-only means no remote workload or implicit remote storage. Remote execution requires consent and IAM authorization. Network compute participation is opt-in, uses the existing fleet registry and workload leases, records resource use and proof/evidence, and has pause, withdrawal and spending limits. Do not assume permission to send private workloads to untrusted hardware. Do not advertise registered nodes as usable GPUs or gross hardware count as effective training capacity.

8. Application release profiles

First-party apps are loaded through the Mods SDK and the canonical product specifications. Chat, Dev, Team, Bot, Studio, Image, Film, Effects, Clips, Sound, DJ, CRM, Commerce and other registered apps MUST declare supported execution modes, permissions, required services, package and asset sizes, offline behavior and conformance results. Apps with unavailable prerequisites remain disabled or explicitly degraded, not replaced by demo simulations. The creative standard library and audio engine have their own specifications; do not duplicate editor or DSP semantics here. Existing workflows and projects MUST retain editable state when moving between supported profiles.

9. Conformance and performance gates

Initial targets are engineering objectives, not measurements or public release claims. Reference devices include an 8 GB Apple Silicon machine, a declared x86-64 desktop and at least one supported mobile browser. Record exact hardware, OS, browser, network, cache state, artifact hashes, test command, date, sample count and p50/p95.

GateInitial objective
Shell transferAt most 2 MiB compressed initial app shell excluding lazy engines/models/guest
Cached app openp95 at most 250 ms for a declared lightweight first-party app
Guest cold bootp95 at most 2 s after bytes are available on reference desktop; separately record download time
Guest transferAt most 15 MiB compressed base kernel and minimal root image target
Native idle memoryAt most 1 GiB for declared base desktop, excluding loaded models and optional cluster
UI60 FPS target for declared lightweight interactions, with guest boot off main thread
Offline localZero external requests during supported local-only workflow fixture
SecurityZero cross-workspace reads and unauthorized guest-to-host capability uses in fixtures
Durable executionSubmit authorized job, close tab, restart host worker, recover and verify output
ReproducibilityPinned build and signed artifact/source provenance; independently rebuild where supported

Test terminal, package installation under approved network policy, a scoped file mount, graphical app, clipboard denial, export/reset, persistence after reload, memory pressure, unsupported browser detection, guest crash, native rollback and permission revocation. Run real first-party app fixtures in native and WASM and compare semantic outputs. Measure native web execution separately from guest compatibility and remote rendering. Publish browser support matrix and raw evidence, including failures. Do not infer all applications or plugins work from a successful boot.

10. Implementation sequence and provenance

  1. Pin and audit upstream sources; build the minimal guest and compositor.
  2. Implement the local guest worker, lifecycle, disk and bridge with network off; run browser smoke tests and parser/escape security fixtures.
  3. Add opt-in network proxy, terminal and graphical windows; enforce the first-party shell and Mods integration.
  4. Build direct WASM/native first-party app adapters and shared capabilities; integrate the durable execution handoff and local storage.
  5. Produce native bootable reference image, install/rollback tests and portable project workflows; measure the reference matrix.
  6. Gate promotion independently per profile; publish artifacts, source, receipts, docs and actual availability, not aspirational feature lists.

Technical upstream provenance (not product branding): the selected kernel backend is pithings/unkernel at b9db51200e83e0d045ade63ec8f1a6aebdf36189; the compositor candidate is pithings/wland at 002383796c74597894915157484431dd4afdf1f0. These are initial evaluated source pins, not tested Hanzo releases. Kernel and emulator artifacts carry GPL obligations; the JS SDK is MIT, but the combined upstream package includes GPL-2.0-only components. The compositor Zig sources and binaries are MPL-2.0, with remaining SDK code MIT and protocol-specific terms. Preserve all notices, publish required corresponding source/build material and review the combined distribution before shipping. Keep those components separately identified from the permissively licensed Hanzo creative and application libraries. Product-facing branding is Hanzo only. No claim that process separation alone resolves license obligations.

11. Additional registered workspaces

Hanzo Design (HIP-1416) and Hanzo Browser (HIP-1417) use the same shell, workspace and placement contracts. Design and other first-party apps MUST prefer direct web/native execution. Browser sessions and optional Linux guests are separate capabilities, never alternate identity systems. The generative UI wire protocol is HIP-1415; the design system owns component rendering and Mods owns persistent personalization.

Rationale

Native execution and browser-native WebAssembly avoid paying the compatibility cost on every first-party operation. The guest expands access to existing Linux programs where a direct port is not available; it is a complement, not a replacement for browser-native applications. A reproducible host, scoped guest, common shell and durable workflow service provide a recoverable platform without inventing a new Linux distribution, orchestration system or SDK for each placement.

Security Considerations

The browser origin and native session are higher-trust than imported guest code. Guest root, a relayed window, a mod or a model must not gain identity authority. Isolation, permission-scoped bridges, separate credentials, signed updates, network restrictions, data locality and rollback are required. A device owner can disable guest networking, remote compute and background execution. Availability and safety claims require versioned evidence; experimental guest backends do not become production isolation boundaries solely by inclusion.

References

  • HIP-1400 — OS conformance and specification manifest
  • HIP-0504 — Unified design system
  • HIP-0528 — Mods and app SDK
  • HIP-0527 — Tenancy
  • HIP-0117 — Cloud-in-a-Box
  • HIP-0121 — BYO compute fleet
  • HIP-1062 — Workflow
  • HIP-1063 — Auto
  • HIP-1064 — Flow
  • HIP-1342 — Disk
  • HIP-1343 — Visor
  • HIP-1406 — Creative standard library
  • HIP-1413 — Audio

Copyright

Released under CC0 1.0 Universal Public Domain Dedication.