open-standards/wai/wai-fleet
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Transaction Science bb3797e337
All checks were successful
repository checks / lockfiles, advisories, tests in CI, workflow hygiene, spec and section references, public text (pull_request) Successful in 3m12s
standards workspaces build + test / which workspaces this change touches (pull_request) Successful in 8s
wai-audit collector and player integration / does this change touch it (pull_request) Successful in 7s
WAI breaking changes and the conformance runner / WAI breaking · does this change touch WAI (pull_request) Successful in 7s
WAI operation catalogue / does this change touch it (pull_request) Successful in 6s
joule-code conformance gate / joule-moq-relay, every target (pull_request) Successful in 4m14s
WAI conformance / does this change touch it (pull_request) Successful in 10s
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 6s
wai-fleet service / does this change touch it (pull_request) Successful in 8s
WAI JPEG-AI whole decode (pinned inputs, required) / does this change touch it (pull_request) Successful in 7s
wai-key-proxy / does this change touch it (pull_request) Successful in 13s
WAI neural sink gates / does this change touch it (pull_request) Successful in 13s
wai-ledger service / does this change touch it (pull_request) Successful in 13s
wai-ops-gpu integer operators on GPUs / does this change touch it (pull_request) Successful in 10s
wai-pack / wai-pack · does this change touch it (pull_request) Successful in 7s
wai-quantum studio and desktop / does this change touch it (pull_request) Successful in 7s
wai-quantum WebGPU member / 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 7s
wai-sink-swift native sink package / does this change touch it (pull_request) Successful in 6s
WAI mbt2018_mean integer decode (regenerated vectors) / does this change touch it (pull_request) Successful in 6s
WAI Studio / does this change touch it (pull_request) Successful in 7s
wai-web wasm32 / does this change touch it (pull_request) Successful in 6s
wai-quantum WebGPU member / member · DX12 and Vulkan (cbio-windows) (pull_request) Successful in 13m19s
joule-code conformance gate / joule-moq-ingest, every target (pull_request) Successful in 6m10s
WAI conformance / v2 vocabulary · manifests validate as stated (pull_request) Successful in 23s
WAI conformance / fast integer kernels, every x86_64 kernel set (AVX-512 silicon) (pull_request) Successful in 3m7s
joule-moq-remote host agent / joule-moq-remote · does this change touch it (pull_request) Successful in 6s
joule-moq-room room service / joule-moq-room · does this change touch it (pull_request) Successful in 1m6s
joule-moq-web browser client / joule-moq-web · does this change touch it (pull_request) Successful in 5s
wai-app and Create / wai-app · does this change touch it (pull_request) Successful in 5s
wai-web reach builds / wai-web reach · does this change touch it (pull_request) Successful in 5s
joule-code conformance gate / Build + round-trip C1-C4 vectors (pull_request) Successful in 3m30s
standards workspaces build + test / joule-code-rs (joule-code/joule-code-rs, joule-code-rs, linux-arm64, true) (pull_request) Successful in 7m32s
WAI conformance / delivery telemetry · CMCD and CMSD against an independent library (pull_request) Successful in 15s
wai-audit collector and player integration / collector · linux (pull_request) Successful in 1m10s
WAI conformance / cross-arch byte-equality · linux-arm64 (pull_request) Successful in 1m1s
WAI breaking changes and the conformance runner / WAI breaking · wire, record and API against main · linux (pull_request) Successful in 1m29s
wai-quantum WebGPU member / member · integrated GPU, Vulkan (framework-128gb) (pull_request) Successful in 8m12s
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 operation catalogue / the catalogue and every door · linux (pull_request) Successful in 3m7s
WAI conformance / C2PA manifest emission · signed, read back, validated (pull_request) Successful in 3m24s
WAI conformance / cross-arch byte-equality · linux (pull_request) Successful in 47s
WAI conformance / quantum core and corpus under wasm32-wasip2 (wasmtime) (pull_request) Successful in 2m59s
WAI conformance / faces from keypoints under wasm32-wasip2 (wasmtime) (pull_request) Successful in 1m39s
wai-fleet service / service · linux (pull_request) Successful in 2m22s
wai-key-proxy / proxy · linux (pull_request) Successful in 1m7s
wai-ledger service / service · linux (pull_request) Successful in 1m26s
WAI conformance / each feature of the independent verifiers' steps compiles alone (pull_request) Successful in 14m59s
WAI neural sink gates / model-free refusals of the neural sink (pull_request) Successful in 1m39s
WAI JPEG-AI whole decode (pinned inputs, required) / fetch pinned JPEG-AI inputs → whole decode + pixel hash, required (pull_request) Successful in 6m56s
wai-pack / wai-pack · linux (pull_request) Successful in 1m48s
wai-ops-gpu integer operators on GPUs / builds · no adapter is not a pass (linux) (pull_request) Successful in 3m28s
joule-code conformance gate / joule-moq-relay, its own energy on a counter (macos) (pull_request) Successful in 1m2s
WAI examples / WAI examples · portable · linux (pull_request) Successful in 10m3s
wai-quantum WebGPU member / member · software Vulkan (linux) (pull_request) Successful in 2m1s
wai-quantum studio and desktop / studio · browser (pull_request) Successful in 3m29s
WAI energy receipts / energy receipts · linux (pull_request) Successful in 11m17s
wai-quantum WebGPU member / shader checks · browser build · wasip2 inertness · MSRV (pull_request) Successful in 3m16s
WAI energy receipts / energy receipts · linux-arm64 (pull_request) Successful in 12m35s
WAI Studio / the catalogue's actions, the unit tests and the core · linux (pull_request) Successful in 1m11s
wai-quantum WebGPU member / member · discrete GPU, Vulkan (jetson-hub) (pull_request) Successful in 25m50s
wai-app and Create / wai-app · tests, clippy, the line language's verifier (linux) (pull_request) Successful in 52s
WAI examples / WAI examples · android-app · linux-arm64 (pull_request) Successful in 7m58s
WAI conformance / cargo-class corpora · linux-arm64 (pull_request) Successful in 27m23s
wai-pack / wai-pack · the floor through a media prober (pull_request) Successful in 24s
wai-pack / wai-pack · linux-arm64 (pull_request) Successful in 2m21s
wai-web reach builds / wai-web reach builds · the package of record, every output as recorded (pull_request) Successful in 2m25s
wai-pack / wai-pack · dependency licences (pull_request) Successful in 1m28s
WAI mbt2018_mean integer decode (regenerated vectors) / regenerate mbt2018_mean integer vectors → Rust decode, required (pull_request) Successful in 6m11s
WAI conformance / cargo-class corpora · linux (pull_request) Successful in 20m37s
wai-web wasm32 / wai-web wasm32 build · corpus, menu and writers (pull_request) Successful in 6m11s
wai-sink-android native sink library / the JNI layer and the platform-free half on the host JVM · linux-arm64 (pull_request) Successful in 3m6s
wai-web reach builds / wai-web reach builds · this tree's wai-web, every rung on its engine line (pull_request) Successful in 4m34s
joule-moq-remote host agent / joule-moq-remote, every target (linux-arm64) (pull_request) Successful in 2m0s
wai-pack / wai-pack · independent verifier (Python) (pull_request) Successful in 7m20s
WAI Studio / Studio in WebKit · linux (pull_request) Successful in 10m34s
joule-moq-room room service / joule-moq-room, every target (pull_request) Successful in 4m9s
wai-audit collector and player integration / collector, player integration and the browser end to end · macos (pull_request) Successful in 1m39s
standards workspaces build + test / macOS energy backends (pull_request) Successful in 10m10s
WAI conformance / cross-arch byte-equality · macos (pull_request) Successful in 33s
WAI conformance / codec wrappers · fuzz smoke, text decode limits, C entry points, provenance, the semantic path (pull_request) Successful in 1m46s
WAI energy receipts / energy receipts · macos (pull_request) Successful in 7m9s
wai-fleet service / service · macos (pull_request) Successful in 46s
wai-ledger service / service · macos (pull_request) Successful in 50s
WAI examples / WAI examples · the archive, the readiness check, the browser and Apple · macos (pull_request) Successful in 15m46s
WAI conformance / cargo-class corpora · macos (pull_request) Successful in 21m31s
wai-pack / wai-pack · macos (pull_request) Successful in 3m9s
WAI conformance / independent verifiers · claims, JWP, key discovery and integer payloads (Python) (pull_request) Successful in 1h4m59s
wai-ops-gpu integer operators on GPUs / Metal GPU and browser WebGPU (macos) (pull_request) Successful in 12m27s
wai-quantum studio and desktop / desktop app · macos (pull_request) Successful in 3m42s
wai-quantum WebGPU member / member · browser WebGPU (macos) (pull_request) Successful in 1m48s
wai-quantum WebGPU member / member · Metal (macos) (pull_request) Successful in 2m37s
wai-sink-android native sink library / every ABI, the AAR, and the instrumented tests in a headless emulator · macos (pull_request) Successful in 6m58s
WAI Studio / Studio in Chromium and Firefox · macos (pull_request) Successful in 9m52s
wai-sink-swift native sink package / libwai slices, desktop tests, simulator tests · macos (pull_request) Successful in 16m11s
joule-moq-remote host agent / joule-moq-remote, every target (macos) (pull_request) Successful in 1m4s
wai-app and Create / wai-app · Create, browser end-to-end (macos) (pull_request) Successful in 7m39s
joule-moq-web browser client / joule-moq-web · browser end-to-end (macos) (pull_request) Successful in 16m22s
wai 0.4.0
The crate's version for the release wai-v0.4.0: wai/wai-rs/Cargo.toml and
the `wai` entry of the sixteen lockfiles that hold it, each validated with
`cargo metadata --locked --offline`; the catalogue export, whose
`toolchain` is the crate's version, and WAI Studio's actions generated from
it. The changelog's current section becomes v0.4.0, under an Unreleased
heading for what comes next. Recorded measurements (sink-energy's
procedure.txt) keep the version they were taken with.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-28 11:20:02 -04:00
..
src wai-fleet: a fleet as a service, enrolments and records kept append-only, reports signed and kept with their bundles 2026-10-27 15:31:13 -04:00
Cargo.lock wai 0.4.0 2026-10-28 11:20:02 -04:00
Cargo.toml wai-fleet: a fleet as a service, enrolments and records kept append-only, reports signed and kept with their bundles 2026-10-27 15:31:13 -04:00
README.md wai-fleet: a fleet as a service, enrolments and records kept append-only, reports signed and kept with their bundles 2026-10-27 15:31:13 -04:00
smoke.sh wai-fleet: a fleet as a service, enrolments and records kept append-only, reports signed and kept with their bundles 2026-10-27 15:31:13 -04:00

wai-fleet

A WAI fleet (extensions/fleet.md) as a service. An organisation enrols the nodes it runs by their signing keys: relays, compositors, ingest gateways, room services, ledgers and audit collectors. Each node contributes the records it already signs, as it signs them: a relay's session summaries, and every hop's per-hop records with their ledgers, with the room descriptors that place those in time. The service verifies each record against its node's enrolled key, keeps it append-only, and for a period signs the fleet report with the organisation key. The report has one line per node and one per room, with sessions, bytes and energy, and each line cites the records it came from. Energy keeps its acquisition class: one row per scope and class, never summed across either. An unmetered figure is counted as unmetered, never as zero joules, and a total over measured and unmetered figures says it is partial.

Every report is kept with its bundle: the report, its enrolments and its records. Any verifier of the extension checks a bundle without this service, the corpus's second implementation among them:

python3 -I ../live-conformance/fleet_verify.py --bundle week.wai-fleet.json
wai verify week.wai-fleet.json

Accounts, members, sign-on, quotas and billing are not here.

Running it

cargo build --locked --release
WAI_FLEET_DIR=/path/to/fleet WAI_FLEET_KEY=/path/to/organisation.key WAI_FLEET_ADDR=127.0.0.1:8252 \
  ./target/release/wai-fleet serve
variable meaning
WAI_FLEET_DIR the directory the service owns (required); created when absent
WAI_FLEET_KEY the organisation key's file: 32 bytes, the Ed25519 seed; made with mode 0600 when absent
WAI_FLEET_ADDR the address it listens on (default 127.0.0.1:8252)

wai-fleet key prints the organisation key of WAI_FLEET_KEY. wai-fleet verify FILE prints a bundle's outcome. Enrolments are signed with the organisation key, by wai enrolment create, and given to the service; the service signs none itself.

wai-fleet collect URL SOURCE reads a node's summary file and gives each line to the service at URL as a summary record: SOURCE is a path (a relay's summary.out_path) or an http or https address that answers with the file. It prints how many lines were held and how many were refused, by reason. Collecting the same file again holds nothing twice: a line held already is refused record_duplicate.

The directory:

LOCK                                  held exclusively while a process serves the directory
enrolments.jsonl                      {"enrolment": hex}, one a line, in the order admitted
records.jsonl                         each record's carriage, one a line, in the order admitted
reports/<digest>.wfr                  a report
reports/<digest>.wai-fleet.json       its bundle

The two logs are append-only: a line is written whole and the log synced before the request that admitted it is answered, and a line a crash cut short, never answered, is cut off on start. Reports are written whole (to a temporary name, synced, renamed into place). On start the service takes the lock (a second process on the same directory is refused), then reads every enrolment, record and report back and verifies each again, and refuses to start on any that does not.

Endpoints

GET /v1/fleet the service, its organisation key and its limits
GET /v1/fleet/health ok
POST /v1/fleet/enrolments {"enrolment": <hex>}: an enrolment the organisation key signed, read and verified, for a node not enrolled yet; 201 with its node, role and digest
GET /v1/fleet/enrolments every enrolment, with its node, role, label, span, digest and the records held of it
POST /v1/fleet/records {"records": [...]}: each record in its carriage, in order, verified against its node's enrolment and every record held; 200 with how many were held and refused, and each one's kind and identity or its reason
GET /v1/fleet/rooms/{room}/hops the per-hop records held of a room, each record and ledger, as a receipt ledger's room source holds them
POST /v1/fleet/reports {"start": <µs>, "end": <µs>}: the report of the period over the enrolments whose span meets it and the records held in it, signed, verified and kept; 201, its digest, its outcome and its bundle
GET /v1/fleet/reports every report kept, with its period
GET /v1/fleet/reports/{digest} a report's bundle and outcome
POST /v1/fleet/verify a bundle: its outcome

A refusal is 422 with {"outcome": "refuse", "reason"}, the extension's reason; a record refused in a batch is named in the batch's answer. A body that is not what the endpoint takes is 400; an unknown report is 404. A request body is at most 32 MiB and 10 000 records. Requests that change the fleet run one at a time; POST /v1/fleet/verify verifies at most two bundles at a time.

The service has no accounts. It holds the organisation key because it signs reports. It accepts an enrolment only when the organisation key signed it and a record only when it verifies under an enrolled node's key, whoever submits either. It listens on a loopback address unless told otherwise: who may reach it is decided in front of it.

Checks

cargo test --locked                    # the corpus's report signed byte for byte, the directory
                                       # recovered after a restart, a line cut short cut off, one
                                       # process per directory, the corpus's summaries read and
                                       # written again by the relay's own types, and records the
                                       # relay's own code signs collected from a file over HTTP
bash smoke.sh http://127.0.0.1:18252   # over HTTP, against an instance started with the corpus's
                                       # organisation key (see .github/workflows/wai-fleet.yml)