Fallen column drums in tall grass

How it works

One idea: a second computer runs the job again. Everything else is what that needs.

A job

  1. You send a capsule (a WebAssembly program) and its input. Both are named by their BLAKE3 hash.
  2. A provider runs it, metered in fuel, and signs a receipt for what ran.
  3. A verifier fetches the same bytes by hash and re-runs it. It must use exactly the fuel the receipt claims.
  4. Same output and fuel: reproduced. Different: mismatch, and the provider is caught: the verifier’s signed report goes on its record, and the bridge passes that machine over while one never caught is free. A verifier that cannot run it abstains, which accuses no one.

The receipt

ReceiptBody { pact, provider, capsule, input, output, runtime, fuel_used, data }

Signed with ed25519 over canonical DAG-CBOR, so any client can check it, including a browser. runtime pins the exact engine (wasmtime-46.0.3/core/det6); data names the blobs the capsule read, such as a model’s chunks. The verifier signs its finding the same way, for that one receipt.

The layers

The bottom is stable: keys, hashes, the sandbox and its count of work, the receipt and the rule of the re-run. Those are fixed, and held by test vectors and by tests that generate their own cases. Everything above them depends on who runs the machines, works, and is beta: the registry, the stores, the bridge, browser tabs, apps and models.

Keys. Every machine is an ed25519 key made on it. There are no accounts. The key is also the address other machines dial, so nobody can answer in its place.

Content. Every program, input, output and file is named by the BLAKE3 hash of its bytes. Whoever receives bytes hashes them again, so a machine in the middle can withhold them but cannot change them.

Connections. Machines talk QUIC (iroh) and dial each other by key. One behind a home router joins through a relay, which forwards encrypted traffic it cannot read.

The registry. A list of signed records: who offers work (a card that lapses after 90 seconds unless renewed), which machines hold which bytes, and names (@key/name). It also keeps each machine’s record of re-runs: one receipt counts once, and the record survives a restart. It can leave things out. It cannot forge a name or a listing of work, which the author signs. Who holds which bytes, and each machine’s record, are its word.

Capsules. A capsule exports memory and run(in_ptr, in_len, out_ptr) -> out_len. It can call four host functions, log, abort, blob_len and blob_read, and nothing else: no clock, randomness, files or network. Memory is capped at 256 MiB and fuel at 40 billion per job. A job may name up to 192 data blobs, 224 MiB together; that is how a language model gets its weights. Why two machines get the same bits: Determinism.

Stores. A store keeps bytes on disk and tells the registry what it holds. Stores aim for three copies of everything and repair when fewer than two remain. A store reads back and re-hashes what it holds, a part each minute, and drops what has rotted. It can be challenged to prove it still has a file.

The bridge. One HTTP endpoint that browsers and agents use to reach all of this: Connect an agent. It hashes each job’s program and input itself, hands them to the machines that run and re-run the job, and forgets them after ten minutes. It can refuse or withhold. It cannot forge a receipt or a verdict, and pages check both themselves.

Browser tabs. A tab can be a provider. It runs a job in a worker, counts fuel the way wasmtime does, and signs with a key made in the tab. A server re-runs every job it signs, and the caller gets that verdict. A tab has no record: its key is free to replace. Try it on /ask: join, then make your own tab lie.

Apps. An app is a folder of files stored by hash under a signed name. A backend route is a capsule, so its answers are re-run like any other job. See /apps.

Large models. A model that fits in one capsule answers on /ask. One that does not is kept as one section per layer and cut across as many machines as it needs. The prompt goes through each machine in one job, then each new token does, and every hand-over between them is signed and re-run. A job a machine fails or hands over badly is run again on another machine, so the answer does not depend on who ran it. It runs through the bridge’s chain operation.

GPU. A GPU’s floats differ between vendors, so float work on a GPU cannot be checked by running it again. Integer work can: one integer kernel, the matrix product a quantized model spends its time in, gives the same bits on a GPU and on a CPU (gpu.rs). No page sends GPU work today.

Radio. The same keys and hashes run on a small LoRa board: signed messages, in frames of at most 51 bytes, checked on the device. It carries messages, not capsules. See /radio.

One binary

verse plays every role: registry, verifier, provider, store and bridge.