> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hex65.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Laps in CI

> Run laps on every change, fail the job on failing laps, and keep the evidence.

A CI job installs a pinned version, builds the twin from recordings committed or cached, and runs the regression set.

```sh theme={null}
curl -fsSL https://releases.hex65.com/install.sh | PROVING_VERSION=0.1.0 sh
```

```sh theme={null}
proving run --set regression --require-enforced --fail-on-fail --seed 1
proving results --json > results.json
```

* `--require-enforced` refuses to run without enforced containment. It is the default when the `CI` variable is set.
* `--fail-on-fail` exits with [code 30](https://docs.hex65.com/troubleshooting/exit-codes/30.md) when a lap fails, so the job fails.
* `PROVING_KEYCHAIN=file` keeps secrets in files when the runner has no keychain; `proving doctor` warns that it is weaker. Set `PROVING_KEYCHAIN_DIR` to a folder of the job's own to keep those files out of the runner's home.
* `PROVING_TOKEN` signs the job in, once API tokens arrive. It is sent to the service that `PROVING_API_URL` names, or to the hosted service when that is unset: set both when you use another service.

Every exit code is on [Exit codes](https://docs.hex65.com/reference/exit-codes.md). Keep the evidence: `proving evidence export <run>` writes a bundle anyone can re-score.

The gate, which compares each change with the last version and comments on the pull request, comes with M2 (coming, M2).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.