wai: the revenue share — share contract and statement, recomputable from the ledger's invoices and the channel's program-as-run (wai.delivery.revenue_share) #539
Merged
dcharlot
merged 5 commits from 2026-10-29 19:35:16 -04:00
wai/fast-revenue-share into main 2026-10-29
wai_video_channel: the receipt's JSON carriage is the one JSON form
All checks were successful
WAI energy receipts / energy receipts · linux (pull_request) Successful in 10m42s
WAI conformance / delivery telemetry · CMCD and CMSD against an independent library (pull_request) Successful in 15s
WAI energy receipts / energy receipts · macos (pull_request) Successful in 8m18s
WAI examples / WAI examples · portable · linux (pull_request) Successful in 10m4s
WAI conformance / cross-arch byte-equality · linux-arm64 (pull_request) Successful in 36s
wai-quantum for JavaScript / javascript · linux (pull_request) Successful in 6m51s
wai-web wasm32 / wai-web wasm32 build · corpus, menu and writers (pull_request) Successful in 6m15s
WAI conformance / C2PA manifest emission · signed, read back, validated (pull_request) Successful in 2m28s
WAI conformance / cargo-class corpora · macos (pull_request) Successful in 13m24s
wai-ops-gpu integer operators on GPUs / Metal GPU and browser WebGPU (macos) (pull_request) Successful in 8m21s
standards workspaces build + test / macOS energy backends (pull_request) Successful in 14m46s
wai-pack / wai-pack · macos (pull_request) Successful in 3m46s
wai-quantum studio and desktop / desktop app · macos (pull_request) Successful in 2m58s
WAI Studio / Studio in WebKit · linux (pull_request) Successful in 10m38s
WAI conformance / cargo-class corpora · linux (pull_request) Successful in 18m3s
WAI conformance / each feature of the independent verifiers' steps compiles alone (pull_request) Successful in 13m3s
wai-sink-android native sink library / every ABI, the AAR, and the instrumented tests in a headless emulator · macos (pull_request) Successful in 5m12s
WAI examples / WAI examples · the archive, the readiness check, the browser and Apple · macos (pull_request) Successful in 18m46s
WAI energy receipts / energy receipts · linux-arm64 (pull_request) Successful in 11m3s
WAI examples / WAI examples · android-app · linux-arm64 (pull_request) Successful in 6m34s
WAI Studio / Studio in Chromium and Firefox · macos (pull_request) Successful in 11m56s
wai-pack / wai-pack · linux-arm64 (pull_request) Successful in 1m55s
wai-pack / wai-pack · the floor through a media prober (pull_request) Successful in 26s
WAI conformance / cargo-class corpora · linux-arm64 (pull_request) Successful in 25m34s
wai-pack / wai-pack · dependency licences (pull_request) Successful in 1m32s
wai-sink-android native sink library / the JNI layer and the platform-free half on the host JVM · linux-arm64 (pull_request) Successful in 2m31s
wai-sink-swift native sink package / libwai slices, desktop tests, simulator tests · macos (pull_request) Successful in 18m1s
wai-pack / wai-pack · independent verifier (Python) (pull_request) Successful in 7m13s
wai-quantum docs, course and locales / every command and snippet in the docs · linux (pull_request) Successful in 36m12s
WAI conformance / independent verifiers · claims, JWP, key discovery and integer payloads (Python) (pull_request) Successful in 1h4m5s
ChannelReceipt::to_json and from_json are the JSON form any record or tool that carries a channel receipt uses, so the channel family has one carriage, not one per extension. Co-Authored-By: Claude Opus 5.5 <[email protected]>
wai catalogue: the feature revenue_share, so its operations are available in a build that has it
Some checks failed
WAI conformance / delivery telemetry · CMCD and CMSD against an independent library (pull_request) Successful in 14s
wai-pack / wai-pack · macos (pull_request) Successful in 2m42s
WAI conformance / cross-arch byte-equality · linux-arm64 (pull_request) Successful in 43s
WAI examples / WAI examples · portable · linux (pull_request) Successful in 8m43s
WAI examples / WAI examples · the archive, the readiness check, the browser and Apple · macos (pull_request) Successful in 9m31s
wai-quantum studio and desktop / studio · browser (pull_request) Successful in 4m11s
WAI conformance / C2PA manifest emission · signed, read back, validated (pull_request) Successful in 2m23s
wai-quantum studio and desktop / desktop app · macos (pull_request) Successful in 4m48s
WAI conformance / cargo-class corpora · macos (pull_request) Successful in 13m27s
WAI energy receipts / energy receipts · linux (pull_request) Successful in 11m49s
wai-quantum for JavaScript / javascript · linux (pull_request) Successful in 6m31s
wai-sink-android native sink library / every ABI, the AAR, and the instrumented tests in a headless emulator · macos (pull_request) Successful in 5m44s
wai-ops-gpu integer operators on GPUs / Metal GPU and browser WebGPU (macos) (pull_request) Successful in 11m48s
joule-moq-web browser client / joule-moq-web · browser end-to-end (macos) (pull_request) Successful in 16m46s
WAI examples / WAI examples · android-app · linux-arm64 (pull_request) Successful in 5m41s
WAI Studio / Studio in Chromium and Firefox · macos (pull_request) Successful in 7m9s
WAI conformance / each feature of the independent verifiers' steps compiles alone (pull_request) Successful in 13m3s
WAI Studio / Studio in WebKit · linux (pull_request) Successful in 10m42s
wai-pack / wai-pack · linux-arm64 (pull_request) Successful in 1m56s
wai-pack / wai-pack · the floor through a media prober (pull_request) Successful in 20s
WAI energy receipts / energy receipts · linux-arm64 (pull_request) Successful in 10m41s
wai-pack / wai-pack · dependency licences (pull_request) Successful in 1m20s
wai-quantum docs, course and locales / every command and snippet in the docs · linux (pull_request) Successful in 16m10s
wai-web wasm32 / wai-web wasm32 build · corpus, menu and writers (pull_request) Successful in 12m55s
wai-sink-swift native sink package / libwai slices, desktop tests, simulator tests · macos (pull_request) Failing after 12m51s
wai-sink-android native sink library / the JNI layer and the platform-free half on the host JVM · linux-arm64 (pull_request) Successful in 2m31s
WAI conformance / cargo-class corpora · linux-arm64 (pull_request) Successful in 22m25s
wai-pack / wai-pack · independent verifier (Python) (pull_request) Successful in 6m55s
WAI conformance / independent verifiers · claims, JWP, key discovery and integer payloads (Python) (pull_request) Has been cancelled
WAI conformance / cargo-class corpora · linux (pull_request) Has been cancelled
Co-Authored-By: Claude Opus 5.5 <[email protected]>
wai: the revenue share's operations, registry entry, SPEC paragraph and CI
contract.create (wai contract create), contract.update (wai contract accept), statement.create (wai statement create) and statement.verify (wai statement verify), under the agent rules, with --dry-run samples in tests/cli_ops.rs and an end-to-end test in tests/revenue_share.rs. wai.delivery.revenue_share and its magics WRC1 and WRS1 in the registry, with the export regenerated; the catalogue export and Studio's generated actions regenerated; a SPEC §5 paragraph and a CHANGELOG entry. CI: the conformance step (module tests, the corpus test and revenue_share_verify.py), the feature in the feature lists, and cli_ops with quickstart,revenue_share in the catalogue job. Co-Authored-By: Claude Opus 5.5 <[email protected]>
wai: revenue_share_verify.py, the revenue share's second implementation
Written from extensions/revenue-share.md, sharing no code with wai-rs: reads every contract, run, marker and statement itself, verifies each ledger document with receipt_ledger_verify.py, recomputes every attribution, line, division and citation, and requires every mutated copy of the corpus and every weakened verifier to fail. The text states the aired test of a run exactly; the module's complex types are named. Co-Authored-By: Claude Opus 5.5 <[email protected]>
wai: the revenue share (wai.delivery.revenue_share): share contract, statement, corpus
extensions/revenue-share.md: the share contract (WRC1) an operator and every owner it names sign, mapping a channel's assets to splits of integer millionths with a rule for breaks between programmes; the program-as-run's JSON carriage, writing out the wai.video.channel receipt's signed bytes unchanged; impressions from the receipt ledger's verified invoices, placed by their instants and attributed to the programme on air; the statement (WRS1) of one party and one period, divided by the largest-remainder rule and citing its records. wai-rs: the revenue_share module (feature revenue_share), ChannelReceipt's JSON carriage, the corpus generator and tests/revenue_share.rs with the worked example. live-conformance/share/: the corpus, from fixed seeds and the ledger corpus's sources. Co-Authored-By: Claude Opus 5.5 <[email protected]>