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

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.