| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
All checks were successful
standards workspaces build + test / which workspaces this change touches (pull_request) Successful in 7s
wai-audit collector and player integration / does this change touch it (pull_request) Successful in 6s
WAI breaking changes and the conformance runner / WAI breaking · does this change touch WAI (pull_request) Successful in 6s
WAI operation catalogue / does this change touch it (pull_request) Successful in 6s
WAI conformance / does this change touch it (pull_request) Successful in 5s
repository checks / lockfiles, advisories, tests in CI, workflow hygiene, spec and section references, public text (pull_request) Successful in 2m45s
WAI energy receipts / does this change touch it (pull_request) Successful in 8s
WAI examples / WAI examples · does this change touch them (pull_request) Successful in 8s
wai-fleet service / does this change touch it (pull_request) Successful in 8s
wai-ledger service / does this change touch it (pull_request) Successful in 7s
wai-pack / wai-pack · does this change touch it (pull_request) Successful in 7s
wai-quantum docs, course and locales / does this change touch it (pull_request) Successful in 8s
WAI conformance / cross-arch byte-equality · macos (pull_request) Successful in 35s
wai-quantum for JavaScript / does this change touch it (pull_request) Successful in 6s
wai-quantum studio and desktop / does this change touch it (pull_request) Successful in 6s
wai-sink-android native sink library / does this change touch it (pull_request) Successful in 6s
wai-sink-swift native sink package / does this change touch it (pull_request) Successful in 7s
WAI Studio / does this change touch it (pull_request) Successful in 6s
wai-web wasm32 / does this change touch it (pull_request) Successful in 6s
WAI conformance / codec wrappers · fuzz smoke, text decode limits, C entry points, provenance, the semantic path (pull_request) Successful in 54s
wai-audit collector and player integration / collector, player integration and the browser end to end · macos (pull_request) Successful in 1m43s
wai-fleet service / service · macos (pull_request) Successful in 1m10s
WAI conformance / fast integer kernels, every x86_64 kernel set (AVX-512 silicon) (pull_request) Successful in 3m13s
standards workspaces build + test / macOS energy backends (pull_request) Successful in 5m26s
wai-ledger service / service · macos (pull_request) Successful in 3m59s
wai-pack / wai-pack · macos (pull_request) Successful in 2m46s
wai-quantum studio and desktop / desktop app · windows (pull_request) Successful in 9m26s
WAI examples / WAI examples · the archive, the readiness check, the browser and Apple · macos (pull_request) Successful in 9m49s
joule-moq-remote host agent / joule-moq-remote · does this change touch it (pull_request) Successful in 8s
joule-moq-room room service / joule-moq-room · does this change touch it (pull_request) Successful in 7s
joule-moq-web browser client / joule-moq-web · does this change touch it (pull_request) Successful in 6s
wai-app and Create / wai-app · does this change touch it (pull_request) Successful in 6s
wai-web reach builds / wai-web reach · does this change touch it (pull_request) Successful in 6s
wai-audit collector and player integration / collector · linux (pull_request) Successful in 1m11s
wai-sink-android native sink library / every ABI, the AAR, and the instrumented tests in a headless emulator · macos (pull_request) Successful in 5m13s
WAI breaking changes and the conformance runner / WAI breaking · wire, record and API against main · linux (pull_request) Successful in 1m25s
WAI energy receipts / energy receipts · macos (pull_request) Successful in 15m31s
WAI breaking changes and the conformance runner / WAI breaking and conform · their tests, and the independent verifiers through wai conform · linux (pull_request) Successful in 2m40s
WAI conformance / cross-arch byte-equality · linux (pull_request) Successful in 32s
joule-moq-remote host agent / joule-moq-remote, every target (macos) (pull_request) Successful in 1m22s
WAI conformance / faces from keypoints under wasm32-wasip2 (wasmtime) (pull_request) Successful in 1m42s
WAI operation catalogue / the catalogue and every door · linux (pull_request) Successful in 4m44s
WAI conformance / quantum core and corpus under wasm32-wasip2 (wasmtime) (pull_request) Successful in 3m13s
standards workspaces build + test / joule-code-rs (joule-code/joule-code-rs, joule-code-rs, linux-arm64, true) (pull_request) Successful in 18m40s
wai-quantum studio and desktop / desktop app · macos (pull_request) Successful in 13m39s
WAI Studio / Studio in Chromium and Firefox · macos (pull_request) Successful in 7m32s
wai-fleet service / service · linux (pull_request) Successful in 2m3s
wai-ledger service / service · linux (pull_request) Successful in 2m36s
WAI conformance / v2 vocabulary · manifests validate as stated (pull_request) Successful in 2m21s
wai-sink-swift native sink package / libwai slices, desktop tests, simulator tests · macos (pull_request) Successful in 11m43s
wai-pack / wai-pack · linux (pull_request) Successful in 2m3s
wai-quantum docs, course and locales / the Studio's words in every locale · linux (pull_request) Successful in 10s
wai-quantum docs, course and locales / the course and the command line's languages · linux (pull_request) Successful in 2m30s
wai-quantum for JavaScript / javascript · linux (pull_request) Successful in 3m38s
WAI energy receipts / energy receipts · linux (pull_request) Successful in 10m39s
WAI examples / WAI examples · portable · linux (pull_request) Successful in 10m36s
WAI Studio / the catalogue's actions, the unit tests and the core · linux (pull_request) Successful in 57s
wai-quantum studio and desktop / studio · browser (pull_request) Successful in 4m20s
wai-app and Create / wai-app · tests, clippy, the line language's verifier (linux) (pull_request) Successful in 30s
WAI conformance / cargo-class corpora · linux (pull_request) Successful in 17m6s
wai-web reach builds / wai-web reach builds · the package of record, every output as recorded (pull_request) Successful in 2m22s
wai-quantum studio and desktop / desktop app · linux (pull_request) Successful in 5m27s
wai-app and Create / wai-app · Create, browser end-to-end (macos) (pull_request) Successful in 12m48s
wai-web wasm32 / wai-web wasm32 build · corpus, menu and writers (pull_request) Successful in 5m45s
WAI conformance / cargo-class corpora · macos (pull_request) Successful in 35m40s
wai-web reach builds / wai-web reach builds · this tree's wai-web, every rung on its engine line (pull_request) Successful in 5m12s
WAI conformance / cargo-class corpora · linux-arm64 (pull_request) Successful in 38m28s
WAI Studio / Studio in WebKit · linux (pull_request) Successful in 11m51s
joule-moq-web browser client / joule-moq-web · browser end-to-end (macos) (pull_request) Successful in 23m16s
wai-quantum docs, course and locales / every command and snippet in the docs · linux (pull_request) Successful in 20m57s
WAI conformance / delivery telemetry · CMCD and CMSD against an independent library (pull_request) Successful in 14s
WAI conformance / cross-arch byte-equality · linux-arm64 (pull_request) Successful in 1m7s
WAI conformance / C2PA manifest emission · signed, read back, validated (pull_request) Successful in 2m46s
WAI conformance / each feature of the independent verifiers' steps compiles alone (pull_request) Successful in 21m31s
WAI energy receipts / energy receipts · linux-arm64 (pull_request) Successful in 15m44s
wai-pack / wai-pack · linux-arm64 (pull_request) Successful in 2m21s
WAI examples / WAI examples · android-app · linux-arm64 (pull_request) Successful in 7m3s
wai-pack / wai-pack · the floor through a media prober (pull_request) Successful in 22s
wai-pack / wai-pack · dependency licences (pull_request) Successful in 1m43s
wai-sink-android native sink library / the JNI layer and the platform-free half on the host JVM · linux-arm64 (pull_request) Successful in 3m27s
joule-moq-remote host agent / joule-moq-remote, every target (linux-arm64) (pull_request) Successful in 1m55s
wai-pack / wai-pack · independent verifier (Python) (pull_request) Successful in 8m53s
joule-moq-room room service / joule-moq-room, every target (pull_request) Successful in 4m22s
WAI conformance / independent verifiers · claims, JWP, key discovery and integer payloads (Python) (pull_request) Successful in 1h23m20s
A job's output receipt is of an object its served hop states it delivered (route-record version 2's `outputs`, by content hash), once, or the source is refused `output_not_delivered`; under tariff version 4 a record of version 1 holds its outputs to none. Routing figures (cost, expected cost and time, failures) are never charges: a line bills the billed attempt at the tariff's price. The room-session receipt's version 2 states `bytes_out`, the bytes its hops sent the session's sessions from their ledgers, prices them per 10^9 bytes in its tariff and counts them in each grant's consumption and funds. Tariff and invoice version 4 bill a room's bytes out, a package's work once per run that made it (a routed job of `package.build`, per job and per work unit, its receipt the product each run cites, a replayed run refused), a package's storage by byte-days for each invoice period it is held through, read from the chain, and state every hop's energy, the hops not billed in a scope of their own. The ledger corpus adds jobs routed under the route record's version 2 and version 4's chain with their controls; the metering corpus adds receipts of version 2; both second implementations read the new versions and catch every new rule. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||
| .. | ||
| README.md | ||
| relay-ledger.wml | ||
| relay-record.wmh | ||
| vectors.json | ||
live-conformance/metering — live metering
The corpus of extensions/live-metering.md §10: rooms,
and vectors, each a room-session receipt (WMR1, of version 1, or of version 2 stating and
pricing its hops' bytes out) with what it names (the per-hop session
records, WMH1, of version 1 or of version 2 with a hop's DVR figures, each with its ledger; the composition descriptors and receipts, WCD1 and
WCR1; the take manifests, WTM1; and the logs document of QoE observations), and the
outcome a verifier gives it.
Metering equivalence. For each vector, a conforming receipt verifier given its room (by
name, from rooms: the descriptor, the grants, the key-log head and the chains, each
hexadecimal), its receipt, hops (each record and ledger), descriptors,
compositions, takes and logs (the document's text, or null) reaches the outcome the
vector states (§5.4):
refuse: thereasonand where,at:["room"]or["room", …]with the room verifier's own place (live-rooms §9.1),["receipt"],["hop", i]for the receipt's hop entryi,["take", i],["compose"]for the list of composition receipts or["compose", i]for the receiptiin ascending order of digest,["qoe"],["units"],["energy"]or["ceilings"];accept: the receipt'sdigest; the number of media tracks the room published in the session (media_tracks, the M of §3.7); each hop record'sdigest,size, sizebound(B(M) for version 1, B₂(M) for version 2) andversion, and for a version 2 record its six DVR figures by their §3.9 names (dvr_objects_out,dvr_bytes_out,dvr_objects_stored,dvr_bytes_stored,dvr_byte_s,dvr_dropped); theunits(withbytes_outfor a receipt of version 2); theunmeteredhop entries; thetotals, one per class; thecoverage,wholeorpartial; each grant'sconsumptionentry (its ceilings, its units, its attributed joules by class, whether its share isunmetered, itsfunds, its two verdicts and itsleaf, and for a receipt of version 2 itsbytes_out); theconsumption_root; the grantspasta ceiling with their flags; and theqoe_cell.
A verifier that reaches another outcome, reason, place or fact does not conform.
Provenance. Generated here: wai_live_metering_vectors gen writes vectors.json from
sessions authored in code, from fixed seeds, by capture binding's corpus rules: each key is
SHA-256 of that corpus's fixed label and the principal's index (the principals it shares with
that corpus and with live recording's are the same principals), every time is a constant
(the lesson room's t0 is 2026-10-16T00:00:00Z), every chunk's bytes are SHA-256 output under
a fixed label, and Ed25519 signing is deterministic (RFC 8032), so the file is the same bytes
on every machine. The lesson's per-hop records are aggregated from sessions written in code
by the rules a hop counts by (§3), and stand for what a relay, a compositor and an ingest
gateway would count; their joule figures are constants and were measured by nothing. The
dvr_relay vector's DVR figures are counted, by §3.9's rules, from a DVR window written in
code (the composite's 23 frames of 20 000 bytes, each written as it arrives a third of a
second into its second and held ten seconds or to the span's end, one dropped a second after
it arrived, a viewer joining at 20 s filled from the window): measured by nothing either. The
key-log heads are sealed by the reference's key log under a fixed root; the origin is an
.example name (RFC 2606). The generator asserts that each vector reaches the outcome it was
written to have before it writes it.
Recorded data, one record. relay-record.wmh and its ledger relay-ledger.wml were signed
by joule-moq-relay itself, in its test tests/room_metering.rs (two publishers and three
subscribers of the relay room over native QUIC and WebTransport, one subscriber slow, each
reading its streams concurrently), run once on 2026-10-18 with WAI_METERING_FIXTURE_DIR
set; the relay's key is the room's clock key, under the same label. Its counts, its span
(3.196 s of room clock from 11:45:35.966 UTC)
and its subscriber time are what that run measured on loopback, so a second run gives other
bytes: the pair is committed as recorded and read by the generator, which writes the relay
room's lifecycle around the record's span. The relay meters no energy, and the record says so
with the unmetered marker. The relay room's grants run thirteen days from its t0, so a
pair recorded after 2026-10-31 would fall outside them.
Layout
One file, vectors.json, beside the recorded pair:
principals: the keys, by name (informative).rooms:lesson, a lesson room (a director with the record power, a performer's device and an accompanist's capturing two takes, a compositor laying the room out at one frame a second, three viewers, a key log listing the room authority, the store, the relay, the compositor, an ingest gateway and a metering key, and a revoked metering key and relay key);lesson_ceilings, the same with the second viewer's joule ceiling at 1 000 µJ and the third viewer's funds ceiling at 0;lesson_gap, the clock'sjoinof the third viewer not delivered;lesson_bad_chat, the viewer's chat carrying a bad signature; andrelay, the reference relay's test room, with no origin.vectors: each withname,about,room,receipt,hops,descriptors,compositions,takes,logs,outcome, and as abovereasonandat, or the facts.
The vectors:
- accepted:
lesson(a relay and a compositor read from an on-chip counter, two takes, ten composition receipts, three viewers' logs and a suppressed QoE cell, under a tariff in euros; signed by the metering key),signed_by_authority,mixed_classes(a relay's counter reading, a compositor's model and an ingest gateway's estimate, one total per class),ceilings_past(the second viewer past its joule ceiling, the third past its funds ceiling),large_audience(ten thousand more subscriber sessions with no grant: the relay's record is the lesson's size; sixty logs publish the QoE cell),relay_recorded(the reference relay's record, unmetered, so the energy is partial) anddvr_relay(the lesson's relay keeping a ten-second DVR window of the composite: a version 2 record, 48 bytes longer than the lesson relay's under a bound 48 bytes higher, stating the frames it stored, the byte-seconds it held them, one dropped for not verifying against its receipt, and the ten it filled a late viewer with; every other record of the corpus is version 1);bytes_out_priced(the lesson's receipt of version 2: the bytes its hops sent the session's sessions, summed from their ledgers, by grant too, and priced per 10^9 bytes in its tariff and in each grant's funds; every other receipt of the corpus is version 1); - refused, one defect each: the receipt (
receipt_bad_signature,receipt_truncated,receipt_wrong_room,session_invalid,signer_not_authorised,signer_revoked,total_of_no_class, and for version 2bytes_out_mismatch, a byte more than the ledgers (unit_mismatch),bytes_out_left_out_of_the_consumption, the grants' entries without their bytes (ceiling_mismatch),bytes_priced_with_no_tariff(session_invalid), andreceipt_unknown_version, the lesson's receipt with its fifth byte 3 and signed again (unknown_version)); the hop records (record_missing,record_too_large,record_invalid,energy_invalid,record_wrong_room,record_bad_signature,entry_restated_wrong,hop_not_authorised,hop_class_not_authorised,hop_revoked,span_outside_session,track_unknown,ledger_invalid,ledger_ceiling_mismatch,ledger_root_mismatch,hop_units_mismatch, and for version 2dvr_out_exceedsanddvr_stored_exceeds, its bytes sent from its store above its out entries' and its objects stored above its in entries' (record_invalid),record_unknown_version, the DVR relay's record with its fifth byte 3 and signed again (unknown_version), anddvr_record_too_large, past B₂(M) by less than one entry (record_too_large)); the takes, compositions and logs (take_missing,take_unknown,composition_missing,composition_refused,composition_outside_session,logs_missing,qoe_invalid,qoe_not_suppressed); the units, energy and ceilings (units_mismatch,recorded_mismatch,classes_summed,total_mismatch,ceiling_mismatch,consumption_root_mismatch); and the room (room_refused,lifecycle_incomplete).
Running
cd ../../wai-rs
cargo run --no-default-features --features live_metering --bin wai_live_metering_vectors -- verify ../live-conformance/metering
cargo run --no-default-features --features live_metering --bin wai_live_metering_vectors -- gen ../live-conformance/metering # regenerate
cargo test --no-default-features --features live_metering --test live_metering
cd ../live-conformance
python3 live_metering_verify.py metering
wai_live_metering_vectors verify and tests/live_metering.rs require the file to regenerate
byte for byte and wai-rs to give every vector its outcome; the test also requires every
reason of §9 to refuse a vector, the accepted vectors to be the ones above, the large
audience's relay record to be the lesson's size within the same bound, the DVR relay's record
to be version 2 with every figure above 0 and every other accepted record version 1, and §9
to list exactly the reasons the reference reports. live_metering_verify.py is the second implementation,
written from the extension's text and sharing no code with wai-rs: it verifies each room
with live_rooms_verify.py, each take with capture_take_verify.py and each composition
receipt with live_compose_verify.py, recomputes every unit, every total, every grant's
consumption and the QoE cell itself, gives every vector the same outcome, requires the same
coverage, and then mutates copies of the corpus, one defect each, each of which must fail.
Pass = an exit status of 0 from each.
To record the relay's pair again (it changes the corpus), run the relay's test with
WAI_METERING_FIXTURE_DIR set to this directory, then gen:
cd ../../../joule-code/joule-code-rs
WAI_METERING_FIXTURE_DIR=$PWD/../../wai/live-conformance/metering cargo test -p joule-moq-relay --test room_metering