# Verifying the client — the full specification The detailed version of [Verifying the client](./client-architecture.md), for auditors and security reviewers: how a release is rebuilt and logged, what a release record holds, everything the page pins and how, the signed certificate, how the server checks the apps, and how a computer checks a phone or an installed app. > See also: [Verify it yourself](./verify.md) (run every check in your terminal) and [the attested > tier](./the-attested-tier.md) (the server side). --- ## Every release is a reproducible, logged build A release is not "whatever we deployed last". Each **Official** web release is rebuilt from its source commit inside a separate **build enclave** — an AWS Nitro enclave whose signing key is born inside it. Native apps use the platform-specific checks below. It signs a **release record**, which goes into an append-only release log and into **Rekor**, Sigstore's public transparency log. A record holds: | Field | What it is | |---|---| | `subject` | What was released: `web-app`, `android-app`, `ios-app`, `mac-app`, `linux-app`, `windows-app`, the enclaves' images, and `build-enclave` itself. | | `source.commit` | The commit it was rebuilt from; the source is kept sealed to the build enclave's key. | | `claim`, `measurement` | What the release claims and what the enclave measured — `frontendSha256` for the web app, `debSha256` for the Linux package, `macZipSha256` for the Mac zip, `setupSha256` / `exeSha256` for Windows, the app's hash and version for Android and iPhone. | | `checks`, `verdict` | Each check run (the rebuild among them) and `pass` or `fail`. | | `attestation` | The Nitro attestation binding the verdict to the enclave's image and its public key. | | `signature`, `rekor` | The enclave's signature and the Rekor entry (log index and inclusion proof). | The logs are served at `/audit/releases/.jsonl` on the app's site. A checker trusts a record only when it comes from a trusted build-enclave image — a few pinned by hand, and any image a trusted one rebuilt and logged under `build-enclave` — and its signature and Rekor entry hold. A web deploy is refused unless the bytes rebuild to the logged hash, and never moves backwards to an older release; an app's download is published only when a passing record names its exact bytes. **Native verification boundary.** The iPhone `ios-app` subject rebuilds the web bundle and compares every file under the IPA's `www/`; `ipaCheck.mjs` also checks its identity and build number and records signature-independent native program digests. Xcode compiles and signs those native programs on the Mac; they are not independently rebuilt inside the build enclave. The record's recipe identifies that toolchain, not a second native compilation. The Mac's separately compiled App Attest helper is covered by the signature/team check described under [installed files](#installed-files). Devices choose a channel: **Official** (the newest logged release), **Beta** (the newest build, not rebuilt by the enclave) or **Pinned** (one logged release the device keeps). Every build is served from its own folder with its own signed certificate. The service worker downloads a release completely before the app switches to it, and a device never moves back to a build older than one it has run. ## The page pins everything it loads The app's page is a **loader page**: its only script that runs by itself is a small loader, kept the same from release to release. Before anything else runs, the loader checks the build's signed certificate against the platform key pinned in it, and the certificate against the signed file list (below); a mismatch and nothing runs ("couldn't verify this app"). Only then does it start the page's scripts, each checked against that list, and the browser refuses anything else: | What | How it is pinned | |---|---| | **Every JavaScript module** | An import map carries a sha384 `integrity` for each module; the browser checks each module as it loads it (Chrome 127+, iOS Safari; older engines ignore it). | | **Script tags** | Subresource Integrity on each `