open-standards/.github/workflows/wai-catalogue.yml
Transaction Science f6bfd71ca9
Some checks failed
joule-moq-remote host agent / joule-moq-remote · does this change touch it (push) Successful in 1m7s
wai-app and Create / wai-app · does this change touch it (push) Successful in 1m44s
joule-moq-web browser client / joule-moq-web · does this change touch it (push) Successful in 1m46s
joule-moq-room room service / joule-moq-room · does this change touch it (push) Successful in 2m41s
WAI breaking changes and the conformance runner / WAI breaking · does this change touch WAI (push) Successful in 19s
wai-quantum energy-landscape jobs / does this change touch it (push) Successful in 23s
wai-key-proxy / does this change touch it (push) Successful in 1m54s
wai-quantum studio and desktop / does this change touch it (push) Successful in 1m51s
WAI operation catalogue / does this change touch it (push) Successful in 3m25s
wai key · Windows / does this change touch it (push) Successful in 1m58s
wai-fleet service / does this change touch it (push) Successful in 2m22s
wai-quantum for JavaScript / does this change touch it (push) Successful in 1m56s
wai-audit collector and player integration / does this change touch it (push) Successful in 3m34s
wai-ledger service / does this change touch it (push) Successful in 1m56s
wai-sink-android native sink library / does this change touch it (push) Successful in 1m28s
wai-sink-swift native sink package / does this change touch it (push) Successful in 1m26s
WAI Studio / does this change touch it (push) Successful in 1m32s
joule-moq-remote host agent / joule-moq-remote, every target (macos) (push) Successful in 1m32s
wai-quantum energy-landscape jobs / the same bits · macos (push) Successful in 5m53s
wai-app and Create / wai-app · Create, browser end-to-end (macos) (push) Successful in 8m50s
wai-fleet service / service · macos (push) Successful in 1m21s
wai-quantum studio and desktop / desktop app · macos (push) Successful in 4m43s
wai-ledger service / service · macos (push) Successful in 1m48s
wai-audit collector and player integration / collector, player integration and the browser end to end · macos (push) Successful in 1m59s
WAI Studio / Studio in Chromium and Firefox · macos (push) Failing after 2m51s
joule-moq-web browser client / joule-moq-web · browser end-to-end (macos) (push) Failing after 14m14s
wai-sink-android native sink library / every ABI, the AAR, and the instrumented tests in a headless emulator · macos (push) Successful in 6m29s
wai-app and Create / wai-app · tests, clippy, the line language's verifier (linux) (push) Successful in 31s
repository checks / lockfiles, advisories, tests in CI, workflow hygiene, spec and section references, public text (push) Has been cancelled
wai-audit collector and player integration / collector · linux (push) Has been cancelled
WAI operation catalogue / the catalogue and every door · linux (push) Has been cancelled
wai-quantum for JavaScript / javascript · linux (push) Has been cancelled
wai-quantum studio and desktop / studio · browser (push) Has been cancelled
wai-quantum studio and desktop / desktop app · linux (push) Has been cancelled
wai-sink-android native sink library / the JNI layer and the platform-free half on the host JVM · linux-arm64 (push) Has been cancelled
WAI Studio / the catalogue's actions, the unit tests and the core · linux (push) Has been cancelled
WAI Studio / Studio in WebKit · linux (push) Has been cancelled
wai-quantum studio and desktop / desktop app · windows (push) Has been cancelled
wai-sink-swift native sink package / libwai slices, desktop tests, simulator tests · macos (push) Has been cancelled
wai key · Windows / wai key and the toolchain's tests · windows (push) Failing after 1m40s
WAI breaking changes and the conformance runner / WAI breaking · wire, record and API against main · linux (push) Failing after 1m51s
wai-key-proxy / proxy · linux (push) Successful in 1m25s
wai-ledger service / service · linux (push) Successful in 2m16s
wai-quantum energy-landscape jobs / the module under wasm32-wasip2 (wasmtime) (push) Successful in 3m46s
WAI breaking changes and the conformance runner / WAI breaking and conform · their tests, and the independent verifiers through wai conform · linux (push) Successful in 5m14s
wai-quantum energy-landscape jobs / native against WebAssembly, over many seeds (push) Successful in 6m33s
wai-fleet service / service · linux (push) Successful in 7m5s
wai-quantum energy-landscape jobs / reader, kernels, answers and the stated result · linux, release (push) Successful in 11m35s
joule-moq-remote host agent / joule-moq-remote, every target (linux-arm64) (push) Successful in 2m6s
joule-moq-room room service / joule-moq-room, every target (push) Successful in 5m44s
wai-quantum energy-landscape jobs / the same bits · linux-arm64 (push) Successful in 7m52s
wai target and wai auth: a named service and a kept key, and one --target on every operation that acts on a service
- wai target add|use|list|remove (target.create, .update, .list, .delete): a name for a service's
  address, kept in the project's wai.json (its new targets member, in the schema) or the person's
  own list, never with a key; --read-only refuses every change (exit 3, target-read-only).
- wai auth login|status|logout (credential.create, .list, .delete): the key read from standard
  input, kept for its origin in the keychain on macOS or a file only its owner reads; WAI_TOKEN
  ahead of it; sent as a bearer over https:// or to this machine alone; never in wai.json, a
  list, output, a plan, a log or an error, a service's echo of it redacted.
- --target is catalogue::TARGET wherever it is taken, on operations placed off this machine: the
  fleet's four take a target's name or an address; an unknown name is exit 5, target-not-found.
- The forty operations of the room service's API answer to their mechanical form, sent to their
  route under the target (--query, --body), a change waiting for --yes, a dry run sending nothing.
- wai mcp --target serves them as tools, changes only to a target on this machine or with
  --allow-write; never with --read-only or to a read-only target.
- wai stage refine --toward, --target its deprecated spelling there (wai/DEPRECATIONS.md).
- tests/cli_target.rs, against a stand-in service; ops.json and Studio's actions regenerated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-08 09:39:06 -05:00

181 lines
9.1 KiB
YAML

name: WAI operation catalogue
# WAI's toolchain has one catalogue of operations, `noun.verb` (wai/wai-rs/src/catalogue.rs),
# and every door names them by it. This workflow fails on drift:
#
# - the export, wai/catalogue/ops.json, is the table (`wai ops export --check`);
# - the table keeps its naming rules (the library's catalogue tests);
# - the command line reaches operations through the catalogue alone, and every operation
# keeps the agent rules: its help, the exit codes, the JSON envelope, --dry-run on every
# operation that is not read-only, --yes (tests/cli_ops.rs, and the binary's own tests);
# - the other doors name operations as the catalogue does: MCP tool names, the services'
# OpenAPI operationIds, the C header, and the Swift and Kotlin sinks
# (scripts/check-wai-ops-doors.py, with its selftest).
#
# Push filters match the push's delta, so every path a door or a test reads is listed.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches: [main]
paths:
- 'wai/wai-rs/**'
- 'wai/catalogue/**'
- 'wai/examples/**'
# The project file's reader (dx/project.rs, in the binary's tests) holds wai.json's schema to it.
- 'wai/schema/**'
- 'wai/http-conformance/**'
- 'wai/score-conformance/**'
- 'wai/live-conformance/fleet/**'
# tests/cli_ops.rs builds the revenue share's --dry-run sample from this corpus.
- 'wai/live-conformance/share/**'
- 'wai/live-conformance/channels/**'
# tests/cli_key.rs signs a conformance record against this corpus and an upscale with this prior.
- 'wai/jwp-conformance/**'
- 'wai/live-conformance/upscale/**'
# tests/cli_toolchain.rs holds wai --version and the deprecations to these, and searches the text.
- 'wai/CHANGELOG.md'
- 'wai/VERSIONING.md'
- 'wai/DEPRECATIONS.md'
- 'wai/SPEC.md'
- 'wai/registry/**'
- 'wai/REGISTRY.md'
- 'wai/LICENSE'
- 'wai/wai-quantum/**'
- 'wai/wai-ops/**'
- 'wai/wai-app/**'
- 'wai/wai-sink-swift/**'
- 'wai/wai-sink-android/**'
- 'joule-code/joule-code-rs/crates/*/openapi.json'
- 'scripts/check-wai-ops-doors.py'
- 'scripts/check-wai-ops-doors-selftest.sh'
- 'rust-toolchain.toml'
- '.github/workflows/wai-catalogue.yml'
pull_request:
paths:
- 'wai/wai-rs/**'
- 'wai/catalogue/**'
- 'wai/examples/**'
# The project file's reader (dx/project.rs, in the binary's tests) holds wai.json's schema to it.
- 'wai/schema/**'
- 'wai/http-conformance/**'
- 'wai/score-conformance/**'
- 'wai/live-conformance/fleet/**'
# tests/cli_ops.rs builds the revenue share's --dry-run sample from this corpus.
- 'wai/live-conformance/share/**'
- 'wai/live-conformance/channels/**'
# tests/cli_key.rs signs a conformance record against this corpus and an upscale with this prior.
- 'wai/jwp-conformance/**'
- 'wai/live-conformance/upscale/**'
# tests/cli_toolchain.rs holds wai --version and the deprecations to these, and searches the text.
- 'wai/CHANGELOG.md'
- 'wai/VERSIONING.md'
- 'wai/DEPRECATIONS.md'
- 'wai/SPEC.md'
- 'wai/registry/**'
- 'wai/REGISTRY.md'
- 'wai/LICENSE'
- 'wai/wai-quantum/**'
- 'wai/wai-ops/**'
- 'wai/wai-app/**'
- 'wai/wai-sink-swift/**'
- 'wai/wai-sink-android/**'
- 'joule-code/joule-code-rs/crates/*/openapi.json'
- 'scripts/check-wai-ops-doors.py'
- 'scripts/check-wai-ops-doors-selftest.sh'
- 'rust-toolchain.toml'
- '.github/workflows/wai-catalogue.yml'
jobs:
# The path filters gate the trigger; this job gates the work from the pull request's own
# diff (scripts/pr-touches-paths.py, reading the list above), as wai-pack.yml explains.
relevant:
name: does this change touch it
runs-on: gate
outputs:
run: ${{ steps.gate.outputs.run }}
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- id: gate
run: |
set -euo pipefail
r=$(python3 scripts/pr-touches-paths.py .github/workflows/wai-catalogue.yml \
"${{ github.event.pull_request.base.sha }}" \
"${{ github.event.pull_request.head.sha }}")
echo "this change touches the operation catalogue: $r"
echo "run=$r" >> "$GITHUB_OUTPUT"
catalogue:
name: the catalogue and every door · linux
needs: relevant
if: needs.relevant.outputs.run == 'true'
runs-on: linux
timeout-minutes: 60
steps:
- uses: actions/checkout@v5
- name: Install Rust 1.99.1
shell: bash
run: |
export PATH="$HOME/.cargo/bin:$PATH"
command -v rustup >/dev/null 2>&1 || \
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain 1.99.1
rustup toolchain install 1.99.1 --profile minimal
rustup default 1.99.1
SUDO=""; [ "$(id -u)" -ne 0 ] && SUDO="sudo"
command -v python3 >/dev/null || { $SUDO apt-get update -qq; $SUDO apt-get install -y -qq python3; }
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
# The export other tools and this workflow's door check read is the table, byte for
# byte; the message says how to regenerate it.
- name: The catalogue's export is up to date
working-directory: wai/wai-rs
run: cargo run -q --locked --no-default-features --bin wai -- ops export --check ../catalogue/ops.json
- name: Every door names its operations as the catalogue does
shell: bash
run: |
set -euo pipefail
bash scripts/check-wai-ops-doors-selftest.sh
python3 -I scripts/check-wai-ops-doors.py
# The library's catalogue tests: the naming rules, each broken in a copy of the table
# and refused. The binary's own tests: every implementation names an operation of the
# catalogue and every operation with a command line has one; help is the catalogue's.
# tests/cli_ops.rs: wai ops, help, the exit codes, the envelope, --dry-run and --yes (and
# --confirm, its deprecated spelling),
# first in the archive's build (quickstart), then with every command-line feature that
# needs no system library, so --dry-run is held on generate, score and stage too, with
# Create's (app), so it is held on wai app export, with the revenue share's
# (revenue_share), so it is held on wai contract create|accept and wai statement create, and
# with the opportunity report's (opportunity_report), so it is held on wai opportunity
# create and wai statement check. tests/cli_key.rs: wai key, its keystore, and --key <name> on
# the operations that sign, first in the archive's build, then with the features whose
# operations read --key apart (the revenue share, the exact derivations) and with
# key_discovery, whose wai-keys reads what wai key exports. tests/cli_toolchain.rs: wai --version
# and the one version it names, wai docs search and wai registry show, the deprecation notice,
# and wai/DEPRECATIONS.md held to the catalogue. tests/cli_target.rs: wai target, wai auth,
# --target on the fleet's operations and on every operation of a service's API, and wai mcp
# --target, against a stand-in service: a key never written, printed or logged, a read-only
# target refusing every change, an unknown target exit 5.
- name: The catalogue's rules, and the command line through it
shell: bash
working-directory: wai/wai-rs
run: |
set -euo pipefail
ran() { grep -qE '^test result: ok\. [1-9][0-9]* passed; 0 failed' "$1" || { echo "::error::no test ran in $1"; exit 1; }; }
cargo test --locked --no-default-features --lib catalogue 2>&1 | tee "$RUNNER_TEMP/lib.log"
ran "$RUNNER_TEMP/lib.log"
cargo test --locked --no-default-features --features quickstart --bin wai --test cli_ops --test cli_key --test cli_toolchain --test cli_target 2>&1 | tee "$RUNNER_TEMP/cli.log"
ran "$RUNNER_TEMP/cli.log"
cargo test --locked --no-default-features --features quickstart,key_discovery,revenue_share,exact_upscale,exact_tonemap --test cli_key 2>&1 | tee "$RUNNER_TEMP/cli-key.log"
ran "$RUNNER_TEMP/cli-key.log"
cargo test --locked --no-default-features --features quickstart,generate,score,staged,video_int,audio_int,splat_int,exact_upscale,exact_tonemap --test cli_ops 2>&1 | tee "$RUNNER_TEMP/cli-full.log"
ran "$RUNNER_TEMP/cli-full.log"
cargo test --locked --no-default-features --features quickstart,app --test cli_ops 2>&1 | tee "$RUNNER_TEMP/cli-app.log"
ran "$RUNNER_TEMP/cli-app.log"
cargo test --locked --no-default-features --features quickstart,revenue_share --test cli_ops 2>&1 | tee "$RUNNER_TEMP/cli-share.log"
ran "$RUNNER_TEMP/cli-share.log"
cargo test --locked --no-default-features --features quickstart,opportunity_report --test cli_ops 2>&1 | tee "$RUNNER_TEMP/cli-opportunity.log"
ran "$RUNNER_TEMP/cli-opportunity.log"