Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Sail

Sail makes repeated Verus verification faster. It keeps solver answers and complete proofs that still match your inputs, so a small edit does not have to repeat all the work of the previous check.

Use it in place of cargo verus verify, or point it at a standalone Verus file. Coding agents can use the same workflows through MCP. Sail uses its own Verus and pinned Z3; you do not need to replace an existing Verus installation.

Start with installation and the quickstart. The quickstart takes one proof through a successful check, a failing edit, and an undo. For an existing Cargo project, the workspace guide covers Cargo verification, JSON reports, background jobs, and watch mode.

For Z3 work outside Rust, the SMT runtime accepts versioned requests containing complete SMT-LIB transcripts and reuses matching decided results across runs. The MCP reference shows how to give an agent access to both verification and solver tools.

The standalone guide covers individual files.

The reuse guide explains the different caches and when they apply. Performance records measurements and their workloads; compatibility and known issues cover unsupported setups and workarounds.

Install Sail

Actual archive checks and their limits are recorded in the installer validation.

Sail currently supports Linux x86-64 with glibc 2.39 or newer (Ubuntu 24.04, for example), and Apple-silicon macOS. It ships its own Verus and pinned Z3. Your existing Verus installation is left alone. Sail is distributed as prebuilt archives on GitHub releases under the MIT licence. Stable sail-solve 0.2.0 is also published to crates.io; its package and installation qualification is recorded in the crate-publication gate. The native archives and attestations are bound in the release record.

Cargo installation

Use Rust 1.99 or newer, a C toolchain, Rustup and Python 3. Install the verifier’s Rust pin, then the CLI and its pinned runtime:

rustup toolchain install 1.99.1 --profile minimal --component rust-src
cargo +1.99.1 install sail-solve --version 0.2.0 --locked
sail engine install
sail engine status
sail verify proof.rs

Cargo installs sail and the adjacent sail-solve-z3 shim. The explicit engine installer downloads the committed runtime over HTTPS, checks its archive digest, provenance and every runtime file, and installs it under Sail’s cache. It uses the same installer as source/CI runtime setup. It needs no repository checkout or GitHub credential. Existing conflicting or corrupted runtime installs are refused; they are never silently overwritten. sail engine install --from PATH continues to import an existing validated runtime.

Cargo installations establish their own vstd and target proofs; GitHub archives additionally ship their preverified vstd and signed replies. Reuse still requires the same complete inputs and Current provenance. Rustup installs the explicit verifier toolchain without changing your default. Project toolchain choices remain authoritative; see background preparation when a setup verifies without managed reuse.

Guided installation

Install a C toolchain, rustup and Python 3.9 or newer first. Use the installer from the selected Sail checkout. Choose an explicit version; the installer does not select a moving latest release:

python3 scripts/install.py --version VERSION --install-toolchain

With authenticated GitHub CLI (gh), the installer downloads through it; otherwise it uses ordinary GitHub release downloads. It never stores credentials. A downloaded archive can instead be installed offline, with its adjacent .sha256 file:

python3 scripts/install.py --archive ./sail-VERSION-aarch64-apple-darwin.tar.gz \
  --prefix ~/.local/opt

When authenticated gh is available, the installer first verifies the archive’s build-provenance attestation and refuses an archive that fails it. Without signed-in gh, it prints a note and continues with the checksum alone; --require-attestation makes the attestation mandatory. The installer verifies the checksum, checks the platform and archive layout, and validates the actual bundled runtime before making the installation available. It refuses an existing installation directory. An interrupted or failed check does not publish a partial installation; retry the same command. Every installed file and directory gets exactly the mode the archive records, whatever your umask, because the shipped vstd proof is admitted only for an installation that matches the release index’s modes. --install-toolchain explicitly installs the bundled verifier’s Rust pin with rust-src through rustup. Without it, no Rust installation is attempted. The default toolchain, shell profiles and existing installations are unchanged. Add the printed PATH line to your shell profile. The archive remains together under the prefix; do not move just its executables.

To install without Python, see manual installation.

Manual installation

Install the prerequisites first: a C toolchain and curl. On Debian or Ubuntu, run sudo apt-get install -y build-essential curl. On macOS, run xcode-select --install.

Pick the archive for your platform:

PlatformArchive
Linux x86-64, glibc 2.39 or latersail-VERSION-x86_64-unknown-linux-gnu.tar.gz
macOS on Apple siliconsail-VERSION-aarch64-apple-darwin.tar.gz

Download it with its .sha256 file, check it, unpack it and put its bin/ on PATH:

VERSION=0.2.0                      # the release you are installing
TARGET=x86_64-unknown-linux-gnu    # or aarch64-apple-darwin
base="https://github.com/Chelis-Lang/sail/releases/download/v$VERSION"
curl -fLO "$base/sail-$VERSION-$TARGET.tar.gz"
curl -fLO "$base/sail-$VERSION-$TARGET.tar.gz.sha256"
shasum -a 256 -c "sail-$VERSION-$TARGET.tar.gz.sha256"   # or: sha256sum -c
mkdir -p ~/.local/opt
tar -C ~/.local/opt -xzf "sail-$VERSION-$TARGET.tar.gz"
export PATH="$HOME/.local/opt/sail-$VERSION-$TARGET/bin:$PATH"   # add to your shell profile
sail --version

The check must print OK. Keep the unpacked directory together: sail finds sail-z3 beside it in bin/ and its Verus in engine/. On macOS, an archive downloaded with a browser is quarantined; clear that with xattr -dr com.apple.quarantine ~/.local/opt/sail-$VERSION-$TARGET.

Then install the Rust toolchain Verus pins, with its sources:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
. "$HOME/.cargo/env"
rustup toolchain install 1.99.1 --profile minimal --component rust-src
sail engine status                 # checks Sail's Verus against its pins

This doesn’t change your default toolchain.

Rust toolchain and the preverified vstd

sail verify runs Cargo with the pinned toolchain on its own, so the release’s preverified vstd (recorded with Cargo 1.99.1) applies whatever your default Cargo is. A RUSTUP_TOOLCHAIN you set, a project’s rust-toolchain.toml, a rustup override or an explicit CARGO takes precedence, and then vstd may be verified again. Sail never installs a toolchain itself.

The archive records a finite list of exact vstd setups:

  • the vstd version sail new writes, with its default dependency resolution and features;
  • the pinned Vest registry closure with vstd alloc/std and default features disabled, recorded separately at the default limit and --rlimit 100 (qualification and limits).

Each setup also requires:

  • the pinned toolchain with rust-src and no extra components, since rustc-dev or llvm-tools change what rustc loads;
  • no forwarded Verus flags other than a supported --rlimit.

Each proof binds its own exact dependency versions, features and original verification run. Sail does not change a project’s manifest or lockfile to match a profile. Other Vest resolutions, CapybaraKV and Anvil are not covered by adding this exact profile.

Otherwise Sail verifies vstd in the project, with the same results, and answers identical solver queries from signed replies shipped in the archive.

Verus flags after -- reach vstd too, as with cargo verus verify. To keep them off vstd, pass --fwd-verus-args-to roots before --, as with stock: sail verify --fwd-verus-args-to roots -- --rlimit 100.

Verify provenance

The .sha256 file comes from the same release as its archive, so it detects a damaged download but not a replaced one. Each release archive also carries a GitHub artifact attestation signed for Chelis-Lang/sail’s release workflow. To check a downloaded archive yourself, with GitHub CLI signed in:

gh attestation verify sail-VERSION-TARGET.tar.gz --repo Chelis-Lang/sail

It must report a verified attestation for the archive’s SHA-256. Check the checksum as well (shasum -a 256 -c sail-VERSION-TARGET.tar.gz.sha256). The archives are built by the project’s release script, not on GitHub’s runners; the attestation binds each archive’s digest to this repository, so a substituted asset fails it. See releasing.

First verification and existing projects

sail engine status
sail new --lib demo
cd demo
sail verify

sail engine status validates and identifies the selected runtime and prints its rust_toolchain pin. Missing Rust sources cause proof-bundle reuse to be skipped; install that pin with rust-src using the command printed by Sail. An explicit project or environment toolchain selection takes precedence over Sail’s managed Cargo selection.

For an existing compatible project, run sail verify with the arguments you would give cargo verus verify. Installation does not edit its source, manifest or lockfile. Sail supports one Verus version, not arbitrary historical Verus/vstd combinations. The compatibility guide describes that pin and its known project limitations.

On a fresh project, a SAIL3138 note (in --output json, or on stderr with SAIL_EXPLAIN=1) explains why a shipped vstd proof cannot be used. A different dependency resolution, extra compiler components or forwarded verifier flags can cause this. So can an installation whose directory modes differ from the release index. An installation made under umask 002 (Ubuntu’s default) by scripts/install.py from release candidates up to 0.1.0-rc.7 is refused this way, with a note that wrongly blames the toolchain or Verus; reinstall it. Verification continues normally, with exact solver caching still available. Do not rewrite a real project’s lockfile merely to reproduce a benchmark’s bundle hit.

To switch back, use your existing cargo verus verify command. Remove a Sail installation by removing its directory and the corresponding PATH entry. Managed project caches can be reclaimed independently with sail cache projects prune; see disk use.

Your first proof

These examples use a POSIX shell on Linux x86-64 or Apple-silicon macOS. Install Sail 0.2.0 through Cargo:

rustup toolchain install 1.99.1 --profile minimal --component rust-src
cargo +1.99.1 install sail-solve --version 0.2.0 --locked
sail engine install
sail engine status

The package is called sail-solve; the command is sail. sail engine install downloads Sail’s pinned Verus and Z3. sail engine status should report that the engine is available.

Native release archives are another option; they include the runtime and preverified vstd. The installation guide covers prerequisites and both routes.

Start with one file

Use a new directory for the example:

mkdir sail-proof-demo
cd sail-proof-demo

Save this as proof.rs:

use vstd::prelude::*;

verus! {
    proof fn addition() {
        assert(2 + 2 == 4);
    }
}

fn main() {}

The first check may take longer while Sail prepares vstd, Verus’s standard library. Sail handles this; there is no separate setup command. From the example directory, run:

sail verify proof.rs
sail verify proof.rs --output json

The proof should pass. The second command returns a structured report instead of the usual verifier output. Sail records a successful full check so a later unchanged call can reuse its proof. This record is called a proof receipt.

Change the assertion to assert(2 + 2 == 5); and verify again. This check should fail and identify the assertion. Restore 4 and run sail verify proof.rs --output json once more. In a reused result, targets[0].reused is true and targets[0].establishing_run names the earlier successful check. It verifies again if it cannot confirm that the earlier inputs still match. The standalone guide explains reuse and file-layout requirements.

Verify a Cargo project

As a separate exercise, start a Verus library from the example directory:

sail new --lib demo
cd demo
sail verify

In an existing Verus project, use sail verify where you would run cargo verus verify. The workspace guide covers package and target selection.

Use a coding agent

Return to the directory containing proof.rs first. If you followed the Cargo exercise above, run cd ... Register Sail there in Claude Code:

claude mcp add --transport stdio --scope project sail -- sail mcp

Restart Claude Code to load the configuration, and check claude mcp list for a connected Sail server. Other clients can launch sail mcp on stdio; see the MCP reference. The agent skill teaches the verification and SMT workflows.

Change 4 to 5 again, then ask the agent to verify the file, explain the failure, and propose a fix that preserves the intended contract. For this standalone example, the verify tool takes the example directory’s absolute path as project_dir and proof.rs as source_file. Have it check the complete file after changing it. A passing focused check on one function does not mean the whole file passes.

Read the repair walkthrough when you want a focused check followed by independent full verification. Freshness explains why a successful result also needs to match the current inputs.

Live workspace verification

Every sail verify is managed verification (ADR 0046). Install Sail; it runs its own Verus and starts its local daemon when needed. No team server, credentials or container is required.

Complete incremental reports

sail verify
sail verify --output json
sail verify -p my-package --output json

Without --output json, sail verify prints what cargo verus verify prints: Cargo’s status lines and Verus’s diagnostics on stderr, Verus’s own stdout (verification results:: N verified, M errors, the --output-json document, or the --time report, as you asked Verus for them), and the same exit code. See what the output does not repeat for the differences that remain.

--incremental was the opt-in for this mode before it became the default. It is still accepted and does nothing.

A matching unchanged-call replay returns before running Cargo. Other requests run Cargo. Sail owns a separate target directory, so it never cleans the caller’s artifacts. Successful complete target reports get proof receipts bound to the verification context and actual Cargo artifacts. When Cargo reports an artifact fresh and its receipt matches, Sail returns the complete establishing report without invoking Verus for that target. A missing or incompatible receipt requires fresh verification. Reports and receipts bind Cargo’s exact target name. Binaries named foo-bar and foo_bar remain distinct even though Rust uses the crate name foo_bar for both. An observation that cannot identify one Cargo target supplies no reusable proof; a failing target retains its own report. When the dependency store seeds a new Cargo target, each dependency’s exact validated displayed stdout is restored at its fresh Cargo artifact event, before its dependents’ output. An ordinary unchanged target emits nothing. An entry with missing or damaged output is ignored and verified normally. The store admits a verified root only when its closure contains no other verified root, so it cannot suppress another proof’s diagnostics.

Verification arguments, features, toolchain and executable identity participate in the context. Declared workspace and path-dependency inputs are checked for changes, including resolved registry/git dependencies and compiler-declared external includes. Newly discovered inputs prevent that establishing run from claiming currentness until they can be observed. Failed, interrupted or partial target proofs cannot become reusable whole-target receipts. Publication waits for a coherent input check and an atomic run commit, so an interrupted publisher cannot leave usable unvalidated receipts. Function/module selection runs fresh; its report describes that requested scope. Cargo configuration discovery uses the original invocation directory, including member-directory ancestors; relative Cargo/cache homes are resolved against that directory.

Setups verified without proof reuse

Sail owns the Cargo target and Verus’s logs, and binds Cargo library and binary targets to proof receipts. It never refuses what plain cargo verus verify accepts. When an invocation asks for something it cannot bind to a receipt, sail verify verifies exactly as cargo verus verify does, in your own target, with sail-z3 and the solver cache in front of Z3: the output, the verdicts and the exit code are Cargo-Verus’s. With SAIL_EXPLAIN=1 (and in JSON runs) one note[SAIL3112] line on stderr names the reason first. Nothing is reused or recorded. These setups are:

  • --target-dir, Verus’s --log, --log-all and --log-dir, and --no-verify;
  • tests, benches and examples (--tests, --test, --all-targets, …);
  • Cargo’s -v/--verbose and --message-format, which would show Sail’s driver and flags;
  • --sysroot, a chained workspace rustc wrapper (RUSTC_WORKSPACE_WRAPPER), Cargo --config, configuration includes, and compiler, wrapper or sysroot overrides Sail cannot identify;
  • a project with no target that sets package.metadata.verus.verify = true.

With --output json such a run prints one schema-v2 report (as --measure-fragility does) instead of a sail-project-result.

Background jobs (sail verify --background), sail watch and the MCP tools verify these setups the same way: the job’s worker prints the note[SAIL3112] line into the job’s diagnostics and runs plain Cargo-Verus in your own target. Since they return project results, the result is a sail-project-result with:

  • no_reuse: {"code": "SAIL3112", "reason": …, "verified_as": "plain-cargo-verus"};
  • one requested target named cargo verus verify, with empty package_id and kind, reused and complete false, holding the run’s schema-v2 report for every crate Verus verified. A crate Cargo found up to date is not verified again, as with plain Cargo-Verus, and has no report;
  • currentness unknown, empty context_sha256 and input_revision, and a note starting SAIL3112:. Such a result is never current, establishes no freshness record, and nothing reuses it.

For this aggregate target, execution.verifier_invocations is one when the Cargo-Verus driver returns a report, including when Cargo verifies zero or several crates, and zero when setup or the driver fails without a report. It does not count actual per-crate Verus or solver work.

The job’s exit code is Cargo-Verus’s. sail jobs result adds a no proof reuse (SAIL3112) line, and sail watch --output jsonl emits a no-reuse event (see watch).

A process-loader variable (LD_LIBRARY_PATH, LD_PRELOAD, DYLD_LIBRARY_PATH, DYLD_INSERT_LIBRARIES or DYLD_FRAMEWORK_PATH) changes what the compiler and verifier load, which a receipt cannot bind, so such a run (noted as SAIL3112) takes the same fallback: it is verified exactly as cargo verus verify verifies it, in the project’s own Cargo target, with Sail’s solver cache, and neither reuses nor records proof receipts, dependency records or a managed target. Cargo does not fingerprint loader variables, so after that target has been built once, an unchanged loader run, or one with a different loader value, is as fast as plain cargo verus verify. The first such run in a project whose own target was never built (one verified only with sail verify) builds and verifies it as a cold cargo verus verify does, vstd included. --output json, jobs, watch and MCP return a project result that reads unknown, with a SAIL3112 note and no_reuse whose verified_as is plain-cargo-verus; its one target holds the run’s report, which has nothing for a crate Cargo found up to date. Only --engine interactive still verifies a loader run inside managed verification (verified_as is then managed). Unset the variable for the sail verify command to get reuse back.

For existing standalone files, use sail verify FILE.rs or sail watch FILE.rs; see standalone verification.

The older --verus-source FILE experiment remains only for the opt-in portfolio. --measure-fragility and --portfolio accept-first-proof are explicit solver experiments: they run cargo verus verify with sail-z3 directly and print one schema-v2 report, and they do not take --background or --engine (SAIL0110).

Output compared with cargo verus verify

sail verify prints the same bytes as cargo verus verify for the same work. What differs is when there is work:

  • Its own target. The first run in a project, worktree or new combination of arguments compiles the dependencies and verifies vstd in Sail’s target, so it prints Cargo’s Compiling lines and vstd’s verification results:: line even when your own target/ is up to date. After that, only what changed is verified.
  • Unchanged targets are skipped by content. Cargo-Verus decides freshness by file content, and so does Sail’s target: an unchanged target prints no Checking or verification results:: line, in both. A target whose verification failed is always verified again, in both.
  • Arguments are part of the context. Plain cargo verus verify treats a crate as fresh after you change only its Verus arguments (for example add --rlimit or --time) and prints nothing new. Sail verifies again with the new arguments, as a first run in that context.
  • Timings. Cargo’s Finished … in Ns and Verus’s --time figures are measured on each run. Verus’s --time report shows Sail’s Verus’s own build information (ADR 0043).
  • A fresh target without a receipt. When Cargo finds a target fresh but Sail has no receipt for it (after a crash, or after sail cache projects prune removed receipts but not the target), sail verify prints what plain Cargo-Verus prints for an up-to-date target. --output json, jobs and MCP clean that target and run Cargo again, to return its report. That clean, and the one SAIL_MANAGED_FORCE=1 runs, passes Cargo the caller’s --release/-r, --profile, --target, --config and --manifest-path arguments unchanged, so it removes the artifacts of the profile and target layouts the invocation actually builds.
  • Partial verification. sail verify -- --verify-function F (or --verify-module, --verify-only-module, --verify-root) gets plain Cargo-Verus’s refusal (“Partial verification must use cargo verus focus”) and its exit code. With --output json, and for jobs and MCP’s scoped verify, Sail runs it focused and the report notes that its scope is partial.
  • Terminal. On a terminal Sail asks Cargo for colour, as plain Cargo would print there; Cargo’s progress bar is not shown. -v and --message-format are verified as plain Cargo-Verus does (SAIL3112), since Cargo would otherwise print Sail’s driver and flags.
  • Combined output. Verus’s summary line reaches stdout once Verus has finished. With 2>&1, a compile-phase error reported after verification (lifetime or erasure checks) appears before the summary instead of after it; proof failures and ordinary compile errors appear in plain’s order.

Proof reuse works on Linux and macOS. On Linux, an ordered native event queue also tracks transient creation and removal of missing Cargo configuration files during a run. macOS has no equivalent, so there missing configuration files are checked only at the start and end of a run; a configuration file created and deleted again within one run is not noticed (see freshness). Present inputs keep the same content and mutation checks on both platforms.

sail verify --output json prints a sail-project-result envelope, version 2, containing per-target schema-v2 reports. Its JSON Schema is crates/sail-api/schema/project-result-v2.json. Each target identifies its package, target kind, establishing run, completeness and reuse. The requested field distinguishes the selected Cargo scope from dependency reports. Embedded diagnostic, timing and solver provenance fields describe that establishing run. The outer execution counters describe the current Cargo request; historical timings are never counted as fresh verification work. A run without proof reuse adds the optional no_reuse object (setups verified without proof reuse). An explicitly selected source engine adds an optional top-level engine object (name, manifest_sha256), and each embedded report records whether the engine or its stock fallback established it (see engine provenance). Stock results omit it.

currentness is current, historical or unknown. A changed revision makes results historical. Currentness is evaluated under the job’s original submitted configuration; changing features or environment requires another request with its own context. Incomplete input observation never claims that historical proof evidence establishes a current workspace. Exit code and proof outcome remain distinct from whether a job’s execution finished.

Job text and MCP summaries call a target verified only when its whole-target report passes the proof-authority checks and its inputs are Current. Historical and Unknown proofs are labelled as recorded evidence for their establishing revision. Compile-only runs (--no-verify) and incomplete or legacy results without whole-target authority remain observations, even when their exit code is zero or their inputs are Current. A genuine verification run with no functions can still establish a whole-target proof.

When Sail cannot confirm that a result’s inputs are unchanged, the result is Unknown and carries the note SAIL3114: inputs could not be confirmed unchanged; re-run for a current result (freshness). Job reads preserve the original proof notes. A separate current-input-validation warning appears when a previously Current report becomes Unknown during projection. See the diagnostic boundary.

Jobs that survive the client session

sail verify --background
sail verify --background --output json
sail jobs list
sail jobs status JOB
sail jobs logs JOB --follow
sail jobs result JOB --output json
sail jobs cancel JOB

Background verification returns immediately with a durable job identity. Identical in-flight requests coalesce once complete remembered input coverage establishes the same revision. Cold requests without that evidence remain distinct, so an unseen edit cannot be swallowed. Status, logs and previous results remain available while another verification runs. Cancellation terminates the worker’s process group, including Cargo-Verus and its solvers. If the daemon restarts during verification, the unfinished job becomes an infrastructure error rather than silently continuing.

Concurrent jobs

Several agents can share one daemon. Jobs from different Cargo workspaces run concurrently, up to SAIL_JOB_WORKERS at a time. The default is a quarter of the available cores, between 1 and 4, because each job already runs Verus and Z3 in parallel; values from 1 to 64 are accepted, and anything else uses the default. The daemon reads the variable when it starts.

Jobs in the same workspace run one at a time, in submission order: a later job waits in queued until the earlier one finishes, rather than failing on the workspace’s managed target. The daemon identifies a workspace by the outermost directory above the project (or its --manifest-path) that holds a Cargo.toml, so nested packages of one workspace share a queue. Separate sail verify processes outside the daemon wait on the managed runner’s own lock for up to SAIL_MANAGED_LOCK_WAIT_SECS seconds (default 1,800) and then fail with SAIL3104.

The local job endpoint has its own protocol version and owner-only socket. Job records and diagnostics are private files; the last twenty terminal jobs per workspace are retained. Managed proof receipts are separate from that history, so pruning old jobs does not discard evidence needed for current incremental reports.

Evidence from completed jobs

sail jobs, sail explain, sail baseline and sail compare are supported.

sail jobs events JOB [--stream ID] [--after N] [--follow] [--output jsonl|json]
sail explain JOB --package-id ID --target NAME --kind lib|bin --function F [--obligation O] [--output json]
sail baseline save NAME --job JOB
sail baseline list
sail baseline get NAME --output json
sail compare BEFORE_JOB AFTER_JOB [--output json]
sail compare AFTER_JOB --baseline NAME [--output json]

These commands read recorded evidence. None of them verifies current inputs or generates proof edits.

  • Proof events. sail jobs events reads one bounded page of the job’s version-one proof-event journal, with a resumable cursor (next.stream_id and next.after). A gap is reported explicitly, and terminal is set once the job has finished. Event observations are provisional; only completed target reports carry final evidence. --follow streams JSONL pages until the job is terminal. Stock verification writes no proof events today. A finished stock job returns an empty terminal page whose gap is SAIL0903: this job produced no interactive proof stream. The producer arrives with the optional interactive engine (ADR 0027).
  • Explanations. sail explain selects one function by exact package ID, target name, target kind and crate-qualified function name. It returns that function’s complete report (obligations, models and provenance), the run’s diagnostics and the establishing run. A missing or ambiguous identity fails with SAIL0904. Diagnostics are not assigned to a function by line-window heuristics, so diagnostic_attribution_complete is false. Diagnostics that a proof event explicitly links to the function are added to attributed_diagnostics.
  • Baselines. sail baseline save copies a completed job’s project result under an immutable name. Names use 1-80 ASCII letters, digits, dots, underscores or hyphens, excluding . and ... An existing name is never overwritten (SAIL0905). A baseline is always historical evidence for its recorded input revision. It survives job pruning and daemon restarts. Provisional, failed or incomplete evidence is kept as reported. To pass a name that looks like an option, put the output options first: sail baseline get --output json -- --json.
  • Comparisons. sail compare classifies each target/function as unchanged, regressed, became_unknown, recovered, added, removed, not_observed, incomparable or changed. Transitions are labelled as regressions only when the verification context and the requested scopes agree. Runs marked no_reuse and results without a bound context are incomparable, including when saved as baselines: matching empty context fields do not establish that two setups agree. A partial scope reports not_observed, never removed. A function that passed by Verus’s totals (reported unknown, not attributed one by one) is classified as verified, with its reported verdict kept and flagged. A repeated friendly function name (VI-0010) is compared as one group only when every function under it has the same result on each side and the counts match; otherwise it is incomparable. See MCP comparisons. Without --output json, the command prints counts by change, the changed functions and the notes.

The job endpoint name includes its proof-contract version (jobs-v1-proof-v1-*.sock), so a client never reaches an older job service that lacks these operations. A capabilities request reports the supported proof-stream version.

Watch and agent tools

sail watch
sail watch --output jsonl
sail mcp

Watch follows the workspace, local path dependencies and configuration inputs. It debounces edits for 300 ms, cancels superseded work and submits the latest revision. Native events are preferred. If event observation becomes unavailable, it announces a five-second content-scan fallback using remembered input roots; unchanged inputs do not trigger another verification. A notification restarts a run only if the inputs differ from the snapshot recorded when that run was submitted, so late or repeated notifications for an edit the run already includes do not cancel it. Unrelated sibling removals or renames delivered by ancestor subscriptions do not restart verification. Native events are the fast path, not the guarantee: every two seconds watch also compares a metadata stamp of its inputs (no file contents are read) with the last state it saw. On macOS and Linux an input edit restarts verification within about two seconds even when its notification is dropped, as macOS can do under heavy load. See freshness. A settled watcher does not poll completed jobs or rehash the verifier runtime. Its JSON-lines stream carries job lifecycle and target completion/reuse events. It verifies the requested Cargo scope; it does not guess semantic function independence. A completed run without proof reuse (SAIL3112) adds one event {"kind": "sail-watch-event", "schema_version": 1, "event": "no-reuse", "job_id": …, "no_reuse": …, "currentness": "unknown", "exit_code": …}; in the human stream the job’s note[SAIL3112] line says the same. An explicit --target-dir is Cargo’s output, so writes there do not restart a run. Watch retains its current input roots for these runs. Additional external include and build-script paths require a managed run that supplies an input record.

MCP exposes start_verification, verification_status, verification_result and cancel_verification. Existing blocking verification and result tools remain available. Status/result inspection does not wait behind a verification worker. Results carry currentness, scope and establishing provenance so agents can distinguish finished work from current proof evidence.

Existing solver-cache entries remain compatible. The automatic daemon socket is <cache>/daemon-v5-workspace-v2-proof-v1.sock, and the job socket beside it is jobs-v1-proof-v1-<hash>.sock.

Unix socket paths are limited to 107 bytes on Linux and 103 on macOS (SUN_LEN). When a deep HOME or a long SAIL_CACHE_DIR would exceed that, Sail puts both sockets in a private per-cache directory instead, /tmp/sail-<hash>/ (mode 0700; used only when no other user can access it). If the daemon still cannot start, sail verify verifies without the cache, with the same results; --output json notes why (SAIL0003), and SAIL_EXPLAIN=1 prints one warning[SAIL0003] line in human output. An explicit SAIL_DAEMON_SOCKET is used as given, so keep it short. An explicitly selected older cache daemon can keep running: Sail starts a private jobs-only sidecar alongside it instead of terminating it.

Instant revert and research scope

Ordinary sail verify can restore a previously verified revision after an A → B → A edit on the exact qualified Linux/public alloc/std dependency profile. The original establishing run remains visible; fresh complete input, runtime, compiler-certificate and Current checks are still required. Other resolutions, platforms and unsupported contexts compile normally. SAIL_MANAGED_FORCE=1 keeps verification fresh. See the guide and ADR 0050.

SAIL_RETAINED_CONTENT_RESEARCH=1 explicitly enables the other separately closed provider profiles. It still requires actual source-observer documents and never treats missing or unsupported evidence as reusable. Failed placement rollback refuses with SAIL3134. Scoped native qualifications, the 13.45% Vest cycle gain and increased cold/edit/unchanged and storage costs are in the validation record.

The experimental retained arena refuses new admission at 8 GiB of file data or 65,536 entries, including failed writes and lifetime markers. It preserves potentially live compiler generations and falls back to compilation on fullness or unsupported inventory. Existing graph reuse can also refuse near capacity because admission conservatively reserves a full graph. These limits cover the retained arena, not ordinary managed-run sidecars or every Sail cache. The complete native cycle includes the scan and storage costs for its stated scope.

The two compiler-reuse research switches are mutually exclusive. Setting both SAIL_VSTD_BOUNDARY_RESEARCH=1 and SAIL_RETAINED_CONTENT_RESEARCH=1 returns SAIL3135 before compiler setup; unset either switch. Their source integration passes final-source default gates and preserves each experiment’s separate source authority and remaining release limits.

Experimental portable vstd bundles also bind the configured solver-adapter bytes and the exact Cargo-Verus package environment identity. Moving identical installed binaries is distinct from selecting a different adapter; changed, unknown or ambiguous observations safely run the compiler. Old bundle schemas are refused. Same-host changed-root portable functionality passes; distributed release/default fresh-machine first use remains pending. See the vstd boundary limits.

Verify an existing Verus file

Standalone verification is available in published 0.2.0, with native Linux/macOS qualification. It was also available in registry prerelease 0.2.0-rc.1; it is absent from 0.1.0. See the qualification record.

Use your existing Verus source without creating a Cargo package:

sail verify proof.rs
sail verify proof.rs --output json
sail verify proof.rs -- --crate-type lib --rlimit 30
sail watch proof.rs

The first positional .rs file selects standalone verification, including inside a Cargo workspace. Other sail verify invocations retain Cargo mode. Arguments after -- go to Sail’s pinned Verus. Sources and their relative modules/includes retain their original paths and working directory. The runtime supplies its own verified vstd. No Cargo manifest is generated.

A complete successful verify-only call can retain a proof receipt. An unchanged call or return to a retained successful revision rechecks its inputs and reuses that proof. JSON records the original establishing_run, reused and actual current invocation counters. History retains up to 16 revisions within 1 GiB, keeping the first successful revision pinned. Changed files, includes, namespaces, environment or runtime invalidate reuse. The released runtime also covers non-UTF-8 include_bytes! inputs: unchanged proofs can be Current and reused, while a same-size edit with restored mtime still requires verification. Emptying a binary used by the proof preserves the fresh compiler’s failure. See qualification. External source reads also bind every intervening discovery directory; unrelated changes in those ancestor directories can conservatively prevent reuse. Missing compiler observations cause fresh verification. SAIL_MANAGED_FORCE=1 forces execution. Fresh failing proofs never establish a complete receipt.

Watch verifies on startup and after saves, cancelling superseded jobs. The source and discovered modules/includes must be beneath the working directory. Run watch from their common source directory. An external source or an expansion outside that boundary is refused; CLI and MCP verification keep their broader input coverage. Standalone watch is verify-only: compilation and explicit output-writing flags are refused to avoid reruns caused by its own outputs; use sail verify for those requests. It uses the same durable job service as background verification:

sail verify proof.rs --background --output json
sail jobs list

An MCP client calls verify or start_verification with:

{"project_dir":"/path/to/proofs","source_file":"proof.rs"}

Existing module, function and verus_args selectors apply. Partial checks stay partial and run freshly. File verification requests reject Cargo selectors and solver experiments. Standalone verification currently uses pinned Z3; an explicit cvc5 request is refused rather than attributed to the wrong solver. Compilation, custom extern/search paths, explicit output side effects and unsupported reuse configurations run fresh Verus with the solver cache. Such a successful execution is not promoted to reusable evidence unless its complete inputs are established.

Validate a repair to one function, then the complete file:

sail repair-check proof.rs --function proof::lemma --engine interactive --output json

MCP’s start_repair_validation accepts source_file, function and engine: "interactive" instead of Cargo package/kind/target selectors. It returns a durable job. The selected function’s focused result remains provisional; acceptance requires independent successful Current verification of the complete file and the engine’s normal late compiler seal. A failed full phase, missing selector, engine fault or stale source never accepts a repair. No Cargo project is generated. See repair.

SAIL3150 identifies standalone setup/protocol errors. A SAIL3151 JSON note means input coverage could not establish a reusable Current proof; the fresh verifier’s verdict and diagnostics remain available.

Instant revert

Automatic selection supports the exact qualified Linux x86-64 and macOS arm64 runtime manifests and closed public dependency profiles below. Current release qualification is in the validation record. The intermittent Mac Vest miss remains under investigation (#595).

No extra workflow command is needed: sail verify can restore an already verified workspace revision after an A → B → A edit. SAIL_MANAGED_FORCE=1 sail verify continues to require fresh verification. Restored results keep the original establishing run, while the current invocation separately checks currentness. An unsupported context runs the genuine compiler instead.

Compiler restoration preserves Verus’s function verdicts, diagnostics and timing, and names the original establishing run. It does not restore the original obligation logs. Its JSON report therefore shows obligations: null and unrecorded check provenance, with no new solver checks; the solver digest remains bound, while its reported version can be null. A later unchanged call keeps this reconstructed report. A fresh verification requested through JSON, a job or MCP records obligation detail again; plain human output does not request those logs.

Automatic eligibility is restricted to the exact qualified runtime manifest for x86-64 Linux or arm64 macOS. Every invocation validates the runtime’s fresh bytes before admitting a plan. Source, features, native compiler-read certificates and the complete private dependency graph must satisfy a closed policy. The routing prefilter recognizes the public registry profiles with vstd alloc/default/std or alloc/std (Vest); full admission remains mandatory. The path-provider profile remains explicit retained-content research.

Other dependency resolutions, runtimes, unsupported macro/generated inputs, foreign imports and unsupported source namespaces take fresh verification. Loader, engine and focused contexts keep their existing refusal rules.

Retention also has to pay for itself. Its checks read the target’s whole private dependency graph (vstd and the macro crates) before and after the compiler runs; on Vest that measures about 0.2–0.3 s. Each verifying compile records, beside the proof context’s receipts (retention-costs/), how long the compiler and, when engaged, retention took. A run prepares no retention for its selected targets when every one of them last compiled in less than 16 times its measured retention, so a one-function crate compiles normally on every edit and revert, while a Vest-class target keeps instant revert. A target without a record, or with an unreadable one, keeps retention; a skipped plan compiles normally and changes no verdict, receipt or check. The records authorize nothing.

When automatic retention does not apply, a SAIL3146 note says why. The note appears in --output json notes, and on stderr only with SAIL_EXPLAIN=1; default human output is unchanged. It names one of three reasons:

  • the dependency profile is not qualified, with the first mismatch. For example, a project that ran SAIL3138’s cargo update commands but kept vstd’s default-features = false is told that the updated package belongs to the default-feature profile, so vstd’s default features must be enabled too;
  • the target compiles in less than 16 times its measured retention, so retention would cost more than it saves;
  • the earlier verified revision was evicted from the arena, so it was compiled again.

The source check reads the packages that the selected targets depend on (the same closure receipts use), every workspace member’s manifest, the lockfile and Cargo configuration. It does not read other workspace members’ or unrelated registry packages’ sources. Editing such a package therefore keeps a retained proof, as it keeps a receipt. Any source the compiler actually loads must still be covered with matching bytes. On Vest this check takes 25–50 ms instead of 200–265 ms (macOS), and a cold run takes it five times.

The explicit vstd-boundary experiment suppresses automatic retention. Explicitly requesting both research modes still refuses with SAIL3135. The runner passes an admitted plan through the existing managed runtime file; it does not add a public switch to the compiler child’s environment. Archived declared-variable checks use the fresh outer caller snapshot, including variable absence.

The pending release-integration candidate extends ordinary routing to the exact closed public default-feature profile and allows requested-target retention alongside an admitted adjacent vstd proof. It independently validates shared native observations and keeps a distinct release witness for served vstd; requested targets still require their own compiler-read evidence. This extension is not yet qualified or selected. Its bundled and unbundled A → B → A controls, late-authority mutation checks and existing complete Vest regression must pass on the final matching runtime. See the candidate decision and qualification record.

The durable retained arena admits at most 8 GiB and 65,536 entries. Each target keeps at most 16 archived revisions and 1 GiB of declared entry bytes; a Vest entry is about 38 MB. The first verified revision of the target’s current lineage (the same context, dependency graph, directory and environment) is its baseline. Count eviction never removes the baseline, so an original revision can still be restored after many passing edits. Eviction keeps the newest revision, then the baseline if it fits the byte limit, then the other revisions newest first; once one does not fit, it and every older one are evicted. If the byte limit evicts the baseline, the oldest remaining revision of the lineage becomes the baseline. The pin and the eviction log are hints only: restore never reads them, and every restore-time check is unchanged. Fullness takes the fresh compiler path and preserves unknown live graph references. These are not global bounds on all managed-run sidecars, project targets or logs. Whole-project storage growth and scan costs are included in the native cycle measurements below.

Three rotated native rounds at the final source compare a complete four-call Vest cycle: cold A, changed B, returned A and unchanged A. Candidate ordinary Sail takes 113.08 s versus the earlier Sail build’s 130.66 s (13.45% less) and stock’s 148.10 s. Returning to A falls from 26.54 s to 2.51 s. Cold, changed-B and unchanged costs rise; final cache size grows from about 560 MB to 1,080 MB. The small control’s cycle is essentially unchanged against earlier Sail and remains slower than stock. This does not meet the overall 25% M8 gate.

All 72 fresh rows, their exact function/diagnostic comparisons and complete storage inventory pass. Timed Sail actors share an explicit matching runtime override; a separate genuinely bundled, ordinary CLI control passes without runtime or research overrides. The earlier 72-call cohort remains failed and is indexed in the validation record; its retrospective comparisons are not substituted for this fresh qualification.

A separate unchanged-run optimization has passed a 36-call native screen: it omits optional archive preparation only when existing receipt headers cover all requested current revisions. Unchanged Vest falls from 0.895 s to 0.544 s (39.29%); the complete four-call sum improves 0.73%. It preserves ordinary verification and Current checks and adds no workflow switch. Mac host and native gate, solver, all end-to-end phases plus extra, PR conformance and full FAST and STANDARD checks pass in all four arms, with zero verdict or diagnostic differences. The optimization is qualified for the existing default profile; Mac performance and general CPU savings remain unclaimed. The paired validation record retains all ranges, cold/edit/revert costs, footprint, failed attempts and the Linux evidence export limitation.

Repair workflow walkthrough

This walkthrough takes one library through the repair workflow: install the engine, check a repair, follow its events, detect a regression the focused phase cannot see, and do the same through MCP. Ordinary verification (Sail’s Verus without the focused phase) stays the default for sail verify. The repair workflow’s qualification status (gates, measured runs, open items) is in M7 validation; limitations are in known issues.

A first managed run can still leave proof evidence Unknown while dependencies are regenerated. Managed runs explains when that happens and what the optional ordinary-build recovery changes.

Install and select the engine

Start with Sail installed (see the README) and a project whose ordinary sail verify works. The engine is part of Sail’s Verus, which a release archive (Linux or macOS) bundles beside sail, so nothing else is needed:

sail engine status --output json   # "build" is under the unpacked engine/ directory

From a Sail source checkout, download the prebuilt runtime from the public fork’s releases (artifact-macos.json on macOS):

python3 ci/engine-artifact.py fetch --pin engine/verus/artifact-linux.json \
  --cache ~/.cache/sail      # or your SAIL_CACHE_DIR
sail engine status --output json

fetch downloads without credentials and checks the archive digest and every runtime file against the committed pin. Or build it yourself:

cargo xtask build-verus-engine
sail engine status --output json

build-verus-engine builds the commit of Sail’s public Verus fork (Chelis-Lang/verus) pinned in engine/verus/fork.toml; it needs no GitHub credentials. It has been run on x86-64 Linux. engine status reports that commit as fork_commit. If the engine is missing, sail engine status and sail repair-check stop with SAIL3120, name the file they expected, and say how to obtain the engine; no job is submitted.

fetch and build-verus-engine install the engine in the Sail cache, which engine status inspects first; a bundled engine is used only when the cache has none. Repairs must use that cache too; relative SAIL_CACHE_DIR settings follow the invoking project directory. The engine runs stock lowering with a focused phase in the same compiler callback, and prepares no lowering for reuse. See the engine description and the repair guide.

Keep sail and sail-z3 side by side. Repairs fall back to ordinary verification with the same runtime. Linux freshness checks also need Python 3; see the freshness contract for what is checked on each platform.

To import an existing build instead of compiling it:

sail engine install --from path/to/engine-build --output json

Import validates the pinned fork commit, source and toolchains, the manifest and every artifact’s bytes. It keeps a monitored link to that directory, so keep the build available. Unrecognized or conflicting builds produce SAIL3120; a stock Verus build is not an interactive engine. Before the first project submission, run sail engine status --output json from that project’s directory with the same cache environment as the MCP launcher. This catches a different cache selection before a repair request.

Establish a baseline with complete full validation

For an existing library, substitute its package and exact crate-qualified function below. This small example uses the pinned published vstd dependency:

mkdir -p ../repair-demo/src
cd ../repair-demo
cat > rust-toolchain.toml <<'TOML'
[toolchain]
channel = "1.99.1"
TOML
cat > Cargo.toml <<'TOML'
[package]
name = "repair_demo"
version = "0.1.0"
edition = "2021"

[workspace]

[package.metadata.verus]
verify = true

[dependencies]
vstd = "=0.0.0-2026-10-18-0147"
TOML
cat > src/lib.rs <<'RUST'
use vstd::prelude::*;
verus! {
    pub proof fn selected(x: bool) ensures x || !x { }
    pub proof fn other(x: bool) ensures x == x { }
}
RUST
cargo verus verify --package repair_demo --lib

The demo pins Verus’s Rust toolchain from corpus/toolchain.toml, separately from the Rust toolchain used to build Sail itself.

Keep capture files outside the project package roots and declared inputs. Sail observes those roots recursively: writing an event log or result file there while verification is running is an input change and can correctly leave the proof Unknown. This demo uses a fresh sibling directory for captures; keep it available for the later commands.

Submit one exact repair scope and retain its ID:

EVIDENCE_DIR=$(mktemp -d "$PWD/../repair-evidence.XXXXXX")
repair_check() {
    sail repair-check --package repair_demo --lib \
        --function repair_demo::selected --engine interactive \
        --background --output json
}
repair_check > "$EVIDENCE_DIR/before.submit.json"
BEFORE=$(python3 -c 'import json,sys; print(json.load(open(sys.argv[1]))["id"])' "$EVIDENCE_DIR/before.submit.json")
sail jobs events "$BEFORE" --follow --output jsonl > "$EVIDENCE_DIR/before.events.jsonl"
sail jobs result "$BEFORE" --output json > "$EVIDENCE_DIR/before.result.json"
python3 - "$EVIDENCE_DIR/before.result.json" <<'PY'
import json, sys
value = json.load(open(sys.argv[1]))["value"]
assert value["job"]["state"] == "completed" and value["job"]["error"] is None
assert value["repair"]["accepted"] is True
assert value["repair"]["batch"]["full"]["currentness"] == "current"
print("Complete Current full validation accepted this baseline")
PY
sail baseline save before-repair --job "$BEFORE"
sail baseline list --output json
sail baseline get before-repair --output json

Continue only after the checks succeed. Background submission returns a Status with id; its successful exit only acknowledges submission. jobs result returns an envelope whose repair bundle is value.repair. A successful fetch is not a successful proof. Without --background, repair-check returns the repair bundle directly and exits 0 for acceptance, 1 for rejection or 2 for a command/service error.

Focus evidence remains provisional. Acceptance requires independent complete Current full-target success, with no selection error. Cold dependency verification can add a vstd compiler invocation: compiler_invocations is an observation, not a promise of one driver. Unknown/Historical, incomplete coverage or a failed full proof cannot authorize a repair. Inspect the retained notes, including SAIL3114, before deciding what needs fixing; do not retry blindly until accepted. A named baseline is immutable historical reference evidence; use a new name for another snapshot. baseline list returns the saved names. To compare two explicit completed jobs without a named baseline, use sail compare BEFORE_JOB_ID AFTER_JOB_ID --output json; the earlier job comes first. Neither form establishes current proof evidence for an edited workspace.

Resume events and cancel deliberately

Fetch a page and use its returned cursor:

sail jobs events "$BEFORE" --output json > "$EVIDENCE_DIR/page.json"
STREAM=$(python3 -c 'import json,sys; print(json.load(open(sys.argv[1]))["next"]["stream_id"])' "$EVIDENCE_DIR/page.json")
AFTER=$(python3 -c 'import json,sys; print(json.load(open(sys.argv[1]))["next"]["after"])' "$EVIDENCE_DIR/page.json")
sail jobs events "$BEFORE" --stream "$STREAM" --after "$AFTER" --follow --output jsonl

JSONL contains observation and cursor/control records. Preserve the cursor and inspect gap; a truncated or pruned journal cannot be treated as complete. A terminal stream is not proof acceptance: fetch the final result. Journal limits and exact identities are described in the repair guide.

Ctrl-C on an events follower only stops observation. To cancel an owned running job, use sail jobs cancel JOB_ID --output json. Foreground repair-check cancels its owned job on Ctrl-C. Background jobs survive client disconnects; unfinished jobs after a daemon restart become infrastructure failures. Identical established in-flight requests can share a job ID, so cancellation applies to that shared job.

Detect a focus pass with a full regression

Introduce a regression outside the selected function:

cat > src/lib.rs <<'RUST'
use vstd::prelude::*;
verus! {
    pub proof fn selected(x: bool) ensures x == x { }
    pub proof fn other(x: bool) ensures x { }
}
RUST
repair_check > "$EVIDENCE_DIR/after.submit.json"
AFTER_JOB=$(python3 -c 'import json,sys; print(json.load(open(sys.argv[1]))["id"])' "$EVIDENCE_DIR/after.submit.json")
sail jobs events "$AFTER_JOB" --follow --output jsonl > "$EVIDENCE_DIR/after.events.jsonl"
sail jobs result "$AFTER_JOB" --output json > "$EVIDENCE_DIR/after.result.json"
PACKAGE_ID=$(python3 -c 'import json,sys; p=json.load(open(sys.argv[1]))["value"]["repair"]["batch"]["full"]; print(next(t["package_id"] for t in p["targets"] if t["requested"]))' "$EVIDENCE_DIR/after.result.json")
sail explain "$AFTER_JOB" --package-id "$PACKAGE_ID" --target repair_demo \
    --kind lib --function repair_demo::other --output json
sail compare "$AFTER_JOB" --baseline before-repair --output json

The selected tautology can pass while other fails for false; the full result must therefore reject this repair. Inspect value.repair.accepted, batch.selection_error, full diagnostics and exact attributed obligations. explain preserves counterexamples when the verifier supplies them; it does not invent models or edits. Obtain package_id from the report, not a guessed Cargo identifier. For a binary, select --bin NAME and use its reported target/kind.

Comparisons expose value.compatible, after_currentness and exact-ID transitions. Different modes, runtime contexts or requested scopes are incomparable. Restore other’s original ensures x == x, submit again and inspect the new full result; a historical baseline cannot establish today’s proof.

Use the same workflow through MCP

Run sail mcp in the project directory, or pass project_dir to submission. Job reads, cancellation, events, explanations and comparisons do not accept project_dir; they resolve the service from the MCP server’s working directory. Use a server started in this project, or configure the same absolute SAIL_CACHE_DIR (and SAIL_DAEMON_SOCKET, if overridden) for submission, CLI and MCP. A relative cache selected from another directory can make a valid job ID unavailable to those reads. Baseline operations use that same service. After normal MCP initialization, these are tools/call parameter objects:

{"name":"start_repair_validation","arguments":{"package":"repair_demo","kind":"lib","function":"repair_demo::selected","engine":"interactive"}}

Use the returned structuredContent.id for subsequent calls:

{"name":"verification_status","arguments":{"job_id":"JOB_ID"}}
{"name":"verification_events","arguments":{"job_id":"JOB_ID"}}
{"name":"verification_result","arguments":{"job_id":"JOB_ID"}}
{"name":"save_baseline","arguments":{"job_id":"JOB_ID","name":"before-repair"}}
{"name":"list_baselines","arguments":{}}
{"name":"get_baseline","arguments":{"name":"before-repair"}}

The events response is a page; resume with its next.stream_id and next.after. In MCP those fields are structuredContent.next.stream_id and structuredContent.next.after; return both as stream_id and unsigned after on the next verification_events call. Inspect gap before treating the journal as complete. Wrong-stream/future cursors fail explicitly rather than becoming a gap page. MCP does not expose CLI --follow. Result evidence has the same envelope: inspect structuredContent.value.repair.accepted and the full Current report. isError: false only means the tool call succeeded.

{"name":"explain_failure","arguments":{"job_id":"JOB_ID","package_id":"PACKAGE_ID","target":"repair_demo","kind":"lib","function":"repair_demo::other"}}
{"name":"compare_verification","arguments":{"after_job":"AFTER_JOB_ID","baseline":"before-repair"}}
{"name":"cancel_verification","arguments":{"job_id":"OWNED_RUNNING_JOB_ID"}}

Save only after the job completes. The snapshot in structuredContent.value retains the exact recorded reports, revision and context with historical currentness. Provisional verdicts and incomplete targets stay unchanged. The name is immutable and survives job pruning; it cannot establish today’s proof. Comparison takes exactly one baseline or before_job. Library submission omits target; a binary uses kind: "bin" plus target: "NAME". See the MCP schemas for optional submission arguments and response details. Once submission returns a durable ID, use cancel_verification to cancel that job. Cancelling an unrelated lookup or disconnecting MCP does not cancel it.

Return to stock verification

An explicitly unavailable or invalid engine returns a setup error. A runtime internal failure uses the documented stock fallback and preserves failed engine evidence; it cannot fabricate focused evidence or claim a successful batch. Inspect batch.batched, batch.focus, batch.selection_error and the full result (batch.full in repair-check output, or result in a job result). For a setup error, inspect it and cancel any owned unfinished job before starting a separate stock run:

sail verify --package repair_demo --lib --output json
cargo verus verify --package repair_demo --lib

The first command selects ordinary managed verification with Sail’s Verus because it has no engine flag; the second runs your own stock cargo verus, if you have one, without Sail. Neither promises an interactive focus/full bundle. Default solver service/cache failure falls back to the pinned Z3. See workspace verification and ADR 0027 for the contracts.

Caching Sail in CI

CI usually verifies code that has barely changed since the previous run. A fresh runner starts with an empty cache, so plain sail verify pays the whole cold cost on every job. This guide covers three things: which directories to persist between jobs, what each one saves on real projects, and the limits that apply today.

Summary

PersistSize (zstd)What it buys on a fresh runner
~/.cache/sail/results/ (solver replies)0.1–3 MBEvery solver query of unchanged code is answered from cache. Anvil 64 s against 186 s cold (stock 193 s); CapybaraKV 42 s against 58 s (stock 64 s)
target/ (your Cargo target), when Sail prints note[SAIL3112]76–204 MBDependencies are not rebuilt, as with stock cargo verus. CapybaraKV 12 s against stock’s 30 s with the same cache; an Anvil edit commit 86 s against 159 s
~/.cache/sail/projects/ (managed targets and proof receipts), in managed mode98–248 MBUnchanged code reuses its receipts, on a new runner too: CapybaraKV 0.9 s against 41 s with results/ alone, with git restore-mtime; Anvil 3 s on the same machine
~/.cargo/registry, ~/.cargo/gitvariesCrate downloads, as for any Rust project

The solver-reply cache is the part that works everywhere. It is small, and its entries are keyed by the exact query bytes and the solver’s identity, so an entry from an older commit, lockfile or Sail version is just a miss, never a wrong answer.

Which mode your project is in

Run SAIL_EXPLAIN=1 sail verify once and look at the notes:

  • note[SAIL3112]. Your project selects its own Cargo (for example a rust-toolchain.toml pinning another Rust). Sail then verifies as cargo verus verify does, in your own target/, with Sail’s solver cache and no proof receipts. CapybaraKV (a nightly) is in this mode as published; Anvil (Rust 1.98.0) was until build-script receipts accepted Cargo 1.93 to 1.99 (ADR 0084). Persist results/ and target/.
  • No such note. Sail builds in its own managed target under ~/.cache/sail/projects/ and records proof receipts. Persist results/ and projects/. A restored projects/ is reused on a new runner because installed tools are identified by their bytes, not their inodes.

Setting RUSTUP_TOOLCHAIN=1.99.1 moves a SAIL3112 project into managed mode (see compatibility). That gives proof receipts. For CapybaraKV with git restore-mtime, an unchanged commit then takes 0.9 s on a new runner against 12 s with a cached target/; an edit commit costs about the same either way.

Hosted walkthrough

The optional CI cache walkthrough installs the attested published release on four fresh Ubuntu runners: cold and restored jobs for solver replies alone and for managed receipts. It preserves the source paths and file times, checks actual solver hits or zero-verifier receipt reuse, and requires source edits, configuration changes and modified runtime bytes to refuse the previous proof. Every invocation retains its full output and timing in workflow artifacts. Credentials are confined to installation.

The workflow and acceptance driver pass on four independent Ubuntu 24.04 runners using attested published Sail 0.1.0 (hosted run). The managed fixture takes 11.69 s cold and 0.69 s after restore, with Current evidence and zero verifier invocations. The solver-only fixture records genuine hits for its own function, but takes 16.84 s after restore against 16.21 s cold; this tiny fixture establishes cache reuse, not a solver-only speedup. Both restored arms freshly reject an invalid proof edit, run a verifier after a configuration change, and refuse modified runtime bytes. These are one-run fixture results, separate from the real-project measurements below and required PR CI.

GitHub Actions example

This workflow persists the solver replies for every project, and the Cargo registry and target/ as for any Rust project. Replace SAIL_VERSION with the release you use. Add the arguments you pass to cargo verus verify. The workflow illustrates the persistence policy. The separately linked walkthrough above is the workflow actually exercised on GitHub’s runners.

name: verify
on: [push, pull_request]

jobs:
  verify:
    runs-on: ubuntu-24.04
    env:
      SAIL_VERSION: 0.1.0
    steps:
      - uses: actions/checkout@v4

      - name: Install Sail
        run: |
          TARGET=x86_64-unknown-linux-gnu
          base="https://github.com/Chelis-Lang/sail/releases/download/v$SAIL_VERSION"
          curl -fLO "$base/sail-$SAIL_VERSION-$TARGET.tar.gz"
          curl -fLO "$base/sail-$SAIL_VERSION-$TARGET.tar.gz.sha256"
          sha256sum -c "sail-$SAIL_VERSION-$TARGET.tar.gz.sha256"
          mkdir -p ~/.local/opt
          tar -C ~/.local/opt -xzf "sail-$SAIL_VERSION-$TARGET.tar.gz"
          echo "$HOME/.local/opt/sail-$SAIL_VERSION-$TARGET/bin" >> "$GITHUB_PATH"
          rustup toolchain install 1.99.1 --profile minimal --component rust-src

      # Solver replies: small, and safe to reuse from any earlier commit.
      - uses: actions/cache@v4
        with:
          path: ~/.cache/sail/results
          key: sail-results-${{ runner.os }}-${{ env.SAIL_VERSION }}-${{ hashFiles('**/Cargo.lock', '**/rust-toolchain*') }}-${{ github.sha }}
          restore-keys: |
            sail-results-${{ runner.os }}-${{ env.SAIL_VERSION }}-${{ hashFiles('**/Cargo.lock', '**/rust-toolchain*') }}-
            sail-results-${{ runner.os }}-${{ env.SAIL_VERSION }}-

      # Managed mode only (no SAIL3112 note): managed targets and receipts.
      # - uses: actions/cache@v4
      #   with:
      #     path: ~/.cache/sail/projects
      #     key: sail-projects-${{ runner.os }}-${{ env.SAIL_VERSION }}-${{ github.sha }}
      #     restore-keys: sail-projects-${{ runner.os }}-${{ env.SAIL_VERSION }}-

      # Cargo downloads and, for SAIL3112 projects, the Cargo target.
      - uses: actions/cache@v4
        with:
          path: |
            ~/.cargo/registry/index
            ~/.cargo/registry/cache
            ~/.cargo/git/db
            target
          key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.lock', '**/rust-toolchain*') }}-${{ github.sha }}
          restore-keys: |
            cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.lock', '**/rust-toolchain*') }}-

      - run: sail verify

      # Bound what the post step saves.
      - if: always()
        run: sail cache gc --max-bytes 1G

Notes on the keys:

  • Cache entries are immutable, so the primary key ends with the commit SHA, and every run saves its own entry. restore-keys picks the newest entry with the same prefix. For an edit commit, that is the previous commit’s cache (the measured “edit commit” rows below).
  • The solver-reply key needs only the OS and Sail version. A new Sail version can change the solver or the query bytes, and the old entries would then only miss, so a version-scoped key keeps size down. The lockfile and toolchain hash keeps the newest matching entry first.
  • target/ is the path for a single-package project. Use your workspace’s target directory otherwise. In managed mode (no SAIL3112 note), Sail does not build in target/, so persisting it only helps any stock jobs you run.
  • ~/.cache/sail is the default cache location ($SAIL_CACHE_DIR or $XDG_CACHE_HOME/sail if you set them). The daemon that sail verify starts is still running when the post step saves the cache. Entries are written atomically and its socket files are skipped, so this is safe.
  • GitHub’s repository cache quota is 10 GB, and an entry not used for 7 days is evicted. The solver replies are a few MB per entry; target/ is the large part.

Optional: file times for packages with build scripts

actions/checkout gives every file the current time. When a package has a build script without cargo:rerun-if-changed (CapybaraKV’s does), Cargo reruns the script and rebuilds the crate, and Verus then verifies it again, with every solver query answered from cache. Setting file times to their last commit time avoids that rebuild:

      - uses: actions/checkout@v4
        with:
          fetch-depth: 0
      - run: sudo apt-get install -y git-restore-mtime && git restore-mtime

Measured on one machine, CapybaraKV’s unchanged run with this step took 0.9 s in managed mode, with both targets reused from Current receipts, against 12 s without it. In SAIL3112 mode the same step takes 0.5 s, because Cargo then considers the crate fresh and Verus does not run. That is the same trust you already place in a cached target/ with stock cargo verus; see caveats.

Measured results

The measurements ran on a native EC2 c7i.4xlarge (16 vCPU, Intel Xeon Platinum 8488C) in us-east-1, Ubuntu 24.04, on 2026-10-26. Sail was a Linux release stage of main fb98b082 (Sail 0.1.0, fork runtime 36d65c3f). Stock was Verus 0.2026.10.18.7d82994. GitHub’s standard runners have 4 vCPU, so absolute times there will be longer.

Each project is a local Git repository with two commits, cloned afresh for every run at the same path, as on a GitHub runner:

  • C0 is the pinned corpus commit. Its Verus dependencies are moved to the release’s crates.io vstd, as a project adopting the pinned Verus would do (scripts/perf-real.sh, SAIL_PERF_VSTD=registry).
  • C1 adds one small lemma to a large proof file.

Caches were saved and restored with tar, so restored files have new inodes and their original times, as actions/cache gives them. The Cargo registry was warm in every arm. Values are seconds from one run each. Repeat runs of the cold and restored rows agreed within 1–6 s.

Anvil

--lib -- --verify-module vdeployment_controller: 144 functions at C0, 145 at C1, 0 errors. Sail ran with --output json, as scripts/perf-real.sh does for partial verification, and stock ran cargo verus focus.

RunStockSail, project’s Cargo (SAIL3112)Sail, RUSTUP_TOOLCHAIN=1.99.1
C0, empty caches193.1185.0186.3
C0, results/ restored—62.864.0
C0, results/ seeded from a signed team store instead——64.0
C0, target/ (and Sail results/) restored1.1¹1.7¹—
C0, whole Sail cache restored, same machine——3.0 (Current, 0 verifier runs)
C1 edit, results/ restored—114.9117.4
C1 edit, target/ (and results/) restored158.985.8—
C1 edit, whole Sail cache restored, same machine——86.9
C1, empty caches191.7——

¹ Cargo found every unit fresh and Verus did not run. No verification summary was printed, by stock or by Sail.

CapybaraKV

capybaraKV/capybarakv, --no-default-features: 732 functions at C0, 733 at C1, 0 errors. A cold run also verifies vstd (2,060 functions).

RunStockSail, project’s Cargo (SAIL3112)Sail, RUSTUP_TOOLCHAIN=1.99.1
C0, empty caches64.157.158.3
C0, results/ restored—41.142.2
C0, results/ seeded from a signed team store instead——43.9
C0, target/ (and Sail results/) restored29.611.7—
C0, whole Sail cache restored, same machine——12.1; 0.9 with git restore-mtime
C1 edit, results/ restored—42.243.1
C1 edit, target/ (and results/) restored29.612.9—
C1 edit, whole Sail cache restored, same machine——13.4
C1, empty caches64.0——

New runner

These rows simulate a new runner on the same paths. Sail’s installation and the Rust toolchains were recreated with new inodes but identical bytes and times, then the caches were restored into a fresh clone:

RunResult
CapybaraKV, managed mode, whole Sail cache, git restore-mtime0.94 s, Current, 2 targets reused² (40.7 s, nothing reused, before tool identity became content-based)
CapybaraKV, SAIL3112 mode, results/ and target/, C0 / C112.2 s / 13.3 s
Anvil, SAIL3112 mode, results/ and target/, C0 / C12.5 s¹ / 85.9 s

So target/, results/ and projects/ all survive a new runner.

² Measured on main f33da950 with and without the content-identity change (#428), same host type and method. The first run on a new runner reads every installed tool once, about 0.15 s; later runs reuse a per-machine memo.

Sizes

Bytes after one cold run, raw and with zstd -3 (what actions/cache uploads):

DirectoryAnvilCapybaraKV
~/.cache/sail/results/1.0 MB / 0.14 MB18.0 MB / 2.9 MB
~/.cache/sail/projects/, managed mode1.33 GB / 248 MB417 MB / 98 MB
~/.cache/sail/projects/, SAIL3112 mode (unused by later runs)70 MB / 21 MB70 MB / 21 MB
target/, stock or SAIL3112 mode876 MB / 204 MB339 MB / 76 MB

The rest of ~/.cache/sail (runtime-identities/, snapshot-hints/) is under 0.2 MB and regenerates on its own. Restoring it is harmless.

Verdicts and output

Every run exited 0 with the same verdicts as stock: Anvil 144 then 145 verified, CapybaraKV 732 then 733 verified, vstd 2,060 where it was verified, 0 errors. For CapybaraKV, Sail’s stdout equals stock’s byte for byte in the same Cargo state (cold against cold, and restored target/ against restored target/). Apart from Cargo’s Finished time and the SAIL_EXPLAIN notes, its stderr is identical for the restored runs. Cold runs print the same lines, but parallel compilation orders the Compiling lines differently. For Anvil, the JSON function counts were compared with stock’s summary line. The CapybaraKV reuse rows report Current with reused_targets: 2, and the Anvil same-machine row reports Current with 0 verifier runs. In the team-store rows, every lookup was a signed shared hit (Anvil 1,478 of 1,478; CapybaraKV 7,212, plus 20,197 vstd replies from the release archive). No lookup timed out.

Teams: a signed store instead of a cache tarball

The solver-reply part can come from a team store instead of actions/cache. A trusted job (for example on main) signs and publishes its local cache, and other jobs and developers read it with the public key:

sail cache publish --to STORE --key team.key        # trusted writer
sail cache trust add team.key.pub                   # each reader, once
SAIL_SHARED_STORE=STORE sail verify                 # directory store

Readers check every entry’s signature, key, solver and platform before using it, so a reader never trusts the transport or the store. The rows above show that seeding from a signed directory store matches restoring results/. It shares only solver replies, not Cargo targets or receipts. For HTTP(S) stores, credentials and limits, see HTTP shared cache. These team-cache commands are experimental.

Caveats

  • Trust what you restore. Sail’s local cache is trusted because Sail is its only writer (trust model). Restored entries are not signed. A forged entry with a plausible shape would be served, and so would a forged receipt in projects/. Restore only caches written by workflows you trust. GitHub scopes caches by branch: a run can restore caches from its own branch and the default branch, and a pull request’s caches are visible only to that pull request, so a pull request cannot poison main’s cache. To accept replies from less trusted writers, use the signed team store, whose readers verify every entry.
  • A restored target/ is Cargo’s decision. In SAIL3112 mode, as with stock, Cargo decides from its fingerprints whether Verus runs at all. In the Anvil rows marked ¹, neither tool re-verified the unchanged crate. That is the trust model of caching target/ for any Rust project.
  • Managed targets and receipts need the same tools at the same paths. They are keyed by the installed tools’ bytes and absolute paths, so a restored projects/ is reused when the runner installs the same Sail and Rust toolchain at the same locations, as the example workflow does. A different Sail version or toolchain is a miss, never a wrong reuse. It is large (98–248 MB compressed), so in SAIL3112 mode do not persist it. On a persistent self-hosted runner, keep ~/.cache/sail in place instead of saving and restoring it. Prune old workspaces with sail cache projects prune --older-than DAYS (disk use).
  • The checkout path matters. Managed workspaces are keyed by their absolute path. GitHub-hosted runners always check out to the same path, /home/runner/work/REPO/REPO, but self-hosted runners with several work directories do not.
  • Unchanged-call replay starts over after a restore. The first run after a restore takes the full path, because the replay record binds file inodes (freshness). Later identical calls on that runner replay.
  • The edit-commit cost is the frontend. With every solver reply cached, an edited Anvil still spends about 86 s compiling and running Verus on its one large crate. The cache removes solver time, not Rust or Verus frontend time (performance).

Background preparation

Available in published 0.2.0 and the earlier registry prerelease 0.2.0-rc.1. Installed feature controls pass on native Linux and macOS; performance limits remain below. Published 0.1.0 does not provide this behavior.

After a successful Current Cargo verification, Sail can prepare the next unchanged invocation in its daemon while your command has already returned. sail new can also start ordinary project verification after creating the project, without waiting for Cargo or verification to finish. This uses the same pinned runtime and proof checks as explicit verification. Exact focused Cargo invocations can prepare only that same argument-bound scope; their target remains incomplete, and a later whole-target call still requires independent full verification. Interactive-engine focus is not prepared.

Ordinary verification, watch, repair and jobs take priority across workspaces. An immediate call cancels unfinished preparation and verifies normally; it does not wait for a prepared result. Later reuse still checks current inputs and keeps the original proof’s establishing run. The handoff binds the successful run’s complete closing input revision, including generated inputs first discovered by a cold build. Before entering managed verification, the worker freshly checks the origin’s Current input record and declines a source edit already made while it was queued. It requires the exact closing revision again before recording; ordinary result revisions and establishing proof provenance are preserved. Edits invalidate old preparation. Background progress is never itself a verified result.

Preparation is automatic when the matching daemon supports it. To disable it:

SAIL_BACKGROUND_PREPARE=0 sail verify
SAIL_BACKGROUND_PREPARE=0 sail new demo

Inspect sail status --json’s preparation field for queued/running work and completed-record, superseded and failure counts. These are lifetime activity counters, not evidence that your current source is proved. The regular command’s diagnostics, exit status and JSON report remain authoritative.

If no preparation is offered, inspect sail verify --output json for Currentness and no_reuse. An unqualified Cargo setup verifies normally without managed proof reuse or preparation. The primary Verus pin uses Rust/Cargo 1.99.1; when compatible with your project, select it explicitly with RUSTUP_TOOLCHAIN=1.99.1 sail verify. Sail continues to honor project toolchain choices rather than silently replacing them.

The optional connection attempt and its individual reads/writes use a 25 ms timeout. A full listener backlog declines preparation through the ordinary verification path.

Preparation uses at most one additional worker. Requests are bounded and newer workspace requests replace older ones. Each captured output stream is limited to 16 MiB; exceeding that limit drains the output and declines replay publication. Stopping the daemon cancels its work; unfinished work is not resumed on restart. An unavailable or older daemon simply leaves ordinary verification available. Explicitly selected unavailable services are not replaced by project creation.

This uses idle CPU and disk after the command returns. Whether it reduces an immediate call, and its total CPU/memory cost, are separate measurements. It does not enable unselected digest optimizations or change focused verification scope.

An opt-in budget maintenance pass that already started may finish. Its cap is soft, and pruning rechecks workspace locks before removal; an already-started removal can finish before a new call acquires that workspace.

Disk use and cleanup

Managed compiler targets

Managed runs (every sail verify, jobs, MCP and repairs) build in their own Cargo targets under the Sail cache:

  • projects/<workspace-key>/compiler-artifacts/<family-key>/target/ holds the compiled dependencies and targets, shared by every run of one configuration, including every repaired function;
  • compiler-artifacts/<family-key>/repair-targets-v1/ is no longer used. Caches from before 2026-10-13 may still hold one target per repaired function there; deleting it is safe;
  • projects/<workspace-key>/<proof-context>/ holds proof receipts and run records.

The proof context can also hold unscheduled-scripts.json, an optional scheduling memo capped at 1 MiB. It avoids cleaning scripts a successful Current Cargo build did not schedule under exactly the same inputs. Deleting it is safe: the next run uses conservative script cleaning and can establish it again. It contains no proof receipt. Source edits and unknown selection closures retain conservative cleaning. Only scripts in the existing selected dependency closure contribute facts; an empty fact set writes no memo and an empty memo supplies no exemption. See the validation record for scope.

These directories grow with every workspace, copy and configuration you verify: one copy of a mid-sized project can take 2 GB. Automatic removal is disabled until you configure a project byte budget. sail cache stats shows their total on its last line, and sail cache projects lists and removes them per workspace:

sail cache projects list                        # size, last run, path, (missing) when deleted
sail cache projects prune --missing             # workspaces whose directory is gone
sail cache projects prune --older-than 14       # not run for 14 days or more
sail cache projects prune --older-than 14 --missing   # both conditions
sail cache projects prune --all                 # everything

prune removes a workspace’s targets, proof receipts and run records together. --dry-run shows what it would remove, and --json prints a machine-readable result for either command. The cache is $SAIL_CACHE_DIR, else ~/.cache/sail. A workspace’s path is known once one of its runs has finished; until then it is listed by key, and --missing never selects it.

Pruning costs only time. The next managed run of a pruned workspace is a cold run: it compiles its dependencies, verifies them and the workspace again, and records new receipts. Vstd is compiled and verified again while native-artifact store reuse is disabled (below). A pruned receipt is never reused, and a job or MCP result that was Current before the prune can no longer be confirmed unchanged, so it reads back Unknown (“inputs could not be confirmed unchanged; re-run”) until you verify again.

Pruning never waits and never removes a workspace that a managed run, job or repair is using: it reports skipped: in use for it, and you can prune again when it finishes. A run that starts while a prune is removing its workspace waits for the prune and then starts cold. Runs of Sail versions without sail cache projects are detected by their target lock only; stop older sail serve daemons before pruning.

sail cache stats|verify|gc|clear manage only SMT reply entries and never touch these directories.

Optional project byte budget

Configure a soft cap over managed workspace data, in bytes:

sail cache projects budget --max-bytes 21474836480  # 20 GiB
sail cache projects budget --json
sail cache projects budget --disable
sail cache projects prune --to-bytes 21474836480 --dry-run --json
sail cache projects prune --to-bytes 21474836480

The daemon enforces a configured budget during idle maintenance. It uses the managed cache selected by SAIL_CACHE_DIR (or the default cache), independently of its job store. sail serve --cache DIR selects the SMT-reply store; it does not move managed workspaces or their budget. Keep the same SAIL_CACHE_DIR in your CLI and service environments. It removes the least recently used whole workspaces with the same nonblocking locks as manual pruning. Active workspaces and the most recently used workspace are protected. A protected workspace can itself exceed the cap: the budget is soft, and JSON reports over_budget instead of removing active or newest data. Byte accounting uses the existing workspace sizes, counting hard links once within each workspace; it is not a filesystem allocation quota. There is no automatic eviction by default.

prune --to-bytes applies the same oldest-first/protect-newest policy immediately. It cannot combine with --all, --missing or --older-than. Its JSON preserves removed, busy and failed entries. Dry runs leave project data unchanged. Existing prune --all remains the explicit way to remove every idle workspace. Removing workspaces always removes their targets and receipts together.

Dependency store

Older builds populated dependency-store/v1/<key>/ with compiled registry dependencies such as vstd (ADR 0045); a vstd entry takes about 120 MB. V1 consumption and publication are now disabled (ADR 0053): its identity could miss native compiler inputs and hide a fresh compilation failure. SAIL_DEPENDENCY_STORE_ENTRIES, including a positive value, cannot re-enable it. Existing entries stay intact and can be deleted safely. Fresh projects and pruned targets compile and verify normally, then keep their own proof receipts. Exact solver caching remains available. The assessment records the safety reproduction, measured first-run cost and remaining performance work. A sound, fast replacement is still required.

Snapshot hints

snapshot-hints/<key>.json records, for each directory and argument list you run sail verify with, which package directories and extra inputs its last input snapshot read (a few kilobytes each). The next run reads those inputs while Cargo prints its metadata, and uses that snapshot only if the new metadata selects exactly the same inputs; otherwise it reads them again. A hint never decides what is verified or reused. Deleting snapshot-hints/ is safe at any time: the next run of each invocation only takes a little longer.

Development checkouts

Native-host source sync compares file contents and gives changed files current timestamps. This keeps reused Cargo volumes from treating an older checkout as already compiled. Build artifacts stay on the native host.

Sail’s own development uses one worktree per change under .claude/worktrees/. Remove a worktree once its branch is merged, after checking for uncommitted source. Build directories (target/) can be deleted at any time. When removing Docker containers, keep their volumes and avoid a global prune while other builds run. Raw logs stay outside the repository and are cited by SHA-256 from the validation records (M7 validation).

sail mcp: the MCP server

sail mcp serves verification to agents over the Model Context Protocol on stdin and stdout. It is built for agents that verify after every edit. The design decisions are in ADRs 0016 and 0024.

Tools

Verification: verify, counterexample, cached_result, the job tools (start_verification, verification_status, verification_result, cancel_verification, verification_events), the evidence tools (explain_failure, compare_verification, save_baseline, list_baselines, get_baseline) and repair (start_repair_validation). SMT: runtime_capabilities and runtime_execute.

Experimental, and may change in any release: the fragility tool, verify’s and start_verification’s portfolio and measure_fragility options, and requirement_assurance. Their descriptions in tools/list start with “Experimental:”, so an agent can tell them apart.

Registering it

The server is a stdio command: sail mcp, with no arguments. It needs what sail verify needs: Sail’s Verus (bundled in the release archive; sail engine status checks it), sail-z3 next to sail, and the Rust toolchain Verus pins. Start it from the project directory. Submission and project-oriented lookup tools accept project_dir where their schemas show it; durable job/evidence reads and cancellation do not.

Claude Code:

claude mcp add --transport stdio sail -- sail mcp                  # for you
claude mcp add --transport stdio --scope project sail -- sail mcp  # shared, in .mcp.json

claude mcp list then shows sail: sail mcp - ✔ Connected. The e2e managed phase (ci/test-claude-code.sh) runs this registration and listing with a pinned Claude Code CLI.

Any client that takes a JSON server list (.mcp.json and similar):

{
  "mcpServers": {
    "sail": {
      "type": "stdio",
      "command": "sail",
      "args": ["mcp"]
    }
  }
}

Use an absolute path to sail if it is not on the client’s PATH.

For interactive repair, install the engine in the same Sail cache used by the MCP process and CLI. If overriding SAIL_CACHE_DIR or SAIL_DAEMON_SOCKET, set the same absolute values in the MCP launch environment and CLI environment. start_repair_validation can change the submission project, but subsequent job/status/result/cancel, event, explanation and comparison calls use the server’s working directory to resolve its service. They reject project_dir. A relative cache override can route these calls to another service after switching projects. The repair walkthrough shows engine setup and the complete submission-to-baseline sequence. Keep MCP client transcripts and redirected tool output outside watched package roots and declared inputs during verification. Creating or updating those files inside the project can correctly invalidate the proof’s input freshness.

Raw SMT runtime

runtime_capabilities accepts {} and reports actual backend installation readiness. runtime_execute accepts {"request": ...}, where the request is the versioned document in Runtime. Both tools connect directly to the daemon’s separate runtime endpoint and autostart sail serve when no daemon is running. An older running daemon must be restarted; there is no embedded solver fallback. Set the same absolute SAIL_CACHE_DIR and SAIL_DAEMON_SOCKET for MCP and CLI clients.

Results retain exact solver output, caller obligation and requirement IDs, limits, pinned solver identity and per-check products. Unknown answers and incomplete executions set isError; capability readiness alone never proves a formula. Cancellation uses the endpoint’s separate control connection. These answers concern submitted SMT formulas and do not establish Rust implementation correctness. See ADR 0068.

Reading completed evidence

requirement_assurance (experimental integration tool) takes {"job_id":"JOB"} and reads the authenticated requirement groups from a completed neutral source job. It reports exact source relationships, conservative proof outcomes, original solver identities and explicit missing assurance. This read negotiates its own capability and fails for older services; it never synthesizes evidence or runs a verifier. With "attributed": true it reads an ordinary job submitted through start_verification with a requirements array of {"requirement_id","function"} objects. Those rows are submitter-attributed Verus evidence, never neutral-contract assurance. See requirement assurance.

Tool replies are agent-sized by default; see reply size. The server moves owned result graphs through the response envelope and encodes each complete JSON-RPC frame before taking the stdout write lock. Concurrent frames remain atomic. Cancellation remains registered through encoding and is checked again before publication; a cancelled response is suppressed before its write begins. A slow stdout consumer can still block writes (ADR 0034).

Job status, completed results, counterexamples and cached-result lookups read the jobs service socket directly inside sail mcp, without spawning a CLI child. Each read opens a connection and reads the complete fresh service reply; the service determines source currentness, and Historical evidence remains labelled historical. Relative SAIL_CACHE_DIR and SAIL_DAEMON_SOCKET settings resolve from each operation’s project directory, as they do for the CLI. A missing or refused connection uses the CLI read path instead, including service startup and legacy support. Once a direct read starts it is never retried through the CLI: a failure returns SAIL0813 with structured {"error":"read_failed"}, and an invalid version, response variant or job ID returns {"error":"invalid_response"}. Cancellation shuts down the read connection at once ({"error":"cancelled"}), and a late reply is discarded. Verification submission, repair submission and cancellation keep the CLI process ownership. Proof events and explanation/comparison tools keep their CLI paths. See the client contract.

Protocol

  • Transport. Newline-delimited JSON-RPC 2.0 on stdio. stdout carries only MCP messages, and the server writes nothing to stderr while serving.
  • Versions. The server is dual-era:
    • Clients that open with initialize get revision 2025-11-25, 2025-06-18, 2025-03-26 or 2024-11-05: the one they ask for, or 2025-11-25 if they ask for another.
    • Clients on revision 2026-07-28 send the version in each request’s _meta and may call server/discover. An unknown version gets UnsupportedProtocolVersionError (-32022) listing the supported ones. Claude Code uses this revision. The server/discover and tools/list results carry the revision’s caching hints: ttlMs: 300000 and cacheScope: "public", since the tool list is the same for every caller and fixed for the life of the process.
  • Methods. initialize, notifications/initialized, server/discover, ping, tools/list, tools/call and notifications/cancelled. There are no resources or prompts.
  • Errors. Malformed messages get the JSON-RPC errors (-32700, -32600), unknown methods -32601, and an unknown tool -32602. Invalid tool arguments and failed runs are tool results with isError: true and a message the model can act on.
  • Results. The JSON result is sent once. Clients on revision 2025-06-18 or later (including every 2026-07-28 client) get it as structuredContent, and one text block holding the summary. Clients that negotiated 2025-03-26 or 2024-11-05, which predate structuredContent, get the summary and then the JSON as a second text block. The JSON object’s first key is always summary: Claude Code shows the model only structuredContent, so the summary must be inside it.
  • Concurrency and cancellation. Tool calls run on their own threads, so ping and cancellation are served while a verification runs. The local job service runs jobs from different Cargo workspaces concurrently, up to SAIL_JOB_WORKERS at once (default: a quarter of the cores, from 1 to 4), and queues jobs in the same workspace behind each other (see concurrent jobs). Lookups inspect completed evidence without waiting for a newer verifier to finish. notifications/cancelled kills the run’s whole process group (cargo verus, Verus, shims, solvers), as sail watch does, and the call gets no response. Cancelling is always safe: the cache stores only complete replies.
  • Shutdown. When stdin closes, the server finishes the calls in flight and exits.

Reply size and detail

By default a reply carries what an agent acts on, failures first:

  • summary: a few lines. The first line is the outcome (FAILED, NOT VERIFIED, VERIFIED, ERROR or NO RESULT) with counts. Then one line per failing obligation, with its location and the counterexample’s source-level variables, and one line per error with its location.
  • Only the requested targets. A dependency target such as vstd is listed in dependencies with its function counts, not its report.
  • Counterexamples as source-level variables: Verus’s parameter x! becomes x, a local’s versions stay i@0, i@1. Solver internals (fuel%…, sort constants, $…) are dropped and counted in internal_assignments_omitted.

verify, verification_result, save_baseline and get_baseline take an optional detail:

  • summary (default): the agent view described under verify.
  • targets: the established document, with the requested targets’ complete reports and dependencies in place of the dependency targets.
  • full: the complete document, dependencies and raw solver models included.

counterexample, cached_result, explain_failure and compare_verification take detail summary (default) or full. For the first three, full keeps each counterexample’s raw get-model reply and every assignment; for a comparison, it lists unchanged functions too. Shaping only selects and abbreviates recorded evidence. It never changes a verdict, and an unknown or provisional function is never counted as verified.

Every tool’s summary states its result: a lookup gives each function’s verdict and models, an explanation its failing obligations, a comparison its counts by change and the changed functions, a baseline its outcome line, and a job tool the job’s state and currentness.

On a five-function demo with one failing function, measured on macOS (Apple M3), the verify reply went from 4.4 MB to 3.6 KB. verification_result went from 4.3 MB to 4.2 KB, each baseline reply from 4.3 MB to 3.0 KB, and counterexample from 279 KB to 2.5 KB. On vest (-p vest_lib, an edit that fails five functions), verify went from 18.3 MB to 14.7 KB, verification_result from 11.2 MB to 17.6 KB, each baseline reply from 11.2 MB to 12.4 KB, compare_verification from 3.1 MB to 33 KB and counterexample from 746 KB to 2.9 KB.

Persistent verification jobs

Use start_verification with the same default verification arguments as verify; it returns a durable job status immediately. It does not enable portfolio or fragility experiments. Pass its returned structuredContent.id as the job_id argument to:

ToolResult
verification_statusQueued/running/completed/cancelled/superseded/infrastructure-error, separately from proof outcomes.
verification_resultJob status and the versioned project envelope, with per-target reports, requested scope, establishing run, reuse and currentness. Running jobs return without waiting.
cancel_verificationCancel queued/running work and all verifier descendants; retain its history.

Jobs survive MCP-client restarts and share the same single local verifier worker as sail verify --background and sail watch. Read cached_result and counterexample while a newer run proceeds. They inspect completed jobs first; older MCP records remain historical evidence and cannot establish complete workspace/runtime freshness.

A job for a setup that cannot be bound to a proof receipt completes with a result marked no_reuse instead of failing; see setups without proof reuse.

After submission returns, use cancel_verification with its durable ID to stop the job. A cancelled read request or MCP disconnect does not cancel a submitted background job.

current applies to the recorded verification context and a revalidated declared input revision. historical applies to earlier inputs; unknown means coverage could not be established. Neither historical nor provisional evidence is a new verified claim about current code. Run verification_result to obtain complete scope, target identity, original report provenance, and counterexample data.

Evidence tools

explain_failure, compare_verification and the baseline tools run the sail explain, sail compare and sail baseline commands. They are read-only and conservative: they read recorded evidence from the local job service through the same CLI commands described in workspace verification. They do not accept project_dir; they use the server’s working directory and environment to find the service. No tool here verifies current inputs or generates proof edits. isError: false means the operation succeeded, not that a proof did.

ToolArgumentsResult
verification_eventsjob_id, optional stream_id and unsigned afterOne bounded page of the proof-event journal, with a reconnect cursor, gap and terminal. Stock jobs write no proof events today: a finished stock job returns an empty terminal page with a SAIL0903 gap.
explain_failurejob_id, package_id, target, kind (lib or bin), function, optional obligation, detailThe exact function report, run diagnostics and establishing provenance. Models are source-level variables unless detail is full.
compare_verificationafter_job and exactly one of before_job or baseline, optional detailA scoped comparison. Context or scope mismatches are incomparable, never regressions. By default differences lists only changed functions and unchanged_total counts the rest; detail: "full" lists every function. See comparisons for how functions that passed by Verus’s totals and repeated names are classified.
save_baselinejob_id, nameSaves a completed job under a new immutable name. An existing name is refused.
list_baselinesnoneSorted saved names.
get_baselinename, optional detailThe immutable snapshot, always historical. By default its result is the agent view; detail: "full" returns the complete snapshot.

Save and get return structuredContent.response: "baseline" with the snapshot in structuredContent.value (its result shaped by detail); list returns response: "baselines". MCP rejects a reply whose name, or for save whose job, differs from the request. A cancelled save may already have published its record, so inspect the name before retrying.

Comparisons

compare_verification and sail compare share one classification:

  • Passed by Verus’s totals counts as passing. A function reported unknown only because Sail could not attribute it one by one, in a crate whose Verus totals hold no error beyond its failed functions (counts.unknown_passed_by_verus_totals), is classified as verified, on either side. Any other unknown stays unknown. The difference keeps the reported before/after verdict and sets before_passed_by_verus_totals or after_passed_by_verus_totals; no per-function verdict is invented.
  • Repeated friendly names (VI-0010). Entries are keyed by friendly function name, and stock Verus gives several implementations the same one. Such a name is compared as one group when both sides hold the same number of functions under it and every one of them has the same result on each side: each implementation then makes the same transition, whichever is which. Otherwise the name is incomparable. Obligations are not compared for a repeated name.
  • The summary gives counts by change, the changed functions and one line per note: how many functions passed by Verus’s totals, how many repeated names were grouped (and how many functions share them), and how many stayed incomparable.

On vest (11af01dd, -p vest_lib, one failing assertion added to lemma_usize_shr8_is_div256), a baseline of the failing run compared with the run after the fix now reads:

Compatible comparison: 1 recovered, 3014 unchanged.
recovered: vest_lib::primitives::base256::lemma_usize_shr8_is_div256
3126 function(s) reported `unknown` passed by Verus's totals (not attributed one by one); the comparison counts them as passing, as Verus did. Their verdicts stay `unknown`.
Entries are friendly function names: 95 repeated name(s), shared by 207 functions (VI-0010), were each compared as a group, since every function sharing the name has the same result on each side.

The default reply is 2.4 KB; before this classification it read 95 incomparable, 2920 recovered in 1.26 MB, listing every function as changed. detail: "full" (every function) is 1.4 MB. Measured on EC2 c7i.4xlarge, us-east-1.

Tools

Charter rule 7 holds in every tool. A function whose establishment is provisional is reported as provisional, never verified, in summaries and in looked-up verdicts, with a null evidence_tier. unknown means verification was not confirmed and is never a settled failure. It does not by itself establish that Z3 exhausted a resource limit.

verify

Default verification submits a managed workspace job and waits for its result. While it waits it reads only the job’s lifecycle status, over the service socket when one is listening (otherwise sail jobs status), and reads the complete result once, after the job ends. Like sail verify, it reuses a Current report for unchanged inputs instead of verifying again, and the summary names the run that established each reused report. An unchanged call identical to an earlier one that verified nothing replays that call’s result without running Cargo, as sail verify does (unchanged-call replay); a forced call never replays. By default it returns the agent view below; detail: "targets" or "full" returns the schema-v2 report (docs/output-schema.md) and the project envelope, with per-function verdicts, establishment, evidence tier and provenance, obligation ids, counterexample models, diagnostics, timings and cache sources. The run is recorded for the lookups. Explicit module/function selectors use cargo verus focus, which is the pinned verifier’s supported partial entry point; whole-project requests use cargo verus verify.

ArgumentMeaning
source_fileOptional standalone .rs file, relative to project_dir. No Cargo project is generated; Cargo selectors cannot be combined with it. Use start_repair_validation for standalone interactive repair.
project_dirThe project. Default: the server’s working directory. Relative paths resolve against it.
package-p <package>.
moduleVerus --verify-module <module>: this module and its descendants (with function, --verify-only-module selects that function’s owning module), relative to the crate root (arith, foo::bar).
functionVerus --verify-function <function>: a unique substring of the name, or a pattern with * at either end. It is looked up in module, or in the crate root (--verify-root) if no module is given.
portfolioExperimental, verdict-changing. Optional accept-first-proof: sequential complete Verus attempts; every winning function comes from one complete run, with seed/configuration and attempt evidence. Never enabled by default.
measure_fragilityExperimental. Optional boolean: capture and replay solver sessions locally, attaching exact per-function scores; incomplete or ambiguous attribution stays null with a note. Cannot be combined with a portfolio.
cargo_argsFurther cargo verus verify arguments, before --. They may not contain -- or --output.
verus_argsFurther Verus arguments, after --.
detailsummary (default), targets or full; see reply size.

Request:

{"jsonrpc": "2.0", "id": 2, "method": "tools/call",
 "params": {"name": "verify", "arguments": {"project_dir": "/work/demo"}}}

Summary (the text block, and structuredContent.summary):

FAILED: 1 of 5 function(s) in demo failed: demo::max. 4 verified, 0 unknown, 0 provisional (exit 101).
Counts are functions. Verus's totals (6 verified, 1 error(s)) count verification units instead: for example, each loop is verified and counted separately from its function's body.
- demo::max#Function-Def/0 at src/lib.rs:21:1: counterexample a = 1, b = 0, r = 0
- error: postcondition not satisfied at src/lib.rs:22:13
Dependencies not shown: vstd (1871 function(s): 1871 verified, 0 failed, 0 other). Pass detail "targets" for the requested targets' complete reports, or "full" for everything.
Job 1791978243700-43390-1; currentness historical.

The default structuredContent (the agent view) holds:

  • summary, then detail: "summary";
  • counts: the requested targets’ functions by verdict, and verus_totals, Verus’s own verified and errors totals for them. Verus counts verification units, not functions (each loop is counted separately), and the summary says so when the two differ. counts.unknown_passed_by_verus_totals is the part of unknown that Verus’s totals clear: in a failing crate with incomplete attribution, when Verus reports exactly as many errors as there are failed functions, no other function had an error. Those functions stay unknown, but the summary reports them as “passed by Verus’s totals” and unresolved does not list them (see attribution coverage);
  • failures: each failed function (at most 20; failures_total counts all) with its verdict, establishment, evidence_tier and failing obligations: id, kind, outcome, at (file:line:column) and counterexample (variables);
  • unresolved: unknown and provisional functions (at most 20; unresolved_total);
  • errors: error diagnostics with message, at and Verus’s rendered text (at most 20; errors_total);
  • targets: each requested target’s identity, reuse, establishing run, attribution status, counts and Verus totals;
  • dependencies: the dependency target names and their counts;
  • no_reuse, present only for a run without proof reuse (see below);
  • job, exit_code, currentness, input_revision, notes, error, project_dir, sail_args, duration_ms and sources (input_revision, currentness and changed_during_run; the last is false for current evidence and null when historical or unknown currentness cannot establish when an input changed).

With detail: "targets" or "full", structuredContent contains project_dir, sail_args, exit_code, duration_ms, stored, summary and the schema-v2 report of the requested targets, together with job, sources and project_result, the version-2 project envelope. With targets, the envelope keeps only the requested targets and dependencies counts the rest. If Cargo fails before any verification target produces a report, the response contains job and project_result with its diagnostics rather than inventing a function report. Explicit portfolio/fragility paths and older Sail installations retain their existing report response; their legacy source snapshots cannot establish complete workspace/runtime freshness.

Complete reports. A requested target that Cargo finds unchanged is reported from its receipt: the complete report of the run that established it, for byte-identical inputs and the same proof inputs (see freshness). A failed or incomplete run publishes no receipt, so it is verified again on every call. The server’s own environment, such as an agent’s session variables, is not a proof input, so MCP and the CLI share results. Partial requests preserve their explicit scope. Explicit portfolio/fragility requests use their established paths. Builds that fail before verification report their diagnostics without inventing per-function verdicts.

Setups without proof reuse. cargo_args or verus_args that managed verification cannot bind to a proof receipt (--tests and other test, bench or example selections, --target-dir, Verus --log, --no-verify, --sysroot, -v, --message-format, Cargo --config, and the other SAIL3112 setups) are verified as sail verify verifies them: exactly as cargo verus verify does, in the project’s own Cargo target, with Sail’s solver cache. verify, start_verification and verification_result return the result as usual, marked so an agent cannot mistake it for reusable evidence:

  • the summary has a line No proof reuse (SAIL3112): <reason>; … saying the result is never current, and its outcome line is the usual one (FAILED, VERIFIED, …), or NO RESULT when Cargo found everything up to date and Verus verified no function;
  • no_reuse is {"code": "SAIL3112", "reason": …, "verified_as": "plain-cargo-verus"} (managed only for a process-loader variable under --engine interactive);
  • execution.verifier_invocations counts the aggregate Cargo-Verus driver result (one), including zero or several verified crates; setup/driver failure without that result counts zero. It is not a per-crate Verus work count;
  • the one target is named cargo verus verify, with reused false; its report covers every crate Verus verified in the run;
  • currentness is unknown, and notes has a SAIL3112: entry.

If sail verify could not run Verus at all (the report’s error is set), or printed no report, the result has isError: true and the end of its stderr.

counterexample

Returns counterexample evidence for a function or obligation from the latest matching completed job, falling back to older MCP records. Nothing is re-run. The full establishing report, including diagnostics, is available through verification_result.

ArgumentMeaning
project_dirAs for verify.
functionA full path (demo::arith::mul_pos), or a unique :: suffix (mul_pos).
obligationAn obligation id (demo::bad#Function-Def/0). The function part may be a suffix too.
detailsummary (default) or full (raw models).

At least one of function and obligation is required.

Obligations and models come from Verus’s AIR and SMT transcript logs, which every job (and so every MCP verification) asks Verus for. Plain sail verify does not ask for them (ADR 0047). A passing target whose proof a plain sail verify established, and that a job then reuses, reports Verus’s verdicts, rlimit and time with attribution.status unavailable, a note that the detail was not recorded, and no obligations. Failing targets are never reused, so a failure’s counterexample is always recorded.

The summary states each function’s verdict and, for each failing obligation, its location and source-level variables:

demo::max: failed
- demo::max#Function-Def/0 at src/lib.rs:21:1: a = 1, b = 0, r = 0
Job 1791978243700-43390-1; currentness historical.

Both counterexample and cached_result return this shape for job-backed lookups, including when only one function is selected:

{
  "project_dir": "/work/demo",
  "job": {"version": 1, "id": "JOB", "state": "completed", "currentness": "historical", "…": "remaining status fields"},
  "functions": [{
    "package_id": "…", "target": "demo", "establishing_run": "RUN", "reused": false,
    "function": "demo::bad", "verdict": "failed", "establishment": "confirmed",
    "evidence_tier": "smt_verified",
    "mode": "default", "configuration": null,
    "function_report": {"…": "complete schema-v2 function report"},
    "obligations": [], "counterexamples": []
  }]
}

The example abbreviates the job and report fields. Read job.currentness to assess whether the evidence applies to current inputs. establishing_run names the original proof run even when a later job reused its target. Counterexample lookups populate obligations and counterexamples; compact verdict lookups set those two fields to null and retain the full function_report. By default a counterexample lookup omits function_report, which repeats obligations, and every model is its source-level variables; detail: "full" keeps both. Obligation selectors restrict counterexample evidence to that obligation. A missing obligation or ambiguous function is an error, rather than an empty model.

Older MCP records use the following legacy format. Its freshness remains unknown unless tracked source changes establish that it is stale; those records cannot prove complete workspace/runtime currentness.

{"jsonrpc": "2.0", "id": 3, "method": "tools/call",
 "params": {"name": "counterexample", "arguments": {"function": "bad"}}}
demo::bad: failed
1 obligation(s) with a counterexample model:
  demo::bad#Function-Def/0: r! = 0, x! = 0
Established by run 2 (sail verify --output json) at 2026-10-08T22:41:21.259Z; Tracked sources are unchanged; complete workspace/runtime freshness is unknown for this historical record.

structuredContent holds:

  • function, verdict, establishment and evidence_tier (null unless the presented verdict is settled);
  • obligations: the function’s unproved obligations, or those with a model (only the named one, given obligation). Each is the schema’s obligation, with the counterexample as source-level variables; with detail: "full", counterexample.assignments as data (each with its ITF rendering, itf) and counterexample.model verbatim. The text summary lists only source variables (x!, i@0).
  • diagnostics: the run’s diagnostics located in the function. These are diagnostics with a span in the function’s file, from its first line up to the next function’s first line. Verus’s spans say where a function starts but not where it ends. diagnostics_matched_by says how they were matched.
  • attribution: the run’s attribution status and notes. Without attribution there are no obligations, and diagnostics holds every diagnostic of the run.
  • freshness: as for cached_result.

cached_result

Compact lookup responses and counterexample responses retain each function’s mode and configuration (including a portfolio seed). Their human summaries label opt-in modes and seeds too. Run freshness includes the originating mode and winning seed; recalling a portfolio proof never relabels it as default.

Looks up the latest matching completed job for a function or obligation, or its requested functions when given neither. If no completed job matches, it falls back to an older MCP record. Nothing is re-run. Arguments are as for counterexample, all optional.

{"jsonrpc": "2.0", "id": 4, "method": "tools/call",
 "params": {"name": "cached_result", "arguments": {"function": "demo::max"}}}

The following example shows the legacy-record fallback; job-backed responses use the job and functions shape above.

demo::max: verified
Established by run 2 (sail verify --output json) at 2026-10-08T22:41:21.259Z; The sources changed since this run: its results apply to the earlier sources only. Re-run verify to confirm.

The structured response below is schematic: ellipses omit nested report fields.

{
  "project_dir": "/work/demo",
  "function": "demo::max",
  "verdict": "verified",
  "establishment": "confirmed",
  "evidence_tier": "smt_verified",
  "result": { "function": "demo::max", "verdict": "verified", "obligations": [ … ], … },
  "freshness": {
    "status": "stale",
    "run": 2,
    "established_at": "2026-10-08T22:41:21.259Z",
    "established_by": "sail verify --output json",
    "exit_code": 1,
    "scoped": false,
    "sources_changed_since": true,
    "sources_changed_during_run": false,
    "changed_files": [{"path": "src/lib.rs", "change": "modified"}],
    "changed_files_total": 1,
    "note": "The sources changed since this run: its results apply to the earlier sources only. Re-run verify to confirm."
  }
}

With obligation, result is replaced by obligation (the schema’s obligation). With neither argument, functions lists each recorded function’s verdict, establishment, evidence_tier, unstable flag, provenance source, run and status, and runs holds each run’s freshness.

fragility

Experimental, like sail fragility. Runs sail fragility --output json (ADR 0018) with verify’s arguments (the FRAGILITY_COMMAND line in crates/sail-mcp/src/tools.rs). The command captures one Verus run through the pass-through shim, re-runs every solver session under 8 seeds, and returns per-check answer and effort distributions, stability classes and scores in result. It changes no verdict and never touches the cache. Expect it to take several times as long as verify. Selecting a module or function runs cargo verus focus, and checks are attributed to a function only when exactly one function was verified.

The tool checks sail help fragility on every call. A sail without the command gets isError: true with {"available": false, "error": "not_available"}.

The result store

Every verify that produces results is recorded per project. A record holds the report, when the run finished, its sail arguments, its exit code, and a snapshot of the project’s sources taken just before the run.

  • Snapshot. The SHA-256 of every *.rs and Cargo.toml under the project directory, skipping target/ and hidden directories.
  • Per function. For each function the store keeps the latest run that reported it. A scoped run (a package, module or function) updates only its functions. An unscoped run replaces the set, forgetting functions it no longer reports.
  • Where. In memory, and in <cache>/mcp/<hash of the project path>.json (<cache> is $SAIL_CACHE_DIR or ~/.cache/sail). So results survive a server restart and are shared by servers on one machine. A store file that cannot be read or written is ignored, and the verify result says so. Store format 2 requires reverification of older records: those reports predate conservative handling of incomplete attribution (VI-0003) and cannot establish current confirmed results.
  • Staleness. A lookup compares the run’s snapshot with the sources now. Any difference, or a change while the run was in progress, makes the result stale. The changed files are listed. A stale verdict applies to the earlier sources. Files outside the project directory (path dependencies elsewhere, the toolchain) are not tracked.
  • Never the source of a verdict. The store only reports what a recorded sail verify run said, with its provenance.

Proof repair tools

The optional interactive engine is selected explicitly; it is part of Sail’s Verus, the validated pinned runtime every verification uses. start_verification accepts engine: stock (ordinary verification with Sail’s Verus; the name is kept for compatibility) or engine: interactive; stock is the default. Use sail engine status --output json to inspect the selected installation; see the repair walkthrough for setup and a complete focus/full regression example.

  • start_repair_validation requires an exact crate-qualified function and engine: interactive. Select either source_file for an existing standalone .rs file, or package and kind (lib or bin) for Cargo. A binary also requires target; a library omits it. Standalone repair rejects Cargo selectors and cargo_args. Optional project_dir and verus_args preserve verification configuration; Cargo repair also accepts cargo_args. It returns a durable job ID immediately. Read the independent focused/full bundle with verification_result; a focus success never authorizes the repair.
  • verification_events takes job_id, optional stream_id and unsigned after. It returns one bounded page and a reconnect cursor. Observe gap and terminal; provisional observations are not confirmed proofs.
  • explain_failure takes exact job_id, package_id, target, kind and function, optionally obligation and detail. It preserves verifier reports, diagnostics and provenance without generating proof edits; raw models need detail: "full".
  • compare_verification takes after_job and exactly one before_job or immutable baseline. Context/scope mismatches and unobserved functions stay explicit; they are not labelled proof regressions.
  • save_baseline takes job_id and name. The job must have completed under the existing service checks. An existing name cannot be overwritten. Failed, unknown, provisional or incomplete target evidence is retained as reported; saving does not accept a repair or create a proof receipt.
  • list_baselines takes no arguments and returns sorted saved names.
  • get_baseline takes name and optional detail, and returns the immutable snapshot: the recorded job and name, with its result as the agent view, or with detail: "full" the complete input revision, context, targets and reports. Its currentness is always historical; it never revalidates today’s workspace.

Baseline operations resolve the same local job service as job reads. They do not accept project_dir; use the server’s working directory and the same absolute cache and socket overrides as submission. Names use 1–80 ASCII letters, digits, dots, underscores or hyphens, excluding . and ... The CLI equivalents are sail baseline save NAME --job JOB, sail baseline list and sail baseline get NAME --output json. For a literal name that looks like an option, place output options first: sail baseline get --output json -- --json.

Save/get return the existing job response envelope: structuredContent.response is baseline, with a version-one snapshot in structuredContent.value. List returns response: baselines and a string array in value. No baseline operation reports a new Current proof. MCP rejects a response with the wrong requested name or, for save, the wrong original job. The existing local RPC payload limit remains; oversized evidence fails rather than returning a truncated graph. A cancelled save call may already have published its immutable record; inspect the name before retrying.

get_baseline adds a read-only job operation without changing the protocol version or existing save/list operations. An older running service rejects the unknown request with SAIL0802; it does not return an empty baseline. Update and restart that service before using get. Saving and listing remain compatible with the existing service operations.

See proof-repair.md for currentness, compiler-seal and journal retention contracts.

Submission returns structuredContent.id; it only acknowledges a durable job. On the completed verification_result, inspect structuredContent.value.repair.accepted and the independent full report. isError: false means the tool operation succeeded, not that a proof succeeded. Use the exact package/target/function identities in the report for explanations and comparisons. MCP events are paged reads; CLI --follow is not an MCP argument.

Proof repair’s validation record is M7 validation.

Raw SMT runtime

Use sail runtime to submit complete SMT-LIB transcripts through Sail’s bundled pinned Z3. This command is independent of sail verify: a satisfiability answer is evidence about the submitted formula, not proof that Rust code implements it.

Inspect actual installation and implemented capabilities:

sail runtime capabilities

A missing or changed solver is reported as unavailable. Release installations use Sail’s bundled runtime. In a source checkout, install the existing pinned engine as described by sail engine --help; no separate Z3 installation is needed. PATH is not searched for a solver.

Save a version-one request in query.json:

{
  "version": 1,
  "input": {
    "kind": "smt",
    "queries": [
      {
        "obligation_id": "requirements/consistency",
        "requirement_ids": ["REQ-001"],
        "backend": "z3",
        "script": "(set-option :produce-models true)\n(declare-const count Int)\n(assert (> count 2))\n(check-sat)\n(get-model)\n"
      }
    ]
  }
}
sail runtime execute --file query.json
cat query.json | sail runtime execute --file -

Both commands print one JSON response. Query order and caller identities are preserved. Each result separates the process outcome from ordered satisfiability checks and their model, value, unsat-core or reason-unknown products. Raw solver output is retained alongside its pinned identity and exact input hash. Requirement IDs must be sorted and unique. Unknown JSON fields are rejected.

A batch admits at most 64 queries and 16 MiB of total script bytes. Each query may set limits: resource_limit, wall_time_ms, input_bytes and output_bytes. Defaults are 2,000,000 Z3 resource units, a 30-second safety deadline, 16 MiB input and 16 MiB per output stream. Limits must be positive; the maximum wall deadline is five minutes. The sum of three times each query’s output budget must fit 128 MiB across the batch, reserving space for both streams and extracted products. Large batches must choose smaller per-query output limits. The JSON envelope is bounded at 128 MiB before decoding. Resource options in a script must agree with its request limit, and solver seeds must remain zero. See the complete admission rules.

Transcripts may use push/pop and multiple checks. Follow-up products must belong to the current check and the appropriate answer: a model requires sat, a core requires unsat. There are no persistent session handles in this version. Unsupported commands fail admission before solver execution. Missing, extra or malformed output, nonzero process exit and solver stderr fail the whole transcript. An apparently successful prefix is never returned as complete.

The default cache lives below Sail’s cache directory in runtime/; --cache DIR selects a different runtime cache root. Entries bind exact script bytes, effective options, limits, protocol, fixed execution environment and pinned solver identity. The solver environment is cleared and sets LC_ALL=C; ambient loader or solver settings are not forwarded. Complete transcripts containing only decided answers may be reused; timeouts, cancellation, output overflow, infrastructure failures and unknown answers are not cached as successful evidence. Reuse preserves original solver bytes and reattributes them to the current caller’s identities.

Shared daemon and MCP

sail serve binds a separate version-one runtime endpoint beside its cache and Cargo-job endpoints. The runtime shares the daemon’s idle-activity guard and shuts down with it. To use that service explicitly from the CLI:

sail serve --socket /path/to/cache.sock
# In another terminal:
sail runtime capabilities --socket /path/to/cache.sock
sail runtime execute --file query.json --socket /path/to/cache.sock

--socket names the cache socket, from which the runtime endpoint is derived. It connects without autostart or local fallback. Without --socket, runtime commands retain their embedded execution path. --cache and --socket are mutually exclusive. Both paths use the same executor and cache grammar.

The MCP tools runtime_capabilities and runtime_execute use this service directly. The first tool accepts no arguments; the second takes one request object in the format above. MCP resolves SAIL_CACHE_DIR and SAIL_DAEMON_SOCKET from its working directory and starts the configured sail serve when no daemon is running. A running older daemon without a compatible endpoint must be restarted; MCP does not bypass it with an embedded solver. The shared daemon outlives an individual tool call.

The runtime socket is mode 0600 inside an owner-owned real directory of mode 0700. Symlink parents and permissive endpoints are refused. Each framed request has a separate transport version and identity; incomplete frames, excess size, changed attribution and incompatible responses fail closed. The default service admits eight client connections and two active executions, reserving capacity for cancellation and capability requests. These are service admission bounds, not a global memory guarantee. Disconnecting an execution cancels its work. MCP cancellation sends a separate control request and never publishes a cancelled call as completed proof.

Exit 0 means every transcript completed with decided answers; either sat or unsat qualifies. Exit 1 means unknown or incomplete execution. Exit 2 means invalid input or setup failure. Ctrl-C cancels active work and reaps its solver processes. Capabilities are descriptive and exit 0 even if a backend is missing.

The SMT family implements Z3 only. Native temporal execution is described below. Neutral-contract verification and requirement assurance remain separate integration slices. None is implied by raw SMT completion. See ADR 0068.

Native temporal jobs

Native temporal jobs are experimental and are not in public release builds. The same runtime endpoint accepts input: {kind: "temporal", job: ...}. sail-api::temporal::Job contains caller obligation_id, sorted unique requirement_ids, an immutable native request and positive wall_time_ms (up to five minutes). The native request supplies the closed source map, root/configuration and check, finite simulation or trace validation operation. See native temporal jobs for the admitted semantic scope.

capabilities.temporal reports implementation and authenticated worker installation separately. A sail built from the main workspace, including every public release archive, links no temporal backend: it reports installed: false with the unavailable reason “native temporal support is not included in this sail build”, and temporal jobs return Unavailable (ADR 0083). Older services omit this field; temporal clients must restart or upgrade instead of falling back. Existing SMT requests and version-one wire fields retain their meanings.

The result preserves caller identity, exact request identity, D.I.V.E. source revision, worker digest and deadline. Execution failure has no native response. A completed execution includes the original typed native response, reports, traces and validation evidence. Native stopped/unsupported/error outcomes are explicit. Neither finite simulation nor trace validity is an exhaustive proof. This slice does not cache temporal evidence or establish assurance tiers.

Internal installations build the temporal-enabled sail and the worker from the temporal extension workspace, which needs read access to the private D.I.V.E. source, then stage the worker beside that sail:

cargo build --locked --manifest-path extensions/temporal/Cargo.toml --target-dir target/temporal
python3 scripts/stage-temporal-worker.py target/temporal/debug/sail-runtime-worker target/temporal/debug

The manifest records the exact linked source revision, payload protocol, platform and worker digest. Internal release staging (SAIL_RELEASE_TEMPORAL=1) uses the same helper after stripping final bytes and binds both files in its release inventory. No PATH search, caller-selected executable, Java or TLC process participates.

Verification reports: schema version 2

A schema-v2 report describes every function one Verus run verified. This page is the reference for that document; the decisions behind it are in ADR 0014, amended for version 2 by ADR 0044. sail verify --output json (managed verification, the default; ADR 0046) prints a sail-project-result envelope holding one schema-v2 report per Cargo target, including targets whose reports were reused; see workspace verification. MCP verify returns the requested targets’ reports, and sail verify --measure-fragility and the opt-in portfolio print one schema-v2 report directly.

Each managed target’s target is Cargo’s exact target name, including hyphens. Distinct binaries foo-bar and foo_bar have separate target reports and proof receipts. Compiler crate-name normalization does not establish target identity. An ambiguous observation produces SAIL3107 rather than a reusable report.

  • JSON Schema: crates/sail-api/schema/verify-output-v2.json (draft 2020-12).
  • Rust types: sail_api::output (Report and the types it contains).
  • An example document: crates/sail-cli/tests/fixtures/attr/report.golden.json (from crates/sail-cli/tests/fixtures/attr/input.rs).

MCP tools return a smaller agent view of these reports by default (requested targets only, source-level counterexample variables). They return this document unchanged with detail: "targets" or "full"; see MCP reply size. The CLI document is unchanged.

Invocation and streams

--output json (or --output=json) belongs to sail. It may appear anywhere before a --. Everything else is passed to cargo verus verify unchanged and in order. After a --, every argument belongs to Verus.

StreamContents
stdoutExactly one JSON document, followed by a newline. Nothing else.
stderrEverything cargo verus verify writes to stderr, byte for byte, as it arrives (Cargo’s status lines and Verus’s diagnostics), plus any non-JSON text Verus printed on stdout.
exit codecargo verus verify’s exit code, or 2 with a SAIL01xx error if sail could not set up.

Under --output json, cargo verus writes stderr into a pipe rather than a terminal, so colours are off unless you force them (CARGO_TERM_COLOR=always). The bytes are otherwise the same as plain cargo verus verify, and the e2e CI step checks this.

Without --output json, sail verify adds nothing: its output is byte-identical to cargo verus verify.

What --output json adds to the Verus command

sail adds these Verus options for each verified target. It passes them as Cargo-Verus passes the user’s own options after --: in the Verus driver’s __VERUS_DRIVER_ARGS__ variable, ahead of the user’s options, never on the compiler’s command line. The command line a procedural macro can read is plain Cargo-Verus’s (#393). The dep-info records the variable’s value without Sail’s options, so Cargo’s freshness is unchanged.

  • --output-json --time, unless already present. Verus then prints its own per-function results (stdout, captured by sail). Plain sail verify adds them too, and prints Verus’s own output rebuilt from them.
  • --log smt-transcript --log air --log-dir <scratch>, for the obligation detail (see Attribution coverage). Only runs whose report is read add them: --output json, and so jobs and MCP, and repairs. Plain sail verify does not (ADR 0047).

None of these flags changes a byte of what Z3 receives. This is tested against the pinned Verus (crates/sail-verus/tests/attribution_verus.rs). --log smt does change Z3’s input, and sail never adds it.

When Cargo considers every package up to date, Verus does not run. crates is then empty and attribution.notes says why. To re-verify, change a source file or run cargo clean -p <package>. Cargo does not re-verify a fresh crate because Verus’s arguments changed (docs/verus-issues/VI-0005).

The document

All field names are snake_case. Existing optional values are present as null. The additive portfolio evidence and proving-configuration fields are omitted when no portfolio was requested.

FieldTypeMeaning
schema_version2This schema.
sail_versionstringThe sail that wrote it, exactly as sail --version prints it (a release build includes its suffix, for example 0.1.0-rc.5).
modestringdefault, or explicitly selected accept-first-proof (charter rule 8).
commandstring[]Cargo/Verus arguments without sail’s own flags, adjusted to this target’s effective focused and compile-only settings.
exit_codeint | nullcargo verus verify’s exit code.
solverobject | nullname (z3), version (as Z3 reported it), path, sha256 of the binary.
cache.daemonboolWhether solver sessions could be served from the cache daemon.
attributionobjectstatus (complete, partial or unavailable), notes (plain-language reasons), unmatched_sessions.
cratesarrayOne entry per Verus run (crate), in the order Verus finished.
diagnosticsarrayVerus’s diagnostics as data (see Diagnostics).
summaryobjectCounts over all functions: functions, verified, failed, unknown, provisional, unstable.
errorobject | nullcode and message when sail could not run Verus at all.
engineobject (optional)Only for an explicitly selected source engine (ADR 0027); see Engine provenance. Omitted for stock verification.

Cargo can forward different Verus options to a requested target and its dependencies. A report retains the original Cargo selection and other options, while focused selectors and --no-verify describe the effective package scope. Implicit logging flags are not added to this field. Compile-only success cannot establish proof authority; input currentness remains a separate observation.

A crate has a name (from its functions’ paths), verus (Verus’s own verified, errors, success and encountered_vir_error), and functions, sorted by name.

Counting units. summary and functions count functions. Verus’s verified and errors count verification units: for example, each loop is verified and counted separately from its function’s body. So a crate of five functions, two with a loop, can report 6 verified, 1 errors for one failed function. The two counts are expected to differ.

Functions

FieldMeaning
functionThe function’s crate-qualified path as Verus names it: demo::max, demo::arith::mul_pos, demo::Counter::incr.
moduleIts module as Verus reports it ("" for the crate root).
fn_modeexec, proof or spec.
verdictverified, failed, unknown or provisional. See Verdicts.
establishmentHow the result was established: confirmed or provisional.
evidence_tierHow strong the evidence for a settled verdict is: smt_verified for every verified or failed verdict today, null for unknown and provisional. See Evidence tier.
unstableWhether any of its answers could plausibly differ between plain Verus runs: a proof that used more than half its rlimit, or a give-up from resource exhaustion or near the limit (ADR 0009); also true when explicit replay measurement observes both proofs and failures.
verus_successVerus’s own success for it, verbatim. Incomplete for bit-vector queries (docs/verus-issues/VI-0003).
provenancemode; optional portfolio configuration.seed; source (fresh, cache, mixed or unrecorded); checks_solved, checks_served and checks_unrecorded; optional engine for source-engine results (Engine provenance).
timingsmt_micros and rlimit, as Verus reports them.
fragility{score, runs, proved} after an explicit complete replay measurement; otherwise null, with attribution notes when measurement is incomplete.
obligationsIts obligations, or null if attribution was unavailable for it.

Obligations

One obligation is one solver query op that Verus ran for the function: an AIR check-valid, sent to Z3 as one (push) … (pop) block, or as its own process for a spinoff.

FieldMeaning
idThe stable identity (next section).
kindVerus’s op kind: Function-Def (the body or a loop), Spec-Termination, Check-Api-Safety, Function-Recommends, Function-Expand-Errors; any of them may carry a -Profile-Rerun suffix.
ordinalIts position among the function’s in-module ops of this kind (0 for spinoffs).
spinoffnull, or {index, reason} for an op Verus ran in its own process (reason: nonlinear, bitvector, profile_rerun or spinoff_all).
advisorytrue for recommends, expand-errors and profile reruns. Their failures are notes or warnings in Verus, not errors, and never fail the function.
spanVerus’s span for the op (text verbatim, plus file, line, column, end_line and end_column). It is informational and not part of the identity.
outcomeproved (the first check answered unsat), failed, or unknown.
unstableAs for functions, for this obligation’s checks.
checksEvery check-sat in the op, in order: answer, rlimit_limit, rlimit_used, reason_unknown, and source (solved, cache, or null if not recorded). The first check decides validity. Later checks are Verus locating further failing assertions.
counterexampleThe first model Z3 gave for the op, if any: check (an index into checks), model (the get-model reply verbatim), and assignments (each zero-arity define-fun as {name, sort, value, itf}; see ITF values).

Verus encodes names in models. Parameter x is x!. Successive versions of local i are i@0, i@1, and so on. Assertion labels are %%location_label%%N, where false marks an assertion that failed in this model.

ITF values

Each assignment’s itf is its value in the value encoding of ITF (Apalache’s Informal Trace Format), so clients can read model values in one format:

SortVerbatim valueitf
Booltruetrue
Int42, (- 42){"#bigint": "42"}, {"#bigint": "-42"}
(_ BitVec n), n ≤ 128#xff, #b101{"#bigint": "255"}, {"#bigint": "5"} (unsigned)
anything elseFuelId!val!55, (I 3), 1.0{"#unserializable": "FuelId!val!55"}

itf is a rendering, never a replacement (charter rule 3). model keeps the solver’s get-model reply byte for byte and value keeps each value verbatim. The cache stores and replays the solver’s exact bytes.

Obligation identity

<function>#<kind>/<ordinal>          an op run in the function's module process
<function>#<kind>/spinoff-<index>    an op spun off into its own process

For example: demo::sum_to#Function-Def/0 (the loop), demo::sum_to#Function-Def/1 (the body after it), and demo::arith::mul_pos#Function-Def/spinoff-1.

What survives. An identity contains no source positions, no bucket or process order, and nothing derived from other functions. So it is unchanged by:

  • edits to other functions, including adding, removing or reordering them;
  • edits anywhere that move the function within its file (comments, blank lines, new items above it);
  • edits to the function’s body that do not change its op structure (for example changing an expression).

crates/sail-verus/tests/attribution_verus.rs checks this against the pinned Verus. It inserts a function and comments above everything, swaps two functions, and edits a third function’s body. Every identity is then unchanged, although every span moved.

What does not survive.

  • Renaming or moving the function (to another module or impl, or under a renamed crate): the path is part of the identity. The test checks this too.
  • Changing the function’s op structure: adding or removing a loop, or a by (nonlinear_arith) or by (bit_vector) block, renumbers that function’s ordinals or spinoff indices from the change onwards.
  • Changing a function’s verdict can add or remove ops. For example, Verus runs a Function-Recommends op only after a Function-Def failure, so that obligation exists only while the function fails.

Spans are reported with every obligation so that tools can match across a rename or move themselves. Matching by function path and kind, with the span as a tie-breaker, recovers most refactors.

Verdicts, establishment and evidence tier

  • verified: confirmed, and proved. Verus said success, and no attributed verdict-bearing obligation failed.
  • failed: confirmed, and not proved, and the failure is settled: Z3 found a model, or gave up far from its limit for its own reasons (for example (incomplete quantifiers)).
  • unknown: verification was not confirmed. Z3 may have given up at or near its limit, or no answer was recorded. Resource failures appear in plain Verus as failures (for example rlimit exceeded). A failing crate with incomplete attribution also leaves apparently successful timing entries uncertain (VI-0003). sail never presents an unknown as a settled failure (ADR 0009).
  • provisional: not yet established by the pinned solver on the exact query. A provisional result is never verified, whatever its evidence says (charter rule 7). sail verify itself never produces provisional results. Every answer it reports came from the pinned Z3, fresh or from the cache, so its establishment is confirmed. Live proof observations (sail jobs events, MCP verification_events) are provisional.

establishment and evidence_tier are two separate axes (ADR 0044). establishment says how a result was established; evidence_tier says how strong the evidence for a settled verdict is.

Evidence tier

The evidence tiers are ordered, weakest first:

ValueMeaning
sampledRuntime-checked contracts under property tests.
boundedChecked within declared bounds.
smt_verifiedSettled by an SMT solver.
certificate_checkedSolver proof certificates checked independently.
kernel_checkedChecked by a proof assistant’s kernel.

evidence_tier is set exactly when the verdict is settled (verified or failed) and is null otherwise. Every verdict Sail settles today comes from the pinned Z3 through Verus, so it is smt_verified. The other values are reserved for the verification runtime (scope), which adds to version 2 rather than changing it. A verdict is never upgraded across tiers.

Agreement with Verus. Complete attribution combines Verus’s reported success with every primary obligation outcome. Partial function requests exclude timing entries for unselected functions (VI-0009). In a failing crate with incomplete attribution, apparently successful timing entries remain unknown, with their raw success fields retained (VI-0003). Verus’s success stays true for a function whose only failure is a bit-vector query (VI-0003), although Verus reports the error and exits non-zero. When attribution shows the failed bit-vector obligation, sail reports failed. This agrees with Verus’s diagnostics and exit code. The e2e CI step checks agreement with Verus’s --output-json.

Provenance

Each check records how its answer was established (charter rule 7):

  • solved: a fresh run of the pinned Z3;
  • cache: a cache hit, which is always a reply the pinned Z3 produced for the same key (ADR 0008);
  • null: no record. For example, the daemon could not be reached and the shim fell back to pass-through, or a solver session grew past the shim’s retained-bytes bound (SAIL_SHIM_BUFFER_BYTES, default 256 MiB) and continued as pass-through without the cache.

A function’s provenance.source summarises its checks:

  • fresh: all solved;
  • cache: all served;
  • mixed: some of each;
  • unrecorded: at least one check has no record.

Engine provenance

Reports from the optional interactive source engine (--engine interactive, ADR 0027) carry an engine object at the top level and in every function’s provenance:

FieldMeaning
nameinteractive.
manifest_sha256SHA-256 of the validated engine build manifest.
established_byengine: the engine’s complete, sealed full phase produced the report. stock-fallback: the engine faulted and the exact stock Verus invocation produced it; such a report publishes no proof receipt and cannot accept a repair.

mode stays default: the engine is not a verdict-changing mode, and its conformance arm compares it with plain Verus. Managed project results add the same identity (without established_by) as a top-level engine field.

Diagnostics

Each top-level error, warning, note or help block on stderr becomes {level, code, message, spans, rendered}:

  • rendered is the block verbatim (ANSI colours removed);
  • spans lists its --> (primary) and ::: locations.

Nothing is reworded. Diagnostics are not yet linked to obligations. Standalone Rustc artifact events are build metadata and do not become part of a diagnostic’s rendered text. Indented examples and unrecognized JSON remain verbatim diagnostic text.

Attribution coverage

Attribution needs Verus’s logs.

Reports established without logs. Plain sail verify asks Verus for no logs (ADR 0047). When a later --output json, job or MCP run reuses a passing target whose proof such a run established, that target’s report has attribution.status unavailable, a first note saying the obligation detail was not recorded by the run that established it, obligations null, provenance source unrecorded and unstable false (it needs per-check effort). Its verdicts, rlimit and time are Verus’s own, as with logs: a target is reused only when Verus reported no error, so every function is verified. The next run that verifies the target again records the detail.

Older managed and single-file rules. Verus deletes every file in its log directory when it first writes there, and cargo verus gives every package and target in a run the same log directory (docs/verus-issues/VI-0004). sail therefore asks for logs only when one Verus process will write them: a single workspace member with at most one lib or bin target, and no --log arguments of the user’s own.

Otherwise attribution.status is unavailable, its notes say why, and every function’s obligations is null. Successful crates use Verus’s JSON; failing crates leave apparently successful timing entries unknown with a note.

partial means some processes could not be matched. The notes say which. Verus can overwrite a spinoff’s log when two ops of one function both spin off (survey §6). unmatched_sessions counts cached solver sessions that matched no log.

Functions that pass by Verus’s totals. Failing crates with incomplete attribution leave successful timing entries unknown, but Verus’s errors total does count every failure, bit-vector ones included (VI-0003). So when a crate’s verus.errors equals the number of its functions reported failed, no other function had an error, and its unknown functions passed by Verus’s totals. Their verdicts stay unknown in this document, since no per-function evidence confirms them. The human summaries (sail jobs result and MCP) report them separately as “passed by Verus’s totals”, and MCP counts them in counts.unknown_passed_by_verus_totals. A Vest edit with one failing lemma, for example, reads 0 verified, 1 failed, 3126 passed by Verus's totals (not attributed one by one), 0 unknown rather than 3126 unknown.

Durable jobs wrap this report in a project result, envelope version 2 (crates/sail-api/schema/project-result-v2.json). The proof-event journal read by sail jobs events and MCP verification_events has its own version-one schemas, which use this document’s function, obligation and diagnostic definitions: crates/sail-api/schema/proof-event-v1.json for one event and crates/sail-api/schema/proof-page-v1.json for a page. Events never replace the completed report; a provisional observation is never a verified claim.

Compatibility

Within schema version 2, fields are only ever added. A field is never removed, renamed, or given a different meaning; any such change is version 3. Consumers must ignore fields they do not know. The published JSON Schema is strict (additionalProperties: false), so that sail’s own tests catch drift. Validate against the schema of the version you were built for.

The optional engine fields above are omitted for stock verification.

With --portfolio accept-first-proof, optional portfolio evidence records the ordered seeds, each independent attempt (report, exit, timing, infrastructure error and verbatim stderr), and winner_seed. Every selected function’s provenance includes configuration.seed. Baseline seed 0 denotes unchanged solver defaults. Ordinary reports omit these optional fields.

--measure-fragility explicitly measures solver replay configurations and writes JSON (--fragility-seeds N, default 8). Each function’s existing fragility field is set only when its exact transcript input hash and ordered AIR checks cover every primary obligation. proved counts configurations proving every primary obligation together; score = 1 - proved/runs. It differs from the census’s per-check effort-pressure/disagreement metric. Missing mappings, ambiguous sessions and incomplete replays leave the field null with notes. Verdicts remain those of the baseline run. A replay score is not a complete-run seeded proof; only the portfolio mode can select such a proof.

The MCP verify tool accepts measure_fragility: true. The existing fragility tool also includes an optional verification report with the same function scores. Normal verification performs no replay measurement.

When a crate fails and attribution is incomplete, successful timing entries are reported unknown with a note (VI-0003). Their raw verus_success fields are retained. Verus can leave that field true for failed bit-vector queries, so it cannot establish a confirmed function proof in this case.

MCP persisted lookups include the establishing run’s solver identity, mode and winning seed in freshness. Source freshness does not assert that today’s toolchain matches that recorded identity.

Changes from version 1

Version 2 replaces version 1 before 0.1.0, the first release (ADR 0044). There is no compatibility mode.

  • schema_version is 2.
  • Each function’s tier is renamed establishment, with the same values and meaning.
  • Each function has a new evidence_tier.
  • Each counterexample assignment has a new itf.
  • The managed project-result envelope is version 2, since it embeds these reports.

A managed target may additionally include scope_reuse, the exact ordered arguments of a reused partial verification report. Such a target has complete: false and reused: false; it supplies no whole-target proof and does not increment execution.reused_targets. The original report and establishing run remain attached. Whole-target proof fields retain their existing meaning.

Reading job results from Rust

sail_api::jobs::Client reads job Status and Results from the local jobs service, the same service the CLI and sail mcp use. Every call opens a connection and reads a complete fresh reply; nothing is cached on the client.

Connect to the jobs service

Client::new expects the jobs socket, not the solver-cache socket. Resolve it with jobs::configured_socket(&cwd) to keep the CLI’s SAIL_CACHE_DIR and SAIL_DAEMON_SOCKET semantics, including relative settings belonging to that project directory. If an application already has the cache socket, derive its job endpoint with jobs::socket_path(&cache_socket).

The SDK does not start a daemon. Submit through the CLI or MCP first, for example sail verify --background --output json from the project directory.

Read a Result

Within a function returning std::io::Result<()>, where job_id is the durable ID returned by submission:

use sail_api::jobs::{Client, Request, Response};

let project_dir = std::env::current_dir()?;
let client = Client::new(sail_api::jobs::configured_socket(&project_dir)?);
match client.call(&Request::Result { id: job_id.to_owned() })? {
    Response::Result(document) if document.job.id == job_id => {
        println!("{:?}: {:?}", document.job.state, document.job.currentness);
    }
    _ => eprintln!("unexpected response to a result request"),
}

The lifecycle and currentness are separate from the proof outcome. Inspect the complete report before treating a function as verified; a repair also needs its independent full evidence and repair.accepted. A Historical result applies only to its earlier input revision. Request::ProofEvents returns a bounded proof-journal page and cursor; Request::Events reads the target-lifecycle log by byte offset.

Errors and limits

Connection and I/O failures return io::Error, and a service Response::Error is returned as an io::Error carrying its SAIL code. Framing rejects bodies over 32 MiB and an incompatible envelope version with SAIL0802 (error codes). Each read and write has a five-second timeout.

Client::call_with also hands the caller a clone of the connected stream. Shutting that clone down from another thread abandons the call; sail mcp uses this to cancel a direct read at once.

Proof events and repair validation

The interactive engine runs stock lowering with a focused phase in the same compiler callback (it prepares no lowering for reuse). sail repair-check and MCP’s start_repair_validation use it; ordinary verification, without the focused phase, remains the default for sail verify. A repair is accepted only when the independent full-target verification is complete, successful and Current. The validation record is M7 validation; read known issues before relying on performance.

For setup through a focus/full regression, resumable events, cancellation and CLI/MCP evidence, follow the repair walkthrough. It distinguishes submission from an accepted proof.

The optional interactive engine is part of Sail’s Verus: the runtime built from Sail’s Verus fork that every Sail verification runs (ADR 0043). It is selected explicitly; ordinary verification runs the same runtime without the focused phase. In this guide, a stock fallback is that ordinary verification by the configured Verus (Sail’s Verus, or a SAIL_CARGO_VERUS development override); the stock-fallback label keeps its name in the output schema. An unavailable or invalid engine returns a setup error (SAIL3120) that says what is missing or mismatched and how to obtain the engine. The release archives bundle it, so from a release install SAIL3120 means the unpacked directory is damaged or incomplete (unpack it again), or that a stale engine in the Sail cache takes precedence. In a Sail checkout, download the prebuilt runtime from the public fork’s releases (python3 ci/engine-artifact.py fetch --pin engine/verus/artifact-linux.json --cache ~/.cache/sail, or artifact-macos.json on macOS), build it with cargo xtask build-verus-engine (no credentials needed), or import a build with sail engine install --from PATH. sail repair-check checks this before it submits a job, so a missing engine leaves no failed job behind. A job whose worker stops on such an error records that error in its SAIL0808 job error. An internal runtime failure retains its failed evidence and falls back to stock full verification; missing focused evidence cannot be fabricated or labelled a successful batch. A target whose engine driver crashed, produced malformed output, or sealed without normal termination or inconsistently with its exit status and output reports the exact stock result with engine.established_by: stock-fallback, publishes no proof receipt and cannot accept the repair. A fault before any target could run falls back to an independent stock full verification and records batch.engine_fault (SAIL3123); the repair is not accepted. Inspect batch.batched, focus, selection errors and engine_fault alongside the full report, whose reports and functions name their engine provenance (output schema).

Verus features the engine lacks

The engine runtime is built with the Verus Cargo features its manifest records: none, like the stock release. sail engine status --output json lists them as verus_features, and the pinned Linux runtime records the same list in engine/verus/artifact-linux.json. In particular the engine has no singular feature, so it cannot check by(integer_ring) lemmas.

When the engine rejects a target with Verus’s Please cargo build with `--features NAME` diagnostic for a feature it lacks, Sail does not report that rejection. It reruns the target’s exact invocation with ordinary verification by the configured Verus, as for an engine fault, and reports that result:

  • the target’s report and functions carry engine.established_by: stock-fallback, and no proof receipt is published;
  • stderr shows warning[SAIL3124] naming the feature, and the result’s notes repeat it;
  • sail repair-check records batch.engine_fault with code SAIL3124, has no focused evidence and is never accepted.

The answer is ordinary verification’s own: Sail’s Verus, like the stock release, reports the same feature error as plain cargo verus verify (a Singular source build named by the SAIL_CARGO_VERUS development override proves the lemma). Verus emits the diagnostic only for functions it would verify, so a project that merely contains an unverified integer-ring lemma is unaffected.

Inspect or register an already built validated engine:

sail engine status --output json
sail engine install --from PATH --output json

PATH is an engine-specific Sail source variant with a valid build manifest; installing a stock or modified unrecognized build is rejected. The install records provenance and leaves stock pins and installs unchanged. An installed build is also what ordinary sail verify runs. SAIL_VERUS_BUILD=PATH selects a build without installing it, after the same validation.

For a library target:

sail repair-check --package demo --lib --function demo::arith::lemma \
  --engine interactive --background --output json
sail jobs events JOB --follow --output jsonl
sail jobs result JOB --output json

Keep redirected submission, event and result files outside package roots and explicitly declared inputs while verification runs. Those files are operator records, and writing them inside a watched package can invalidate input freshness. The walkthrough uses a separate sibling capture directory.

For a binary, replace --lib with --bin NAME. Function names are exact, crate-qualified identifiers. This command first checks that selected function, then independently checks the full requested target in the engine’s compiler batch. It does not change what existing verify --function means. Additional scope filters are rejected because they would defeat full validation.

For an existing standalone file, use sail repair-check proof.rs --function proof::lemma --engine interactive --output json (implementation under native qualification). This uses the same focused/full compiler hooks and normal terminal seal, with no generated Cargo project. Add --background for a job, or supply source_file to MCP’s start_repair_validation instead of Cargo selectors. Verify-only full scope is required; compilation/output-writing flags and additional scope filters are refused. Full verification always runs fresh.

Every repair function shares one Cargo target with the other engine runs of the same workspace and arguments, as plain cargo verus shares one target directory. Repairing a new function therefore does not compile or verify vstd again: on a native c7i.8xlarge a function’s first repair takes about as long as its second (HumanEval about 6.5 s, Vest about 30 s). The selected crate is always verified fresh. See the ADR 0036 amendment.

The version-one repair bundle retains separate batch.focus and batch.full project results, engine manifest identity and actual compiler-invocation count. batched describes actual engine support. accepted is recomputed from the full report: successful, complete requested targets, whole-target verification and Current input evidence after compiler completion. A passing focus phase remains provisional. A failing full phase, late compiler failure, edited inputs or incomplete input coverage cannot authorize a repair. Acceptance also checks each requested target’s report invariants and actual function verdicts: every reported function must be confirmed verified, Verus must explicitly report zero errors, and partial-scope reuse cannot establish whole-target evidence. An inconsistent success summary never authorizes a repair. A repeated requested target identity or a focused Verus selector in the actual full report also prevents acceptance, even when its completion flag claims success. Retained jobs recompute acceptance through the same checked report validator after refreshing currentness. A successful crate with zero reported functions remains eligible; missing crate evidence does not. Compile-only --no-verify never establishes receipt, whole-target or repair authority, even when Verus exits zero and reports success: true. Enabled zero-function verification remains distinct. Older receipt formats are refreshed; retained jobs and baselines from producers without the new mode record retain their observations but withhold positive target completion. Re-run those inputs to establish fresh proof evidence. A missing or ambiguous exact function records batch.selection_error with a stable code and prevents acceptance while retaining the independent full report.

The full report appears once per document. A standalone repair document (the foreground sail repair-check --output json, and the repair worker’s own output) carries it as batch.full. A job result (sail jobs result, MCP verification_result) carries it as the job’s result, as for every other job, and its repair.batch omits full; repair.accepted is still recomputed from that result. Until the 2026-10-12 change, a job result repeated the full report in both places, doubling every reader’s frame (4.9 MB instead of 2.5 MB for a HumanEval repair). The repair contract had not shipped, so version one changed in place.

Optional ordinary-build recovery passes its local controls; real-project benchmark recovery remains unqualified. It independently guards script inputs during initial regeneration and can retain only dependency contracts. The proof still needs its own complete Current full result; an Unknown run remains unaccepted. Unsupported paths, configuration, environment or coverage retain original cleaning. See build recovery and limits.

The private worker exits with the full phase’s status so a completed proof is not mistaken for an infrastructure failure; the public repair command exits nonzero when the repair is not accepted.

The engine prepares no lowering for reuse: every bucket is lowered fresh in both phases, exactly as stock Verus lowers it. Earlier engines cached prepared lowering within and across invocations; measured reuse was near zero while every miss paid for encoding and admission under a global lock, so it was removed together with its same-input oracle (rescue L7a; ADR 0038). Reuse across edits is redesigned for M8 with content-addressed keys.

Engine conformance

sail-conformance engine is the engine’s corpus arm. For each unit it runs plain Verus and then the engine with a focused function (the first proved function of the plain run), and compares the full phase’s verdicts and diagnostics with the same rules as the other arms, including the ADR 0009 unstable classification. It also requires a normal, consistent compiler seal. ci/run.sh conformance runs it after the cache rounds on every tier, using SAIL_ENGINE_BUILD. The PR subset that CI runs (conformance fast pr) selects the fast tier’s verus-examples guide units (--tier fast --project verus-examples --filter /guide/) for every arm, including the engine arm; CI cannot skip the engine arm:

ci/local.sh conformance fast pr        # pass-through, cache fill/warm and engine arms
sail-conformance engine --tier standard --project vest --engine-build PATH

--no-focus runs only the full phase.

A project whose corpus requirements include verus-feature:NAME for a feature the engine manifest does not record (the Singular projects need singular) is not run on the engine: each of its units gets the verdict engine-lacks-feature, counted separately from same and different (summary.engine_lacks_feature, and engine.lacks_feature by feature). The summary line ends with, for example, 3 units engine lacks feature singular. The product falls back to stock for these units (SAIL3124), so there is no engine verdict to compare. They do not fail the run.

Resumable observations

jobs events reads a separate proof journal, independent of the existing target lifecycle log. Each version-one event includes stream ID, monotonically assigned sequence, package ID, target name and kind, run ID, configuration and input revision, phase, and optional exact function/obligation identifiers. The daemon binds producer headers to the originating worker’s context and target inventory. Query progress carries bounded descriptions and completion flags with exact function/obligation identities. It supplies no solver answer, model or verdict; completion is not verification. Live function observations are provisional; final reports independently establish proofs. Solver outcomes in obligation observations do not confirm a whole function or target.

Resume using the last cursor record:

sail jobs events JOB --stream STREAM_ID --after 12 --follow --output jsonl

Identical producer event IDs are delivered once; conflicting duplicates expose a gap. Wrong-stream or future cursors fail explicitly. Malformed, truncated, replaced, or oversized streams remain incomplete, with an explicit gap rather than invented evidence. Each page has at most 64 events. A journal retains at most 4,096 events or 16 MiB; reaching either bound exposes a gap. Pruning a job also prunes its journal. A terminal page means both the producer and available observations have drained. JSONL includes cursor/control records even when no new observation is available. --output json reads one page for programmatic clients; --follow requires JSONL.

Evidence and comparisons

sail explain JOB --package-id PACKAGE_ID --target demo --kind lib \
  --function demo::arith::lemma --output json
sail baseline save before-repair --job JOB
sail baseline list
sail baseline get before-repair --output json
sail compare LATER_JOB --baseline before-repair --output json
sail compare BEFORE_JOB AFTER_JOB --output json

explain preserves the original obligation reports, counterexample models, provenance, and raw diagnostics. Add --obligation EXACT_ID for one attributed obligation. Producer-linked diagnostics use exact identities; other diagnostics remain explicitly unattributed. Source locations come from verifier evidence, not guessed line windows. Same-name library and binary targets remain distinct.

Named baselines are immutable snapshots retained independently of the 20-job history limit. Their establishing run and revision remain unchanged. They are historical reference evidence, not a new proof of today’s inputs. Comparisons show function and exact obligation-ID transitions. Different runtime contexts, modes or requested scopes are marked incomparable. Partial scopes cannot prove function removal; removal describes absence from a successful sealed whole-target verification inventory, not inferred deletion from source text. Obligation IDs are matched exactly, with no inferred semantic correspondence between changed or reordered obligations. Repeated Verus friendly function names are also incomparable: Sail cannot identify one implementation from that name and never lets timing-entry order select a regression.

The corresponding MCP tools are start_repair_validation, verification_events, explain_failure and compare_verification. save_baseline, list_baselines and get_baseline expose the same immutable service records to agents. Save still requires a completed job; read validates the record’s version/name identity and Historical currentness before returning the complete report. Invalid, corrupt or oversized records fail explicitly. These operations do not create proof receipts, change target completeness or promote provisional verdicts. start_verification accepts an explicit engine choice. See mcp.md. Machine-readable contracts are in crates/sail-api/schema/proof-event-v1.json, proof-page-v1.json and repair-result-v1.json.

Compatibility matrix

The Verus releases sail is tested against (corpus/toolchain.toml), and how the corpus fares under each one. The primary pin is the release the corpus is validated against. Secondary pins are compatibility targets (ADR 0010), run locally with SAIL_VERUS_RELEASE=<release> (ADR 0013).

Sail’s Verus. Sail runs its own Verus, built from its fork (engine/verus/fork.toml, commit 36d65c3f, rebased onto the primary pin 7d829946; its Linux and macOS runtimes include the spec-formal correction and the erasure shadow-check index; consumer qualification is tracked in the runtime record. See engine and macOS engine), for every verification (ADR 0043). Stock releases are the conformance oracle: sail-conformance run compares Sail on its fork with plain stock Verus at the primary pin. Under a secondary pin the fork has no build, so the Sail side runs that stock release with sail-z3, as before; the secondary rows below check the shim, not a supported product configuration.

ReleaseRoleZ3Rustsail conformance (fast tier)Notes
0.2026.10.18.7d82994primary4.16.0 (bundled, same bytes as 426d8b0’s)1.99.136d65c3f: native Linux fast 147/147, standard/deep 159/159 Same in every mandatory corpus arm; fork direct/cache-fill/cache-warm each 4,901 Same. Both installed matrices have 31 valid comparisons and 651 matching mutation/control comparisons eachThe corpus is validated against this release; Sail’s Verus is built on it. See the upgrade
0.2026.10.04.426d8b0secondary4.16.0 (bundled)1.98.1As primary: 147 of 147 the same (macOS arm64 and Linux x86-64); standard tier 159 of 159 (Linux), stock pass-through before ADR 0043; Sail on fork 73dea021: see the fork-default record. Not yet run as a secondaryPrevious primary, kept as an A/B baseline; needs rustup toolchain install 1.98.1
0.2026.09.06.8dea4a2secondary4.16.0 (primary’s build; VI-0006)1.98.0147 of 147 the same (macOS arm64, 2026-10-09), against the 426d8b0 treeSee below

Upgrade to 0.2026.10.18.7d82994

The primary moved from 0.2026.10.04.426d8b0 to 0.2026.10.18.7d82994 (81 upstream commits; Rust 1.98.1 to 1.99.1; Z3 unchanged). The published crates moved with it: vstd, verus_builtin_macros and verus_state_machines_macros to 0.0.0-2026-10-18-0147, verus_builtin to 0.0.0-2026-10-11-0230 (the pinned vstd is in corpus/toolchain.toml, ADR 0059). Upstream changes that can show in corpus results:

  • --verify-only-module is now reported as partial verification (upstream 0a5e114f): the summary line gains “(partial verification with --verify-*)” and the JSON is-verifying-entire-crate is false. Sail already treated the flag as partial, and no Sail golden or fixture records the old output; both conformance arms run the same release.
  • vstd removed pervasive::assume (#3265) and added no_unwind and atomic Ordering preconditions (#3111, #3226), which can make previously verifying code fail. Corpus projects use patch_verus_deps, so they build against the pinned source.
  • Vest at its corpus pin no longer verifies with the default rlimit: parse_cbor_with_child (vest_lib/src/cbor/format.rs) exceeds it under stock 7d82994 and Sail alike. Upstream verita runs Vest with --rlimit 100. The corpus entry now expects that one error (VI-0032).
  • Cargo 1.99.1 no longer passes a registry package’s [lints] to the compiler under --cap-lints allow; the shipped native shapes were re-observed.

The previous 7d9d5410 runtime’s corpus tiers, source suite, installed mutation cohorts and matrices have completed. Mac solver input streams are stable over three runs of 320 direct inputs; one existing NLA resource-count variation leaves the strict output check at 319/320. Performance acceptance remains open; see the runtime record. Current 36d65c3f qualification is in the erasure index record.

Explicit Cargo selection

Sail respects RUSTUP_TOOLCHAIN, project toolchain files and an explicitly selected Cargo (ADR 0058). Build-script receipt tracking is qualified for these Cargo releases (ADR 0084):

CargoSource commit
1.93.0, 1.93.1083ac5135f96
1.94.085eff7c80277
1.94.129ea6fb6a5db
1.95.0f2d3ce0bd7f2
1.96.030a34c6821b5
1.96.1356927216a2d
1.97.0, 1.97.1c980f4866141
1.98.0, 1.98.1797e8a9bca27
1.99.0, 1.99.1 (the pin)5f94df4789f0

A project whose rust-toolchain.toml selects one of them, as Anvil’s selects 1.98.0, gets proof receipts and unchanged-call replay, with output identical to cargo verus verify under the same file. Instant revert keeps its own narrower profile, which excludes crates with build scripts or dependencies other than vstd whatever the Cargo (SAIL3146). The shipped vstd proof still applies only with the pinned Cargo.

When the selected Cargo has any other source commit (1.92 and earlier, a newer release not yet qualified, or a locally built Cargo), projects whose selected dependency closure contains build scripts use plain Cargo freshness with Sail’s solver cache. They establish no proof receipts; JSON reports Unknown and explains no_reuse (SAIL3139). Select a qualified toolchain, for example RUSTUP_TOOLCHAIN=1.99.1 sail verify, to enable the protocol; unset CARGO if it explicitly names a different Cargo binary. Missing or malformed protocol observations still fail closed rather than identifying a different Cargo version. ci/run.sh cargo-range reruns the self-test and scripts/cargo-protocol-audit.py the audit when a new release is qualified.

Plain Verus under the secondary release (fast tier)

The fast tier’s in-tree sources (vstd, examples) are those of the primary release’s commit. The results below were taken when 426d8b0 was the primary; the fast tier now uses 7d82994’s sources. Under the older secondary release, some of them fail simply because they are newer than that release. sail matches plain Verus on every unit either way (147 of 147 the same).

  • Exit non-zero under the secondary: 21 of 147 units.
  • Of those, 5 are expected-failure examples (assertions.rs, basic_failure.rs, debug.rs, debug_expand.rs, test_expand_errors.rs). They fail under the primary too.
  • The rest fail to build or verify because their sources need the newer release: vstd itself, human-eval-verus (it depends on the newer vstd), and 14 further examples, including guide/*, iterators/* and mergesort.rs.

The secondary pin is meant for external projects written against that release, such as vest’s recent history (sail-bench history-replay). It is not meant for the in-tree tier.

Optional Singular validation

The binary releases omit Singular support. Use ci/local-singular.sh to build the pinned commit with --features=singular and compare the tagged integer-ring examples and memory allocator in pass-through, fill and warm modes. The separate image pins the Singular package and uses separate build/cache volumes. No CI workflow runs this step. Source selection is explicit through SAIL_VERUS_SOURCE_BUILD; artifact identity failures are infrastructure errors. Post-diagnostic-fix local validation on 2026-10-09 completed all three modes: 3 units, 606 functions, all the same, zero differences, zero infrastructure errors and zero skips in each mode. Verus reports 9 and 27 verified for the integer-ring examples and 736 for the allocator, all with zero errors. The final cache held 8,080 entries. One unit had resource-count drift without verdict or diagnostic drift. The source build ran natively on macOS arm64; its Singular subprocess used the pinned local Linux image under amd64 emulation. These are correctness results, not Linux benchmark numbers.

Error codes

Every error Sail reports carries a stable SAILnnnn code, printed as error[SAILnnnn]: … or in a JSON error.code, selection_error.code or engine_fault.code field. Scripts and agents may match on these codes. SAIL0899 and SAIL0999 are internal errors: Sail reached a state it should never reach. Report them with the full message and the command you ran. Sail has stopped or fallen back without producing a wrong answer.

This page lists every code in the tools. A test (xtask/src/error_codes.rs) fails when a code is used but not listed here, or listed here but no longer used. Renamed and removed codes are listed in CHANGELOG.md.

Human sail verify output is exactly what plain cargo verus verify prints: Sail’s explanatory SAIL0003 (cache daemon unavailable), SAIL3112, SAIL3138 and SAIL3146 lines appear there only with SAIL_EXPLAIN=1. --output json results carry them in notes, and they stay on the stderr of JSON runs, jobs, watch and MCP.

Neutral contracts

CodeMeaningAction
SAIL0701Unsupported or invalid neutral contract, source or requirement identityUse the admitted scalar contract subset described in the neutral-contract guide
SAIL0702Runtime precondition or postcondition failedInspect the named requirement and the actual implementation inputs and output
SAIL0703Specification arithmetic overflow or invalid divisionCorrect the expression or narrow the admitted domain explicitly; checks remain enabled in release builds

Native temporal jobs

CodeMeaningAction
SAIL4200Invalid worker protocol or payload identitySubmit the supported worker version and exact immutable input
SAIL4201Invalid or incomplete temporal source closureSupply unique relative module/configuration files and the explicit root
SAIL4202Host-capable or unsupported temporal sourceUse admitted pure native modules and operations
SAIL4203Unsupported, malformed or lossy trace valueSupply complete, reversible ITF values in the admitted subset
SAIL4204Native backend rejected or could not execute the modelRead the preserved native diagnostic; no model verdict is established
SAIL4205Counterexample absent or failed independent replayTreat the result as incomplete and retain the native evidence
SAIL4206Success lacks complete exploration evidenceIncrease explicit exploration bounds or address the native diagnostic
SAIL4207Invalid simulation count or depthSupply positive finite admitted limits
SAIL4208Simulation evidence is absent or not exhaustiveUse concrete sampled traces; simulation does not establish a proof
SAIL4210Worker input, execution or output failureInspect the bounded worker diagnostic
SAIL4211Worker output exceeds its byte boundReduce requested evidence; truncated output is not a verdict
SAIL4212Worker identity, lifecycle or protocol failureUse the pinned worker and inspect the reported failure
SAIL4213Private dependency command or Git configuration is invalidUse the documented ephemeral credential wrapper
SAIL4214Duplicate JSON object memberSubmit a unique field at every object depth
SAIL4215Archive installation or prerequisite check failedCheck the selected platform/version, adjacent checksum, archive attestation, rustup and download access; existing installations are preserved

Command line (sail)

CodeMeaningWhat to do
SAIL0001sail serve needs Unix socketsRun the daemon on Linux or macOS
SAIL0002Usage error: unknown command, option or missing valueFix the command line; sail help lists commands
SAIL0003Cannot start sail-bench, serve on the socket, or run the daemon. As a warning from sail verify (with SAIL_EXPLAIN=1, and a SAIL0003: note in --output json): the cache daemon is unavailable, so verification runs without the cache (same results)sail bench is a contributor tool that is not in the release archives: build sail-bench from a Sail source checkout. Otherwise check that the socket path is free, writable and short enough (107 bytes on Linux, 103 on macOS; set SAIL_CACHE_DIR or SAIL_DAEMON_SOCKET to a shorter path). Run sail serve to see the daemon’s own error
SAIL0101Sail’s Verus (the runtime built from Sail’s Verus fork, which Sail runs for every verification and for sail new) is missing, does not match its pins, or its files changed. Sail never falls back to another VerusRelease archives bundle it under engine/: unpack the archive again and run its bin/sail without moving files out of the directory. In a source checkout, run python3 ci/engine-artifact.py fetch --pin engine/verus/artifact-linux.json --cache ~/.cache/sail (artifact-macos.json on macOS) or cargo xtask build-verus-engine. sail engine status shows what is wrong
SAIL0102sail-z3 not found next to sailReinstall so sail and sail-z3 share a directory
SAIL0103Cannot find the Z3 that Verus uses (Sail’s Verus bundles the pinned Z3)Reinstall Sail, or set VERUS_Z3_PATH
SAIL0104Cannot create the fragility trace directoryCheck free space and permissions in the temporary directory, or pass --keep-traces DIR
SAIL0105Cannot run cargo-verus (fragility measurement or portfolio)Check Sail’s Verus with sail engine status
SAIL0106Unknown --output formatUse --output json
SAIL0107Cannot create a scratch directory for JSON outputCheck free space and permissions in the temporary directory
SAIL0108Warning: SAIL_CARGO_VERUS replaces Sail’s Verus. This development override is not Sail’s default mode, and its results are not checked against stock VerusUnset SAIL_CARGO_VERUS
SAIL0110Invalid portfolio or fragility optionsFix the options; a portfolio and a fragility measurement cannot be combined, and neither takes --background or --engine
SAIL0111A portfolio attempt could not run or was cancelledRe-run; the message names the failing step
SAIL0112Cannot retain portfolio or fragility evidenceCheck free space and permissions under the cache directory
SAIL0113Not every requested target produced a resultRead the report’s diagnostics; the scope was not verified
SAIL0115Portfolio mode needs the pinned Z3Point VERUS_Z3_PATH at the pinned Z3
SAIL0116bench/portfolio/report.py cannot render the portfolio probeCheck the retained probe files it names
SAIL0130sail new: the path already exists and is not an empty directory. Nothing was changedChoose a new path, or empty the directory
SAIL0131sail new: the package name (from --name, or the path’s last component) is not one Cargo acceptsPass --name NAME with ASCII letters, digits, - and _, starting with a letter or _, and not a Rust keyword, test or vstd
SAIL0132sail new could not create the project: Sail’s Verus’s cargo verus new failed, or a file operation failed. Nothing is left at the pathRead the message, which includes cargo verus new’s own error; check permissions in the parent directory
SAIL0201sail watch failedRead the message; restart sail watch
SAIL0301sail mcp cannot startRead the message; check the cache directory
SAIL0302sail mcp cannot read stdinThe MCP client closed or broke the pipe; restart it
SAIL0401No daemon is listening (sail status)Start one with sail serve; sail verify starts one on demand
SAIL0501sail cache verify found bad cache filesRun sail cache verify --remove; a bad entry is only ever a miss
SAIL0502sail cache clear needs confirmationPass --yes
SAIL0503Cannot clear the cache directoryCheck permissions
SAIL0504sail cache projects cannot read its inventory or read/write its budget policyCheck permissions on <cache>/projects and <cache>/project-budget.json; replace an invalid policy with budget --disable or budget --max-bytes N
SAIL0505sail cache projects prune cannot remove a workspace’s directoryCheck permissions; a later prune removes anything left over, and no run uses it

Shared cache tier

CodeMeaningWhat to do
SAIL0601Cannot generate a signing keyCheck the destination directory and free space
SAIL0602Cannot write a key or trust fileCheck permissions
SAIL0603Cannot read a public or secret key fileCheck the path and that the file is a Sail key
SAIL0604Cannot remove a trusted keyCheck permissions
SAIL0605Some entries could not be publishedRe-run sail cache publish; written entries remain
SAIL0650HTTP shared-cache client error (connect, trust, token or response)Check the endpoint, token, CA and trusted key files; a failed lookup is a miss, never a wrong answer
SAIL0651HTTP shared-cache server cannot start or stoppedCheck the bind address, store directory and --behind-tls-proxy for non-loopback binds
SAIL0652Some remote publications failedRe-run; completed uploads remain available

Jobs and the project service

CodeMeaningWhat to do
SAIL0800The job service cannot start, or local jobs need Unix socketsRead the message; check the socket directory
SAIL0802Job RPC protocol error: malformed, oversized or incompatible frame, or an unexpected responseUse the same sail version for the CLI, MCP and daemon; restart the daemon after upgrading
SAIL0803A job endpoint is already running on this socketUse the running daemon, or stop it first
SAIL0805Unknown job IDCheck the ID with sail jobs list
SAIL0806Invalid project directory or arguments in a job submissionPass an existing directory; arguments cannot contain NUL
SAIL0807The daemon restarted before the job completedSubmit the job again
SAIL0808The job failed, or its result could not be savedRead the message; check free space under the cache directory
SAIL0810Cannot start the job daemon on demandRead the message; try sail serve directly
SAIL0811sail jobs usage errorFix the command line; see the usage text
SAIL0812Managed jobs need UTF-8 environment names and valuesRemove or fix the non-UTF-8 variable
SAIL0813An MCP job tool failedRead the message; the CLI equivalent shows more detail
SAIL0814A result exceeds the RPC size limitRead the retained files in the private job store
SAIL0815The job service is stopping or its queue is fullRetry later
SAIL0816A retained result no longer matches its sealRe-run the job; the stored output was changed or damaged
SAIL0899Internal error in the job serviceReport it with the message

Proof events, evidence and baselines

CodeMeaningWhat to do
SAIL0902The proof event stream has a gap, or a cursor is invalidResume from a valid cursor; the final result stays authoritative
SAIL0903No interactive proof stream for this job, or the endpoint does not support proof contractsUse --engine interactive, or upgrade the daemon
SAIL0904The requested target, function or obligation evidence is missing or ambiguousWait for the job to complete, or name the exact target and function
SAIL0905Invalid, duplicate or unreadable baselineUse a new name of 1–80 letters, digits, ., _ or -
SAIL0906Usage error in explain, compare, baseline or --engineFix the command line
SAIL0907An MCP proof tool failedRead the message
SAIL0930The actual_work research observer cannot validate its arguments or complete current-run evidencePass a successful Current result and its matching retained run directory; missing or damaged evidence cannot count as zero solver work
SAIL0944ci/engine-artifact.py rejected the engine pin or artifactFix engine/verus/fork.toml or the runtime artifact it names
SAIL0999Internal error in the proof streamReport it with the message

SMT-LIB and the solver shim (sail-z3)

CodeMeaningWhat to do
SAIL1001Malformed SMT-LIB input (internal parsing; the shim still forwards the bytes unchanged)Report it if it appears in output
SAIL2001VERUS_Z3_PATH is not setPoint it at the pinned Z3
SAIL2002VERUS_Z3_PATH cannot be resolvedFix the path
SAIL2003VERUS_Z3_PATH points at sail-z3 itselfPoint it at the real Z3
SAIL2004Cannot start or keep track of the solverCheck the Z3 binary; re-run
SAIL2005After a cache fallback, the pinned solver’s replay differs from a reply already served from the cache; the session stops with exit status 1Clear the cache (sail cache clear) and re-run; report it if it recurs

Verus runs and corpus tooling (sail-conformance, sail-bench, cargo xtask)

CodeMeaningWhat to do
SAIL3001No cache directory: none of SAIL_CACHE_DIR, XDG_CACHE_HOME, HOME is set (also reported by sail verify)Set one of them
SAIL3002Cannot read or parse the toolchain pinsRestore corpus/toolchain.toml
SAIL3003No pinned Verus asset for this host, or it is not installedRun cargo xtask fetch-verus
SAIL3004Unknown Verus releaseUse the primary or a secondary release in corpus/toolchain.toml
SAIL3010Unknown corpus tierUse fast, standard or deep
SAIL3011Cannot read or parse a corpus fileFix the file named in the message
SAIL3012Cannot list a corpus directoryCheck the path
SAIL3013The corpus was validated against a different Verus pinRe-validate the corpus or use the matching pin
SAIL3014git failed while fetching a corpus projectCheck network access and the pinned revision
SAIL3015Unsupported corpus build settingsFix the project entry in the corpus file
SAIL3016Cannot patch a workspace manifest to the pinned Verus sourceCheck the project’s Cargo.toml
SAIL3020Cannot prepare or start a Verus runCheck the scratch directory and the Verus install
SAIL3021The timing wrapper failed to run VerusCheck the Verus install
SAIL3022A Verus run exceeded its limit or its scratch copy failedAn infrastructure error, never a verdict; re-run or raise the limit
SAIL3030Shim not found, or a Verus log directory cannot be readBuild sail-shim or pass --shim
SAIL3040Missing or incomplete Verus source buildRun cargo xtask build-verus-source
SAIL3041Cannot find the toolchain sysroot for a source buildInstall the Rust toolchain Verus pins
SAIL3042A rust_verify_test binary cannot list its testsRebuild the source build
SAIL3043Another process owns the source buildWait for it, or remove a stale lock

Managed verification (sail verify, jobs, watch, MCP)

CodeMeaningWhat to do
SAIL3100sail verify cannot run this project: Sail’s Verus is missing (the message then carries SAIL0101), or managed state cannot be set upRead the message; cargo verus verify runs the project without Sail
SAIL3101Cannot read managed stateCheck permissions under the cache directory
SAIL3102Cannot write managed stateCheck free space and permissions
SAIL3103cargo metadata failedFix the error Cargo reports
SAIL3104Cannot identify the toolchain, or the target stayed in use past SAIL_MANAGED_LOCK_WAIT_SECSCheck the Rust and Verus installs; wait or raise the limit
SAIL3105Cleaning the edited package failedFix the error Cargo reports
SAIL3106Cannot run Cargo or capture its outputCheck the Cargo install
SAIL3107Verification produced no complete or unambiguous proof observation for a Cargo targetRe-run; the result is not reused
SAIL3108No Current run is recorded for this project and settingsVerify once; later reads can then be Current
SAIL3111The managed adapter failed (solver capture, receipts or Cargo wrapper)Read the message; re-run
SAIL3112A setup managed verification cannot bind to a proof receipt: --target-dir, Verus --log options, --no-verify, -v, --message-format, --sysroot, tests, benches or examples, Cargo --config or configuration Sail cannot identify, RUSTC_WORKSPACE_WRAPPER, a loader variable (LD_LIBRARY_PATH, LD_PRELOAD, DYLD_*), or no target with verify = true. A note from sail verify (human output only with SAIL_EXPLAIN=1), a job, watch or MCP: the run is verified as plain cargo verus verify verifies it, in the project’s own Cargo target, without proof reuse; a job’s project result (and, for a loader variable, --output json’s) carries no_reuse and a SAIL3112: note and is never current. Still an error from --engine interactive, which verifies a loader-variable run inside managed verification without reuseNothing. Remove the setting to get proof reuse
SAIL3114Inputs could not be confirmed unchanged; the result is not CurrentRe-run for a current result

Interactive engine (--engine interactive)

CodeMeaningWhat to do
SAIL3120The engine is not installed, does not match its pin, or the request is invalidThe message says what is missing or mismatched. Release archives bundle the engine under engine/, so from a release install this means the unpacked directory is damaged or incomplete: unpack the archive again and run its bin/sail without moving files out of the directory. An engine in the Sail cache (<cache>/verus-src-build/) is used before the bundled one; remove a stale one. In a Sail source checkout, build it with cargo xtask build-verus-engine (no credentials needed) or download the prebuilt runtime with python3 ci/engine-artifact.py fetch --pin engine/verus/artifact-linux.json --cache ~/.cache/sail (artifact-macos.json on macOS); or run sail engine install --from PATH. Repairs need one exact crate-qualified function
SAIL3122The selected function was not found, or not exactly onceName the exact function
SAIL3123The engine faulted; the result is from stock Verus and accepts no repairUse the stock result; report the fault if it repeats
SAIL3124A target needs a Verus feature the engine is built without (for example singular for by(integer_ring)); it was verified by the configured stock Verus and accepts no repairUse the stock result, or stock sail verify; see Verus features the engine lacks
SAIL3130Note: a dependency (such as vstd) was verified by a run in another workspace and placed in this new project from Sail’s dependency storeNone; plain Cargo-Verus would have verified it in this run, and its recorded report is the one shown
SAIL3131Warning: a dependency store entry is damaged (its checksums or digests fail), so it was ignoredNone; the dependency is verified normally. Delete <cache>/dependency-store/ if the warning repeats
SAIL3132Research note: a complete dependency proof was replayed at the vstd compiler boundary, with its original establishing invocationThe unselected compiler-boundary experiment records whether the proof was established locally or in a release build; this does not enable the quarantined native-artifact store
SAIL3134Research dependency recording is incomplete, or checked restoration could not remove a partial outputRead the specific message. Incomplete recordings are unusable; a partial-restoration cleanup failure requires a fresh owned target
SAIL3135Both compiler-reuse research switches are enabled; this combination is unsupported and refused before setup or child executionUnset either SAIL_VSTD_BOUNDARY_RESEARCH or SAIL_RETAINED_CONTENT_RESEARCH; see the integration limits
SAIL3136Note: ordinary retained reuse (instant revert) is off because the valid engine in use is not the runtime Sail’s ordinary reuse is qualified with on this platform (its manifest digest differs). Verification is unaffectedNone for verdicts. Use the pinned runtime (engine/verus/artifact-linux.json or artifact-macos.json) to get instant revert; see instant revert
SAIL3137Note: the release ships a preverified vstd proof, but Rust’s pinned toolchain (pins.verus.rust_toolchain, currently 1.99.1) is not installed with rust-src, so managed verification ran the default Cargo and verifies vstd again (ADR 0058). Verification is unaffected; Sail installs nothingRun the command the note names, rustup toolchain install 1.99.1 --profile minimal --component rust-src, to use the shipped proof
SAIL3138Note: the release ships a preverified vstd proof, but it did not apply to this new target, so the run verified vstd itself. The note names the first reason found: a RUSTC_WRAPPER-style variable; a Cargo configuration or flags variable that can change compilation; a vstd that is not from crates.io; an LD_/DYLD_ variable; an unnameable Cargo home or target path; missing standard-library source for its diagnostics; Verus flags after -- that reach vstd, other than one raised --rlimit (ADR 0060), or a --rlimit below the default 10; extra components (such as rustc-dev) on the pinned toolchain, whose libraries rustc can load (#264); vstd dependency versions that differ from the shipped build’s; another installed toolchain or Verus; or an otherwise unclassified lookup mismatch, diagnosed with SAIL_SHIPPED_TRACE=DIR rather than attributed to dependencies. Verification is unaffected, and output is otherwise unchanged. Printed in human output only with SAIL_EXPLAIN=1; always in --output json notesRemove the named cause to use the proof, for example rustup component remove rustc-dev --toolchain 1.99.1, or pass --fwd-verus-args-to roots before -- to keep Verus flags off vstd. When Cargo resolved vstd’s dependencies differently, the note names each differing package and, when that covers every difference, the exact cargo update -p … --precise … commands and the vstd feature edit (enable its default features) that align the lock. The shipped proof and instant revert need the feature edit as well as the commands; Sail never changes the project itself. Another vstd release, other vstd features (such as allow_panic) or a non-crates.io dependency cannot use it (#237, #238)
SAIL3139The selected Cargo version is outside the qualified build-script input protocol (Cargo 1.93.0 to 1.99.1, ADR 0084). Ordinary verification falls back (SAIL3112) to plain Cargo freshness and solver caching, without proof receipts. JSON remains a project result marked Unknown with no_reuse; the interactive engine reports the errorSelect a qualified Rust toolchain, for example in the project’s rust-toolchain.toml or with RUSTUP_TOOLCHAIN=1.99.1 sail verify, to enable receipt reuse; unset CARGO if it explicitly names another binary
SAIL3140Neutral contract source or backend controls are outside the qualified lowering subset, unresolved, effectful, or do not match the pinned runtimeRead the unsupported construct; retain the ordinary source and use a supported scalar contract. For an unreviewed Cargo configuration, follow the named cause: a configured Cargo home needs a CARGO_HOME without configuration files, and a configured cache parent needs a SAIL_CACHE_DIR without one (see shadow placement). This result establishes no proof
SAIL3141An owned neutral shadow, mapping manifest or source binding changed, is redirected through a symbolic link, or could not be read or installed safelyInspect the retained shadow; do not restore generated bytes to bypass drift. Recreate an owned shadow from reviewed original source before retrying
SAIL3142Neutral source submission, capability, retained source, worker evidence or baseline integrity is invalid or unsupportedRead the source/digest/typed evidence diagnostic; use the negotiated source-only request. Never accept missing or altered proof metadata
SAIL3143A neutral worker exceeded its fixed deadline or exact output bounds, failed its streams or was cancelledRead the retained diagnostics; the complete process group was stopped and no partial output establishes proof
SAIL3144Bounded mutation campaign admission, identity, export bound or retained evidence validation failedRead the campaign diagnostic; retain complete original evidence. A refused view establishes no mutation assurance
SAIL3145Separate scalar literal-contract witness preparation, query attribution, original source links or concrete model validation is invalid or unsupportedRetain the complete original plan and runtime response; use the source-owner validator. Missing or malformed evidence establishes no contract counterexample, native mutation kill or proof tier
SAIL3146Note: instant revert (automatic retention) did not apply to this run. The note names why: the dependency profile is not one of the qualified profiles (with the first mismatch, for example a vstd dependency version that belongs to the profile with vstd’s default features); every selected target compiles in less than 16 times its measured retention, so retention would cost more than it saves; or the target’s earlier verified revision was evicted from the retained arena (its revision or byte limit). Verification is unaffected. Printed in human output only with SAIL_EXPLAIN=1; always in --output json notesNone for verdicts. To get instant revert, align the named dependency difference (see SAIL3138’s commands, including enabling vstd’s default features). A cheap target needs no action. See instant revert

Portfolio and solver libraries

CodeMeaningWhat to do
SAIL5001A solver process could not be started or drivenCheck the Z3 path
SAIL5101A portfolio file or directory cannot be readCheck the path
SAIL5102Invalid portfolio optionsFix the options, for example a non-zero number of configurations

Raw SMT runtime

CodeMeaningAction
SAIL6101Invalid runtime configuration, request, limits or unsupported SMT command/optionRead the specific kind and message; submit a supported version-one request with positive bounded limits
SAIL6102Backend unavailable, incomplete execution or response integrity failureInspect the structured result; install the existing pinned Sail runtime if unavailable, or address the recorded cancellation, timeout, output or process failure
SAIL6201Runtime transport framing, ownership, overload, cancellation or service failureCheck the structured category and endpoint permissions; restart the existing Sail daemon when it lacks the runtime endpoint; no direct solver fallback occurs

Benchmarks (sail-bench)

CodeMeaningWhat to do
SAIL7001Usage error, or not the frozen repair catalogueFix the command line or catalogue path
SAIL7002Cannot read or write a benchmark fileCheck the path
SAIL7003A trace line is not a valid trace recordRe-capture the trace
SAIL7004The solver could not be started or drivenCheck the Z3 path
SAIL7005Results could not be serialisedReport it
SAIL7101Repair gate: an invocation failed, timed out or was not recordedRead the sample’s stderr under --out
SAIL7102Repair gate: full evidence was not CurrentRe-run on an idle host
SAIL7103Repair gate: more than one compiler driver per batchInvestigate the batch
SAIL7104Repair gate: not a real source-engine batchCheck the engine install
SAIL7106Repair gate: outcome differs from the catalogueInvestigate the cycle
SAIL7107Repair gate: M6 and M7 full outcomes differInvestigate the pair
SAIL7108Repair gate: too few complete roundsRun more rounds
SAIL7109Repair gate: median speed-up below the targetA failing result; record it
SAIL7110Repair gate: invalid M6 baseline sampleRead the baseline’s stderr

Contributor proof checking

CodeMeaningWhat to do
SAIL9002Direct stock-Verus acceptance-model check refused an identity, inventory, scope, evidence or mutation-control checkRead the failed control, use the exact committed proof inventory and validated stock archive/runtime, and rerun the complete checker. A refusal never establishes a proof.

Native benchmark host helper

CodeMeaningWhat to do
SAIL9001scripts/perf-host.sh down could not verify termination or complete resource cleanup; recorded lane files are retainedRead the AWS error, refresh authentication or permissions as needed, then retry the same down LANE. A successful waiter must also be followed by a confirmed terminated/absent instance before resource deletion
SAIL9003Native host source sync could not freeze or transfer consistent source/index/HEAD inputs and standalone Git metadataRead the error and retry from a stable full worktree. Unsupported index states refuse before transfer. After an interrupted connection, check that no sync is running before removing the owned remote sail-sync.lock and retrying. A failed sync is not a qualified source checkout.

SAIL3134: the disabled retained-content experiment could not remove a partially restored output. The attempt refuses; do not treat it as a cache miss or reuse a receipt. A fresh owned target is required before retrying.

Standalone Verus files

CodeMeaningAction
SAIL3150Standalone setup, input observation or job protocol is unsupported or unavailableRead the named input or setup error; restart an older daemon when requested
SAIL3151Fresh standalone verification could not establish complete input coverage for a reusable Current proofRead the verifier verdict and diagnostics; unsupported observations run fresh without receipt reuse
SAIL3160Requirement attribution for an ordinary job is invalid, unsupported or unavailable: an empty, duplicate or malformed ID=FUNCTION pair, an engine or repair job, a job submitted without attributions, a neutral source job, or an older servicePass --requirement ID=FUNCTION with --background on a stock or standalone sail verify; read neutral jobs with plain sail assurance; restart an older daemon. See requirement assurance

How Sail reuses verification

An agent may check the same file several times, change one function, try a bad repair, then undo it. Sail reuses solver answers, complete target proofs, and whole unchanged calls. Each saves work at a different point in that loop.

Solver answers

Verus translates proof obligations into queries for a solver. Sail’s solver cache is keyed on the exact query bytes, solver identity, and effective options. If a later call asks the same query under the same execution settings, it can use the stored answer. A changed query needs solving again.

This helps even when the Rust compiler and Verus frontend still have work to do. The trust model explains the local, shared, and bundled cache tiers and how replies are admitted. For SMT-LIB submitted directly through sail runtime, the runtime guide describes its separate transcript cache, including models and unsat cores.

Complete proofs

A target that verifies fully, without function filters, can establish a proof receipt. When Cargo finds that target fresh and its receipt still matches, Sail can reuse the report from the successful run without running Verus for that target. Changing one target need not repeat every other target’s proof.

Receipts cover the selected inputs and verification context, not just the text of a function. Sources, dependencies, generated inputs, options, tools, and configuration can affect whether a result is reusable. The workspace guide describes the checks; the freshness guide explains Current, Historical, and Unknown. Current means the inputs match. It does not mean the proof passed.

Unchanged calls and undo

When an invocation qualifies for unchanged-call replay and still matches a recorded successful call, Sail can replay its result without running Cargo or Verus. It rechecks the files, settings, and tools recorded by the earlier call. If they no longer match, or cannot be checked, it verifies normally.

Returning to an earlier revision can also restore a retained proof. The undo guide describes Cargo eligibility and retention costs. Standalone files have their own input checks and bounded revision history. Neither workflow treats an unobserved input as unchanged.

What still costs time

A changed target still needs compilation and Verus frontend work. A query absent from the local, shared, and bundled caches still needs a solver run. Reading and validating inputs also has a cost, which can outweigh the saved work on very small projects.

Background preparation can do work for the next unchanged Cargo call after returning the current result. It does work ahead of time rather than skipping it, and uses additional CPU and disk. Set SAIL_BACKGROUND_PREPARE=0 to turn it off.

The performance page gives measured edit-loop gains and the cases where Sail was slower. For a fresh CI runner, CI caching explains which directories to retain and what each tier saves.

Freshness of retained workspace proof reports

What you get

Every managed result (sail verify --output json, sail repair-check, and the same jobs through MCP) carries a Currentness label:

  • Current: the result matches your code as it is now. No source file, manifest, lockfile, build-script input or Cargo configuration that Cargo compiled or read for the selected targets has changed since the run.
  • Historical: one of those inputs has changed since the run. The result is still the true record of what was verified then, but it no longer describes your code. Re-run to get a current result.
  • Unknown: Sail could not establish either, for example because a file could not be read or the run itself could not watch its inputs. Re-run.

Sail’s build-script input protocol is qualified for Cargo 1.93.0 to 1.99.1 (compatibility), so a project that pins one of those in its rust-toolchain.toml gets proof receipts. If you select a Cargo version outside that range, Sail verifies projects with build scripts using ordinary Cargo freshness and its solver cache. It records no proof receipts and reports Unknown with a no_reuse reason. Unchanged passing builds can then remain Cargo no-ops instead of repeatedly rebuilding to establish receipts that this Cargo cannot support. Select a qualified toolchain to enable proof reuse, for example RUSTUP_TOOLCHAIN=1.99.1 sail verify. If CARGO names a different Cargo binary explicitly, unset it or point it at a qualified Cargo too. Sail does not change your toolchain selection or treat an unsupported protocol as proof authority.

After a genuine unqualified-Cargo observation, Sail can remember its negative result and take that same fallback before managed setup. This scheduling hint requires unchanged native Rustup Cargo/proxy and Sail identities, selection files, invocation, effective environment and metadata stamps. Reinstalls, newly qualified versions, changed inputs or malformed records take the ordinary check. Custom wrappers and external path toolchains also keep that check. The hint grants no proof reuse or replay: JSON remains Unknown with its SAIL3112 no-reuse reason. For diagnosis, compare with SAIL_MANAGED_UNQUALIFIED_CARGO_MEMO=0 sail verify.

These labels describe your inputs, not the solver’s verdict. A Current result can contain a failed proof. Only a Current, successful result can be reused as a proof receipt or accept a repair. CLI and MCP clients receive the same label.

Any doubt makes a result Historical or Unknown, never Current. The cost of a wrong “not current” is one re-run; a wrong “Current” is never acceptable.

Newly decoded compiler dep-info filename inventories preserve the literal spelling of spaces, backslashes and path components. An empty name, NUL, carriage return or newline refuses that whole inventory. This conservatively withholds input coverage and reports Unknown, without changing a freshly executed verifier’s verdict. Previously recorded literal paths retain their existing identity and currentness checks; the new token proof does not retroactively certify them.

Reading a result later

When a run ends Current, Sail records the SHA-256 content digest of every file in the selected targets’ dependency closure, as Cargo resolved it: each closure package’s sources and build inputs, compiler-declared includes, the workspace Cargo.toml and Cargo.lock, and every member manifest. It also records every Cargo configuration path (.cargo/config.toml and rust-toolchain files in the invoking directory’s ancestors, and the Cargo home configuration), including the ones that do not exist. The record is read-check.json in the run’s proof context under the Sail cache.

The record also binds source symlinks and linked ancestors of declared input paths to their resolved destinations. Changing src/lib.rs from a link to variants/good.rs into a link to variants/bad.rs changes input identity even when both destination files already belong to the package and neither file’s contents changed. Directory symlinks and compiler-declared external includes receive the same checks. Restoring the original binding and contents restores the logical input identity.

Each later read of the result (job Status or Result, sail jobs, MCP reads, watch) rereads every recorded file completely, in parallel, and compares digests. It also checks that the absent configuration paths are still absent. Every recorded source binding must still resolve to the same destination. Every recorded path, binding and destination is stamped (file metadata, including the inode change time) before and after the reads; if any stamp differs, the reads may not describe one state of the files and the result is Unknown.

  • Every digest matches and nothing new appeared: Current.
  • Any file changed, disappeared or appeared: Historical.
  • A file cannot be read, or the record is missing or malformed: Unknown.

Older read-check records without source bindings are refused as Unknown. Run verification again to establish a complete record.

Nothing is inferred from timestamps, so an edit whose modification time was restored still reads as changed. Files of packages that the selection never builds, such as other workspace members’ dependencies, are not part of the record; editing them does not change the label. Each read also rechecks the proof context’s recorded runtime identity (the installed Sail, Verus, Cargo, rustc and rustup files and the Cargo configuration). If any of them changed, or the identity record is missing, an otherwise unchanged result reads as Unknown, and the next run uses a different context.

Job submission uses the same check: a new request joins a running or completed job only when the recorded inputs are unchanged. Without a record (no Current run of that context yet), requests never coalesce.

How a run decides it is Current

By default, every verification call reads the current input bytes. Its checks can share a complete source observation within that call while the original mutation stamps and selected paths still agree. Changes, newly discovered inputs, uncovered aliases or incomplete coverage require fresh reads. Default source hashes are not carried between calls, and compiler identity checks still read the actual compiler bytes.

Target-revision projections from the original observation may also be shared within that call when their complete metadata selection and configuration stamps match. Every batch rechecks the observation’s original mutation stamp; a retry or a new after-run observation does its own projection work.

After these checks, stable input and read-check sidecars are replaced only when their complete serialized bytes change. Keeping an identical sidecar does not skip any input observation, mutation stamp or receipt validation.

A run is Current only when all of the following hold:

  • the content revision of its inputs (every source, manifest, lockfile, build-script input and compiler-declared include of the resolved packages, and the Cargo configuration) is the same after verification as before;
  • the device, inode, size, mode, modification time and change time of every input file and directory are unchanged across the run. The change time cannot be set by user programs, so an edit that was restored during the run, even with its modification time put back, is still caught;
  • every installed toolchain file still has the content (SHA-256) it had when the run started. A file whose complete stat stamp, change time included, equals the one recorded when it was last read on this machine is not read again (ADR 0041, 2026-10-26 note);
  • every absent Cargo configuration file is still absent at the end. On Linux, none was created during the run either, even briefly: an inotify watch on those paths tells such a file apart from Cargo’s own journal writes in its home directory. macOS has no equivalent synchronous, per-name notification, so there only the start and end of the run are checked (see below);
  • every unit Cargo compiled belongs to the selected targets’ dependency closure, so the read-time record covers everything that was compiled;
  • the build-script and compiler declarations were complete.

Otherwise the run is Historical (an input changed) or Unknown (one of the checks could not be made), with the note “inputs could not be confirmed unchanged; re-run for a current result”. Verification itself still runs and its report is kept as the record of that run.

A newly discovered external include can introduce a source-path alias as well as new content, for example an absolute path through macOS’s /var symlink. The discovering proof stays Historical and publishes no proof receipt. Its separate Cargo build-script observations may survive only when every original binding is unchanged, each new binding belongs to newly discovered compiler source, and the existing script-package and declared-input checks confirm that no script input changed. Later calls still validate those script observations and freshly read the declared sources; this does not authorize proof reuse.

Build-script coverage does not wait for scripts outside an explicit -p selection’s dependency closure, because they never run for it. Without an exact selection or a complete, unambiguous resolve graph, every resolved package is in scope. Cargo’s resolve graph is wider than the build, though: it keeps dev-dependencies, other platforms’ dependencies, and features that only another workspace member enables. So after a run that Cargo finished (one build-finished record), coverage also does not wait for a script package of which Cargo reported no unit at all, compiled or fresh: nothing that run compiled used its output. A package Cargo reported any unit of still needs its script’s record (#121).

Files that build scripts generate inside Sail’s own Cargo target and that the compiler then reads, such as serde’s OUT_DIR/private.rs, are build products, not inputs. The target belongs to the run, which may clean a package and rerun its script, so such a file can be rewritten with the same bytes or appear for the first time. They are left out of the comparison across the run (content and stamps); the inputs of the scripts that write them, outside the target, are still compared. Rustc reads a generated file only after its script has finished, so its content at the end of the run is the content compiled, and that content is bound into the proof receipts and the read-time record like any other input (#120).

Explicit native include directories

For a dependency with Cargo’s links name, Sail preobserves existing absolute include directories configured through <LINKS>_DIR/include or <LINKS>_INCLUDE_DIR (uppercase links name). For example, OPENSSL_DIR lets Sail read those headers before the first build, rather than discover them only when the build script declares them afterwards.

These paths add input coverage. The script’s actual declarations, complete content reads, mutation guards and before/after scheduling checks still decide whether reports can be reused. Other directory layouts use ordinary declaration learning. Relative and absent hints supply no coverage. See the Anvil control.

What these checks do not catch

These cases can change what a run verified without changing any content digest or stamp, if the change is undone before the run ends:

  • a process writing through a writable shared memory mapping of a source file while that page is already dirty, which does not update the file’s timestamps;
  • a bind mount placed over an input and removed again, which needs root;
  • on macOS only, a Cargo configuration file (.cargo/config.toml, .cargo/config, rust-toolchain, rust-toolchain.toml in the project’s directory or its parents, or config.toml in the Cargo home) that did not exist when the run started, was created during the run and was deleted again before it ended. Sail checks that such files are absent at the start and end of the run and on every later read, but cannot see one that came and went in between. If you create a Cargo configuration file temporarily while a managed run is in progress, re-run after removing it.

Earlier versions held kernel read leases and watched the mount generation to catch the first two, at a cost of about a quarter of a second on every run and a large amount of code. Earlier macOS versions caught the third by checking the nearest existing parent directory of each absent file, but Cargo writes its cache database in its home directory on every build, and /tmp and the home directory change constantly, so every macOS run read Historical and reused nothing. Ordinary editors, formatters and agents write files, which these checks do catch. If you run a tool that edits sources through shared mappings during verification, re-run after it finishes.

Cargo selection and compiled artifacts

Changing Cargo package or target selection, such as adding --lib to an interactive repair after a full package verification, shares the same owned Cargo artifact directory. Cargo still decides which units are fresh. Features, profiles, target triples, compiler configuration, runtime files and environment remain compiler-family inputs; ordinary and interactive engine requests stay separate. Proof contexts still bind every original argument and focus selector. A requested target cannot use a sibling context’s proof receipt. Dependency reuse still checks the complete source revision, declared environment and exact artifact bytes against an established receipt. The candidate’s qualification record identifies the remaining gates and the original failed diagnostic.

Concurrent dependency publishers reserve a private staging directory before writing. A name collision leaves the other publisher’s files untouched; a failed publication cannot remove a directory it did not create. This does not change receipt, source or artifact admission checks.

Which environment variables are proof inputs

A managed proof follows the input model of plain cargo verus, which is Cargo’s own. Two parts of the environment bind a result:

  • What the pinned tools read. The proof context, and so the Cargo target, binds the current value or absence of every variable in these families: CARGO_* (except CARGO_TARGET_DIR) and __CARGO_* (Cargo configuration); RUST* (RUSTFLAGS, RUSTC*, RUSTDOC*, RUSTUP_*, RUST_MIN_STACK, RUST_BACKTRACE, RUST_LOG); VERUS_*, __VERUS_*, VARGO_* and VSTD_KIND (the Verus launcher, driver and macros); Z3_*; SAIL_*, except the observation-only job and trace variables and SAIL_DEPENDENCY_STORE_ENTRIES; LD_* and DYLD_* (dynamic loading); and colour, layout and locale (NO_COLOR, CLICOLOR, CLICOLOR_FORCE, COLUMNS, LANG, LANGUAGE, LC_*).
  • What the project declares. After each run Sail collects every variable any unit declares: rustc’s # env-dep: dep-info lines (env!, option_env!, and the Verus driver’s own declarations) and build scripts’ rerun-if-env-changed. Each receipt records their values, and it is reused only while every one is unchanged. Names are taken exactly as rustc and Cargo record them: rustc’s \n, \r and \\ escapes are decoded and whitespace is part of the name; Cargo trims each output line, then reads everything after =. A declaration file that cannot be read leaves the run without receipts.
  • What ghost code reads. Verus compiles a verified crate twice, and the erased compilation rewrites its dep-info without the verification phase’s reads, so a read in a proof fn, spec or assertion alone is not declared (VI-0036, #386). For every verified target Sail requests the fork’s report of the variables rustc tracked in both phases (SAIL_COMPILER_INPUTS; the source checksum the report needs, -Zchecksum-hash-algorithm=sha256, travels with Sail’s other Verus options in __VERUS_DRIVER_ARGS__, not on the compiler’s command line). After a successful verification it appends each missing read to the unit’s dep-info in rustc’s own form, so Cargo recompiles when it changes, exactly as for an exec read, and records the observed names in the invocation. Variables the proof context already binds (the families above, including the driver’s forwarded arguments) are not appended. A receipt requires that observation: a verified target whose report is missing, incomplete, unbound to its compiler process, inconsistent between phases, or whose dep-info cannot be located or rewritten publishes no receipt. Replays of Sail’s shipped vstd build keep their own recorded compiler environment (ADR 0048).

Private dependency authentication (SAIL_DEPENDENCY_READ_TOKEN and SAIL_PRIVATE_GIT_READY) does not select a different compiler proof context. Changing those values alone leaves an unchanged CLI proof reusable. Fetched dependency contents remain bound by the ordinary source checks. If a source file or build script explicitly declares a read of either variable, its receipt still requires that value to match. This exemption does not change which environment a background job requests.

For build-script declarations, Sail binds CARGO_FEATURE_* and CARGO_CFG_* to Cargo’s generated values, not the parent process values. A private Cargo unit graph supplies exact unit features. Native compiler cfg queries supply target values. Each unit’s profile supplies its debug-assertion setting.

A Current run keeps its unit graph and cfg queries for the next run of the same proof context. The next run restores them instead of asking Cargo again when their key is unchanged. The key binds the proof context (arguments, environment, tool identities, Cargo configuration and named target specifications), the complete Cargo metadata, the bytes of every manifest and the lockfile, the invoking directory and the owned target directory. Source edits keep the key. Every restored unit must name a target the current metadata lists exactly. A configuration that may include another file, a custom target specification, or a key that changed during the run keeps nothing.

This model uses Cargo source 5f94df4789f005f9a352888e8355ffc645b7ed0e. Unknown Cargo versions, missing observations, and conflicting unit values refuse reuse. A declared name with an inherited parent value also refuses reuse. Package declarations CARGO_MANIFEST_DIR, CARGO_MANIFEST_LINKS, CARGO_PKG_NAME and CARGO_PKG_VERSION (including its major, minor, patch and prerelease components) use the current package metadata. OUT_DIR uses Cargo’s recorded directory for that exact build unit, bound to its checked output file inside the owned target. Other Cargo-generated variables retain the original refusal.

The generated values participate in each script’s content digest. Feature, target, cfg, or declared environment changes invalidate affected records. Output ownership, source-content checks, receipt checks, and dependent invalidation remain unchanged.

RUSTUP_TOOLCHAIN binds its effective value. When the caller made no toolchain choice, Sail runs Cargo with the engine’s pinned toolchain (ADR 0058) and the context records RUSTUP_TOOLCHAIN=<pinned> exactly as if the caller had set it, along with that toolchain’s Cargo sysroot. Selecting the pinned toolchain and keeping the caller’s Cargo are therefore different contexts, and so are installing the pinned toolchain’s rust-src or adding a rust-toolchain file or rustup override, which change the selection.

CARGO_TARGET_DIR does not select a managed context: Sail always passes its owned --target-dir to Cargo. Setting, changing or unsetting the caller’s directory therefore keeps the same compiled target. It still reaches child processes, and an env! or build-script declaration binds its exact value in proof receipts, just like any other declared read. Compiler-family script observations also retain its exact presence/value: unlike Cargo-injected variables, compilation preserves this caller value. The metadata override is confined to separate metadata children.

Managed metadata probes, including Cargo-Verus’s private metadata subprocess, select cargo-metadata/ under the Sail cache with a highest-priority build.target-dir override. Neither caller environment nor Cargo configuration can exclude source directories for these probes. Cargo metadata can otherwise create .rustc_info.json in a source directory named by that override. Compilation and cleanup keep the caller’s environment value. The private metadata setting never enters the environment, so a build script’s own nested Cargo commands retain their ordinary environment. Public fallback snapshots retain caller target selection.

Sail’s managed Cargo and Verus-driver aliases take their private settings (SAIL_MANAGED_*: the real Cargo, the runtime and artifact journal, the shipped plan, the output socket, the original driver) from a file beside them in the compiler family directory, not from the environment. Cargo, build scripts, procedural macros and compilers therefore see the caller’s environment as under plain Cargo-Verus, including the caller’s own CARGO and any SAIL_MANAGED_* the caller set (#385). The exceptions are listed in known issues.

Before reading or seeding any proof receipt, managed verification checks that the physical Sail cache and every resolved package directory are disjoint. Overlap in either ancestor direction, an unresolved alias, or an unidentifiable input root takes the SAIL3112 ordinary-Cargo fallback without managed receipts. Existing ancestors are resolved before a future cache suffix is considered. Thus an excluded cache tree cannot hide an added source file, including when the cache aliases a source directory or contains a checked-out package. The default external cache keeps managed reuse.

PATH and HOME are not bound as raw values. What they select is: the resolved cargo, rustc, rustup, cargo-verus, verus, rust_verify and z3, identified by path and file stamp, and the resolved Cargo and rustup homes with the bytes of every Cargo configuration file. Every other variable, such as an agent’s session id, TERM or SSH_AUTH_SOCK, is not a proof input, so the CLI, MCP and every agent session or terminal share one proof context for a project. Child processes still receive the whole environment.

Limitation, shared with Cargo. A build script or proc macro that reads a variable without declaring it, including a tool that a build script finds through PATH (cc, cmake, pkg-config), is invisible: Cargo does not rebuild for it, and Sail does not re-verify for it. Declare such reads with cargo:rerun-if-env-changed in the build script.

What a proof receipt binds

Files read only in ghost code count as the target’s declared files too. An include!, include_str! or include_bytes! inside a proof is missing from the dep-info the erased compilation writes (VI-0037, #439). Sail adds each file the fork reports for the verification phase to the unit’s dep-info. Under Cargo’s checksum freshness it also adds the checksum rustc computed of the bytes it read. A file without such a checksum refuses the receipt.

Currentness compares every file of the selection’s packages. A proof receipt is narrower: it is reused while the files that can change its target are unchanged. In a path package without a build script, after Sail has recorded the compiler’s declarations of that package’s targets, these are the files the target’s own compilation read (its dep-info, which includes include_str! files), the files of the library it links, every other package’s files that the compiler declared, the manifests, lockfile and toolchain files, anything in a .cargo directory, and the other spelling of a declared module file (src/m/mod.rs next to src/m.rs). So, as with plain Cargo-Verus:

  • a new or removed file that no mod names verifies nothing;
  • adding a src/bin file verifies only that binary, and removing it again verifies nothing;
  • editing a binary’s source re-verifies that binary and its package.

Registry and git packages, packages with build scripts, and packages whose declarations are not yet recorded bind every file. A declared file that no longer exists drops out of the record, and its removal still counts as a change (ADR 0046, 2026-10-26 amendment).

Unchanged-call replay

A sail verify identical to an earlier call that ended Current without starting a verifier replays that call’s output without running Cargo (ADR 0082). The call is identical when its arguments, output mode, selected tools, exact daemon socket, the colour Sail asks Cargo for (--color=always on a colour terminal) and every variable the tools or Sail read are the same. Those variables include the terminal-capability variables the pinned Cargo’s colour and hyperlink detection reads (CI, CLICOLOR, CLICOLOR_FORCE, COLORTERM, DOMTERM, FORCE_HYPERLINK, KONSOLE_VERSION, NO_COLOR, TERM_PROGRAM, VTE_VERSION, WT_SESSION, besides TERM). Replay also needs the full stat stamp (device, inode, size, mode, mtime and ctime) of every input path and walked directory to match, along with the owned Cargo target’s entries and every installed tool and sysroot file. The proof context’s cache records must match by content, and the variables units declare (ghost-only reads included) must have the same values. Two per-run settings files are listed but not compared by content: the proof context’s runtime.json and the compiler family’s managed-transport.json. Every full run writes them again from its own invocation, and only that run’s processes read them. A --output json call, a SAIL_MANAGED_NOOP=0 call or a job therefore no longer invalidates another call’s record (#575). Cargo’s uplifted build-script copy (build/<package>-<hash>/build-script-build), which Cargo copies again on every macOS run, is the one exception: it must hold the same bytes as the compiled script beside it, whose stamp must match, and its directory must keep its identity and exact entry names. Anything else takes the full path. Only Cargo’s Finished time is regenerated.

Replay records include environment names from the direct, sibling or seeded proof receipts actually admitted for the result, as well as Cargo dep-info. A compiler-boundary restoration contributes its observed names and staged receipt declarations. Recording samples the caller’s values, including absent and empty values. Unknown coverage for any included report prevents recording. A human Cargo no-op may omit targets without receipts; replay preserves that admitted subset and adds no missing report. Structured requests separately require complete requested coverage. Recording also requires a readable compiler-invocation inventory with no compiler starts and only recognized cached invocation records. A run whose stderr holds one of Cargo’s transient status lines is never recorded, and removes any older record of its key: a Blocking lock wait, Updating, Locking, Downloading, Downloaded, or a spurious network error retry warning. Those depend on concurrent activity or on the package cache, so a later plain run would not print them. Version 6 replaces version 5; older records take the full path.

The first unchanged call after a verification takes the full path and records; a file changed less than 2 s before a run is not recorded, so the next call records it. A failing project re-verifies on every call, as plain Cargo-Verus does, and is never replayed. SAIL_MANAGED_FORCE (a forced job or call) never replays; SAIL_MANAGED_NOOP=0 disables replay, and SAIL_MANAGED_NOOP_TRACE=FILE logs each hit, miss reason and recording.

Background jobs, MCP verify and start_verification replay too (ADR 0082, 2026-10-28 amendment). A job’s own variables (SAIL_JOB_EVENTS, SAIL_PROOF_EVENTS, SAIL_JOB_GUARD_PARENT) are not part of the key, so an unchanged job replays the record of an earlier identical job, or of an identical sail verify --output json call with non-terminal streams and the same environment. A record keeps the run’s context-ready and target-reused job events; a replay writes them to the job’s event stream under its own run identity, keeping each reused target’s establishing run. Diagnostic events (setup phases, cleanup decisions) appear only for calls that take the full path.

Installed tools are stamped like any other input, so anything that changes their inode metadata ends replay for every recorded call, even when the bytes are unchanged. Hard-linking an installed sail, sail-z3 or tool binary (for example to stage a benchmark copy) updates its ctime; so do chmod, chown and touch. The next call of each project then takes the full path and records again. This is the intended fail-safe outcome. When benchmarking, stage copies before the first measured call, or copy rather than link the installed binaries.

Reader latency

The M7 reader gate (four clients, 200 Status and Result reads, p95 below 200 ms, every sample Current while another verification runs) is measured with scripts/reader-gate.sh; see M7 validation, gate 5.

Watch startup

sail watch completes initial Cargo metadata discovery and subscriptions before starting its first debounce window. macOS can replay earlier creation notifications, and under load it can deliver an edit’s notifications late or more than once. Immediately before submitting each run, watch records a complete snapshot of the input bytes and file identities, including change times. A later notification batch cancels that run only when the inputs no longer match the snapshot, so a late or repeated notification for an edit the run already includes does not restart it. The initial snapshot plays the same role during startup. Real edits still cancel verification, including edits whose bytes and modification time are restored. A removal or rename of an input always cancels, because moving a directory away and back keeps every identity the snapshot records. Unreadable state remains conservative; proof admission checks do not use this filter.

Native events are only the fast path. Under load, macOS can drop a watcher’s events and send its drop notice late or not at all. So every two seconds, in every mode, watch compares a metadata stamp of its inputs (path list, file identity, size, and modification and change times; no file is read) with the last state it saw. Only when the stamp changes does it rehash the inputs and restart. On macOS and Linux an input edit therefore cancels the run in flight within about two seconds, plus one stamp pass, even if its notification never arrives. The same edit is never reported twice by a notification, the stamp check and a scan. On an Apple silicon Mac, one stamp pass over Vest’s workspace (3,458 entries) costs about 19 ms of CPU, under 1% of one core at one pass every two seconds. A full rehash (about 120 ms) runs only when a stamp changes.

When native notification coverage is incomplete, watch stops reading native events and adds content scans every five seconds; delayed native events do not queue the same edit again. Scans compare against the last state seen. When a completed run widens the watched inputs, watch first checks the previous inputs against that baseline, so an edit made before the next scan is never adopted as already verified. The snapshot includes empty input directories, while declared build-output subtrees remain excluded.

Partial verification reports

The exact-scope report reuse keeps partial results explicitly incomplete. A report may be reused only for its exact ordered arguments and unchanged source, runtime and artifact bytes. Whole-target, shared dependency and instant-revert proof consumers refuse it. Native bounded controls pass; final release qualification is pending.

With the pinned Cargo, a requested proof failure keeps independently verified dependencies when the current input checks pass. Platform-disabled packages with no Cargo execution unit need no observed build-script contract. Missing or unsupported planning evidence retains conservative cleanup; unexpected actual units prevent a Current result.

Compiler-visible Sail settings

The schema2 compiler-read protocol distinguishes the Verus driver’s bookkeeping read of __VERUS_DRIVER_ARGS__ from a tracked source or macro read of that variable. Genuine source reads retain their exact observed value, including absence. Units reading this channel or Sail’s explicit compiler-child controls compile afresh rather than reusing ordinary, sibling, dependency-store or retained proofs:

ControlsRole
__VERUS_DRIVER_ARGS__Effective Verus options; driver-only bookkeeping remains reusable
SAIL_PROVENANCE_DIRPer-run solver attribution directory
SAIL_COMPILER_INPUTS, SAIL_COMPILER_INPUTS_BINDINGPer-run compiler-read request
SAIL_ENGINE, SAIL_ENGINE_EVENTS, SAIL_ENGINE_CONTEXT, SAIL_ENGINE_FOCUS_REPORT, SAIL_ENGINE_FUNCTIONEngine child controls
SAIL_RUSTC_DEV_SOURCE_BASE, SAIL_VIR_SPAN_REMAPExplicit source/span mapping controls

COMMON, provenance and the two compiler-input request settings motivate the input-binding fix; the other seven receive conservative treatment under the same bounded policy. Routine units retain reuse, including Verus’s ordinary Z3/Singular declarations and inherited user variables checked against the parent environment. Only classified driver-only COMMON bookkeeping may be restored to Cargo’s base in dep-info.

Before a real verified compiler starts, Sail writes a non-authorizing marker outside the shared compiler family’s Cargo target. An interrupted, missing, legacy or malformed observation leaves that marker, so the next reuse-enabled run recompiles the package before Cargo can declare old artifacts fresh. Receipt retirement and ordinary package cleaning do not remove the marker. A genuinely complete successful schema2 observation from a reuse-enabled run with no source-sensitive read clears its own marker. This records compiler inputs only: a complete focused or no-verify dependency observation can clear that state without granting whole-target proof authority. Exact-scope receipts and whole-target success retain their separate admission rules. Before retrying a marked package, Sail can also retire its older argument variants after cleaning both owned ordinary and focused layouts and independently checking that no package fingerprint authority remains. A failed or uncertain cleanup retains the facts; a successful observation of another variant alone cannot clear them. Loader/no-reuse runs retain Cargo’s own freshness and never clear these facts. Removing the source read restores routine reuse after genuine new verification.

Cleanup uses the family’s actual Cargo profile and target, with metadata-resolved intermediate directories and strict filesystem checks. A configured intermediate root outside the owned target cannot receive reuse authority: Sail uses its existing SAIL3112 plain Cargo-Verus fallback and leaves origin facts intact. Explicit interactive requests refuse that unbound layout instead of creating a reusable report.

A fresh result describes the original request’s actual compiler inputs and retains that provenance when its job is read later. A new verification request must pass reuse eligibility separately. Unknown family origin state requires a full family clean before recording the new protocol.

This tracks rustc’s declared reads; untracked procedural-macro environment reads remain outside Cargo’s existing tracking guarantees. Both platform pins select the matching producer; see compiler-read origin qualification.

Caller variables in unchanged-call replay

The unchanged-call record binds the caller-variable names required by proof receipts actually admitted for its result. This includes sibling and previously adopted dependency receipts and zero-compiler retained restores. A ghost-only name can be absent from Cargo’s dep-info while remaining a requirement of an admitted proof; replay must still compare its exact caller value. Unknown required coverage prevents recording. Older version3 replay records are retired by version4; ordinary verification rebuilds the record. Unchanged inherited values retain useful replay, and a changed value returns to the ordinary receipt/currentness checks. See #552 and the owning qualification record.

Working-directory observations

An unchanged-call record binds its own working-directory and argument-specific input state, Cargo-unit query and read-check record. Up to eight invocation slots share the same proof context and owned Cargo target. Using another slot changes no proof key or source observation. The least recently used slot is evicted when a ninth is needed; an evicted invocation takes the full path.

Latest-context input/read-check files still serve job observers. A replay republishes them from its independently validated slot before publishing its result and job events. A changed or missing slot misses. Missing or unreadable slot bookkeeping takes the ordinary shared-sidecar path; it grants no reuse.

Package-local Cargo target/ contents can be omitted from the source walk only with Cargo’s regular physical directory marker and no protected crate, package, module or declared input inside. The marker itself remains bound; source/configuration paths and script/compiler declarations always win. A missing or changed marker, unknown metadata or aliases keep the complete walk. First creation of the directory may still require a full call. See the ADR 0082 amendment.

Settled source observation prototype

The default still reads source contents afresh. The opt-in SAIL_MANAGED_SOURCE_DIGEST_MEMO=1 candidate implements the owner-approved ADR 0091: fresh namespace and alias discovery, complete original stat equality, successful Current provenance and the original two-second settle rule guard individual source digests across calls. Unknown data, changed entries, retries and forced calls read afresh. Source and target optimizations require separate platform qualification; see the record.

Linux selects the separately qualified owned-target observation by default; SAIL_MANAGED_TARGET_DIGEST_MEMO=0 restores fresh reads. macOS keeps fresh reads by default and requires explicit =1 to try the same guarded path. An unknown setting refuses reuse; non-Unix hosts always retain fresh reads. This optimization additionally requires a freshly matched complete owned target, exact receipt bytes and complete source/metadata/context bindings. It retains dirty cleanup and refuses aliases or any changed entry. Pure receipt projections also bind their exact original selection and target keys; each batch still checks the fresh source observation. Native component gates pass; corrected Linux warm Anvil pairs save about 0.43 s. The Mac target candidate refuses because build-script directory stamps change during unchanged calls. Source observations remain opt-in on both platforms. Target selection on Linux does not establish release parity. See the separate scopes in the qualification record.

The separate SAIL_MANAGED_FILE_TARGET_DIGEST_MEMO=1 prototype implements owner-approved ADR 0092. It remains off on every platform: native seven-project Linux evaluation shows no warm median gain, and Mac correctness gates (#633, #634) prevent timing selection. See the current record. It is off by default on every platform; exactly 1 opts in on Unix. It retains complete fresh current target namespace/barrier checks, original full file stamps and ancestor identities, original Current run/start and settlement, and complete source/context/selection/receipt binding. Unrelated directory entries or times can change across calls; changed/unsettled files read afresh. Inherited entries never acquire a later provenance or age into trust. Dirty cleanup and all proof checks remain. This ledger supplies no proof revisions, and first-after-cold artifacts still require fresh reads. Native qualification and platform selection are open; see the general qualification record.

Trust model

How far each source of a verification result is trusted, and what is checked before it is used. Charter rules 2, 3, 7, 9 and 10 apply.

These obligations apply to the actual effective inputs Sail verifies. Code that observes Sail’s named compiler-visible integration settings can compile different inputs from plain Cargo-Verus under the accepted equivalence exception. That exception does not relax exact query/key and solver binding, input freshness, complete requested scope or truthful reporting; it does not authorize reuse for different effective inputs. See ADR 0088.

Status: two local tiers exist, the in-memory tier and the disk tier, both inside the daemon (ADR 0011, ADR 0015). Behind them sit the bundled tier, the signed vstd replies a release archive ships (ADR 0062), and a shared tier of signed entries (ADR 0017).

SourceTrusted forChecks before use
Fresh pinned-Z3 runConfirmed resultsSolver identity (version string, binary hash and platform) matches the pin
In-memory tierBytes that are on disk, or queued to be written there by the daemonA slot read from disk, or whose write completed, is served only while its entry file has the stamp it had then (device, inode, length, modification time). Otherwise the slot is dropped and the disk is read. A pending slot exists only for a key that has no entry file and no other queued write (ADR 0015)
Local disk tierReplies written by the local daemon, which is its only writerKey and reply hash match the entry, and the reply has the shape its command requires (ADR 0011). Any failure is a miss
Bundled tierNothing, until verified: then as far as the release archive is trusted, and only for that archive’s own packreplies/release.pub and replies/vstd.pack must match the SHA-256 and size that the archive’s release-files.json lists for them, or the tier is not used. Then every entry passes the shared tier’s checks below, with that one key as the only trusted signer (ADR 0062)
Shared tierNothing, until verified (rule 9): then exactly as far as its signer is trustedAn ed25519 signature by a key in <cache root>/trust/*.pub, over the key, reply hash, command, mode, solver identity, platform class, effort, format version and signer id. Then: key, reply hash, solver identity and platform class equal the session’s, the reply has its command’s shape, and an unknown passes the serving policy (ADR 0009). Any failure or timeout is a miss (ADR 0017)

Solver identity

A daemon handshake recomputes the executable hash and version. The former path/length/mtime memo could retain an old hash after changed bytes and restored mtime; its replacement and remaining qualification are recorded in the identity validation record.

A result is only as reusable as the identity it was produced under. Identity binds:

  • the solver name and the version string it reports;
  • the SHA-256 of the solver binary;
  • the platform (OS and architecture).

Rlimit counts have been observed to differ across machines for the same binary (ADR 0004 update), so the shared tier may need to bind a machine class finer than the platform. That is decided by measurement.

Owner decision (ADR 0010). Shared-tier entries are scoped by solver binary hash plus platform class. Hits across platform classes are allowed only in a named opt-in mode. The shared tier implements this: entries are filed by platform and binary hash, both are signed, and a correctly signed entry for another platform class is refused and counted (shared_other_platform). The opt-in mode is not built.

Local disk tier: what its checks do and do not prove

The integrity checks catch corruption, truncation, misfiled entries and shape mismatches. Fault injection showed each of them becomes a miss (docs/fault-injection.md).

They do not catch a forged entry: one written by someone other than sail, with a valid hash and a plausible shape but the wrong answer (for example unsat under a key whose true answer is sat). The local tier is therefore trusted only because the daemon is its only writer, and the cache directory is owned by the user.

Requirements this places on the shared tier (charter rule 9):

  • It must never be trusted the same way.
  • Its entries need provenance the reader can verify: signatures from a trusted writer, or certificate checking when that arrives.
  • Otherwise, entries must be re-validated against the pinned solver before use.

The shared tier meets these with signatures (next section).

Shared tier: what its checks do and do not prove

Anyone may be able to write to a shared store: it is a directory on NFS, a synced folder, a CI artefact. So the store is never trusted. Only a signature is.

What a verified entry proves. The holder of a trusted secret key signed this exact reply as the answer to this exact v2 key, for this command, from this solver binary on this platform class, with this effort. Since the v2 key binds the whole process prefix and the solver identity (ADR 0008), that is the same question the session is asking.

What a store writer can and cannot do without a trusted secret key:

  • plant a forgery with a valid hash and a plausible shape: refused (no valid signature). Fault injection shows the session stays exact;
  • re-sign a forgery with their own key: refused (untrusted signer);
  • corrupt, truncate or delete entries, or hang the store: a miss, at most one timeout per back-off period;
  • move a validly signed entry to another key’s path, or copy one signed for another solver or platform: refused (key, solver or platform mismatch).

They cannot make a reader serve a wrong answer.

Concurrent lookups of the same shared entry receive the helper’s verified result directly. The initiating caller does not need to resume before other readers can receive it. Publication follows the same signature, key, reply shape and solver checks; it does not extend lookup deadlines, and a late helper cannot overwrite a timeout already published to that lookup.

Optional HTTP client initialization runs inside a bounded lookup helper. Constructing or retiring a transport cannot hold the foreground snapshot mutex, and status reads never construct a runtime. A stalled initializer costs a bounded miss; concurrent lookups can safely skip initialization already in progress. Configuration changes still clear old backoff and negative-cache state before consulting the new transport. Invalid credentials and disconnected stores cannot serve through the retired transport. A constructor that completes after the lookup has published its fallback skips that obsolete network request. Status reads borrow cached metrics while the cache retains transport ownership, so retirement cannot make a status reader join the last transport runtime.

What a trusted key can do. Anything: a trusted signer is trusted completely. Whoever holds the secret key can publish wrong answers that every trusting reader serves. Hence:

  • keep secret keys where releases are made, such as a CI secret or a designated machine, and never in the store;
  • publish only from a cache filled by the pinned solver. sail cache publish exports only entries with provenance pinned-solver and a recorded solver identity, never entries that came from the shared tier, and never unknowns the serving policy would not serve;
  • revoke a key by removing its public key from readers. Local copies of its entries carry provenance shared:<key id>, so they can be found.

Provenance (charter rule 7). A shared hit is copied into the local tier with provenance shared:<key id>. It is never published again; that would need a fresh solve.

Statistics replies served from the shared tier carry the publisher’s time, memory and rlimit-count figures. Plain Verus uses only rlimit-count, which is exact for the publisher’s run of the same process prefix on the same binary and platform class. See “Solver identity” above for machine classes.

Bundled tier: the release’s own replies

A release archive carries replies/vstd.pack and replies/release.pub (ADR 0062). The pack holds ordinary signed shared entries: the pinned solver’s replies from the factory’s own vstd recording. The release factory signs them with a key it generates for that release. The secret exists only inside sail cache bundle-replies and is never written, so no long-lived signing secret exists.

Why the archive may carry its own trust root. The archive’s checksum already protects bin/sail, bin/sail-z3, the pinned Z3 and the shipped vstd proof. Whoever produced the archive is already trusted with every verdict a user sees. A public key in the same archive, bound by the same release-files.json and trusted only for the same archive’s pack, adds no new party. The owner accepted this on 2026-10-20 (question 36).

What the daemon checks.

  • The index. The key and the pack are used only if their bytes match the SHA-256 and size that release-files.json records. A file missing from the index, a swapped key, a modified pack or a malformed pack turns the whole tier off: every lookup misses, and sail status says why.

  • Every entry. Each entry is checked as a shared entry is:

    • signature by the release key;
    • key, reply hash, solver name, version, binary and platform class;
    • mode, reply shape and the unknown policy.

    A failure is a counted miss (bundled_rejected).

  • Separation. The release key is never added to <cache root>/trust/, so it authorizes no team store. The trust directory’s keys authorize nothing in the pack.

  • Order. The tier is consulted after the local tiers and before any team store. A hit is copied into the local tier with provenance bundled:<key id> and is never published again.

SAIL_BUNDLED_REPLIES=0 turns the tier off for diagnosis. It never changes any reply’s bytes, only whether the pinned solver is asked.

Key management

  • sail cache keygen --out FILE creates a signing key: FILE (mode 0600) and FILE.pub. Keys are one line of text: sail-ed25519-secret-v1 <hex> and sail-ed25519-public-v1 <hex>. A key id is the first 16 hex digits of the SHA-256 of the public key.
  • sail cache trust add FILE.pub copies a public key into <cache root>/trust/<id>.pub. trust list and trust remove ID manage the set. The trust directory sits inside the cache root, so it has the local tier’s trust boundary: the user’s own directory. A running daemon re-reads it within 5 seconds.
  • sail cache publish --to STORE --key FILE signs and writes entries.
  • sail serve --shared STORE, or SAIL_SHARED_STORE, turns on the read path. SAIL_SHARED_TIMEOUT_MS (default 250) bounds each lookup.

In-memory tier: what it adds to the trust base

The memory tier adds no new source of answers. Every slot holds bytes that came from one of two places:

  • a disk read that passed the disk tier’s integrity checks;
  • a PUT from a shim session, the same bytes the disk tier would store.

A slot of the first kind is checked against the disk on every hit. It is served only while its entry file has the same device, inode, length and modification time as when the slot was filled. So:

  • an entry removed by gc, sail cache verify --remove or clear is a miss at once, from any process;
  • an entry corrupted, replaced or forged on disk is a miss, or is served exactly as the disk tier would serve it. A forgery that passes the disk-tier checks is served from disk too: the forged-entry limitation below is unchanged, not widened.

A slot of the second kind is pending: its write-behind write has not finished (ADR 0015). It is trusted exactly as the disk entry it will become, since the daemon is the only writer of both.

  • It never shadows different bytes. A PUT is not taken when an entry file already exists for the key, or when a write for the key is queued.
  • When the write finishes, the slot is checked against the new file’s stamp. If the write fails, or finds another entry already there, the slot is dropped.

What the stamp check does not catch. Suppose something other than sail rewrites an entry file in place, keeping its inode and length and restoring its modification time to the nanosecond. The memory tier would keep serving the old bytes. Those bytes passed the integrity checks when they were read, so they are still the solver’s answer. Anything able to do this is already outside the trust boundary: the user’s cache directory, written only by the daemon.

Killing the daemon with writes still queued loses those entries. Each loss is a future miss. An interrupted write leaves at most a temporary file, which is never read as an entry (crates/sail-cli/tests/daemon_ops.rs).

Daemon version

The daemon reports its protocol version in HELLO, and clients treat a mismatch as “daemon unavailable”: the shim passes everything through to the pinned solver. The default socket name includes the version (daemon-v<N>-workspace-v2-proof-v1.sock), so an upgraded sail verify starts its own daemon instead of reusing a stale one.

Protocol version 5 requires one successful HELLO before a connection can read or write replies. That handshake binds both solver identity and mode. A missing, failed or repeated handshake closes the connection; a client must connect again to retry or choose another solver/mode. INFO and STATS remain available without a handshake, so status never requires a solver.

This is an admission boundary, not an independent proof of an answer. An identified local writer can still supply a plausible wrong unsat under a key; the local-writer and shared-signer trust assumptions above still apply. Checksums, identity negotiation and signatures do not establish SMT truth.

Solver diagnostics and publication

The stdout reply cache admits a session only after a clean solver exit with no stderr bytes (ADR 0022). Quantifier warnings are forwarded and cause all staged entries to be discarded; future runs therefore reproduce the warnings. Local and signed shared entry format 2 reject older entries whose silence was not established. A trusted shared writer must follow the same publication rule.

Solver-free completion additionally requires a silence record for the exact complete session input. Cached replies alone cannot cover new trailing commands. The record uses a separate key domain, with the same solver and mode identity; shared writers must certify complete silent sessions, never synthesize records merely from cached prefixes.

Optional source engine

The interactive engine is an explicitly selected pinned Verus source variant. Its manifest binds the source commit, Rust toolchain, patch and lockfile digests, solver and every runtime artifact. Installation and use reject incompatible or changed runtime bytes. A prebuilt CI archive additionally binds its archive digest to a committed pin; access credentials authorize download, not proof. Source builds and artifact validation happen locally before publishing that pin.

A source terminal event is insufficient to finish a verification. The adapter requires exactly one complete bounded structured Verus document, normal process exit 0 or 1, and an explicit typed payload.normal_termination: true marker. The optional source distinguishes expected compiler-error termination from an internal unwind before emitting that marker. Complete failed-proof and late EXEC documents retain their original engine output and focused provisional evidence.

A panic, signal, missing or malformed document, or absent/false/malformed normal termination marker retains the engine’s failed output and falls back to the stock verifier with the same compiler arguments and effective options. Older producers could catch internal panics into an ordinary-shaped compiler-error document, so a legacy terminal seal without the new marker cannot authorize any engine result. Fallback records its actual child invocation and discards focused evidence from the interrupted engine. A terminal event’s success flag alone cannot distinguish a compiler crash from an ordinary failure. The engine keeps no prepared-lowering cache, so it adds no cache to this trust boundary. Focus and progress evidence remain provisional until a complete successful full result is Current.

Currentness of retained results

A Current label is a statement about inputs, not about the verdict, and no proof is ever reused or accepted unless its result is Current (ADR 0041). A run is Current only when its input content revision and the file stamps of those inputs are unchanged across the run, no absent Cargo configuration appeared, and every compiled unit lies inside the recorded closure. Logical input revisions also bind source aliases and linked ancestors to their canonical destinations; the union of canonical file contents alone cannot identify which source a compiler path selects. A later read rehashes exactly the recorded files and rechecks those bindings: equal is Current, different is Historical, unreadable is Unknown. Toolchain and sysroot files are identified by content, read again only when their complete stat stamp (including change time) differs from the one recorded on this machine; configuration is identified by content.

A proof receipt also binds the environment its compiler read. That includes variables read only in ghost code, which the erased compilation’s dep-info omits: Sail takes them from the pinned fork’s report of rustc’s tracked environment in both compiler phases, and a verified target without a complete report bound to its own compiler process gets no receipt (#386). Sail trusts that report to list every env!, option_env! and tracked proc-macro read, as it trusts rustc’s dep-info for exec code; undeclared reads by build scripts and proc macros stay invisible, as they are to Cargo.

What this trusts and does not detect is listed in freshness: an edit made and undone during a run through an already-dirty shared writable mapping, a bind mount added and removed during a run (root only), and an in-place toolchain rewrite on a filesystem whose change time does not advance, or after the clock was set back.

Encoded job-result frames are an allocation optimization, not freshness evidence. Every read verifies the retained stdout bytes against the result’s seal and checks currentness before selecting a frame. Cached frames are bounded by bytes and count, carry no time-based validity, and are discarded on a seal mismatch.

Sail’s Verus and its interactive engine

Sail’s Verus is a Sail-managed source variant built from Sail’s Verus fork (ADR 0039). It is the only Verus Sail runs: ordinary sail verify and every other verification use it (ADR 0043), and it contains the optional interactive repair engine described below. Stock releases are the conformance oracle. One pinned runtime per platform (artifact-linux.json, artifact-macos.json) serves both uses: it holds verus, cargo-verus, rust_verify, the builtin and macro libraries, vstd and the pinned Z3, everything cargo verus needs.

A repair runs fresh Rust frontend, type, mode, trait and ghost lifetime checks, then focused verification and an independent full verification in one active compiler callback. Each phase lowers every bucket fresh, exactly as stock Verus does, and creates fresh solver contexts. Full stdout and its diagnostics remain authoritative only after deferred errors and the late EXEC compilation pass; focused results and progress remain provisional.

The interactive driver catches only the pinned Rust compiler’s expected FatalErrorMarker unwind. Unexpected internal panics resume unwinding and cannot reach a compiler seal; ordinary default verification retains its existing catch-all behavior. A terminal compiler-sealed frame includes payload.normal_termination: true only on a normal driver path, including reported proof, VIR and late EXEC errors. This flag describes completion, not success: the full JSON, exit status, selected scope and coherent input checks still determine authority. Missing or malformed completion, internal panic, signal, or malformed full output requires the stock fallback.

Source: Sail’s Verus fork

The engine is built from one commit of Sail’s public Verus fork, Chelis-Lang/verus, pinned in fork.toml (repository, branch, full commit and upstream base). The owner decided on 2026-10-12 that Sail stays forked and fixes known Verus issues there; nothing is contributed upstream (Verus issues).

The fork’s branches:

  • upstream/<short sha> is an unmodified upstream Verus commit, for example upstream/7d82994 (the pin in corpus/toolchain.toml) and upstream/426d8b0 and upstream/8dea4a2 (the secondary pins).
  • sail is that upstream commit plus Sail’s commits, in this order:
    1. one commit per Verus issue fix, each with its regression test under source/rust_verify_test/tests/sail_vi<NNNN>_*.rs, plus one harness commit (--sail-raw=<arg> in tests/common/mod.rs) that the tests use;
    2. last, feat: interactive repair engine, the engine itself (formerly engine/verus/interactive.patch).
  • pinned/<sha> tags every fork commit a Sail runtime pin has ever named (for example pinned/4881cd0f), so a pinned commit stays reachable after sail is rebased or a fix is dropped. Tag the commit when its pin lands.
  • Lanes push their own branches (for example l12/engine-2); the lead updates sail after review.

Each fix is small and self-contained so it can be rebased, dropped (when a Verus release fixes the issue) or reviewed alone. Fix commits change only orders, the --output-json fields named in their issue, Cargo log layout, or (VI-0019, ADR 0049) closure-type names. An ordering fix must choose an order stock Verus is shown to produce (ADR 0039); the engine conformance arm, with its stock confirmation runs, checks this. The closure-name fix produces stock’s output up to a one-to-one renaming of closure numbers, and must qualify on fork-versus-stock conformance and the full rust_verify_test suite. VI-0005’s dep-info carry-over was dropped: it made every Sail repair rebuild (the selected function is a forwarded argument). VI-0007’s bucket-order diagnostics were dropped once, when the check found debug_expand.rs different and no stock run had shown the fork’s order, and reinstated (bc9cda09, pinned from 73dea021) after stock was shown to print it (VI-0007). Run the repair benchmark on a candidate before pinning it.

The erasure shadow-check membership index removes repeated linear work without changing traversal or SMT bytes. Its qualification covers native measurements and both runtime consumers.

cargo xtask build-verus-engine fetches exactly the pinned commit (the fork is public, so no credentials are needed), checks that its upstream base equals corpus/toolchain.toml’s commit, writes the committed Cargo.lock, writes Verus’s toolchain manifest for the build’s version as the release workflow does (so cargo verus new works, VI-0018), and builds. The variant’s identity (sail-fork:<commit> feature) and the runtime pin (artifact-linux.json, fork_commit) bind the commit. CI never builds Verus; it installs the prebuilt runtime.

Upgrading Verus

  1. In every fresh clone of the fork, set the human identity first (git config user.name and user.email, as in this repository). Rebasing and cherry-picking rewrite the committer, and without a configured email git falls back to user@hostname. Check new commits with scripts/check-ai-markers.sh range <base> <head>, which rejects AI markers and hostname-fallback identities.
  2. Push the new upstream commit to the fork as upstream/<short sha>.
  3. Rebase sail onto it (git rebase --onto upstream/<new> upstream/<old> sail on a review branch). Drop fixes the release already contains; resolve conflicts per commit.
  4. Run every sail_vi* regression test and the rust_verify_test suite on the rebased branch, and record the results.
  5. After review, move sail to the branch, update corpus/toolchain.toml and fork.toml together, then do one rebuild, the qualification steps below, and publish and re-pin the runtime (Publishing a runtime). Tag the pinned commit pinned/<sha>.
  6. Move the published crates with the release (ADR 0059): set vstd in corpus/toolchain.toml from source/vstd/Cargo.toml, re-lock scripts/shipped-deps with the pinned Cargo (cargo +<rust_toolchain> update -p vstd --precise <vstd> after editing its requirement), regenerate the four *-inputs.json source policies with scripts/source-policies.py --verus-repo <fork clone> --work <new dir> (--check compares with the committed files), and re-observe crates/sail-verus/src/managed/shipped/native_shapes.json from the pinned Cargo’s actual compiler arguments for scripts/shipped-deps. Then re-record the shipped vstd proof bundle on the new runtime.

What the engine commit contains

The engine commit (feat: interactive repair engine, formerly interactive.patch) changes four files:

  • rust_verify/src/driver.rs: the fatal-error handling above and the compiler-started and compiler-sealed observations.
  • rust_verify/src/verifier.rs: the focused phase before the full phase in the same callback, the reporter it uses, and bounded observation hooks (diagnostics, obligation progress, functions observed).
  • rust_verify/src/sail_engine.rs (new): the focused phase, its bounded report (SAIL_ENGINE_FOCUS_REPORT, holding only the selected function) and the bounded observation journal (SAIL_ENGINE_EVENTS).
  • vir/src/ast_util.rs: a friendly-name helper that admits a name’s bytes before allocating it.

Cargo.lock is the stock source lock (identical to the fork’s source/Cargo.lock): the engine adds no dependency. The build still writes it and binds its digest (source-lock: feature).

Removed: prepared-lowering reuse and the same-input oracle

Earlier patches cached prepared lowering (the SST and polymorphism output of each bucket) within one invocation and, with an opt-in, across edits, and checked every restored hit with a same-input cached-versus-fresh byte oracle. Measured reuse was near zero (no in-batch hits on HumanEval; L1) while every miss paid for key encoding and admission under one global lock, about 6.7 s per repair on HumanEval and 40 s on Vest. The oracle also needed confirming fresh arms and an unstable class to stop flaking on stock trigger nondeterminism (VI-0015). Both were removed (rescue L7a; ADR 0038). Reuse across edits is redesigned for M8 with content-addressed keys. The removed patch, its qualification pipeline and its record (qualification-linux.json) are in this directory’s git history and the archive/m7-contracts-f7103bf tag.

Validation

test-engine.py and test-cancel.py are local-only differential checks that use an already built variant; CI never compiles Verus.

  • test-engine.py runs each fixture three ways: stock, the fork runtime without the engine (every SAIL_ENGINE* variable removed) and the engine. The engine must match the plain fork run exactly: exit status, stderr, verification counters, func-details, per-function verdicts, the SMT session inventory and every session’s full raw SMT. Against stock, all of these except the raw SMT must match exactly. The fork’s accepted solver-name divergences (ADR 0054 and ADR 0056) rename symbols, so raw SMT against stock is not asserted; summary.json records, per session, whether it equals stock’s and both input digests. The owner-approved ADR 0094 recursive fixture requires the exact stock one-session and qualified fork two-session inventories; unknown runtimes and any other inventory change fail. The extra termination session and its complete engine/fork input bytes are retained in the summary. Fixtures cover bitvectors, termination, failed focus, failed other functions, macro diagnostic spans, missing and ambiguous exact selectors, Rust frontend errors and late EXEC errors.
  • test-binary-inputs.py compares actual compiler input bytes with stock in both compiler phases, including non-UTF-8 includes, relative/absolute paths, restored-mtime changes, text, empty and CRLF inputs. The pinned correction and its qualification are recorded in binary compiler inputs.
  • test-native-inputs.py exercises the actual ordinary Cargo-wrapper compiler path with SHA-256 and BLAKE3, non-UTF-8/empty/CRLF includes, exact stock output and dep-info, and independently checks observer bytes against stock checksums.
  • test-cancel.py kills a worker at an actual blocked solver check, requires no terminal seal or unfinished focus report, and verifies the restart against stock. It retains each command and cancelled/restart/stock stdout and stderr, including partial output on restart/stock timeout. Its evidence covers cancellation seals and restart equivalence; test-engine.py separately checks complete solver-query bytes.
python3 engine/verus/test-engine.py --engine BUILD/verus/source/target-verus/release/verus \
  --stock STOCK_VERUS --z3 Z3 --out OUT/source-fixtures
python3 engine/verus/test-cancel.py --engine BUILD/verus/source/target-verus/release/verus \
  --stock STOCK_VERUS --z3 Z3 --out OUT/cancel-restart

Also run the changed crates’ library tests in the build checkout (cargo test --release -p rust_verify --lib, and likewise vir and air), and the fork’s regression tests (vargo test --release -p rust_verify_test --test sail_vi...). Final performance acceptance uses the frozen repair catalogue and the complete focused-plus-full loop (product acceptance). The earlier accepted 73dea021 runtime checks are recorded in the fork-default record; those of earlier pins in the M7 validation record (Gate 1, engine build and qualification). A new fork commit needs its own run, including the determinism check (determinism record). The Mac runtime builder uses ADR 0097’s explicit consumption classification, retains the original statistics and stops before packing on any other determinism difference. The standalone check remains strict by default. The compiler-read origin runtime record records the built Linux schema2 candidate and its remaining acceptance/platform gates; its local pack/install result does not select that runtime.

Corpus conformance arm

sail-conformance engine (run by ci/run.sh conformance) compares this runtime’s full phase with the stock release on the corpus, on verdicts and diagnostics, and requires a normal, consistent compiler seal; see the repair guide.

cargo xtask build-verus-source --interactive-engine builds vstd the way the release does (cargo-verus build --manifest-path vstd/Cargo.toml from source/vstd, variant feature vstd-build:cargo-verus-release), so diagnostics that point into vstd render as seq.rs:980:12, as stock does, rather than vstd/seq.rs:980:12 (L4b).

Pinned Linux runtime for CI

artifact-linux.json (schema 2) binds the release asset (repo, release_tag, asset), archive digest, runtime manifest digest (manifest_sha256, the sha256 of the archive’s sail-build.json), upstream commit, fork commit (fork_commit), lockfile, Rust toolchain and solver. Ordinary retained reuse on Linux is qualified for one manifest (LINUX_MANIFEST in crates/sail-verus/src/managed/retained/selection.rs); a unit test fails when it differs from the pin’s manifest_sha256, so a re-pin updates it deliberately, with ordinary-reuse qualification. A valid engine with another manifest verifies normally and notes SAIL3136. ci/engine-artifact.py checks those pins and every runtime file before installation. The Docker image does not build Verus from source; the optional runtime is exercised by the real repair CLI/MCP end-to-end phase alongside the stock checks. CI downloads these exact prebuilt bytes; it never compiles the engine.

Where runtimes are published

Runtimes are GitHub release assets on the public fork, Chelis-Lang/verus: one prerelease per pinned fork commit, tagged engine-runtime-<short sha>-linux and targeting that commit. The asset is the packed archive, engine-runtime.tar.gz. The exact selected commit, release tag, asset name and archive checksum are recorded in artifact-linux.json. The full closure-identity record tracks the selected full-identity runtime’s platform bindings, measured scope and qualification limits.

Fetching needs no token: the CI image build, ci/local.sh, native hosts and ci/engine-artifact.py fetch download anonymously. fetch builds the URL from the committed fork.toml repository, never from the pin alone, requires the release tag to name the pinned fork commit, sends no credential and accepts only HTTPS redirects. Trust comes from the committed archive digest and the runtime manifest, never from where the bytes were served.

Publishing a runtime

A new fork commit needs a new runtime. Until it is published and pinned the committed pin is stale and the CI image build refuses it. Because default mode runs the runtime too, a re-pin also needs the conformance tiers to pass with Sail on the new runtime against plain stock Verus (ci/local.sh conformance fast, then standard; ADR 0043).

  1. On a native Linux x86-64 host, build it with cargo xtask build-verus-engine and run the qualification steps (Validation). The Verus toolchain must not have the rust-src component: with it, vstd.vir names the host’s copy of the standard library instead of /rustc/<commit>, as the release’s does (VI-0031). The build refuses such a toolchain, and packing and installation reject such a vstd.vir.
  2. Pack it: python3 ci/engine-artifact.py pack --build BUILD --archive OUT/engine-runtime.tar.gz --pin engine/verus/artifact-linux.json. The pin records the archive and manifest digests and the release it belongs to (repo, release_tag and asset).
  3. Publish the archive on the fork, with publish rights to Chelis-Lang/verus (a maintainer step; fetching needs none): gh release create engine-runtime-<short sha>-linux -R Chelis-Lang/verus --target <fork commit> --prerelease --latest=false --title "Engine runtime <short sha> (Linux x86-64)" OUT/engine-runtime.tar.gz. State the fork and upstream commits, source lock, toolchain, Z3 and archive digests and the build host in the notes.
  4. Check the published bytes anonymously: curl -fsSL https://github.com/Chelis-Lang/verus/releases/download/<tag>/engine-runtime.tar.gz | sha256sum must print the pin’s archive_sha256.
  5. Commit the pin with the fork.toml change and tag the commit pinned/<sha>. Never replace or delete the asset of a release a pin has named: older Sail commits still fetch it.

A runtime prerelease is a prerequisite, not acceptance of the broader repair benchmark or three-project edit catalogue.

Release archives

Sail’s release archives bundle the runtime under engine/<variant>/ beside bin/sail, and sail uses it when neither SAIL_VERUS_BUILD nor the cache names one, after the same validation (releasing). Every archive must carry it. The Linux archive carries the pinned artifact above. The macOS archive carries the runtime pinned in artifact-macos.json (same schema; host aarch64-apple-darwin, from the release tag’s -macos suffix), built on Apple silicon from the same fork commit, published as the fork’s prerelease engine-runtime-<short sha>-macos (pack with --platform macos; otherwise the steps above apply), and qualified separately in the macOS engine record. On the Mac, scripts/build-macos-runtime.sh build runs the build in neutral build roots, every qualification step, the pack and the archive scan, and scripts/build-macos-runtime.sh published checks the published runtime. CI never builds, installs or runs the macOS runtime.

The combined binder/runtime candidate has both platform archives built and remains under qualification. Its native compiler observations run only when explicitly requested; the quarantined v1 dependency store remains disabled.

Performance

Sail speeds up Verus verification by reusing a released vstd proof, previously verified targets and exact solver answers. Edits still pay Rust compilation and the Verus frontend for changed targets. Undoing an edit can restore an original complete proof when retaining that target was worth its cost.

0.2.0

The complete core composition uses source 039fb996, pinned A0e Verus, six rotated stock/candidate blocks on native c7i.4xlarge / us-east-1 / Ubuntu 24.04 and mac-m4.metal / us-east-1c / macOS 26.7. It includes 23 paired workflow rows and three complete mutation catalogues: 972 paired mutation/cold/return steps per platform. This measures the qualified core composition, separately from the final versioned archive builds.

Complete edit loopLinux stock/SailMac stock/Sail
Vest, 52 edits per round1.22x1.44x
IronKV, 48 edits per round1.51x1.55x
CapybaraKV, 53 edits per round2.19x2.38x

All 1,944 retained paired steps recheck Same with zero false verified results. The corrected explanation-note counter yields separate reports with 26/26 valid rows on each platform; original strict failures and every timing remain unchanged. Every individual mutant median is faster in these catalogues. The feature record contains exact identities, full ranges, hashes and interpretation limits.

Five workflow medians remain slower, with disjoint ranges in this cohort: Linux tiny edits/reverts add 0.19/0.15 s; Mac adds 0.11/0.10 s, and Anvil cold is 98.94 s against stock’s 96.87 s. Calls that miss replay still pay frontend and input-checking costs. Background preparation can help a later call but is additional work; the bounded Mac preparation-cost control completes with the intended toolchain (record). These results do not establish universal parity or a resource bound.

The stable candidate record separately binds the new versioned archives, fresh installation/replay controls and release gates. The exact rc.1 archives also preserve the original fifteen-edit and Anvil catalogue’s 114 raw samples/platform and passing execution audits (record). The owner approved this candidate; 0.2.0 is published.

The earlier combined candidate record keeps its original source and observer scope. The broader evaluation adds real-project structures, pinned repository candidates and dependency/file/ target scaling controls. Its algorithm review and qualification status distinguish implementation experiments from measured product gains. The rc.7 measurements below retain their original source, machine and observer scope.

0.1.0-rc.7

The numbers below time the installed 0.1.0-rc.7 release archives, built from 8797ccd4 with fork runtime 47fb3be6, against stock cargo verus verify 0.2026.10.18.7d82994, on 2026-10-28. The release-candidate record has the functional qualification of the same archives.

  • Linux: four EC2 c7i.8xlarge hosts (Intel Xeon Platinum 8488C, 32 cores), us-east-1, Ubuntu 24.04, one project per host. Archive sail-0.1.0-rc.7-x86_64-unknown-linux-gnu.tar.gz (sha256 d950044a…a7a773b), installed with scripts/install.py --archive under umask 022.
  • macOS: EC2 mac-m4.metal (Apple M4, 10 cores, 24 GiB), us-east-1c, macOS 27.0 (26A428); projects run one after another. Archive sail-0.1.0-rc.7-aarch64-apple-darwin.tar.gz (sha256 59cce7c3…af10da21).

scripts/perf-real.sh run PROJECT 6 ran six paired rounds per project, alternating which arm went first. Each arm started from a fresh copy and an empty Sail cache, with vstd from crates.io.

  • Vest passes --rlimit 100 on both arms.
  • Anvil keeps its own rust-toolchain.toml (Rust 1.98.0) on both arms and gets receipts and replay (ADR 0084). The other projects run on 1.99.1.

The phases, in order:

  1. cold
  2. unchanged, first: records the replay.
  3. unchanged, second: replays.
  4. unchanged with SAIL_MANAGED_NOOP=0: the full unchanged path.
  5. one-line edit: body-early, an assert(true); in one function.
  6. revert
  7. fail: a failing assert(1 + 1 == 3);.
  8. fix: the same line made true, straight from the failing state.
  9. fix revert

Each cell is the median of six rounds, with the range in brackets, in seconds. Every exit code matched stock’s in every round and phase: fail exits 101 on both arms. Peak memory was not recorded in this rc.7 matrix (#562); the current candidate record above includes the separate memory observations and the unresolved sampler-overhead gate.

Linux

ProjectPhaseStockSailStock/Sail
Vestcold70.3 [67.8–73.4]66.9 [65.5–72.6]1.05×
unchanged, first0.20 [0.20–0.23]0.71 [0.68–0.76]0.29×
unchanged, replayed0.20 [0.20–0.23]0.06 [0.06–0.06]3.43×
unchanged, SAIL_MANAGED_NOOP=00.20 [0.20–0.21]0.52 [0.51–0.56]0.39×
one-line edit38.8 [37.9–43.9]23.2 [23.0–25.6]1.67×
revert39.0 [37.8–41.3]1.14 [1.12–1.22]34.08×
fail34.6 [34.0–36.0]19.9 [19.7–21.4]1.73×
fix38.7 [38.0–39.7]23.3 [22.8–25.0]1.66×
fix revert38.7 [38.1–41.8]1.14 [1.13–1.22]34.01×
IronKVcold40.3 [39.9–40.7]18.3 [18.3–18.9]2.19×
unchanged, first0.13 [0.12–0.15]0.24 [0.24–0.26]0.52×
unchanged, replayed0.11 [0.11–0.11]0.03 [0.03–0.04]3.26×
unchanged, SAIL_MANAGED_NOOP=00.11 [0.11–0.12]0.21 [0.21–0.21]0.54×
one-line edit9.19 [9.06–9.43]7.55 [7.49–7.70]1.22×
revert9.19 [9.15–9.44]0.77 [0.76–0.80]11.94×
fail8.33 [8.30–8.76]7.77 [7.71–7.84]1.07×
fix9.21 [9.11–9.44]7.48 [7.41–7.67]1.23×
fix revert9.19 [9.15–9.56]0.78 [0.77–0.79]11.83×
CapybaraKVcold64.7 [64.5–65.0]60.3 [60.2–61.0]1.07×
unchanged, first0.16 [0.16–0.20]0.63 [0.63–0.64]0.25×
unchanged, replayed0.16 [0.16–0.19]0.03 [0.03–0.03]5.77×
unchanged, SAIL_MANAGED_NOOP=00.16 [0.16–0.16]0.52 [0.52–0.53]0.31×
one-line edit29.3 [29.1–29.7]14.0 [13.9–14.1]2.09×
revert29.4 [29.1–29.6]12.3 [12.3–12.4]2.39×
fail26.8 [26.7–27.1]11.4 [11.3–11.4]2.36×
fix29.5 [29.1–29.8]13.9 [13.7–14.0]2.12×
fix revert29.5 [29.2–29.7]12.4 [12.3–12.5]2.39×
Anvil (--verify-module vdeployment_controller)cold182.7 [172.7–184.4]179.8 [169.6–181.6]1.02×
unchanged, first0.36 [0.34–0.37]2.44 [2.30–2.49]0.15×
unchanged, replayed0.31 [0.29–0.32]0.04 [0.04–0.04]8.64×
unchanged, SAIL_MANAGED_NOOP=00.32 [0.29–0.32]2.13 [2.01–2.15]0.15×
one-line edit153.6 [149.7–157.4]87.1 [80.2–90.6]1.76×
revert154.0 [149.6–159.9]33.8 [32.1–34.9]4.55×
fail145.6 [140.5–151.0]26.7 [25.3–27.6]5.46×
fix153.8 [149.1–156.7]50.7 [47.9–52.8]3.03×
fix revert151.7 [148.4–161.5]33.6 [32.1–35.0]4.51×

macOS

ProjectPhaseStockSailStock/Sail
Vestcold38.6 [38.5–39.0]38.3 [37.2–38.7]1.01×
unchanged, first0.26 [0.26–0.27]0.80 [0.78–0.84]0.32×
unchanged, replayed0.26 [0.25–0.26]0.09 [0.07–0.09]2.89×
unchanged, SAIL_MANAGED_NOOP=00.25 [0.25–0.26]0.57 [0.55–0.62]0.44×
one-line edit22.1 [22.0–22.1]12.5 [12.2–12.7]1.76×
revert22.2 [22.1–22.3]1.11 [1.09–12.1]20.09×
fail20.7 [20.6–20.8]10.9 [10.6–11.0]1.89×
fix22.2 [22.2–22.3]12.6 [12.2–12.7]1.77×
fix revert22.3 [22.1–22.4]1.12 [1.08–11.9]19.87×
IronKVcold20.2 [20.0–20.4]12.4 [12.3–12.5]1.63×
unchanged, first0.21 [0.20–0.21]0.29 [0.29–0.29]0.72×
unchanged, replayed0.20 [0.20–0.20]0.05 [0.05–0.05]4.05×
unchanged, SAIL_MANAGED_NOOP=00.20 [0.20–0.21]0.24 [0.24–0.25]0.84×
one-line edit4.30 [4.28–4.30]3.35 [3.33–3.38]1.28×
revert4.30 [4.27–4.31]2.23 [2.22–2.24]1.93×
fail4.01 [3.98–4.04]3.14 [3.11–3.16]1.28×
fix4.29 [4.28–4.31]3.05 [3.02–3.07]1.41×
fix revert4.29 [4.28–4.35]2.22 [2.21–2.24]1.93×
CapybaraKVcold31.3 [31.0–31.3]30.1 [30.0–30.3]1.04×
unchanged, first0.23 [0.22–0.23]0.59 [0.59–0.60]0.38×
unchanged, replayed0.22 [0.22–0.22]0.04 [0.04–0.06]5.25×
unchanged, SAIL_MANAGED_NOOP=00.22 [0.22–0.23]0.45 [0.45–0.47]0.50×
one-line edit14.9 [14.8–14.9]6.04 [6.01–6.07]2.47×
revert14.9 [14.9–15.0]5.66 [5.65–5.67]2.64×
fail14.1 [14.0–14.2]5.07 [5.03–5.11]2.78×
fix15.0 [14.9–15.1]6.06 [6.03–6.09]2.47×
fix revert15.0 [14.9–15.0]5.67 [5.64–5.77]2.64×
Anvil (--verify-module vdeployment_controller)cold99.4 [99.2–100.3]100.3 [99.9–100.8]0.99×
unchanged, first0.30 [0.30–0.31]2.11 [2.06–2.13]0.14×
unchanged, replayed0.25 [0.24–0.25]0.06 [0.06–0.06]4.31×
unchanged, SAIL_MANAGED_NOOP=00.25 [0.24–0.26]1.63 [1.61–1.64]0.15×
one-line edit78.9 [78.7–79.1]41.3 [41.2–41.3]1.91×
revert79.1 [78.8–79.1]14.7 [14.6–14.7]5.39×
fail75.0 [74.9–75.3]12.1 [12.0–12.2]6.19×
fix79.1 [78.9–79.6]23.8 [23.7–23.9]3.32×
fix revert79.2 [79.0–79.4]14.7 [14.6–14.8]5.40×
  • Edits, failing edits, fixes and reverts are faster on every project and both platforms. A Vest revert takes about 1.1 s, against 22 s (macOS) and 39 s (Linux) with stock. A failing Anvil edit takes 12 s against 75 s on macOS and 27 s against 146 s on Linux.
  • Replayed unchanged calls take 0.03–0.09 s, against stock’s 0.11–0.31 s.
  • The first unchanged call after a verification is slower than stock, and so is an unchanged call that misses replay (the SAIL_MANAGED_NOOP=0 row). That call takes the full path and records the replay: Anvil 2.44 s against 0.36 s on Linux and 2.11 s against 0.30 s on macOS; Vest and CapybaraKV 0.6–0.8 s against 0.2–0.3 s; IronKV 0.24–0.29 s against 0.13–0.21 s. Every later unchanged call replays.
  • Cold runs. IronKV is the only project served the shipped vstd proof (in all six rounds on both platforms), so it is the only one with a large cold gain. Vest, CapybaraKV and Anvil miss it and verify vstd themselves: Vest because of its vstd dependency closure and features (record, #238), CapybaraKV because of its --no-default-features resolution, and Anvil because of its patched Verus sources. Their cold medians are faster than stock, except macOS Anvil at 100.3 s against 99.4 s (+0.9 s, ranges overlapping). Linux Anvil and Vest cold ranges also overlap, with Sail’s median lower.
  • macOS Vest revert outliers. In two of six rounds the Vest revert and fix revert took about 12 s instead of 1.1 s: the fast revert path was missed and every check was served from the solver cache. Both are still faster than stock; the cause is not diagnosed.

The macOS medians match the earlier main dad6a80a measurement on the same host type within about 2% on every row. The 1-minute load average was 2–7 (Linux) and 2–17 (macOS), from the runs’ own work.

Raw logs and reports are kept outside the repository, in the evidence bucket under experiments/2026-10-28/rc7/: Linux rc7-perf-linux-logs.tgz, sha256 a3bd5eb3490192e392235fb1a0777085b7a4397fd662978451fd63be39d4286d; macOS perf-mac-rc7.tgz, sha256 93c8a0740974e3ff2d921b3d5dfdc76909462e80acbb8dea392c40d903c83e7a.

The earlier rc.6 release matrix and its mutation cohorts describe their own frozen artifacts. The rc.7 deep tier’s one-round mutation cohorts are in the release-candidate record.

To repeat a project’s measurement, put the installed bin/, stock Verus and sail-conformance on PATH and run:

RUSTUP_TOOLCHAIN=1.99.1 SAIL_PERF_VSTD=registry SAIL_PERF_VERUS_TIMES=0 \
SAIL_PERF_EDITS="body-early fail fix" SAIL_PERF_REVERT="body-early fix" \
SAIL_PERF_NOOPS=0 SAIL_PERF_UNCHANGED=2 SAIL_PERF_NOREPLAY=1 \
  scripts/perf-real.sh run vest 6    # vest also takes SAIL_PERF_VERUS_ARGS="--rlimit 100"

For Anvil, leave RUSTUP_TOOLCHAIN unset so that its own toolchain file applies. On macOS Anvil also needs OpenSSL (brew install openssl@3, then set OPENSSL_DIR).

v0.2.0 unqualified-Cargo component

Candidate 7ceb6423 reduces unchanged Anvil calls with native Cargo 1.92.0 from 0.815 to 0.312 s on c7i.8xlarge/us-east-1, against stock’s 0.269 s; Mac mac-m4.metal/us-east-1b/macOS 27.0 falls from 0.879 to 0.407 s, against 0.389 s. Each is 20 rotated stock/off/on triples, with the established focused scope, no compilation and Unknown/no-reuse results. This does not replace the six-round release matrix above. See the qualification record for source, runtime, output controls, hashes and remaining gates.

What to expect

  • First use. A matching project skips vstd verification using the proof in the release archive. Install Rust 1.99.1 with rust-src, as described in the README. Extra compiler components, dependency differences or forwarded Verus arguments can make that proof unavailable; Sail explains the miss and verifies normally. Signed solver replies in the archive can still answer exact matching queries.
  • Edits. Unchanged targets keep their reports. Changed targets run the compiler and verifier, using cached solver answers where the exact query bytes match. The result depends on module layout and the change: a common specification can invalidate much more work than a local proof edit.
  • Undo. Expensive targets can restore a previously verified revision. Cheaper targets use ordinary solver caching instead, avoiding the cost of retaining every compiled revision. See instant revert.
  • Unchanged runs and tiny edits. A later unchanged call replays its recorded report in 0.03–0.09 s, including unchanged MCP and background job calls. The first unchanged call after a verification and a call that misses replay take the full path: Sail checks inputs and returns a complete report, which costs more than plain Cargo’s no-op, most visibly on Anvil. Edits of tiny projects also have visible overhead. See known issues.
  • CI. A fresh runner gains from persisted solver replies, and in SAIL3112 mode from a persisted target/. In managed mode, restored managed targets and receipts are reused on a new runner, because tools are identified by content (#428). See caching Sail in CI.

The disabled v1 compiled-dependency store is not part of these claims. Other compiled dependencies are built separately for each project and worktree (ADR 0053).

The release benchmark uses seeded mutations over HumanEval, IronKV, Vest and CapybaraKV, with plain Verus as the oracle and one daemon across each complete edit sequence. It includes failed proofs and ordinary and forced returns to the original. A single scripted edit cannot establish an edit-loop claim.

Corpus projects use the release’s pinned vstd versions; the matrix lists the changes from each project’s own pins. Vest’s default-limit corpus case still reports the known resource-limit failure with both verifiers. Passing-workload benchmarks use resource limit 100 on both arms. Mutation sequences include failing proofs and require Sail to preserve their stock outcomes. Successful shipped-proof reuse and instant undo have a separate public Vest control in the profile qualification.

Repeatable Cargo comparison

Use scripts/bench-cargo-compare.py to compare stock Verus, the plain verifier fork, and Sail on a fixed source commit. The runner changes only a private Git worktree, not the operator’s source files.

Supply an unpacked stock release with the upstream commit from sail engine status. Stock and fork runtimes must use identical Z3 bytes. The runner selects the fork from Sail’s validated engine. Use --engine-build to select an external engine build. Install its Rust toolchain before the run. The selected project must contain a committed Cargo.lock.

Scenarios

ScenarioCargo and proof stateMeasured work
freshNew Cargo target per command, warm Sail solver cacheComplete fresh verification
unchangedRetain artifacts after a successful baselineCLI latency, new verification, or confirmed proof reuse
proof-editRetain baseline artifacts, then apply one declared editFresh verification of the edited library
daemon-restartNew Cargo targets, retained disk cache, empty daemon memoryComplete verification plus new-daemon startup

Select scenarios with --scenarios. The default is fresh. Each scenario has its own solver cache and separate results.

Runs are serial. Six measured rounds cover all six execution orders. Fresh, unchanged, and restart scenarios start with one warmup per verifier. Each proof-edit round creates its own successful baseline per verifier.

Workflow scenarios (unchanged and proof-edit) need one selected library package. For a workspace, set --project to the member directory. The runner records its full package identity and uses its name for CLI selection. An ambiguous workspace root is an error.

From the Sail checkout, the generic workload exercises all four scenarios:

REVISION="$(git rev-parse HEAD)"
python3 scripts/bench-cargo-compare.py \
  --project bench/cargo-example \
  --revision "$REVISION" \
  --stock-runtime ../verus-stock/verus-arm64-macos \
  --sail target/release/sail \
  --cargo "$CARGO_HOME/bin/cargo" \
  --cargo-home "$CARGO_HOME" \
  --rustup-home "$RUSTUP_HOME" \
  --scenarios fresh unchanged proof-edit daemon-restart \
  --edit-spec bench/cargo-example/proof-edit.json \
  --rounds 6 --threads 4 --jobs 4 --rlimit 20 \
  --out ../benchmark-results/cargo-workflows-1

Use the matching Linux stock archive on a native Linux host. The output directory must be new. Use another output directory for each sample set.

Proof edits

The proof-edit scenario needs --edit-spec. Its JSON object contains path, before, and after strings. The path is relative to the selected Cargo project. The runner replaces one exact match in a tracked Rust source file. It rejects traversal, symlinks, empty or ambiguous matches, and identical replacements.

The generic edit fixture adds a bit-mask fact to low_bits_roundtrip without a contract change. Every verifier receives the same edit. Each round uses an independent baseline artifact context. An earlier edited receipt cannot replace fresh proof work in the next round. The metadata records both source hashes and the complete edit specification.

Native proof counts can change when an edit adds an obligation. The report compares stock and fork counts for the same source state. It checks Sail’s requested-root function count and identity against that pair’s baseline. Native obligation counts and Sail function counts remain separate. These checks do not establish formal per-function conformance.

Controls and timing

The runner records source, lock-file, executable, runtime, and implementation identities. It checks source and runtime state before and after each command. It uses an isolated home and Cargo configuration. It shares only registry and Git download caches with the operator. Verification uses --frozen and fixed thread, job, and resource limits.

The runtime identity includes the solver shim and the Cargo and rustc executables behind rustup proxies. Local dependencies must remain inside the pinned Git worktree. Ancestor Cargo configuration outside that worktree is an error.

Fresh and restart commands use new Cargo targets and disable incremental compilation. Workflow commands retain normal Cargo artifacts and profile settings. Managed Sail workflows retain proof receipts. Fresh and restart cases disable whole-target reuse through explicit Cargo targets. Wall time includes Cargo, dependency builds, verification, and output capture.

Before a measured restart, the runner drains writes and stops its private daemon. The new daemon must retain disk entries, start with empty memory, and record disk hits. Wall time includes new-daemon startup and readiness checks, but excludes old-daemon shutdown. Each sample also records startup time separately. Client CPU excludes the separate daemon process.

Results and limits

samples.jsonl and logs/ retain every baseline and measured sample. metadata.json records the run configuration and provenance. summary.json uses schema version 2 and separate results for each scenario. summary.md includes raw sample paths, medians, ranges, sample standard deviations, and paired speedups. There is no combined timing aggregate across scenarios.

Reports distinguish fresh proof work, confirmed root reuse, and native Cargo no-ops. Workflow baselines must be Current, complete, and successful. Fresh proof evidence must identify the current run, not an earlier baseline. Missing proof evidence, failed proofs, timeouts, source changes, and incomplete sample sets invalidate the affected scenario. Invalid scenarios retain evidence without timing aggregates. Any invalid scenario produces a nonzero exit code.

Use an idle native host for comparative performance claims. A local smoke run checks the protocol, not release performance. Metadata and logs can contain project paths, source identities, and host details. Review them before publication. Keep raw results and private project configurations outside the repository.

Release performance matrix

The matrix compares an installed Sail archive with stock Verus over three rotated rounds. Each arm starts from fresh project copies and an empty Sail cache. It records first use, cold verification, unchanged calls, edits, reverts, fresh projects and worktrees. The real projects are Vest, IronKV, CapybaraKV, Anvil and Verismo.

Build the corpus tool first, install the pinned Rust toolchain with rust-src, and provide the stock runtime. Run on a native Linux or Mac host, with the output outside any Cargo project and a short path for Unix sockets:

cargo build --release --locked -p sail-conformance
python3 scripts/perf-matrix.py list
python3 scripts/perf-matrix.py run --out ~/pm --rounds 3 \
  --sail-install ~/.local/opt/sail-VERSION-TARGET \
  --stock-verus ~/.cache/sail/verus/0.2026.10.18.7d82994/verus-x86-linux \
  --machine 'instance type, region, operating system'

On Mac use the stock verus-arm64-macos directory. Real-project preparation needs jq, perl and crates.io access; Verismo also needs cmake and ninja. --project and --scenario select diagnostics, and --allow-fewer-rounds permits a shorter trial. Such subsets do not qualify the full release.

Both arms use the pinned Cargo and the release’s registry vstd versions. Adjustments to a project’s original pins are recorded. --vstd source selects the older source-checkout diagnostic setup, which cannot use a released proof. Verismo’s additional Rust target changes its sysroot identity; the script removes that target afterward if it installed it. Each cold sample records whether the shipped proof was served or why it missed.

Every sample is kept. Passing-workload rows require successful verification on both arms, with matching functional results and diagnostics; matching failed proofs cannot qualify them. Incomplete comparisons fail. The report separately marks every slower median for review, with its range and absolute delta. A successful report does not itself grant release acceptance.

Attach all four three-round mutation cohorts, measured with the same installed Sail binary, when reporting the release’s edit loops:

python3 scripts/perf-matrix.py report ~/pm --markdown ~/pm/matrix.md \
  --mutants ~/mutants/human-eval --mutants ~/mutants/ironkv \
  --mutants ~/mutants/vest --mutants ~/mutants/capybarakv

The mutation guide covers catalogue generation, three-run stock qualification, one daemon across each sequence, and revert checks. Missing or incompatible cohorts remain failures.

Running comparisons

Use a native EC2 Linux lane through scripts/perf-host.sh, or an approved EC2 Mac day through scripts/perf-host-mac.sh. Keep builds and other work off the machine during timings. Describe the actual hardware, region and load; never measure under emulation. Tear down owned hosts when finished.

For narrower investigations, scripts/perf-loops.sh demo|vest ROUNDS measures the ordinary CLI loop, scripts/perf-agents.sh vest AGENTS ROUNDS measures concurrency, and scripts/perf-real.sh exercises individual real projects. These need the Sail/shim pair, stock Verus, git, perl and awk; set SAIL_PERF_MACHINE and keep SAIL_PERF_OUT outside a Cargo project. Each script stops the daemon serving an arm’s cache with scripts/sail-stop-daemon.sh, which asks sail status --json for that cache’s actual socket and daemon pid (a long cache path gets a short socket under the temporary directory, not under SAIL_CACHE_DIR), and also stops any daemon bound to a socket inside the cache, such as a sail@NAME baseline’s daemon of another protocol version. It refuses to run without SAIL_CACHE_DIR or SAIL_DAEMON_SOCKET, so it never stops the default cache’s daemon. Hard-linking or otherwise restamping an installed binary between calls ends unchanged-call replay (freshness).

Earlier component measurements remain in the real-project report, instant-revert qualification, compiler-boundary qualification and generated solver benchmarks. They describe their stated sources and runtimes, and do not override the combined release results.

Known issues and limits

Open Sail defects and current product limits in published 0.2.0 and on main. Fixed defects are removed from this page; their issues and the changelog keep the history. The roadmap tracks release work.

The accepted shared parser has a complete new-root Stock inventory and all ordinary failure controls. Its frozen native source passes full fast/standard conformance, end-to-end and solver checks; measured fragmentation and lexer costs are recorded. Current-main managed runtime checks also pass. ADR 0086 accepts the bounded runtime adoption and the documented 3.02×/3.70× fragmentation and 1.90× lexer cost tradeoff; no general service-performance or completed-service claim follows. Native capacity/lifetime, external owner/EOF and solver interpretation relations remain open; source/hash binding does not establish them.

Resolved defects are retained in the changelog and backlog reconciliation. In particular, 0.2.0 includes the per-code explanation-note correction (#655), trailing-output oracle completion (#611), and compound-field lowering/retained-read correction (#323). Original failures and source-specific qualification stay unchanged.

Accepted integration limit

  • A hosted cached-session statistics control intermittently took the genuine solver path instead of its deliberately rewritten cache entry (#616). Exit status and genuine solver output were correct; the replay witness failed. Cause is unknown. Native solver checks pass; the strict assertion remains active. The fixture now binds its service completely before clients start; 100 unchanged-fixture and 100 corrected native repetitions pass, so the original cause remains unproved (record).

  • Sail’s named integration settings are compiler-visible (ADR 0088, #435). The owner accepts this bounded equivalence exception. The pinned fork and the sail-z3 shim read these from the compiler’s environment. Build scripts and compilers see VERUS_Z3_PATH, SAIL_Z3_PATH, SAIL_SOLVER_MODE and SAIL_DAEMON_SOCKET, and RUSTC_WRAPPER names Sail’s driver alias. The verified compiler’s __VERUS_DRIVER_ARGS__ carries Sail’s observation options. The fork’s shipped-build and compiler-input requests (SAIL_RUSTC_DEV_SOURCE_BASE, SAIL_VIR_SPAN_REMAP, SAIL_COMPILER_INPUTS*) reach compilers while those features are active. SAIL_PROVENANCE_DIR and SAIL_NATIVE_COMPILER_INPUTS/SAIL_NATIVE_COMPILER_INPUTS_BINDING are also observable while active. Code that reads these settings can compile different inputs and differ from plain Cargo-Verus. Default managed invocation also clears caller values of the five existing interactive-engine controls; selected interactive mode supplies its compiler-child values. The divergence registry defines the exact scope. Solver correctness, actual-query cache identity, freshness, complete scope and truthful reporting remain required; unrelated differences remain failures. No private transport is selected.

Input coverage and cache integrity

  • Read-back currentness brackets its reads with metadata stamps of every recorded path (#387). A concurrent edit that restores every stamped field, including the inode change time, is not detected; that needs a privileged clock change or a filesystem without change times.
  • Native-artifact store seeding can hide a changed native linker at the same PATH (#187). The store is disabled under ADR 0053, so main is not affected. Its family key now binds the bytes of the native tools (cc, c++, ar, ld on PATH and any linker or C compiler named by the environment) and refuses the store when a linker is chosen by Cargo configuration or compiler flags. Re-enabling the store is still not qualified.

The service-wide acceptance theorem is not complete (#368, #371–#376); see the refinement guide.

Performance

Current numbers are in performance.

  • The original data-representation experiment in the broader algorithm/corpus review remains unselected. The separate runtime and installed-output corrections are qualified and consumed on main. The corrected proof-edit/failure/fix catalogue passes six rounds. The generated binaries’ missing prelude is corrected (#631), but the valid parallel workspace exposes malformed combined verifier JSON (#632, VI-0039). The strict comparison remains failed; a serial control also refuses two shapes because independent crate document order changes. Complete compiler-invocation identity is not established by matching aggregate counts. Runtime/installed corrections and their both-platform gates are delivered; complete parallel scaling acceptance remains open under #632/#629. The unselected optimization experiments establish no general speedup.

  • A first unchanged call can still take the slower full path (#558) when post-return preparation has not completed. Preparation ships in 0.2.0; an immediate call does not wait for it. Historical macOS 0.1.0 measurements (0.1.0-rc.7) recorded Anvil 2.11 s against 0.30 s, Vest 0.80 s against 0.26 s, CapybaraKV 0.59 s against 0.23 s and IronKV 0.29 s against 0.21 s. Later unchanged calls replay in 0.04–0.09 s on macOS and 0.03–0.06 s on Linux (ADR 0082).

  • Unchanged calls that do not replay pay setup cost (#560). When replay misses (for example after a touch, a recent ctime or different arguments), or for forced jobs, which never replay, unchanged Anvil takes 1.63 s against stock’s 0.25 s on macOS 0.1.0, with no verifier run. Unchanged SAIL3112 setups took about 0.9 s on Anvil in 0.1.0. The qualified native-Cargo candidate measures 0.312 s Linux / 0.407 s Mac while remaining Unknown and no-reuse (#561, scope and remaining gates).

  • Tiny-project edits cost more than stock (#560). Input checks, receipts and complete reports add a fraction of a second to edits of small projects; one-line edits of the measured real projects are faster than stock.

  • macOS cold Anvil is not faster than stock (#232, #466): on 0.1.0 its median is 0.9 s slower on 100 s (100.3 s against 99.4 s), with overlapping ranges. Linux cold medians are faster on all four measured rc.7 projects. The later complete 0.2.0 composition measures 98.94 s Sail / 96.87 s stock (+2.07 s), with disjoint ranges; the regression remains active (record).

  • macOS Vest reverts sometimes miss the restore fast path (#595). In two of six 0.1.0 rounds the Vest revert and fix revert took about 12 s instead of 1.1 s, with every check served from the solver cache. That is still faster than stock’s 22 s and the verdicts matched; the cause is not diagnosed. Current candidate normal cohorts restore all twelve times below 2 s on each platform. A separate Linux baseline reproduces two slow restore misses, so a Mac-only cause is not established (current evidence).

  • Release 0.1.0 can miss shipped vstd through a symlinked cache (#601). The candidate resolves managed paths physically and passes installed-release first-Serve checks on both platforms (record). Use a physical cache path with 0.1.0.

  • A miss re-solves the whole bucket (#158). Editing one function re-sends its module’s whole solver session; on Anvil one bucket costs about 66 s.

  • The shipped vstd proof is not used with rustc-dev (#264). Its libraries are loaded by rustc, so the proof does not match; SAIL3138 names them.

  • macOS resource-limit subsumption is unavailable. Resource counts vary for one captured vstd query while inputs and answers agree. Releases ship exact default and limit-100 profiles; other limits verify vstd normally (reproduction).

  • An engine verify after a repair re-verifies the selected crate. A repair rebuilds that crate in the shared engine target, so the next sail verify --engine interactive with unchanged source verifies it again. The cause of the byte difference is not investigated.

  • Default and engine runs each verify vstd once in their own target. Whether they can share a target is not measured.

Product limits

  • Setups verified without proof reuse (SAIL3112). These verify exactly as plain cargo verus verify does, with solver caching, but record and reuse no proof receipts (workspace verification):
    • a Cargo outside the qualified 1.93.0 to 1.99.1, for example 1.92 or a newer release from a project’s rust-toolchain.toml, RUSTUP_TOOLCHAIN or CARGO (SAIL3139, ADR 0084);
    • tests, benches and examples; --target-dir; Verus’s --log options; --no-verify; Cargo -v and --message-format;
    • --sysroot, RUSTC_WORKSPACE_WRAPPER, Cargo --config and configuration includes, and compiler or sysroot overrides Sail cannot identify;
    • loader variables such as LD_LIBRARY_PATH or DYLD_LIBRARY_PATH, which verify in the project’s own Cargo target: the first such run in a project verified only with sail verify builds that target as a cold cargo verus verify does (#577);
    • a Sail cache and package root that overlap.
  • Only Sail’s Verus, at the release it pins (ADR 0043). A project that needs another Verus release cannot use Sail yet. SAIL_CARGO_VERUS runs another cargo-verus only as a labelled development override (warning[SAIL0108]).
  • Published 0.2.0 supports Cargo and standalone files. Standalone verification through CLI, watch and MCP is delivered on native Linux/macOS. Standalone watch requires source and discovered inputs beneath its working directory; CLI/MCP support external inputs. See standalone verification and #164.
  • Instant revert applies to qualified dependency profiles only. Retention keeps up to 16 revisions per target (1 GiB), with the first verified revision pinned. It is skipped for unqualified profiles and for targets too cheap to be worth retaining; SAIL3146 says why. A first run without a retention plan (for example a forced run) gets no instant revert until the dependencies are rebuilt (#285). See instant revert.
  • Current is about inputs, not the verdict. In doubt a result reads back Unknown, never Current. A few rare changes during a run are not detected; see freshness and trust. On macOS, a Cargo configuration file created and deleted again within one run is not detected (ADR 0041 note of 2026-10-14).
  • A focused check is not acceptance. A successful focused repair check still needs a complete Current full-target verification.
  • Repair selectors have a bounded source scope. An arbitrary external include may need a full run in a new selector context before Current evidence is available; changed external bytes still force verification.
  • Managed cache budgets are opt-in soft caps. Busy workspaces and the newest workspace stay protected, so configured usage can exceed the cap. Manual pruning and idle-daemon budget maintenance are available in 0.2.0 (disk use and cleanup).
  • No singular feature. Like the stock release, Sail’s Verus has no singular, so by(integer_ring) proofs fail as they do in stock. The repair engine falls back to ordinary verification (SAIL3124) and cannot accept a repair for such targets (details).
  • Combined output order. The managed relay guarantees final stdout completion, not one global order across stdout and stderr (#215).
  • Summary wording. A failing managed job summary leads with 0 verified before … passed by Verus's totals, and after a Rust compile error reads 0 verified, 0 failed, 0 unknown.

Integration APIs (experimental)

  • Positive native mutation kills are not established: the strong boolean-contract literal mutants return solver Unknown, so their outcome is inconclusive (record).
  • A failed Verus function can retain an unknown primary obligation; the neutral contract projection returns NotProved and keeps the unknown count and reason (reproduction).

Tests and environment

  • Short fixture deadlines under heavy parallel load on macOS. Exec of a freshly written executable has taken up to 10.5 s during cargo nextest run --workspace -j 32 on an 8-core Mac. Fixtures whose 1–10 s bounds include such a start fail there and pass alone (#280); the rule for fixture waits is in testing.
  • Unclassified missing-file error in macOS watch (#306). Seen once in a host gate; not reproduced, cause unknown.
  • Shared HTTP deadline fixtures. The 250 ms lookup and coalescing fixtures have failed intermittently; cause unknown.
  • Verifier wait under amd64 emulation. Verification sometimes stalls under emulation, which is not used for performance or Linux validation (reproduction).

Verus and Z3

The Verus tracker lists every locally recorded upstream issue, with its reproduction and workaround. Sail preserves raw diagnostics and refuses uncertain attribution or coverage. Z3 4.16.0 can vary nonlinear rlimit consumption on identical input; see the reproduction and the determinism policy. Seed-dependent proof discovery is available only through the experimental portfolio, with separate keys. Stock Verus prints JSON func-details in hash order (VI-0008), so the deep stock control can report unseen orders as Different; the fork’s own deep gate compares exactly.

Resolved by decision

  • Error order across modules. A cache-warm run can print a unit’s errors in another module order (VI-0007). Conformance compares messages as a multiset (ADR 0042).
  • No Singular engine variant. A target that needs a Verus feature the engine lacks falls back to stock verification (SAIL3124), and the engine arm counts it as engine-lacks-feature (reproduction).

The unqualified-Cargo early-refusal optimization ships in 0.2.0. It remains limited to installed native Rustup Cargo programs/proxies; custom wrappers and external path toolchains keep late no-reuse fallback. Both-platform component costs and composed release controls pass; this is not full-path parity (qualification).

The native macOS memory-observer and pinned-stock source-suite corrections are qualified and included in 0.2.0. Earlier macOS27 failures and strict stock debug order failures (#627) remain historical evidence, not unmerged release blockers. The independently qualified observer and ADR 0093 retain their exact scopes (observer, source suites, stable release).

Settled digest candidates

The ADR 0091 source switch remains off by default. Linux uses the guarded target path by default, with explicit =0 opt-out; macOS keeps fresh target reads by default. Corrected Linux source pairs regress warm Anvil by 120 ms; the refined Mac source pairs save about 48 ms with only a bounded startup quiet check. The corrected target memo saves about 430 ms on Linux but refuses publication on Mac because build-script directory full stamps change during unchanged calls. The two-second guard is retained. None of these component results establishes full-path parity or release acceptance (qualification).

Sail 0.2.0 release notes

Published 4 November 2026 as attested Linux/macOS archives and the crates.io package sail-solve 0.2.0. The executable remains sail. See the release record for exact sources, artifact checksums and qualification, and GitHub release for downloads.

Work on a proof without creating a Cargo project

Verify an existing Verus file, watch it while editing, or send it to an MCP client. Successful unchanged proofs retain their establishing provenance; changes to sources, includes, environment or runtime invalidate reuse.

sail verify proof.rs
sail verify proof.rs --output json
sail watch proof.rs
sail repair-check proof.rs --function proof::lemma --engine interactive --output json

Repair checks a selected function first and independently verifies the complete file before accepting the repair. A partial result remains provisional. Durable jobs and MCP accept the same file workflow. See standalone verification and proof repair for selectors and supported configurations.

Prepare the next call after returning

After successful Cargo verification, the daemon can prepare an unchanged call in the background. sail new can start project verification after returning. Foreground work takes priority; edits invalidate old preparation and queued work checks its origin before running. Preparation uses additional CPU and disk and may not finish before an immediate call. The bounded Mac preparation-cost controls complete with the intended toolchain; no general resource-cost bound is claimed. Disable it with SAIL_BACKGROUND_PREPARE=0. See background preparation.

Manage disk use and share CI caches

Opt in to a managed-project byte budget, inspect its status or prune to a byte target. Busy workspaces and the newest workspace remain protected, so the cap is soft. Budgets are disabled until configured. The workspace guide describes sail cache projects budget and prune --to-bytes.

The CI-cache walkthrough covers separate solver and managed caches, restored-run validation and invalidation after edits or toolchain changes. The installable consumer skill provides the corresponding agent workflow.

Install through Cargo

The package name is sail-solve; its executable remains sail. It installs its companion solver shim, and sail engine install downloads and validates the pinned runtime. Install the stable release:

cargo +1.99.1 install sail-solve --version 0.2.0 --locked
sail engine install

The two native archive platforms remain Linux x86-64 (glibc 2.39+) and Apple silicon macOS. Archives include their runtime and preverified vstd bundles; Cargo installations establish their own proofs. These are different first-use paths. See installation.

Correctness and runtime changes

The pinned Verus fork now records actual compiler-returned binary include bytes. Unchanged standalone proofs can retain Current binary-input receipts; same-size changes with restored mtime require verification. The composed runtime’s source suites and exact-input controls cover both platforms. Solver and verdict contracts remain in force, including the existing bounded compiler-visible integration-settings exception in ADR 0088.

Preparation and service probes now have bounded connection establishment; service faults retain the pinned-solver fallback. Generated-input closing revisions, queued edits and actual idle-budget eviction have independent regression controls. See the changelog.

Performance and remaining limits

The qualified core composition measures all 23 workflow rows and complete Vest, IronKV and CapybaraKV mutation catalogues in six paired rounds on both platforms. Its source/runtime identity and complete raw streams are recorded separately from the final versioned archives. All 1,944 retained paired steps compare Same under the merged classification fix, and separate reports have 26/26 valid rows on both platforms. Every slower case remains explicit in feature qualification. These measurements do not establish universal speedups.

First unchanged calls and calls that miss replay still pay full-path overhead. Tiny edits/reverts remain slower, and the latest Mac Anvil cold median is 98.94 s against stock’s 96.87 s. The source/per-file digest prototypes remain disabled because they showed no general whole-call gain. Watch’s standalone sources must stay under its working directory; partial checks remain partial. See known issues for the complete limitations.

Sail 0.1.0 release notes

Released 2026-10-29. This is the first release of Sail. It was qualified as 0.1.0-rc.7 on Linux and macOS (#282, record). The full change list is in the changelog.

What Sail is

Sail makes the Verus edit-verify loop faster for developers and coding agents. sail verify takes the same arguments as cargo verus verify and prints the same output. Behind it, Sail caches Z3 answers, reuses a preverified vstd, reuses proofs of unchanged targets and restores the earlier proof when you undo an edit.

In default mode Sail gives the same per-function verdicts, diagnostics and exit codes as stock Verus with its pinned Z3, with one accepted, bounded exception: code that reads Sail’s named integration settings can see them (ADR 0088). If any part of Sail fails, it falls back to the pinned Z3 and the answer stays correct.

Platforms and install

  • Linux x86-64 (glibc 2.39 or later) and macOS on Apple silicon.
  • Each archive contains sail, the solver shim sail-z3 and Sail’s Verus fork runtime 47fb3be6 (upstream Verus 0.2026.10.18.7d82994, Z3 4.16.0, proof-repair engine). No separate Verus install is needed.
  • Proof reuse needs Cargo 1.93.0 to 1.99.1 (ADR 0084). Other Cargo versions verify correctly with solver caching but without proof reuse (SAIL3139).
  • Install with scripts/install.py --version 0.1.0 --install-toolchain. It checks the archive checksum and the bundled runtime, and verifies the build-provenance attestation when GitHub CLI is signed in. See install.

Performance

Measured on the rc.7 archives against stock cargo verus verify, six paired rounds per project on Vest, IronKV, CapybaraKV and Anvil, native Linux and macOS. Full tables and method are in performance.

  • One-line edits are 1.2–2.5x faster than stock on every project and both platforms. Failing edits and fixes are faster too, from 1.07x on IronKV to about 6x on Anvil.
  • Undoing an edit restores the earlier proof: up to about 34x faster (a Vest revert takes 1.1 s against 39 s on Linux).
  • Unchanged calls after the first replay in 0.03–0.09 s, 3–9x faster than stock.
  • Cold runs are at parity or faster; IronKV is 2.2x faster on Linux and 1.6x on macOS.

Fixed during qualification

  • Proof reuse now keeps the effective compiler-environment bindings (#551).
  • Unchanged-call replay binds every environment variable the reused proofs read, including ghost-only reads (#552), terminal-capability variables (#573), and no longer repeats transient Cargo stderr such as lock waits (#574).
  • A forced run of a non-default profile reverifies instead of failing (#553).
  • The macOS runtime path scan no longer misses matches after SIGPIPE (#555).
  • install.py applies the archive’s directory modes regardless of umask, so the shipped vstd proof is used under umask 002 (#591).

Known issues

The full list is in known issues.

  • The first unchanged call after a verification is slower than stock: it takes the full path and records the replay (Anvil about 2.4 s against 0.36 s on Linux) (#558).
  • Unchanged calls that do not replay, including SAIL_MANAGED_NOOP=0 and forced jobs, pay the same setup cost (#560, #561).
  • macOS Anvil cold is about 1% slower than stock (100.3 s against 99.4 s) (#232).
  • On macOS, Vest reverts occasionally miss the restore fast path and take about 12 s instead of 1.1 s, still faster than stock (#595).
  • Editing one function re-solves its module’s whole solver session (#158).
  • The shipped vstd proof is not used with rustc-dev or llvm-tools (#264), or with forwarded Verus flags other than a supported --rlimit.
  • Some setups verify without proof reuse (SAIL3112): tests, benches and examples, --target-dir, loader variables and others listed in workspace verification.
  • Only Sail’s own Verus release is supported, and single-file verus file.rs projects are not (#164).