Sandbox
An agent that writes code needs somewhere to run it that is not your machine. Verse runs a WebAssembly program on a computer you don’t trust, then has a second computer run it again. The two must get the same output and use the same amount of work, or the first is caught. There is no account and no key.
What a program can do
Compute, and nothing else. A program exports memory and run(in_ptr, in_len, out_ptr) -> out_len: it reads
its input, writes its output and returns the output’s length. It can call four host functions (log, abort,
blob_len, blob_read) and has no clock, randomness, files, network or threads.
| Memory | 256 MiB, stack 512 KiB |
| Work | 50 million units of fuel unless you ask for more, at most 5 billion |
| Program | WebAssembly text, or a compiled module as hex; through the public endpoint at most about 500 KB |
| Rate | 20 requests a second from one address |
| Price | Free: a testnet |
The same job asked again (the same program, input and limits) comes back at once with "cached": true, with
the receipt and verdict of the run that was already re-run.
One real run
A word counter in WebAssembly text, 21 lines (wordcount.wat):
(module
(memory (export "memory") 2)
(func $isws (param $c i32) (result i32)
(i32.or
(i32.or (i32.eq (local.get $c) (i32.const 32)) (i32.eq (local.get $c) (i32.const 9)))
(i32.or (i32.eq (local.get $c) (i32.const 10)) (i32.eq (local.get $c) (i32.const 13)))))
(func (export "run") (param $in i32) (param $len i32) (param $out i32) (result i32)
(local $i i32) (local $inword i32) (local $count i64)
(block $done (loop $loop
(br_if $done (i32.ge_u (local.get $i) (local.get $len)))
(if (call $isws (i32.load8_u (i32.add (local.get $in) (local.get $i))))
(then (local.set $inword (i32.const 0)))
(else
(if (i32.eqz (local.get $inword))
(then
(local.set $count (i64.add (local.get $count) (i64.const 1)))
(local.set $inword (i32.const 1))))))
(local.set $i (i32.add (local.get $i) (i32.const 1)))
(br $loop)))
(i64.store (local.get $out) (local.get $count))
(i32.const 8)))
Sent from Python, with nothing to install:
import json, urllib.request
code = open("wordcount.wat").read()
text = "the quick brown fox jumps over the lazy dog"
body = json.dumps({"op": "run_verified", "code": code, "input": text.encode().hex()}).encode()
r = json.load(urllib.request.urlopen("https://api.versemesh.org/rpc", body))
print(r["state"], int.from_bytes(bytes.fromhex(r["output"]), "little"), r["fuel"])
On 28 November 2026:
| Run on | Took | state | Output | Work (fuel) |
|---|---|---|---|---|
| Any computer (the network picked c4749d6a) | 0.18 s | reproduced | 9 words | 1,517 |
| c652b839, by name | 0.20 s | reproduced | 9 words | 1,517 |
| The network’s labelled liar, by name | 0.12 s | mismatch | FORGED-OUTPUT | 1 (claimed) |
The liar is a machine kept on the network to show what a cheat looks like. It answered with made-up bytes and
claimed almost no work; the second computer ran the job and got something else, so the answer came back marked
mismatch instead of being trusted. Name a computer with "provider": "<its key>"; the keys are in
{"op":"market"}.
Next to a container sandbox
| A container sandbox | Verse | |
|---|---|---|
| What runs | Any Linux program | A WebAssembly program |
| Network, files, packages | Yes | None |
| Whose computer | The vendor’s | A stranger’s, then a second one |
| What you get back | The output | The output, a receipt signed by the computer that ran it, a verdict signed by the one that re-ran it |
| Account | Usually a key | None |
When to pick each
Pick a container sandbox when the code needs packages, files or the network, or runs for minutes: most agent tool use does.
Pick Verse when the code is pure computation and the result has to be shown, not just trusted: a number another agent will act on, a transform that must not drift, work you send to machines you do not control. Today the second computer is one we run.
Check a receipt verifies a receipt in your browser. The other calls (ask a model, store and fetch bytes, objects): Connect an agent. How the re-run gets the same bits: Determinism.