open-standards/.github/workflows/wai-byte-equality.yml
Transaction Science 5d3ab5b97d WIP checkpoint: local safety commit (unpushed — Transaction-Science remote unreachable)
Capturing in-progress work on the harness-econ branch so nothing is stranded in
the working tree while the GitHub remote is inaccessible. Spans jouleclaw (Apple
backend + fabric detect + GGUF loader dispatch/granite-h/nemotron-h + benches),
proof (receipt jcr1 + conformance vectors + solvers), map schema, joule-code
(lockstep-quic launch notes), and new jouleclaw examples + a CI workflow.
Not a logical feature commit — a checkpoint to be reorganized/rebased later.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-07-02 11:53:09 -04:00

57 lines
2 KiB
YAML

name: wai cross-architecture byte-equality
# The `replicate` determinism contract, checked on real silicon. WAI claims its
# integer-exact decode paths (rANS entropy coder, integer fixed-point synthesis)
# produce BYTE-IDENTICAL output on every machine. This matrix proves it: five
# OS/arch combinations decode the same fixtures and assert the same golden
# bytes — rANS streams produced by CompressAI's upstream encoder, and an
# int_synth output hash produced on the reference machine (macOS arm64). One
# diverging byte anywhere fails the suite.
#
# The conformance crate (`wai/byte-exact-conformance`) #[path]-includes the
# pure-integer sources from wai-rs — no system codec libraries, no ONNX runtime
# — so every leg runs in about a minute.
on:
pull_request:
paths:
- 'wai/byte-exact-conformance/**'
- 'wai/wai-rs/src/neural/rans.rs'
- 'wai/wai-rs/src/neural/int_synth.rs'
- 'wai/wai-rs/src/neural/jpegai_mans.rs'
- '.github/workflows/wai-byte-equality.yml'
push:
branches:
- main
paths:
- 'wai/byte-exact-conformance/**'
- 'wai/wai-rs/src/neural/rans.rs'
- 'wai/wai-rs/src/neural/int_synth.rs'
- 'wai/wai-rs/src/neural/jpegai_mans.rs'
- '.github/workflows/wai-byte-equality.yml'
jobs:
byte-equality:
name: ${{ matrix.label }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- { os: ubuntu-latest, label: linux-x86_64 }
- { os: ubuntu-24.04-arm, label: linux-aarch64 }
- { os: macos-latest, label: macos-arm64 (reference) }
- { os: macos-13, label: macos-x86_64 }
- { os: windows-latest, label: windows-x86_64 }
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.96.0
- name: Decode fixtures, assert golden bytes
working-directory: wai/byte-exact-conformance
run: cargo test --release -- --nocapture