open-standards/wai/byte-exact-conformance
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Transaction Science 446865697c WIV1 and WIR1 gate 5 (WIP, committed before running): the 32-bit form behind a feature, held to the exact form
A stage-only decode has no fast kernel behind an interpreter. What a faster
fabric runs instead is E9's 32-bit form (§5E E9, Width): the form D3b's
integer GPU legs take. Gate 5 holds it to the exact form.

- wai-ops: residual_step_i32 and i32_form_fits behind the new i32_forms
  feature (and cfg(test), cfg(kani), so the unit tests and K29 keep them);
  residual_step_by_i32, E9 through its 32-bit form for a driver whose
  operands are i64. wai-verify declares the feature name its included
  sources test.
- wai-rs i32_forms: int_video::ops::{decode_typed_i32,
  decode_pframes_typed_i32} and staged::wir1::ops::apply_unit_i32, the
  drivers with E9 as a parameter.
- Parity: every committed clip and layer through the 32-bit form as through
  the exact form (tests/int_video_ops.rs, tests/wir1_ops.rs), changed
  streams too; the differential compares the 32-bit form on every random
  case; byte-exact-conformance (i32_forms on by default) decodes WIV1 and the
  staged sets through it to the pinned digests on every leg.
- CI: the fast-kernel steps carry i32_forms, appended so gate.sh's grep
  still finds them.

Gate 4's falsification, for the record: ops::frame's block grid taken as
w / block, which only a grid with a partial last column reaches (every
committed clip's sides are multiples of its block). Gates 1 to 3 stayed
green (int_video_ops 5, wir1_ops 5); int_video_random_clips_decode_alike
failed at seed 3372 (h 5, w 3, block 4). Timed 300 s, seed 20261017: debug
2,402,935 clips and 408,439 layers, release 11,948,953 and 3,322,036,
alike.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-17 11:28:23 -04:00
..
src WIV1 and WIR1 gate 5 (WIP, committed before running): the 32-bit form behind a feature, held to the exact form 2026-10-17 11:28:23 -04:00
Cargo.lock D2c M1 gate 2: int_synth's decode through its lowering equals every golden 2026-10-13 02:50:33 -04:00
Cargo.toml WIV1 and WIR1 gate 5 (WIP, committed before running): the 32-bit form behind a feature, held to the exact form 2026-10-17 11:28:23 -04:00
README.md wai: every corpus states the provenance of its content 2026-10-07 10:09:21 -04:00

byte-exact-conformance — cross-architecture byte equality

A crate that compiles WAI's pure-integer decode paths (the rANS entropy coder and the integer fixed-point syntheses, #[path]-included from wai-rs) without the system codec libraries, so the byte-equality matrices (.github/workflows/wai-byte-equality.yml, and cross-arch byte-equality in wai-conformance.yml) run them on every OS and architecture. cargo test --release here decodes the committed vectors and the staged-delivery corpus to the goldens in src/*_golden.rs, generated once on a reference machine, and must match them on every machine.

Provenance. The goldens are digests of decodes of the vectors under ../wai-rs/tests/vectors/ and of the staged-delivery corpus; that directory's README states each vector's provenance. Among them, the int_video half-pel clip (video_real) is not generated content (see there).