tree: 375afa84a1c6211de413732cd7285fe83ad55a7e [search]
  1. architecture/
  2. contributing/
  3. extending/
  4. guide/
  5. images/
  6. trust/
  7. unstable/
  8. alpha.md
  9. architecture.md
  10. codex-review.md
  11. design.md
  12. extensibility-quickstart.md
  13. how-anneal-earns-trust.md
  14. mir-correspondence-strategy.md
  15. README.md
  16. red-teaming.md
  17. review-policy-design.md
  18. rustc-workarounds.md
  19. trust-model.md
  20. two-phase-bug-management.md
  21. workspace-composition.md
docs/README.md

Developing Anneal

[!WARNING] Alpha software: Anneal is an experimental verifier under active development and has not yet completed an independent TCB audit. Today's default profile checks a pointer-free scalar subset of Rust on x86-64 Linux, and automated complete review-surface reporting is still in progress; see How Anneal Earns Your Trust, alpha usage, and the threat model.

The MIR-based implementation lives at the repository root. See the repository layout for the workspace structure.

Build and test the current toolchain

On Linux with Cargo and Nix flakes enabled, run these commands from the repository root. The archive bundles the pinned Rust and Lean toolchains, the compiler driver, and Anneal's Lean sources.

mkdir -p target
nix build .#omnibus-archive --out-link target/omnibus-link
XDG_CACHE_HOME="$(mktemp -d)" \
  cargo run --locked -p cargo-anneal -- setup --local-archive target/omnibus-link

The command uses a fresh cache because setup reuses an existing installation for the same version key.

The MIR verifier alpha includes an end-to-end scalar example.

See the scaffold build and testing guide to run workspace tests with the pinned toolchain, execute or filter installed_smoke cases, check cargo-anneal packaging, and reproduce retained failure bundles.

To audit the checkout, use the lean/bin/lean under the installation path printed by setup. The full MIR correspondence audit uses Linux bubblewrap at /usr/bin/bwrap.

cargo run --locked -p anneal-audit -- \
  --lean /path/to/installed/lean/bin/lean --require-correspondence

CI, releases, and review

  • Anneal's CI (PR) and CI (Trusted) workflows call the current verifier checks. The current checks build and install the archive, audit the trust boundary, test the Rust workspace, verify the zerocopy proof units, and check that the units whose specifications are written inline have fresh generated modules; tools-anneal-spec lints and tests the untrusted anneal-spec tool against those modules.
  • The release workflows prepare and publish the Anneal alpha.
  • The Gate 2 review guide describes review gates and the standalone diagnostic evaluator.

Documentation index

Documents below distinguish between Current behavior (what runs in alpha today) and Target Architecture or Planned Interop designs landing incrementally.

Start here

DocumentStatusScope
Anneal overviewCurrentHigh-level introduction to Anneal, why safe Rust is not enough for unsafe code, and how Anneal earns trust.
How Anneal Earns Your TrustCurrentPlain-English assurance model: the four trusted/ components and external grounding vs. internal checks.
MIR verifier alphaCurrentExact Profile v1 scalar subset, experimental Profile v2 slice/raw-pointer subset, cargo anneal usage, taint flags, and alpha releases.

Governing docs

DocumentStatusScope
Project principlesCurrent (governing)Correctness promise and design principles.
Threat modelCurrent (governing)Adversary assumptions, bounded two-surface human review, and in-scope defenses.
Meta-principlesCurrent (governing)Invariant goals governing principles and threat model.
Agent instructionsCurrentContributor and AI-agent repository obligations.

Audience directories

DirectoryAudienceContents
guide/Rust engineers adopting AnnealAlpha usage (alpha.md), trust overview, and CLI skill workflows.
trust/Security architects & TCB auditorstrust-model.md, workspace composition, elaborator containment, MIR correspondence, strategy, lean-miri provenance, and NDJSON comparator (Target Architecture).
extending/Out-of-tree spec & build integratorsextensibility-quickstart.md, build systems & Receipt v3 (Target Architecture), and Anneal–Aeneas bridge (Planned Interop).
architecture/Core verifier & semantics designersdesign.md (Target vision), architecture.md (Current + planned), and Specification Core v2 (Current + Target Architecture).
contributing/In-tree contributors & review agentsScaffolding, automated red-teaming, codex-review.md, review-policy-design.md, rustc-workarounds.md, two-phase bug management, performance tracking, anneal-lsp, farkas-cert-gen, and testing architecture (Target Architecture).

Historical workspaces

The earlier V1 verifier and V2 prototype and toolchain are available in the repository history with their original build instructions.