Skip to main content
proving is one executable for macOS (Apple silicon and Intel) and Linux (x64 and arm64). Windows is not supported yet.

The install script

What it does, in order, and nothing else:
  1. Reads the version to install: PROVING_VERSION, or else the newest of the channel (PROVING_CHANNEL: stable, the default, or canary), from a pointer whose signature it checks first.
  2. Downloads the checksums for that version and checks their signature against the release key written in the script.
  3. Downloads the binary for this machine and checks its SHA-256 against those checksums.
  4. Runs the new binary’s self-test (--self-test). If that fails, it checks and uses the fallback archive instead (below).
  5. Moves it into place, ~/.local/bin unless PROVING_INSTALL_DIR says otherwise.
It never uses sudo, never edits your shell’s startup files (it prints a PATH hint instead), and contacts only the release host. Read it before you run it: each release’s notes give the script’s SHA-256.

Verify the script before it runs

The script checks everything it downloads, but the script itself is not checked before it runs: it is only as trustworthy as the release host and your connection to it. To check it first, take it from the release’s own directory, whose SHA256SUMS is signed with the release key:
For a canary version, the key is ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOGnseXgnQWCR2m3Li2alsbECxWj/bAlLXzd7zVifh0B. A Homebrew formula comes with the first public release (coming, M1).

Check the installation

The self-test checks that this binary can run here: its bundled files are intact, its cryptography works, and it can listen on loopback.
A fuller self-test measures known truths on this machine: it runs the product’s own laps, grading, statistics, recording, evidence and containment on built-in agents whose behavior is known, and compares what it measures with the truth. Every check also runs a control, an input it must reject, so a check that could not fail does not pass. It needs no sign-in, network or provider key, and it works in a folder of its own that it removes at the end:
--full adds the checks that take longer, and --json prints the report in the self-test report format.

Pin a version for CI

Set the version, so every job installs the same binary:
See Laps in CI for the rest of a CI job.

A machine with no network

Download the binary (.gz) or the fallback archive (.tar.gz) on another machine, with its SHA256SUMS and SHA256SUMS.sig, copy them over, and install from the file:
With --sha256 <hex> it checks the file against that hash instead of the signed checksums.

Fallback

If the binary does not start on this machine (its self-test fails, or the operating system refuses it), use the fallback archive: the same program as a Node.js runtime, the bundle and a launcher. The install script switches to it on its own when the self-test fails. To install it by hand, download proving-<version>-<platform>.tar.gz with the checksums, and install it from the file as above. The archive is checked the same way as the binary.

Update

update checks the new version’s signature and checksum before it replaces the binary. Set PROVING_NO_UPDATE_CHECK=1 to stop the daily notice of a newer version.

Remove

Delete the binary, then your data if you want it gone too: ~/.local/share/proving (recordings, runs, twins, keys) and ~/.config/proving. The project directory in your repository is yours.