From 0046db2b7b2f4da4117d1d5b351e6182f554b581 Mon Sep 17 00:00:00 2001 From: CRT Date: Wed, 26 Aug 2026 18:40:39 +0000 Subject: [PATCH] Run the gate in CI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Everything here already ran locally and every one of the checks has caught a real defect, but "it passed on my machine" is thin evidence for a registry whose whole premise is that other people install the SOURCE. A broken model does not reach them as a bad download they can retry; it reaches them as broken code inside their own project. The workflow runs the same gate the README documents: types, ~1,000 conformance checks, the support audit across every configuration, the GLB round trip, the documentation check, the registry protocol validation, the build. Two things worth noting about it. None of it needs a browser or a GPU — the conformance checks, the round trip and the renderer were all written headless, so this is an ordinary ubuntu runner and about a minute. And it uploads the contact sheet as an artifact, because every check in the list is geometric and not one of them can say "this does not look like a shovel"; the shovel was rewritten four times on the evidence of those PNGs and nothing else. Attaching the picture to the run is what makes that reviewable by someone other than me. The render invocation was tested rather than assumed: `bun run render -- --size 300 --out renders` does pass its flags through, which is the sort of line that otherwise fails once, on GitHub, after a push. --- .github/workflows/verify.yml | 76 ++++++++++++++++++++++++++++++++++++ README.md | 5 +++ 2 files changed, 81 insertions(+) create mode 100644 .github/workflows/verify.yml diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml new file mode 100644 index 0000000..61239d1 --- /dev/null +++ b/.github/workflows/verify.yml @@ -0,0 +1,76 @@ +# The gate that has to pass before anything ships. +# +# Every one of these runs locally too, and every one of them has caught a real +# defect. They are here so that "it passed on my machine" stops being the +# evidence: the registry is source other people install, and a broken model +# reaches them as broken source rather than as a bad download they can retry. +# +# There is no browser and no GPU in any of it. That is deliberate — the +# conformance checks, the GLB round trip and the renderer are all written to +# run headless, so CI needs no display and takes about a minute. +name: verify + +on: + push: + branches: [main] + pull_request: + workflow_dispatch: + +jobs: + verify: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: oven-sh/setup-bun@v2 + with: + bun-version: 1.3.14 + + - run: bun install --frozen-lockfile + + # The registry has to be built first: everything downstream reads either + # dist/registry.json or the source installed from it. + - name: Build the registry + run: bun run registry:build + + - name: Types + run: bun run typecheck + + # ~1,000 checks: geometry validity, three separate winding measures, + # coplanar-face detection, bounding limits, stable part identity across + # configure(), deterministic seeding, material ownership, idempotent + # disposal, action semantics, and agreement with the published metadata. + - name: Conformance + run: bun run verify + + # Nothing may hang in the air with nothing under it — checked across the + # default, both slider extremes, both ends of a sweep, every action and + # the midpoint of a morph. + - name: Support + run: bun scripts/audit.ts + + # Export every model to GLB, read it back, compare. + - name: GLB round trip + run: bun run verify:glb + + # The three READMEs against the kit they claim to describe. + - name: Documentation + run: bun run check:docs + + - name: Registry protocol + run: bunx vibe3d registry validate my-registry/dist/registry.json + + - name: Build + run: bun run build + + # A software rasteriser, no GPU. The contact sheet is uploaded because + # geometry checks cannot say "this does not look like a shovel", and + # having the picture attached to the run is what makes that reviewable. + - name: Render the contact sheet + run: bun run render -- --size 300 --out renders + + - uses: actions/upload-artifact@v4 + with: + name: contact-sheet + path: renders/_sheet.png + if-no-files-found: error diff --git a/README.md b/README.md index 2505bdb..1285cd0 100644 --- a/README.md +++ b/README.md @@ -106,6 +106,11 @@ Five of those deserve a note, because each was written after a real bug: Every check was mutation-tested: sabotage the code, confirm the check fails, restore, confirm it passes. A passing test is not evidence that it works. +All of it runs in CI on every push — headless, no browser and no GPU, about a +minute — and the contact sheet is uploaded with the run, because the geometry +checks cannot say "this does not look like a shovel" and the picture is what +makes that reviewable. + `render` closed the one gap all of the above left open. Every check was *geometric* — triangle counts, winding, coplanarity, bounds. All of them caught real bugs, and none of them could say "this shovel does not look like a shovel."