wai-quantum: an optimisation stops and goes on to the same bytes #608
Merged
dcharlot
merged 2 commits from 2026-11-04 10:26:30 -05:00
wai/quantum-optimize-resume-2 into main 2026-11-03
wai-quantum docs: the checkpoint example runs, and shows its claim
All checks were successful
wai-quantum views in agent hosts / views · the page and its engine (pull_request) Successful in 4m1s
wai-web reach builds / wai-web reach builds · the package of record, every output as recorded (pull_request) Successful in 2m22s
wai-quantum WebGPU member / member · GPU, Vulkan (jetson-hub) (pull_request) Successful in 22m0s
wai-sink-swift native sink package / libwai slices, desktop tests, simulator tests · macos (pull_request) Successful in 13m5s
wai-quantum studio and desktop / studio · browser (pull_request) Successful in 8m24s
wai-web reach builds / wai-web reach builds · this tree's wai-web, every rung on its engine line (pull_request) Successful in 5m19s
wai-quantum tensor-engine member / member · tensor engine, the kernel toolchain's simulator (linux) (pull_request) Successful in 9m19s
wai-web wasm32 / wai-web wasm32 build · corpus, menu and writers (pull_request) Successful in 6m2s
wai-quantum studio and desktop / desktop app · linux (pull_request) Successful in 12m5s
WAI Studio / Studio in WebKit · linux (pull_request) Successful in 11m43s
WAI conformance / v2 vocabulary · manifests validate as stated (pull_request) Successful in 18s
standards workspaces build + test / joule-code-rs (joule-code/joule-code-rs, joule-code-rs, linux-arm64, true) (pull_request) Successful in 6m45s
wai-quantum docs, course and locales / every command and snippet in the docs · linux (pull_request) Successful in 40m6s
WAI conformance / each feature of the independent verifiers' steps compiles alone (pull_request) Successful in 10m16s
WAI conformance / delivery telemetry · CMCD and CMSD against an independent library (pull_request) Successful in 11s
WAI conformance / cross-arch byte-equality · linux-arm64 (pull_request) Successful in 30s
WAI conformance / C2PA manifest emission · signed, read back, validated (pull_request) Successful in 2m15s
WAI conformance / cargo-class corpora · linux-arm64 (pull_request) Successful in 26m33s
wai-quantum HIP member / member · HIP absent (linux-arm64) (pull_request) Successful in 1m32s
wai-quantum npu-cores member / member · npu-cores absent (linux-arm64) (pull_request) Successful in 35s
wai-quantum pulse and dynamics / the same bits · linux-arm64 (pull_request) Successful in 2m8s
WAI energy receipts / energy receipts · linux-arm64 (pull_request) Successful in 12m15s
wai-quantum tensor-engine member / member · tensor engine absent (linux-arm64) (pull_request) Successful in 18s
WAI examples / WAI examples · android-app · linux-arm64 (pull_request) Successful in 8m8s
wai-quantum variational and algorithm library / parameters, gradients, optimisers, VQE, QAOA and builders · linux-arm64, release (pull_request) Successful in 1m44s
wai-quantum extension points / the registry and the example · linux-arm64 (pull_request) Successful in 3m58s
wai-sink-android native sink library / the JNI layer and the platform-free half on the host JVM · linux-arm64 (pull_request) Successful in 3m42s
WAI conformance / independent verifiers · claims, JWP, key discovery and integer payloads (Python) (pull_request) Successful in 59m58s
wai-quantum WebGPU member / member · DX12 and Vulkan (cbio-windows) (pull_request) Successful in 12m2s
wai-quantum studio and desktop / desktop app · windows (pull_request) Successful in 10m56s
The page's --checkpoint example was a shell block marked neither runnable nor norun, which the docs check refuses. It now runs: a whole run, the same run stopped by --slice (exit 2) and gone on with, and cmp of the two answers, so the page holds the command line to "the same bytes as a run that never stopped", receipt and all. Co-Authored-By: Claude Opus 5.5 <[email protected]>
wai-quantum: an optimisation stops and goes on to the same bytes
Some checks failed
wai-quantum WebGPU member / shader checks · browser build · wasip2 inertness · MSRV (pull_request) Successful in 3m25s
wai-web reach builds / wai-web reach builds · the package of record, every output as recorded (pull_request) Successful in 3m0s
wai-quantum docs, course and locales / every command and snippet in the docs · linux (pull_request) Failing after 21m6s
wai-sink-android native sink library / every ABI, the AAR, and the instrumented tests in a headless emulator · macos (pull_request) Successful in 5m37s
wai-quantum views in agent hosts / views · a scripted host (pull_request) Successful in 7m7s
wai-quantum WebGPU member / member · Metal (macos) (pull_request) Successful in 8m38s
wai-web wasm32 / wai-web wasm32 build · corpus, menu and writers (pull_request) Successful in 7m25s
WAI Studio / Studio in WebKit · linux (pull_request) Successful in 10m49s
wai-sink-swift native sink package / libwai slices, desktop tests, simulator tests · macos (pull_request) Successful in 12m16s
standards workspaces build + test / macOS energy backends (pull_request) Successful in 38m37s
wai-quantum tensor-engine member / member · tensor engine, the kernel toolchain's simulator (linux) (pull_request) Successful in 16m37s
wai-web reach builds / wai-web reach builds · this tree's wai-web, every rung on its engine line (pull_request) Successful in 12m6s
WAI Studio / Studio in Chromium and Firefox · macos (pull_request) Successful in 24m35s
standards workspaces build + test / joule-code-rs (joule-code/joule-code-rs, joule-code-rs, linux-arm64, true) (pull_request) Has been cancelled
WAI conformance / cargo-class corpora · linux-arm64 (pull_request) Has been cancelled
WAI conformance / v2 vocabulary · manifests validate as stated (pull_request) Has been cancelled
WAI conformance / independent verifiers · claims, JWP, key discovery and integer payloads (Python) (pull_request) Has been cancelled
WAI conformance / each feature of the independent verifiers' steps compiles alone (pull_request) Has been cancelled
WAI conformance / delivery telemetry · CMCD and CMSD against an independent library (pull_request) Has been cancelled
WAI conformance / cross-arch byte-equality · linux-arm64 (pull_request) Has been cancelled
WAI conformance / C2PA manifest emission · signed, read back, validated (pull_request) Has been cancelled
WAI energy receipts / energy receipts · linux-arm64 (pull_request) Has been cancelled
WAI examples / WAI examples · android-app · linux-arm64 (pull_request) Has been cancelled
wai-quantum HIP member / member · HIP absent (linux-arm64) (pull_request) Has been cancelled
wai-quantum npu-cores member / member · npu-cores absent (linux-arm64) (pull_request) Has been cancelled
wai-quantum pulse and dynamics / the same bits · linux-arm64 (pull_request) Has been cancelled
wai-quantum extension points / the registry and the example · linux-arm64 (pull_request) Has been cancelled
wai-quantum tensor-engine member / member · tensor engine absent (linux-arm64) (pull_request) Has been cancelled
wai-quantum variational and algorithm library / parameters, gradients, optimisers, VQE, QAOA and builders · linux-arm64, release (pull_request) Has been cancelled
wai-sink-android native sink library / the JNI layer and the platform-free half on the host JVM · linux-arm64 (pull_request) Has been cancelled
A long optimisation ran to its end in one process or not at all; one killed partway lost every step. The engine's optimiser now runs from a checkpoint (engine::variational::optimize_resumable, call_optimize): after every step its caller has the run as it stands and may stop it there, and the checkpoint, wai.quantum.optimize-checkpoint/1, holds the steps taken with their links and the optimiser's whole state (the point, Adam's moments and the powers of its betas, SPSA's stream, the best point and the counts), every number as the bits of its f64. Gone on with from any step, a run ends with the same bytes as one that never stopped, for each optimiser; a checkpoint of another request, or one whose steps were changed, is refused (J052). wai-quantum optimize --checkpoint FILE keeps the state in FILE as it goes (at most once a second, and when it stops; written whole or not at all), goes on from FILE when it is there, and removes it when the run ends; a run killed and started again with the same arguments ends with the same bytes, receipt and all. --slice N takes at most N steps, then stops with the state kept (exit 2). Co-Authored-By: Claude Opus 5.5 <[email protected]>