open-standards/.github/workflows/no-vanity-metrics.yml
Transaction Science 395f4a28df
All checks were successful
smart-byte conformance gate / Validate conformance JSON files (pull_request) Successful in 3s
smart-byte conformance gate / Second implementation reproduces every vector (pull_request) Successful in 4s
smart-byte conformance gate / Spec changes require vector-pack updates (pull_request) Successful in 3s
smart-byte conformance gate / VERSIONS.md and README.md must exist (pull_request) Successful in 3s
joule-code conformance gate / Build + round-trip C1-C4 vectors (pull_request) Successful in 1m39s
jouleclaw public surface must stay documented / Public-surface audit (jouleclaw-rs) (pull_request) Successful in 1m0s
no-vanity-metrics / Scan committed Markdown for vanity metrics (pull_request) Successful in 3s
no-vanity-metrics / WAI public text names no comparison (pull_request) Successful in 3s
no-vanity-metrics / WAI public text names no company or product (pull_request) Successful in 3s
standards workspaces build + test / eoc-rs (pull_request) Successful in 1m54s
standards workspaces build + test / jcp-rs (pull_request) Successful in 1m26s
standards workspaces build + test / proof-rs (pull_request) Successful in 1m15s
standards workspaces build + test / sandbox-rs (pull_request) Successful in 2m16s
standards workspaces build + test / smart-byte-rs (pull_request) Successful in 3m43s
wai cross-architecture byte-equality / linux-x86_64 (pull_request) Successful in 24s
WAI conformance / cargo-class corpora · linux (pull_request) Successful in 4m28s
WAI conformance / v2 vocabulary · manifests validate as stated (pull_request) Successful in 12s
WAI conformance / independent verifiers · claims, JWP, key discovery and integer payloads (Python) (pull_request) Successful in 2m11s
WAI conformance / cross-arch byte-equality · linux (pull_request) Successful in 23s
WAI conformance / C2PA manifest emission · signed, read back, validated (pull_request) Successful in 43s
WAI energy receipts / energy receipts · linux (pull_request) Successful in 1m25s
wai formal verification (integer core) / kani (pull_request) Successful in 6m44s
WAI JPEG-AI whole decode (pinned inputs, required) / fetch pinned JPEG-AI inputs → whole decode + pixel hash, required (pull_request) Successful in 59s
WAI neural decoders end-to-end / synthetic fixtures → Rust decode → reference (±4) (pull_request) Successful in 1m8s
WAI neural sink gates / model-free refusals of the neural sink (pull_request) Successful in 1m4s
WAI section references / cited sections exist (pull_request) Successful in 9s
WAI mbt2018_mean integer decode (regenerated vectors) / regenerate mbt2018_mean integer vectors → Rust decode, required (pull_request) Successful in 3m53s
wai-web wasm32 / wai-web wasm32 build · corpus, menu and writers (pull_request) Successful in 1m45s
standards workspaces build + test / jouleclaw-rs (pull_request) Successful in 2m33s
standards workspaces build + test / aac-rs (pull_request) Successful in 1m35s
standards workspaces build + test / joule-code-rs (pull_request) Successful in 56s
standards workspaces build + test / joulecontract-rs (pull_request) Successful in 39s
standards workspaces build + test / map-rs (pull_request) Successful in 38s
standards workspaces build + test / mesh-rs (pull_request) Successful in 31s
standards workspaces build + test / openpay (pull_request) Successful in 1m48s
wai cross-architecture byte-equality / linux-aarch64 (pull_request) Successful in 33s
WAI conformance / cargo-class corpora · linux-arm64 (pull_request) Successful in 5m40s
WAI conformance / cross-arch byte-equality · linux-arm64 (pull_request) Successful in 30s
WAI energy receipts / energy receipts · linux-arm64 (pull_request) Successful in 1m48s
standards workspaces build + test / arl-rs (pull_request) Successful in 3m54s
standards workspaces build + test / joule-ui-rs (pull_request) Successful in 3m54s
standards workspaces build + test / jouledesk-rs (pull_request) Successful in 3m44s
standards workspaces build + test / joulehook-rs (pull_request) Successful in 3m37s
standards workspaces build + test / sense-rs (pull_request) Successful in 3m38s
standards workspaces build + test / macOS energy backends (pull_request) Successful in 5m36s
wai cross-architecture byte-equality / macos-arm64 (reference) (pull_request) Successful in 33s
WAI conformance / cargo-class corpora · macos (pull_request) Successful in 7m39s
WAI conformance / cross-arch byte-equality · macos (pull_request) Successful in 33s
WAI energy receipts / energy receipts · macos (pull_request) Successful in 2m37s
ci: touch one workflow to test that the new group supersedes its own queue
Co-Authored-By: Claude Opus 5 <[email protected]>
2026-10-05 12:03:07 -04:00

142 lines
5.5 KiB
YAML

name: no-vanity-metrics
# Blocks reintroduction of codebase-state numbers (crate counts, test
# counts, LOC, "N+ adapters", etc.) into READMEs and other Markdown
# surfaces. Those numbers drift on every code change and create
# permanent sync debt with the websites; the open-standards posture is
# "describe the shape, not the size." See CONTRIBUTING.md for the
# rationale and the opt-out marker.
#
# Two more jobs hold WAI's public text (wai/) to its writing rules
# (wai/CONTRIBUTING.md, *Public text*): no comparative or promotional phrasing
# (a public phrase list), and no company, vendor, customer or product names
# (patterns kept private, in the WAI_NAME_DENYLIST secret; prints locations
# only). Both checks fail closed: a grep error or a pattern that does not compile
# fails the job, and scripts/test-public-text-checks.sh proves it on every run.
# The secret is given to one step, on a push to main only: a pull request runs
# code from its own branch, and a step of it that held the list could print it to
# a public log. Without the secret, a push to main fails; a pull request shows a
# failed (continue-on-error) step saying the name check did not run.
# One run per branch at a time. A push supersedes the run before it.
#
# There is one `macos` runner and it is the dev Mac, so every macOS job in this
# repo queues on it. With no concurrency group, a session pushing four versions
# of a branch queued four complete sets of runs and every one of them had to
# drain: on 2026-10-05 a PR's 21 contexts settled none in 70 minutes behind a
# backlog of 25 runs, and the queue grew faster than it cleared. Only the newest
# commit's verdict is wanted, so the older runs are cancelled.
#
# Verified on this forge (Forgejo 16.0.5) in `ci-test` before being added here:
# the key parses, and a newer push moves an older run to `cancelled` even while
# it is still queued, which is the case that matters.
#
# `cancel-in-progress: true` also applies to `main`. That is deliberate and
# safe here: main advances by merge commits whose tree contains the commits
# before them, so the newer run covers the older one's changes.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
paths:
- '**/*.md'
# The public-text checks below scan WAI's code comments and data too.
- 'wai/**/*.rs'
- 'wai/**/*.toml'
- 'wai/**/*.py'
- 'wai/**/*.sh'
- 'wai/**/*.js'
- 'wai/**/*.mjs'
- 'wai/**/*.json'
- 'wai/**/*.html'
- 'wai/**/*.css'
- 'wai/**/*.ttl'
- 'wai/**/*.h'
- 'wai/**/*.c'
- 'wai/**/*.txt'
- 'wai/**/.gitignore'
- '.github/workflows/no-vanity-metrics.yml'
- 'scripts/check-no-vanity-metrics.sh'
- 'scripts/check-comparative-prose.sh'
- 'scripts/check-public-names.sh'
- 'scripts/test-public-text-checks.sh'
push:
branches:
- main
paths:
- '**/*.md'
# The public-text checks below scan WAI's code comments and data too.
- 'wai/**/*.rs'
- 'wai/**/*.toml'
- 'wai/**/*.py'
- 'wai/**/*.sh'
- 'wai/**/*.js'
- 'wai/**/*.mjs'
- 'wai/**/*.json'
- 'wai/**/*.html'
- 'wai/**/*.css'
- 'wai/**/*.ttl'
- 'wai/**/*.h'
- 'wai/**/*.c'
- 'wai/**/*.txt'
- 'wai/**/.gitignore'
- '.github/workflows/no-vanity-metrics.yml'
- 'scripts/check-no-vanity-metrics.sh'
- 'scripts/check-comparative-prose.sh'
- 'scripts/check-public-names.sh'
- 'scripts/test-public-text-checks.sh'
jobs:
scan:
name: Scan committed Markdown for vanity metrics
runs-on: linux
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run scanner
run: bash scripts/check-no-vanity-metrics.sh
wai-comparative-prose:
name: WAI public text names no comparison
runs-on: linux
steps:
- name: Checkout
uses: actions/checkout@v4
- name: The two public-text checks fail closed (self-test)
run: bash scripts/test-public-text-checks.sh
- name: Run the comparative-prose check
run: bash scripts/check-comparative-prose.sh
wai-public-names:
name: WAI public text names no company or product
runs-on: linux
steps:
- name: Checkout
uses: actions/checkout@v4
# The list reaches this step only, and only on a push to main, whose code
# has been merged. Without the list the check cannot run, and that fails.
- name: Run the public-name check
if: github.event_name != 'pull_request'
env:
# Newline-separated patterns, never committed: a public list would
# publish the names it keeps out.
WAI_NAME_DENYLIST: ${{ secrets.WAI_NAME_DENYLIST }}
run: |
if [ -z "$WAI_NAME_DENYLIST" ]; then
echo "::error::WAI_NAME_DENYLIST is not set: the public-name check cannot run"
exit 1
fi
bash scripts/check-public-names.sh
# A pull request never receives the list. The step fails visibly without
# failing the job; the push to main runs the check.
- name: The public-name check did not run on this pull request
if: github.event_name == 'pull_request'
continue-on-error: true
run: |
echo "::warning::the public-name check does not run on a pull request (its pattern list is never given to pull-request code); it runs on the push to main"
exit 1
# (touched to test that this very change supersedes its own queued runs)