open-standards/wai/wai-audit
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Transaction Science f004aa4f9c
Some checks failed
joule-moq-remote host agent / joule-moq-remote · does this change touch it (pull_request) Successful in 11s
joule-moq-room room service / joule-moq-room · does this change touch it (pull_request) Successful in 6s
joule-moq-web browser client / joule-moq-web · does this change touch it (pull_request) Successful in 6s
joule-code conformance gate / Build + round-trip C1-C4 vectors (pull_request) Successful in 1m38s
energy meters on real hardware / RAPL and NVML on jetson-hub (pull_request) Successful in 44s
standards workspaces build + test / which workspaces this change touches (pull_request) Successful in 26s
wai-audit collector and player integration / does this change touch it (pull_request) Successful in 21s
wai cross-architecture byte-equality / does this change touch it (pull_request) Successful in 18s
WAI conformance / does this change touch it (pull_request) Successful in 17s
joule-code conformance gate / joule-moq-relay, its own energy on a counter (macos) (pull_request) Successful in 1m9s
WAI energy receipts / does this change touch it (pull_request) Successful in 21s
wai formal verification (integer core) / does this change touch it (pull_request) Successful in 21s
wai-quantum on every processor / emulated · aarch64-unknown-linux-gnu (pull_request) Successful in 2m1s
WAI HTTP delivery / WAI HTTP · does this change touch it (pull_request) Successful in 15s
WAI JPEG-AI whole decode (pinned inputs, required) / does this change touch it (pull_request) Successful in 16s
joule-moq-remote host agent / joule-moq-remote, every target (macos) (pull_request) Successful in 1m48s
wai-key-proxy / does this change touch it (pull_request) Successful in 12s
wai-ledger service / does this change touch it (pull_request) Successful in 10s
WAI neural decoders end-to-end / does this change touch it (pull_request) Successful in 10s
WAI neural sink gates / does this change touch it (pull_request) Successful in 9s
wai-ops-gpu integer operators on GPUs / does this change touch it (pull_request) Successful in 11s
wai-ops-npu integer operators on neural processors / does this change touch it (pull_request) Successful in 10s
wai-ops integer operators / does this change touch it (pull_request) Successful in 10s
wai-pack / wai-pack · does this change touch it (pull_request) Successful in 9s
wai-quantum command line / does this change touch it (pull_request) Successful in 7s
wai-quantum CUDA member / does this change touch it (pull_request) Successful in 6s
wai-quantum on every processor / emulated · powerpc64-unknown-linux-gnu (pull_request) Successful in 2m56s
wai-quantum CUDA member / member · CUDA (jetson-hub) (pull_request) Has been skipped
wai-quantum CUDA member / member · CUDA absent (linux) (pull_request) Has been skipped
wai-quantum dataflow member / does this change touch it (pull_request) Successful in 6s
wai-quantum dataflow member / member · dataflow device, simulated (pci 1e52:b140) (pull_request) Has been skipped
wai-quantum dataflow member / member · dataflow device, simulated (pci 1e52:401e) (pull_request) Has been skipped
wai-quantum signal processor / does this change touch it (pull_request) Successful in 6s
wai-quantum dataflow member / member · dataflow device absent (macos) (pull_request) Has been skipped
wai-quantum signal processor / processor and member · signal processor, emulated (pull_request) Has been skipped
wai-quantum FPGA member / does this change touch it (pull_request) Successful in 7s
wai-quantum FPGA member / member · FPGA datapath, simulated (macos) (pull_request) Has been skipped
wai-quantum FPGA member / member · FPGA simulation absent (linux) (pull_request) Has been skipped
wai-quantum HIP member / does this change touch it (pull_request) Successful in 7s
wai-quantum HIP member / member · HIP (framework-128gb) (pull_request) Has been skipped
wai-quantum HIP member / member · HIP absent (linux-arm64) (pull_request) Has been skipped
wai-quantum Metal member / does this change touch it (pull_request) Successful in 7s
wai-quantum Metal member / member · Metal (macos) (pull_request) Has been skipped
wai-quantum Metal member / member · Metal absent (linux) (pull_request) Has been skipped
wai-quantum npu-cores member / does this change touch it (pull_request) Successful in 6s
wai-quantum npu-cores member / member · npu-cores, neural processor (framework-128gb silicon) (pull_request) Has been skipped
wai-quantum npu-cores member / member · npu-cores absent (linux-arm64) (pull_request) Has been skipped
wai-quantum neural-processor member / does this change touch it (pull_request) Successful in 8s
wai-quantum neural-processor member / member · neural processor (macos) (pull_request) Has been skipped
wai-quantum neural-processor member / member · neural processor absent (linux) (pull_request) Has been skipped
wai-quantum OpenCL member / does this change touch it (pull_request) Successful in 7s
wai-quantum OpenCL member / member · OpenCL GPU and CPU (jetson-hub) (pull_request) Has been skipped
wai-quantum OpenCL member / member · OpenCL GPU (framework-128gb) (pull_request) Has been skipped
wai-quantum OpenCL member / member · OpenCL GPU (macos) (pull_request) Has been skipped
wai-quantum OpenCL member / member · OpenCL absent (linux) (pull_request) Has been skipped
wai-quantum-qpu / does this change touch it (pull_request) Successful in 9s
wai-quantum-qpu / clients against their contracts (linux) (pull_request) Has been skipped
wai-quantum service / does this change touch it (pull_request) Successful in 8s
wai-quantum service / service · linux (pull_request) Has been skipped
wai-quantum service / service · macos (pull_request) Has been skipped
wai-quantum matrix-extension member / does this change touch it (pull_request) Successful in 7s
energy meters on real hardware / sink decode table · RAPL on jetson-hub (NVML surveyed) (pull_request) Successful in 2m43s
wai-quantum matrix-extension member / member · matrix extension, emulated (aarch64 Linux) (pull_request) Has been skipped
wai-quantum matrix-extension member / member · matrix extension absent (macos) (pull_request) Has been skipped
wai-quantum studio and desktop / does this change touch it (pull_request) Successful in 7s
wai-quantum tensor-engine member / does this change touch it (pull_request) Successful in 7s
wai-quantum tensor-engine member / member · tensor engine, the kernel toolchain's simulator (linux) (pull_request) Has been skipped
wai-quantum tensor-engine member / member · tensor engine absent (linux-arm64) (pull_request) Has been skipped
wai-quantum portable tensor program / does this change touch it (pull_request) Successful in 7s
wai-quantum portable tensor program / tensor program · CPU, mutants, GPU builds (pull_request) Has been skipped
wai-quantum portable tensor program / tensor program · GPUs (jetson-hub) (pull_request) Has been skipped
wai-quantum portable tensor program / tensor program · integrated GPU (framework-128gb) (pull_request) Has been skipped
wai-quantum portable tensor program / tensor program · Metal and the arm64 CPU (macos) (pull_request) Has been skipped
wai-quantum CPU vector units / does this change touch it (pull_request) Successful in 8s
wai-quantum CPU vector units / member · vector unit, rvv 1024-bit (riscv64, emulated) (pull_request) Has been skipped
wai-quantum CPU vector units / member · vector unit, sve 128-bit (aarch64, emulated) (pull_request) Has been skipped
wai-quantum CPU vector units / member · vector unit, rvv 128-bit (riscv64, emulated) (pull_request) Has been skipped
repository checks / lockfiles, advisories, tests in CI, workflow hygiene, spec and section references, public text (pull_request) Successful in 3m43s
wai-quantum CPU vector units / member · vector unit, sve 2048-bit (aarch64, emulated) (pull_request) Has been skipped
wai-quantum WebGPU member / does this change touch it (pull_request) Successful in 7s
wai-quantum CPU vector units / member · vector unit, avx2 (x86_64 silicon) (pull_request) Has been skipped
wai-quantum CPU vector units / member · vector unit, sve 512-bit (aarch64, emulated) (pull_request) Has been skipped
wai-quantum CPU vector units / member · vector units, avx2 and avx512 (framework-128gb silicon) (pull_request) Has been skipped
wai-quantum CPU vector units / member · vector unit absent (macos) (pull_request) Has been skipped
energy meters on real hardware / sink decode table · per-task energy and the GPU rail on macOS (pull_request) Successful in 3m51s
WAI mbt2018_mean integer decode (regenerated vectors) / does this change touch it (pull_request) Successful in 8s
wai-sink-swift native sink package / does this change touch it (pull_request) Successful in 9s
wai-sink-android native sink library / does this change touch it (pull_request) Successful in 10s
WAI conformance / fast integer kernels, every x86_64 kernel set (AVX-512 silicon) (pull_request) Successful in 2m48s
wai-ops-npu integer operators on neural processors / neural processor (framework-128gb silicon) (pull_request) Successful in 9s
wai-web wasm32 / does this change touch it (pull_request) Successful in 17s
joule-code conformance gate / joule-moq-relay, every target (pull_request) Successful in 4m27s
wai-quantum on every processor / emulated · powerpc64le-unknown-linux-gnu (pull_request) Successful in 4m33s
wai-quantum on every processor / emulated · loongarch64-unknown-linux-gnu (pull_request) Successful in 5m8s
wai-web reach builds / wai-web reach · does this change touch it (pull_request) Successful in 5s
wai cross-architecture byte-equality / linux-aarch64 (pull_request) Successful in 1m13s
wai-audit collector and player integration / collector · linux (pull_request) Successful in 1m10s
wai-quantum on every processor / emulated · armv7-unknown-linux-gnueabihf (pull_request) Successful in 6m47s
wai-audit collector and player integration / collector, player integration and the browser end to end · macos (pull_request) Successful in 2m28s
joule-code conformance gate / joule-moq-ingest, every target (pull_request) Failing after 6m26s
wai cross-architecture byte-equality / linux-x86_64 (pull_request) Successful in 32s
joule-moq-remote host agent / joule-moq-remote, every target (linux-arm64) (pull_request) Successful in 2m50s
WAI conformance / v2 vocabulary · manifests validate as stated (pull_request) Successful in 23s
wai cross-architecture byte-equality / macos-arm64 (reference) (pull_request) Successful in 34s
wai-quantum on every processor / emulated · s390x-unknown-linux-gnu (pull_request) Successful in 5m55s
wai-quantum on every processor / emulated · riscv64gc-unknown-linux-gnu (pull_request) Successful in 6m9s
joule-moq-room room service / joule-moq-room, every target (pull_request) Successful in 3m58s
WAI conformance / cross-arch byte-equality · linux (pull_request) Successful in 32s
wai-quantum on every processor / emulated · i686-unknown-linux-gnu (pull_request) Successful in 3m52s
WAI conformance / delivery telemetry · CMCD and CMSD against an independent library (pull_request) Successful in 31s
wai formal verification (integer core) / every harness in one shard (pull_request) Successful in 13s
WAI conformance / quantum core and corpus under wasm32-wasip2 (wasmtime) (pull_request) Successful in 2m19s
WAI conformance / faces from keypoints under wasm32-wasip2 (wasmtime) (pull_request) Successful in 1m49s
WAI conformance / cross-arch byte-equality · linux-arm64 (pull_request) Successful in 1m11s
wai-quantum on every processor / emulated · sparc64-unknown-linux-gnu (pull_request) Successful in 8m21s
WAI conformance / C2PA manifest emission · signed, read back, validated (pull_request) Successful in 1m54s
wai-quantum WebGPU member / member · integrated GPU, Vulkan (framework-128gb) (pull_request) Successful in 7m57s
standards workspaces build + test / joule-code-rs (joule-code/joule-code-rs, joule-code-rs, linux-arm64, true) (pull_request) Successful in 8m49s
standards workspaces build + test / macOS energy backends (pull_request) Successful in 11m37s
wai-quantum WebGPU member / member · DX12 and Vulkan (cbio-windows) (pull_request) Successful in 13m26s
WAI conformance / cross-arch byte-equality · macos (pull_request) Successful in 32s
WAI conformance / codec wrappers · fuzz smoke, text decode limits, C entry points, provenance, the semantic path (pull_request) Successful in 1m18s
wai formal verification (integer core) / kani (plan) (pull_request) Successful in 8m39s
WAI energy receipts / energy receipts · linux (pull_request) Successful in 10m14s
WAI conformance / each feature of the independent verifiers' steps compiles alone (pull_request) Successful in 12m13s
joule-moq-web browser client / joule-moq-web · browser end-to-end (macos) (pull_request) Successful in 18m49s
WAI conformance / cargo-class corpora · linux (pull_request) Successful in 15m28s
wai formal verification (integer core) / kani (stage) (pull_request) Successful in 3m37s
WAI energy receipts / energy receipts · linux-arm64 (pull_request) Successful in 10m22s
wai formal verification (integer core) / kani (sound) (pull_request) Successful in 11m7s
wai-quantum WebGPU member / member · discrete GPU, Vulkan (jetson-hub) (pull_request) Successful in 19m16s
wai-key-proxy / proxy · linux (pull_request) Successful in 1m5s
wai formal verification (integer core) / kani (arith) (pull_request) Successful in 14m12s
WAI energy receipts / energy receipts · macos (pull_request) Successful in 8m23s
WAI neural decoders end-to-end / synthetic fixtures → Rust decode → reference (±4) (pull_request) Successful in 1m19s
WAI conformance / cargo-class corpora · linux-arm64 (pull_request) Successful in 19m31s
wai-ledger service / service · linux (pull_request) Successful in 1m34s
wai-ledger service / service · macos (pull_request) Successful in 49s
WAI neural sink gates / model-free refusals of the neural sink (pull_request) Successful in 1m26s
WAI conformance / cargo-class corpora · macos (pull_request) Successful in 20m27s
wai formal verification (integer core) / kani (integer-core) (pull_request) Successful in 5m39s
wai-ops integer operators / wasm32-wasip2 (wasmtime) (pull_request) Successful in 32s
wai-ops integer operators / linux-x86_64 (pull_request) Successful in 1m21s
wai-ops integer operators / independent checker (Python) (pull_request) Successful in 13s
wai-ops integer operators / macos-arm64 (pull_request) Successful in 59s
wai-ops integer operators / wasm32 under Node (pull_request) Successful in 21s
WAI JPEG-AI whole decode (pinned inputs, required) / fetch pinned JPEG-AI inputs → whole decode + pixel hash, required (pull_request) Successful in 6m43s
wai-ops-gpu integer operators on GPUs / builds · no adapter is not a pass (linux) (pull_request) Successful in 3m48s
wai-quantum command line / command line · linux (pull_request) Successful in 1m32s
wai-pack / wai-pack · linux (pull_request) Successful in 1m55s
wai-pack / wai-pack · macos (pull_request) Successful in 2m53s
wai-quantum studio and desktop / studio · browser (pull_request) Successful in 2m48s
WAI HTTP delivery / HTTP corpus · falsify patches 0/3 (pull_request) Successful in 6m22s
wai-quantum WebGPU member / shader checks · browser build · wasip2 inertness · MSRV (pull_request) Successful in 3m17s
wai-quantum command line / command line · macos (pull_request) Successful in 59s
wai-quantum WebGPU member / member · software Vulkan (linux) (pull_request) Successful in 2m23s
wai-web reach builds / wai-web reach builds · the package of record, every output as recorded (pull_request) Successful in 2m25s
wai-quantum studio and desktop / desktop app · macos (pull_request) Successful in 2m45s
wai-ops-gpu integer operators on GPUs / Metal GPU and browser WebGPU (macos) (pull_request) Successful in 10m34s
WAI mbt2018_mean integer decode (regenerated vectors) / regenerate mbt2018_mean integer vectors → Rust decode, required (pull_request) Successful in 6m9s
wai-web reach builds / wai-web reach builds · this tree's wai-web, every rung on its engine line (pull_request) Successful in 4m24s
wai-web wasm32 / wai-web wasm32 build · corpus, menu and writers (pull_request) Successful in 5m34s
wai formal verification (integer core) / kani (rans64-t2) (pull_request) Successful in 17m37s
wai-quantum WebGPU member / member · browser WebGPU (macos) (pull_request) Successful in 2m0s
WAI HTTP delivery / HTTP corpus · falsify patches 1/3 (pull_request) Successful in 6m42s
wai formal verification (integer core) / kani (stage-long) (pull_request) Successful in 20m51s
wai-quantum WebGPU member / member · Metal (macos) (pull_request) Successful in 3m7s
WAI HTTP delivery / HTTP corpus · falsify patches 2/3 (pull_request) Successful in 6m39s
wai-sink-android native sink library / every ABI, the AAR, and the instrumented tests in a headless emulator · macos (pull_request) Successful in 7m23s
WAI HTTP delivery / HTTP corpus · falsify mutations 0/3 (pull_request) Successful in 33m34s
WAI HTTP delivery / HTTP corpus · every patch and mutation in exactly one shard (pull_request) Successful in 44s
WAI HTTP delivery / HTTP corpus · falsify mutations 1/3 (pull_request) Successful in 32m51s
WAI HTTP delivery / HTTP corpus · verified both ways, and the differential (pull_request) Successful in 3m19s
wai-sink-swift native sink package / libwai slices, desktop tests, simulator tests · macos (pull_request) Successful in 15m52s
wai-ops-npu integer operators on neural processors / builds · no device is not a pass (linux-arm64) (pull_request) Successful in 46s
WAI HTTP delivery / HTTP corpus · falsify mutations 2/3 (pull_request) Successful in 32m24s
WAI HTTP delivery / cache rules · controls and labelled caches (pull_request) Successful in 2m14s
wai-ops integer operators / linux-aarch64 (pull_request) Successful in 1m36s
wai-pack / wai-pack · the floor through a media prober (pull_request) Successful in 27s
wai formal verification (integer core) / kani (isqrt512) (pull_request) Successful in 46m45s
wai-pack / wai-pack · linux-arm64 (pull_request) Successful in 1m49s
wai-pack / wai-pack · dependency licences (pull_request) Successful in 1m22s
wai-sink-android native sink library / the JNI layer and the platform-free half on the host JVM · linux-arm64 (pull_request) Successful in 2m33s
wai-pack / wai-pack · independent verifier (Python) (pull_request) Successful in 7m8s
WAI conformance / independent verifiers · claims, JWP, key discovery and integer payloads (Python) (pull_request) Successful in 58m51s
wai-audit, wai-key-proxy, wai-ledger: their locks on wai-quantum 0.6.16, as #498 moved it (#474, #471, #473)
Each lock resolves its path dependency's new version and nothing else (cargo
metadata, resolve only).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-26 18:47:47 -04:00
..
e2e wai-audit e2e: the collector ends with the run, however it ends 2026-10-25 22:23:59 -04:00
src wai: an unnamed acknowledgement refused, the collector's port, the stitched form 2026-10-25 22:05:49 -04:00
web wai: native-sink, the extension text, its corpus README, and the page's replay 2026-10-25 22:21:10 -04:00
.gitignore wai-audit: the stream audit collector and the player integration 2026-10-25 21:41:51 -04:00
Cargo.lock wai-audit, wai-key-proxy, wai-ledger: their locks on wai-quantum 0.6.16, as #498 moved it (#474, #471, #473) 2026-10-26 18:47:47 -04:00
Cargo.toml wai-audit: the stream audit collector and the player integration 2026-10-25 21:41:51 -04:00
README.md wai: an unnamed acknowledgement refused, the collector's port, the stitched form 2026-10-25 22:05:49 -04:00

wai-audit

The stream audit kit of extensions/stream-audit.md: evidence a content owner gathers from the players of a stream another service packages and delivers over HTTP, with nothing asked of that service.

  • The player integration (web/): for each playback session the player makes a fresh key, hashes every playlist and segment it fetches, and signs settlement acknowledgements (WDA1) of them by plain SHA-256, one chain per origin; a presentation claim (WPC1) for each ad the playlist marks; and the session record (WAS1): the spans it presented, in view and audible, its start time and stalls, its energy per role with each figure's class, and how it ended. It sends Event-mode CMCD version 2 to the collector as it plays, and the session's bundle when it ends.
  • The collector (wai-audit serve): verifies each bundle, stores the accepted ones one per session, takes the CMCD batches, and serves each channel's report, signed: time presented, ads presented and the quartile each reached, start time and stalls once 50 sessions hold them, acknowledged bytes per origin and class, and joules per role and class, never summed across classes. Anyone holding the stored bundles recomputes the report byte for byte (wai-audit check).

No price, tariff or amount is computed anywhere here.

Run the collector

cargo build --release
WAI_AUDIT_CHANNELS=news-east,film-library \
WAI_AUDIT_ALLOW_ORIGINS=https://player.example \
  ./target/release/wai-audit serve
variable default meaning
WAI_AUDIT_CHANNELS (required) the channel names served, comma-separated, each 1 to 255 bytes of printable ASCII (§3.1)
WAI_AUDIT_ADDR 127.0.0.1:9694 where it listens
WAI_AUDIT_DATA ~/.local/share/wai-audit where it stores sessions and CMCD batches
WAI_AUDIT_KEY ~/.config/wai-audit/signing.key the owner's Ed25519 key, 32 bytes, created readable by its owner alone if absent
WAI_AUDIT_ALLOW_ORIGINS none the page origins a browser may send from (CORS), or *
WAI_AUDIT_TRUSTED_PROXIES 127.0.0.1,::1 peers whose X-Forwarded-For names the client
WAI_AUDIT_PER_MINUTE 120 requests a client may make a minute (an IPv4 address, or an IPv6 /64)
WAI_AUDIT_MAX_BUNDLE 4194304 the largest bundle, bytes
WAI_AUDIT_MAX_BATCH 262144 the largest CMCD batch, bytes

Routes

route answer
GET /v1 the collector: its key, its channels and their ids, its limits
GET /v1/health {"ok": true}
GET /v1/key the owner's key, hexadecimal, as text: what a player's records name as owner
POST /v1/sessions a bundle (§9), any media type: 201 stored, 200 stored before, 409 another record of a stored session (audit_session_duplicate), 413 too large, 422 refused, 429 too many; with the outcome (§10.3)
POST /v1/cmcd an Event-mode CMCD batch (application/cmcd, live-metering §6.3): 204, or 422 naming the first line that is not an Event-mode report of version 2
GET /v1/channels/{name}/report?from=&to= the channel's report over the period (microseconds since 1970), {"report", "sig"} (§11.3)

Storage: <data>/channels/<channel id>/<session>.json, the bundle as the player sent it, written to a temporary name and renamed; <data>/cmcd/<UTC date>.cmcd, the batches as they came. A report verifies every stored session of its channel again, so a stored file that no longer verifies (another key, a channel no longer served) is an error, not a silent omission.

The command line

wai-audit key [PATH]                          # the owner's key at PATH (created if absent)
WAI_AUDIT_OWNER=<hex> wai-audit verify bundle.json news-east
WAI_AUDIT_KEY=<path>  wai-audit report <data> news-east <from> <to>
WAI_AUDIT_OWNER=<hex> wai-audit check served.json news-east bundle-1.json bundle-2.json …

verify prints a bundle's outcome; report recomputes a channel's report from a data directory and signs it; check recomputes a served report from the bundles it reads (§11.4) and checks its signature.

Put it in a page

<script type="module">
  import { AuditSession, attach, CLASS, ROLE } from "./audit.js";
  import { tap } from "./adapter-tap.js";
  const session = await AuditSession.start({ channel: "news-east", owner: "<the collector's key>", collector: "https://audit.example/" });
  session.energy(ROLE.SINK_DECODE, 0, CLASS.UNMETERED); // a page has no meter (§8.1)
  session.energy(ROLE.DISPLAY, 0, CLASS.UNMETERED);
  tap(session, { manifest: src });                      // before the player starts fetching
  // ... start the page's own player on `src` ...
  attach(video, session, { programMs: () => session.programAt(video.currentTime) });
</script>
  • adapter-tap.js wraps the page's fetch and XMLHttpRequest and hands the session every response the presentation names: for any web player that fetches over them.
  • adapter-hlsjs.js wraps the loader class of a player whose configuration takes one, and gives the program time of the position from the player itself, which a live stream needs.
  • attach observes the media element every 200 ms and on its events, logs the first presentation, stalls and the end, and closes and sends the session when playback ends or the page goes away.

The origin serving the stream must answer cross-origin requests (players need that already), and must list CMSD-Static and CMSD-Dynamic in Access-Control-Expose-Headers for the kit to record them. Ad markers are read from HLS EXT-X-DATERANGE tags with SCTE35-OUT, SCTE35-CMD or a configured CLASS; DASH events are not read in this revision. A bundle sent as a page goes away rides on a keep-alive request, which a user agent may refuse past its quota (64 KiB in the Fetch Standard); the kit sends at the end of playback first.

Tests

  • cargo test --release: every session of the corpus live-conformance/audit/ posted gets the corpus's outcome, and the stored sessions report exactly the corpus's served reports, byte for byte and signature; CORS, body and request limits, CMCD intake.
  • node --test web/audit.test.mjs: a session driven with the corpus's inputs signs the corpus's records byte for byte, its log and CMCD batch too; the playlist reader, the tap and the loader adapter.
  • e2e/run.sh: a real browser plays an HLS stream from another origin through an open-source web player, audited through the loader adapter and through the tap, each session verified, stored and reported by a collector on loopback, the report recomputed by wai-audit check. It needs the host's media tool and a browser (BROWSER_BIN).

Deploy

One process per owner key, on loopback behind the site's reverse proxy, which terminates TLS and strips a path prefix (/audit/ → /); the proxy is the trusted peer whose X-Forwarded-For names the client. Keep WAI_AUDIT_DATA on storage that is backed up: the stored bundles are the evidence a report is recomputed from. Back up the key apart from the data, readable by the service's user alone. Run it under the host's service manager with restart on failure, and check GET /v1/health.