Full architecture specification · Chapter 13 of 20

11. The Wasmer/WASIX service stack

On this page
  1. 11.1 One URL, one request, one sandboxed execution
  2. 11.2 Media and large streaming flows

The HTTP6 server is a small protocol-facing service, paired with a stateful proof and authorization plane. An organization deploys its HTTP6-capable endpoint, registers its identity and policy, and supplies handlers that accept approved operations. The original web stack can remain behind this layer. On Wasmer Edge, an ordinary app package supplies an HTTP server through Wasmer's deployment model. Its instances are ephemeral and may be replaced, so channel state, consumed proof positions, account epochs, business idempotency, and recovery journals must be externalized into appropriately durable storage. A process restart must be visible as a new server-generation or controlled backend reconnection, rather than quietly reusing a lost in-memory proof chain.

The service package has six primary components. The Transport Gateway accepts compatible HTTPS envelopes and, in a separately qualified installation, native HTTP6 records. The Discovery Registrar signs or references admitted service identity, route profiles, and currently approved release identities. The Server Circuit Twin Runtime runs only admitted binaries and emits/consumes channel proofs. The Policy Engine checks account, machine, route, operation, and customer entitlements. The Custody and Attestation Adapter accesses protected recipient material, validates machine evidence, and supplies allowed cryptographic operations. The State and Reconciliation Store commits sequence positions, human admission, fleet epochs, workflow results, and disaster-recovery lineage.

WASIX provides the extended WASI runtime environment and host integration appropriate to an application needing operations beyond pure computation. The deployment must select which filesystem, clock, randomness, network, process/thread, and host-call capabilities each guest can use. A sandbox is an enforcement boundary only when the host restricts its imports and protects secrets outside the guest's readable memory. Separate workers and resource budgets constrain malformed inputs and executable behavior; syscall-level filters and operating-system confinement supplement the WebAssembly boundary where deployment requires them.

Wasmer's HTTP app runtime and a native socket-listening service have different capabilities. Current Wasmer Edge documentation describes HTTP-server based app deployment and stateless, ephemeral instances, with generic TCP/UDP server support described as a future expansion. The first hosted HTTP6 product therefore uses HTTP over the platform's ingress, while native network transport can run in a separately deployed WASIX/native service or an independently managed server. This avoids making an unsupported platform feature a prerequisite for the pilot.

11.1 One URL, one request, one sandboxed execution

A vendor's GET /reports/latest endpoint registers an HTTP6 resource handler. The client performs the opening ceremony, then sends a sealed request with its message proof. The gateway validates framing, uses the channel's admitted twin to verify the record, and asks the policy engine if this user/runtime/route can read that resource. It invokes the appropriate WASIX handler with a temporary read-only data capability and a bounded output budget. The handler returns an HTML document and a signed or committed asset manifest. The server twin protects the response, and the client releases only verified bytes to the renderer. Every subsequent asset fetch follows the same path.

For state-changing requests the gateway calls the business effect controller only after the operation is atomically claimed. This permits a conventional database or payment service to remain in place while the HTTP6 gateway replaces the reusable credential as the initiating authority. Retrying a lost response returns the outcome of the same operation rather than replaying the effect. Resource ownership and transaction limits are still checked by the consuming application.

11.2 Media and large streaming flows

Interactive media uses sustained twin channels. At channel creation, the participant authorizes a conference, stream role, track policy, and maximum resource budget. A centralized conferencing server can distribute a track to multiple enrolled destinations through independent HTTP6 edges, with each recipient's encrypted frame proof tied to its own channel. A multiparty mesh creates individual pairwise channels or a group state protocol with membership epochs and sender-specific keys. HTTP6's first specification selects pairwise delivery for simplicity and defines a separate group-key management profile for high-scale mesh conferencing.

Each protected media record carries a unique authenticator, sequence number, and stream/track identity. Key ratchets can advance every chunk or at fixed boundaries with a record-unique derivation. Application latency, jitter buffering, retransmission and packet loss handling must be measured: a sender that loses a packet must not create an uncontrolled proof replay; the receiver can detect missing positions and request authenticated recovery. The conference server is itself an admitted service with rights to forward only its specified objects. A shared public circuit attestation can establish membership eligibility, while each active channel keeps its distinct private proof keys.