Individual skill
rust-formal-verification
Use when Rust code, especially unsafe or panic-critical paths, needs a Kani, Verus, or Creusot harness written, run, and its failure read. Not for choosing the proof policy: use proof-driven.
.devin/skills/rust-formal-verification/SKILL.md
Source commit b0e8ce89a19fac880251dc3ea1babfeb4503a4fe
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Not checked yet
- Last checked
- Nov 4, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 55
- Repository last updated
- Sep 28, 2026
- License
- Apache-2.0
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- odd Repository topic
- odin Repository topic
- outline Repository topic
- outlines Repository topic
- coding-paradigm Repository topic
- outline-driven-development Repository topic
- claude-plugins Repository topic
- codex-cli Repository topic
- gemini-cli-extensions Repository topic
- outline-driven Repository topic
- engineering Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
Read excerpt
# Rust formal verification
## Contract
| Field | Bound contract |
|---|---|
| Trigger | A Rust function or module needs bounded model checking (Kani) or deductive verification (Verus, Creusot) against explicit properties, or an existing harness fails and its counterexample must be read. |
| Authority | Reversible local: writes proof harnesses, contract attributes, and spec functions inside the crate, plus a `Cargo.toml` dev-dependency or feature for the verifier; rollback is reverting those files. No remote mutation. |
| Side effect | Harness and annotation source in the crate, the verifier's build artifacts under `target/`, and for Kani concrete-playback unit tests when requested. |
| Done | Every named property has a harness or contract that the chosen tool reports as passing under a recorded bound, or a counterexample mapped to a code defect and a fix. |
## Inputs
The crate, the functions in scope, and the properties: absence of panics and overflow, memory safety of `unsafe` blocks, or functional pre- and postconditions. Tool pins from the grounded set: Kani kani-0.67.0 (`cargo install --locked kani-verifier && cargo kani setup`; Kani tracks a pinned Rust nightly, not stable), Verus rolling release `release/0.2026.08.30.b432e82` (download the release zip from GitHub Releases and run `./verus`, which installs its pinned toolchain through `rustup` when missing), Creusot v0.13.0 (`git clone` the repo and run `./INSTALL`, which needs `cargo`, `opam`, and `curl`, and installs `why3` and `why3find` provers). Optional: an unwind bound per loop, and a solver choice.