First allocator verification pilot

Implemented and run on 4 November 2026 against SDK 757bf506bb84c6487d6b367d56bb7f7bed96aea3. The SDK source is unchanged. These are source-level results for the pinned verifier's native 64-bit target, not a proof of the complete allocator or deployed Wasm.

Passing results

Check Result What it establishes
Small-layout geometry Pass All admitted native small size/alignment values map to adequate aligned slots and consistent span/header geometry
Layout classification Pass Every valid native Layout is classified by the production small-layout admission rule
Direct-run geometry Pass Production page rounding agrees with an independent u128 specification throughout the valid native Layout domain, including extreme alignment and isize rejection
Priority bands Pass Every numeric priority maps to a valid band and its representative round-trips
Span contract Reported pass; qualification open Experimental wrapper calling production span_bytes; later review found internal clause-depth warnings
Contract consumer Reported pass; qualification open Experimental verified-stubbing client; not an established reusable contract
Pointer-model feasibility Pass Actual production page/span pointer masking recovers an aligned arena and a written byte in Kani's model; final class/slot is reachable
Deliberately false exact-stride claim Expected counterexample The designated assertion fails; no unrelated failure is accepted as the control result

All required covers are reachable. There are seven successful proof harnesses and one expected-failure control. The runner's 24 regression tests also pass; they reject missing or duplicate harnesses, unreachable covers, empty property lists, timeouts, unexpected statuses and unrelated negative-control failures.

See the harness and commands, contract-composition explanation and pinned tool configuration. The tool is Kani 0.68.0 with CBMC 6.11.0 and rustc 1.100.0-nightly (8925ea358, 20 August 2026), targeting x86_64-unknown-linux-gnu. The downloaded release bundle matches its pinned SHA-256; installed verifier/compiler/CBMC binaries match that bundle.

Scope and trust

Production functions are included mechanically, with unchanged source bodies; private geometry proofs use an appended child module in an ignored staged file. The runner checks source hashes before and after and validates actual per-harness results. It requires the checked callee and stubbed caller together. The later foundation review identified internal Kani backend warnings in both this example and a new contract client. The composition status explains why those green reports are not currently qualified for downstream contract reuse. Direct assertion suites remain separate.

The pointer check is explicitly a verifier-model feasibility result. Kani's allocation model does not fully model requested allocation alignment, reference aliasing rules are outside these proofs, and physical Wasm addresses have not been verified. The result does not prove the provider contract, arbitrary allocation histories, resize, KEEP recovery, wasm32/wasm64 code generation or IC execution. No performance benchmark was rerun: production source and normal build inputs were not changed by this proof-only work.

Tool-fit findings

Standalone Kani defaults to an older Rust edition, so the runner supplies --edition=2024. Cargo already supplies the manifest edition; supplying it twice is an error. Cargo metadata also needs the verifier's exact rustc path in this environment. Both are handled by the isolated runner.

The initial large boxed page-control array caused CBMC to crash during instrumentation at the ordinary stack limit. Increasing the verifier stack and using a raw owned allocation got past that stage. Page-pool attempts then ran into solver time/memory limits rather than producing an allocator assertion counterexample. These failures are not passing proofs and do not establish correctness or a source bug. The page-pool harness records its own current qualification boundary.

For the next layer, establish the page authority's invariant inductively and connect it to the physical provider contract. The span interface remains a contract-reuse experiment; it does not substitute for those missing guarantees.