open-standards/wai/ops-conformance
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Transaction Science e0285b049b
Some checks failed
joule-moq-room room service / joule-moq-room · does this change touch it (push) Successful in 26s
wai-app and Create / wai-app · does this change touch it (push) Successful in 18s
wai-audit collector and player integration / does this change touch it (push) Successful in 26s
joule-moq-web browser client / joule-moq-web · does this change touch it (push) Successful in 26s
WAI operation catalogue / does this change touch it (push) Successful in 13s
wai-fleet service / does this change touch it (push) Successful in 23s
wai-int-module WAISM module of record / does this change touch it (push) Successful in 21s
wai-ledger service / does this change touch it (push) Successful in 12s
wai-ops integer operators / does this change touch it (push) Successful in 18s
wai media golden suite on RISC-V (emulated) / does this change touch it (push) Successful in 17s
wai-quantum for JavaScript / does this change touch it (push) Successful in 16s
wai-quantum studio and desktop / does this change touch it (push) Successful in 13s
wai-sink-android native sink library / does this change touch it (push) Successful in 13s
wai-sink-swift native sink package / does this change touch it (push) Successful in 13s
WAI Studio / does this change touch it (push) Successful in 12s
joule-moq-remote host agent / joule-moq-remote · does this change touch it (push) Successful in 3m13s
wai cross-architecture byte-equality / does this change touch it (push) Successful in 3m35s
wai formal verification (integer core) / does this change touch it (push) Successful in 3m17s
WAI breaking changes and the conformance runner / WAI breaking · does this change touch WAI (push) Successful in 8s
repository checks / lockfiles, advisories, tests in CI, workflow hygiene, spec and section references, public text (push) Failing after 7m22s
wai-ops integer operators / linux-aarch64 (push) Successful in 2m53s
joule-moq-remote host agent / joule-moq-remote, every target (linux-arm64) (push) Successful in 2m1s
wai cross-architecture byte-equality / linux-aarch64 (push) Successful in 59s
wai-app and Create / wai-app · tests, clippy, the line language's verifier (linux) (push) Successful in 34s
wai-int-module WAISM module of record / linux-arm64 · both checkers, wasmtime (Cranelift, Winch), Wasmi and Node (push) Successful in 7m34s
wai-int-module WAISM module of record / the module of record in Chromium (push) Successful in 9s
wai-sink-android native sink library / the JNI layer and the platform-free half on the host JVM · linux-arm64 (push) Successful in 7m58s
wai-audit collector and player integration / collector · linux (push) Successful in 4m24s
wai-fleet service / service · linux (push) Successful in 3m49s
wai-ops integer operators / independent checker (Python) (push) Successful in 21s
wai-ops integer operators / wasm32-wasip2 (wasmtime) (push) Successful in 47s
wai-ops integer operators / wasm32 under Node (push) Successful in 50s
wai-ops integer operators / linux-x86_64 (push) Successful in 1m41s
wai media golden suite on RISC-V (emulated) / golden suite · riscv64 (emulated) (push) Successful in 1m3s
wai-ledger service / service · linux (push) Successful in 2m32s
wai-audit collector and player integration / collector, player integration and the browser end to end · macos (push) Successful in 2m13s
wai-int-module WAISM module of record / linux · both checkers, wasmtime (Cranelift, Winch), Wasmi and Node (push) Successful in 6m0s
wai-fleet service / service · macos (push) Successful in 41s
WAI Studio / the catalogue's actions, the unit tests and the core · linux (push) Successful in 2m0s
wai formal verification (integer core) / every harness in one shard (push) Successful in 21s
wai cross-architecture byte-equality / linux-x86_64 (push) Successful in 49s
WAI operation catalogue / the catalogue and every door · linux (push) Successful in 8m50s
wai-ledger service / service · macos (push) Successful in 54s
wai-quantum for JavaScript / javascript · linux (push) Successful in 5m10s
wai-ops integer operators / macos-arm64 (push) Successful in 1m18s
joule-moq-room room service / joule-moq-room, every target (push) Successful in 18m19s
wai-quantum studio and desktop / studio · browser (push) Successful in 5m59s
WAI breaking changes and the conformance runner / WAI breaking · wire, record and API against main · linux (push) Failing after 2m1s
wai-app and Create / wai-app · Create, browser end-to-end (macos) (push) Successful in 6m31s
wai formal verification (integer core) / kani (stage) (push) Successful in 4m6s
wai-quantum studio and desktop / desktop app · macos (push) Successful in 3m30s
wai-quantum studio and desktop / desktop app · linux (push) Successful in 8m56s
wai-quantum studio and desktop / desktop app · windows (push) Successful in 9m48s
wai-sink-android native sink library / every ABI, the AAR, and the instrumented tests in a headless emulator · macos (push) Successful in 5m9s
WAI breaking changes and the conformance runner / WAI breaking and conform · their tests, and the independent verifiers through wai conform · linux (push) Successful in 9m1s
wai formal verification (integer core) / kani (integer-core) (push) Successful in 9m41s
WAI Studio / Studio in WebKit · linux (push) Successful in 15m29s
wai formal verification (integer core) / kani (plan) (push) Successful in 13m48s
wai formal verification (integer core) / kani (arith) (push) Successful in 14m52s
wai formal verification (integer core) / kani (isqrt512) (push) Successful in 30m57s
WAI Studio / Studio in Chromium and Firefox · macos (push) Successful in 8m36s
wai-sink-swift native sink package / libwai slices, desktop tests, simulator tests · macos (push) Successful in 12m14s
joule-moq-remote host agent / joule-moq-remote, every target (macos) (push) Successful in 50s
wai cross-architecture byte-equality / windows-x86_64 (push) Successful in 1m4s
joule-moq-web browser client / joule-moq-web · browser end-to-end (macos) (push) Successful in 22m42s
wai cross-architecture byte-equality / macos-arm64 (reference) (push) Successful in 25s
wai formal verification (integer core) / kani (sound) (push) Successful in 22m37s
wai formal verification (integer core) / kani (stage-long) (push) Successful in 27m23s
wai formal verification (integer core) / kani (rans64-t2) (push) Successful in 15m3s
wai.neural.int_hyper: leaves, a parameter set of WAI's own, trained on generated pictures and held to one decode natively and in WebAssembly
The set: tools/wai_int_hyper_train.py at 40db6ee57 (the commit that brought it) trained a
mean-scale hyperprior, 48 synthesis and 64 latent channels, from seed 20261110 on the
dead-leaves pictures tools/wai_int_synth_real.py generates from that seed, streams 1 to 4096:
30,000 steps of 16, Adam at 1e-3 then 1e-4 for the last quarter, lambda 0.0483, on the CPU at 8
threads with deterministic algorithms (Python 3.11.17, torch 2.14.0+cpu, numpy 1.26.4,
compressai 1.2.8; the Framework build host, Linux x86_64). Exported by export_model and coded on
stream 0 (128 x 128). Listing digest (the set's identity):
ab796bb19cb202115400ea2ce16724617c3da035a2f4429d6266d419ab705ac0. Its record,
wai-rs/tests/vectors/int_hyper/leaves_set.json, reads Own: Apache-2.0, a start from a seed, and
training and coded pictures generated by a tool below wai/ with no third-party source; the
tools' blob ids are their blobs at 40db6ee57.

Reproducibility: two runs from the same seeds, side by side on that host, wrote the same bytes
in every file (float model 2ce350db..., all three members, the bitstream, the decode and the
record), and logged the same loss at every logged step. 300-step runs at 8 and at 4 threads
from the same seeds agree at step 0 and differ by step 299 (float models 1820d9ec... and
699bfbea...): the thread count is part of the recipe, and the record states it.

Where its decode is held, each to the one digest in int_hyper/sha256.json
(3ea9b4c3026e7c81683f3845f8256b1f0e1e8268284d81f3f16f290a5dde1374):
- int-payload-conformance gains `leaves`, a WIH1 payload (SHA-256 048c7c0d...), decoded natively
  by wai_int_payload_vectors verify; int_payload_verify.py parses and converts it independently.
- wai-int-module/corpus.json, 121 cases: both modules of record gave every case its outcome on
  wasmtime 50.0.1 (Cranelift, Winch) and Wasmi 2.0.0, run digest f245b5f0... (Framework). The
  browser crate's Node check names the payload too (CI).
- byte-exact-conformance: wih1_trained_set_is_golden, by the sink's decode and through the
  lowering under the reference and the fast kernels, on every leg of the matrix.
- ops-conformance certifies it (index and two lowered graphs): acc64, first acc32 failure at
  h_s's input range, 43 bits; int_hyper_ops holds the set and the vector to them.

verifiers/int-hyper-set.sh runs `check --own` and `self-test`: the unchanged record and a copy
started from a set that reads Own read Own, and 11 planted faults are caught (one weight moved
by one; a third-party source in the training record, beside generated pictures, or in the
start's record; a start from a checkpoint that is not WAI's; each of three seeds removed; the
coded picture among the training pictures; a decode digest changed; the decode of another
picture with its digest restated). The trainer's check of a start from a set now reads a start
that does not read Own as `not own`, rather than failing.

Run through rb on the Framework (Linux x86_64), each passed: wai_int_payload_vectors verify
(release and debug), int_payload_verify.py, check --own, self-test, corpus.py --check, wai-verify
vectors verify, wai_ops_check.py, byte-exact-conformance (release), int_payload (debug),
int_hyper_ops (debug and release), corpus_provenance, the module host on all 121 cases. Decode-side
plants, each caught, with the committed case passing first: a WebAssembly decode of the set with
one g_s weight moved (0 of 1 cases the corpus's), and the same drift in the committed file under
the native corpus verify, the record check and the byte-exact golden.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-10 13:41:55 -05:00
..
certificates wai.neural.int_hyper: leaves, a parameter set of WAI's own, trained on generated pictures and held to one decode natively and in WebAssembly 2026-11-10 13:41:55 -05:00
graphs wai: gate 5's falsification found the synthetic networks refuse every decode 2026-10-18 01:43:32 -04:00
sets wai: gate 5's falsification found the synthetic networks refuse every decode 2026-10-18 01:43:32 -04:00
stage wai-ops: rate_predict vectors at the i16 extremes with rates near 2^32 2026-10-09 19:31:39 -04:00
vectors ops-conformance: the vectors whose outcome only load step 8 decides 2026-10-10 09:29:40 -04:00
.gitattributes wai-ops: the conformance corpus, its generator, and the WASI and browser-engine legs 2026-10-09 19:31:38 -04:00
npu.jsonl ops-conformance: npu.jsonl, each graph vector's place in wai-ops/1-npu 2026-10-22 07:12:32 -04:00
README.md integer-operators §9.5 and §14.5: wai-ops/1-npu on a neural processor, measured 2026-10-22 07:17:34 -04:00

ops-conformance — the integer operator set

Vectors for wai-ops/1, the integer operator set (extensions/integer-operators.md): its graph operators (§5), its stage operators (§5E), the WHG1 graph form (§10), and the canonical lowerings of the registered integer network forms (§13).

Provenance. Generated here by wai-verify vectors gen from fixed SplitMix64 sequences: every graph, parameter, input and stream under vectors/, stage/, graphs/ and sets/ is generated integers, with no media. The lowered graphs under certificates/ are those of the sets this corpus generates and of the parameter sets other corpora commit, which keep their own provenance (certificates/index.json names each one's corpus).

Equivalence. An operator implementation of a profile (§7) conforms when it reproduces every vector tagged with that profile, refusals included: the same load outcome, and for every decode the same output integers or the same refusal code. A lowering conforms when it writes every lowered graph byte for byte.

Layout

  • vectors/<operator>.jsonl — graph vectors whose graph has one operator (§14.1).
  • stage/<operator>.jsonl — stage-operator vectors (§14.1).
  • graphs/<name>.jsonl — graph vectors whose graph has several operators (§14.2):
    • phase — a transposed convolution and the same computed as phase convolutions, interleaved by pixel_shuffle and cropped (§9.3), as the graph's two outputs;
    • state — state inputs carried across decodes (§10.3), a refused decode among them;
    • load — a graph refused at each load check of §10.5, steps 1–7, and a crop planned at load (§5.10);
    • run — a decode refused at each step of §4's run, and the order between them and within step 3 (the caps, then the shape rule, then max_elems);
    • lower_<form> — each lowering of §13 on a small set from sets/.
  • sets/<name>/ — the small parameter sets the lower_* vectors lower, one per lowering, in their registered forms.
  • certificates/<capability>/<set digest>.json — each set's bounds certificate (§8.5, §14.3), and beside it certificates/<capability>/<set digest>/<role>.whg1, each lowered graph.
  • npu.jsonl — each graph vector's place in wai-ops/1-npu (§9.2, §14.5): one line per vector of vectors/ and graphs/ whose graph loads, with the npu, npu_flags and npu_reasons of its graph's own verdict. An operator implementation of the subset conforms when it reproduces every vector whose line has npu true.
  • certificates/index.json — every set lowered here: its capability, its lowering, its members (the name in the set and the file, relative to wai/, that holds it), its digest, and the path of each lowered graph, in §13.0's role order.
  • certificates/falsification.json — the two sets of §14.3 that a certifier must reject, in the same form, each with claim, the profile it is checked against: overflow_acc64, whose accumulator passes i64 by one unit, and claim_acc32, whose pin claims acc32 and whose accumulator passes i32 by one unit, one weight past a set that meets it. Their members are under sets/. A sink refuses both under the profile they are checked against (§8.6).
  • certificates/external.json — the sets whose certificates are here although the sets are not: the CI-regenerated wai.neural.int_hyper set and the jpegai/v1 bundle of the models root. Each entry gives the set's members (the name in the set, then the file the job that holds it reads), its digest, the profile its verdict meets, and that job's workflow, which certifies the set and requires these bytes. Here, vectors verify and the independent checker check only what they can without the set: that each such certificate is canonical, names its set, and meets its profile. The job that holds the set certifies it with both certifiers.

Files are compared as bytes; .gitattributes turns off line-ending conversion.

This corpus has no sha256.json sidecar (SPEC §7 Digests). Every vector states its output integers in full, or its refusal code, and never a digest of them. The only digest in certificates/ is each set's SHA-256, which identifies a parameter set. The output digests that a capability reproduces through its lowering (integer-operators §14.4) stay in that capability's own corpus.

The vector files

Every file follows integer-operators §14.1, which is normative for every field: the graph vector and its decodes, the stage vector with its modes, each operator's in and expect (the predictors' layouts included), and the refusal index at. In short:

  • Every file is JSON Lines: one canonical JSON value per line (§8.5's rules), each line ending with one line feed.
  • A graph vector's decodes list the graph's data inputs only; the decodes of one vector are one sequence, and a refused decode changes no state (§10.3).
  • load is the outcome of load steps 1–8 (§10.5), under every profile the vector lists. A vector whose load is refused, at any step, has no decodes and lists both profiles; one that loads lists exactly the profiles its verdict meets.
  • at is −1 for a refusal before any symbol or element, the symbol's index for rans64_decode (the number of symbols for a refusal after the last one), and, for mans_decode, the position whose step refuses, or, for a flush that belongs to no single position, the last position whose in step ran.
  • A vector of graphs/lower_<form>.jsonl has the id <file>/<set>/<role>/…: its graph is that role of the set sets/<set>/ as lowered.

The vectors load step 8 decides

Whether a graph loads, and under which profiles, is the verdict of its bounds pass (§8). Besides every other vector's profiles, these depend on it alone (§14.1 item 6), each in its operator's file, with an id that names the class:

  • sigmoid/step8/…, elu/step8/…: an input range that reaches −2^63, refused at load (exp.negx passes i64); the ranges that stop at −(2^63 − 1) decode;
  • <op>/step8_q/…: an rq whose q passes 64 bits, refused under acc64; with a post bias (conv, conv_transpose, rescale) y fits while q does not, and beside each, the same graph one unit inside, which decodes;
  • l2norm/eps/… and layernorm_c's cases with ε = 2^64 − 1, which load under acc64 only;
  • <op>/acc32_param/…: a graph that fails acc32 by one parameter condition of §7.2 alone (rq.mult, rq.shift, rq.post_bias, weights, chscale.m, chscale.s, igdn.gamma, igdn.shift, leaky.a), every interval within i32;
  • lut16/step8/…: an input range that reaches ±32768 (§5.6);
  • graphs/load.jsonl, load/step8/…: a check range its producer cannot meet, one that its producer meets at one value (loads, under acc64 only), and an accumulator past i64.

The lowered sets

certificates/index.json lists every set. A set of one file is identified by its file's SHA-256, and a set of several files by the SHA-256 of its wai.prior.set listing over the member names the index gives (SPEC §3.1). wai.world.model has no registered set yet: its two networks are named T.whm and g_s.whm here, and its lowering's latent channel count, which the initial latent fixes, is the entry's c.

Generation and verification

cd wai/wai-verify
cargo run --release --features cli --bin wai-verify -- vectors gen ..

writes every file here but this README, .gitattributes, and external.json with the certificates it lists. npu.jsonl is among them.

cargo run --release --features cli --bin wai-verify -- vectors verify ..

recomputes every vector file from its inputs, re-lowers every set and recomputes its certificate from the committed lowered graphs, checks that each falsification set fails the profile it claims, and regenerates the corpus, and requires every byte to equal the committed one. The same check runs built for wasm32-wasip2 under a WASI runtime, and, for the vector files, wai-ops/node/verify.mjs runs the recomputation as a wasm32-unknown-unknown module under a browser's engine.

wai-verify bounds <set> --capability <name> [--profile acc32|acc64] [--check <cert>]

certifies one set (or WHG1 graphs on their own), and exits 0 when its verdict meets the profile, 1 when it does not, and 3 when --check finds a difference.

python3 -I tools/wai_ops_check.py ops-conformance

is the independent checker: Python standard library only, sharing no code with wai-ops, and held to the extension's text: where the two disagree, the text decides, and the disagreement is a bug in one of them. It rewrites every vector file from its inputs, load (steps 1–8) and profiles from its own bounds pass and verdict (§8.1–§8.5) included, and npu.jsonl from the same verdicts; re-lowers every set and requires each lowered graph, and that each loads; and requires each lowering vector's graph to be the role its id names. It is also a second certifier (§1): from each set's lowered graphs it writes the set's certificate (§8.5) and requires the committed bytes, for every set of index.json and both falsification sets, each of which must fail the profile it claims. Every byte must equal the committed one.

python3 -I tools/wai_ops_check.py ops-conformance --external <name>=<dir>
python3 -I tools/wai_ops_check.py certify --capability <name> --lowering <id> \
    --member <name>=<path>... [--profile acc32|acc64] [--out <cert>] [--check <cert>]

certify an external set from the directory that holds its files, and one set (or WHG1 graphs on their own, with --whg1 <role>=<path>), with the exit statuses of wai-verify bounds: 0, 1, 3 as above; 2 when a graph is malformed or refused at load; 4 when the lowering refuses the set; 5 for usage.

On a neural processor

wai/wai-ops-npu runs every vector npu.jsonl lists in the subset with its arithmetic operators on a neural processor's compute core, and holds each decode to the committed result and to the interpreter (integer-operators §9.5). wai-ops-npu.yml runs it on the linux-amd runner. By hand, on a Linux host with the device, its driver and the device runtime, and a Python environment with the tile array's open toolchain (the workflow names the release and the core compiler it pins):

cd wai/wai-ops-npu
WAI_OPS_NPU_PYTHON=<that environment>/bin/python WAI_OPS_NPU_REQUIRE=1 \
  WAI_OPS_NPU_EXPECT=npu-1022-17f0 WAI_OPS_NPU_REPORT=/tmp/ops-npu.report \
  nice -n 10 cargo test --locked --release -- --nocapture --test-threads=1

The crate builds the core's program and its host side on first use, into WAI_OPS_NPU_CACHE (else the system's temporary directory). With no device every device test prints SKIPPED and passes, and fails under WAI_OPS_NPU_REQUIRE. The report names the device and gives, per test, the counts a run must show: ops-npu corpus: … declined=0 mismatches=0 errors=0, ops-npu mutants: … killed 12 of 12, and the probes' lines.