open-standards/wai
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Transaction Science 3453a6601d wai/jwp-receipts: document opt-in wall-clock freshness on the live edge
Section 6.1 already prescribed the monotonic group_id anti-replay guard;
add the companion optional freshness check — a verifier MAY bound the
signed group_end against its own clock for the group it treats as the
current tip, never for historical resync (whose timestamps are legitimately
old). Matches the reference verifier's opt-in checks.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-07-04 20:15:43 -04:00
..
.github/workflows Add WAI — Web AI Media Transport & Execution standard 2026-05-24 13:36:51 -04:00
audio-conformance wai: the WAI open standard — full cargo-class surface + provenance 2026-06-13 22:28:51 -04:00
avatar-conformance wai: the WAI open standard — full cargo-class surface + provenance 2026-06-13 22:28:51 -04:00
byte-exact-conformance wai: the WAI open standard — full cargo-class surface + provenance 2026-06-13 22:28:51 -04:00
extensions wai/jwp-receipts: document opt-in wall-clock freshness on the live edge 2026-07-04 20:15:43 -04:00
feed-conformance wai: the WAI open standard — full cargo-class surface + provenance 2026-06-13 22:28:51 -04:00
glossary ingest wave E: 3 crates · op-bin + smart-byte-tendermint + eoc-safety 2026-05-24 16:52:07 -04:00
haptic-conformance wai: the WAI open standard — full cargo-class surface + provenance 2026-06-13 22:28:51 -04:00
research wai: the WAI open standard — full cargo-class surface + provenance 2026-06-13 22:28:51 -04:00
tools wai: the WAI open standard — full cargo-class surface + provenance 2026-06-13 22:28:51 -04:00
vocab vocab v1 SHACL shapes across sister standards (wave-23 #4/#5) 2026-06-02 18:55:56 -04:00
volumetric-conformance wai: the WAI open standard — full cargo-class surface + provenance 2026-06-13 22:28:51 -04:00
wai-relay wai: the WAI open standard — full cargo-class surface + provenance 2026-06-13 22:28:51 -04:00
wai-rs wai: the WAI open standard — full cargo-class surface + provenance 2026-06-13 22:28:51 -04:00
wai-spz-gen wai: the WAI open standard — full cargo-class surface + provenance 2026-06-13 22:28:51 -04:00
wai-web wai: the WAI open standard — full cargo-class surface + provenance 2026-06-13 22:28:51 -04:00
world-conformance wai: the WAI open standard — full cargo-class surface + provenance 2026-06-13 22:28:51 -04:00
.gitignore wai: the WAI open standard — full cargo-class surface + provenance 2026-06-13 22:28:51 -04:00
CHANGELOG.md wai: the WAI open standard — full cargo-class surface + provenance 2026-06-13 22:28:51 -04:00
CONTRIBUTING.md Add WAI — Web AI Media Transport & Execution standard 2026-05-24 13:36:51 -04:00
LICENSE Add WAI — Web AI Media Transport & Execution standard 2026-05-24 13:36:51 -04:00
README.md docs: strip vanity metrics from arl + openpay + wai READMEs 2026-06-02 07:53:21 -04:00
SOTA-GAP-2026.md wai: the WAI open standard — full cargo-class surface + provenance 2026-06-13 22:28:51 -04:00
SPEC.md wai: register confidentiality (MLS+SFrame) capability in the standard 2026-07-04 05:15:45 -04:00

WAI — Web AI Media Transport & Execution

A container + capability-dispatch standard for media. WAI does not re-implement codecs; it dispatches to SOTA standard libraries (AVIF, JPEG-XL, PNG, JPEG, Opus, FLAC, AV1, zstd, XZ) and adds an envelope that lets the neural-shared-prior path coexist with the model-free floor.

Two paths open every conforming file:

  • Neural condition — the sink regenerates the media against a shared ambient prior (a model). The model is a requirement of existence, never shipped (an .mp3 doesn't ship its decoder either).
  • Zeroth condition — a menu of registered SOTA codecs. Always satisfiable on any device that ships ffmpeg or equivalent.

The capability a file requires is named, not supplied.

What's here

Path Contents
SPEC.md WAI v1.0 spec — envelope, manifest, capability menu
wai-rs/ Rust reference implementation (lib + cdylib + staticlib + C FFI)
glossary/ Reference catalog of media codecs surveyed for capability registration. codecs.json is the canonical 342-entry dataset; SCHEMA.md defines the shape and contribution rules. Rendered at wai.transaction.science/glossary.
corpus/ Standard test material (Kodak/CLIC/Tecnick/SIPI images, Xiph Derf + UVG video, SQAM-class audio, enwik8 + Silesia text). Not committed; CORPUS.md documents reacquisition.

Quickstart

cd wai-rs
cargo test --lib    # every registered capability + envelope round-trip
cargo build --release --bin wai
cargo build --release --lib    # produces libwai.dylib/.so/.dll + libwai.a

On macOS, libflac lives under the Homebrew "flac" formula prefix that Cargo doesn't probe automatically. The committed .cargo/config.toml adds the path; if you build outside the repo set RUSTFLAGS="-L /opt/homebrew/opt/flac/lib".

SDK consumption

wai-rs exposes a stable C ABI in src/ffi.rs — the cdylib drops in as libwai.dylib/.so/.dll. Bindings for any language (Python ctypes, Node N-API, Swift, JNI, Go cgo, etc.) call into:

  • wai_image_{png,jpeg,avif,jxl}_{encode,decode}
  • wai_audio_{opus,flac}_{encode,decode}
  • wai_text_{zstd,xz}_{encode,decode}
  • wai_envelope_{pack,unpack} — wrap/unwrap the WAI container
  • wai_buffer_free, wai_last_error — memory + error handling

Registered capabilities (the zeroth menu)

Capability Codec Lossless? Mandatory?
wai.image.png PNG yes mandatory floor
wai.image.jxl JPEG-XL both recommended
wai.image.avif AVIF (AV1-based) lossy recommended
wai.image.jpeg JPEG lossy recommended (legacy compat)
wai.audio.flac FLAC yes mandatory floor
wai.audio.opus Opus lossy recommended
wai.video.av1 AV1 lossy recommended
wai.video.av1.lossless AV1 (quantizer=0) YUV-lossless recommended
wai.text.zstd zstd yes mandatory floor
wai.text.xz XZ/LZMA2 yes recommended

Neural capabilities (wai.neural.*) are OPTIONAL and sink-advertised.

License

Apache-2.0 — see LICENSE.