Small-slot release paths and final dispatch
Starting factory ee1a0883eb9a471da6a64cd913e7da20d3a3c270, SDK
409a7176096c06c2dd9b7e491e8dc630951e83b4. Product code, layout and runtime
behavior are unchanged. This work extends the slab list/slot checks
with release effects and preserves a newly exposed verifier discrepancy.
Actual nonfinal path
The extractor pins the complete 728-byte
SDK small-release body, its unchanged if live == 0 guard, and two individually
contiguous blocks: the 105-byte was_full/live-decrement prefix and the 315-byte
nonfinal else tail. Unique anchors, exact endings and reviewed SHA-256 pins
reject body, guard or boundary drift. Only enclosing methods are added to the
verbatim SDK source. The actual SDK link_slab remains the callee.
The harness calls the
prefix, proves on the same actual header that live == old_live - 1 > 0 and
that the returned was_full is exact, then calls the tail. Nothing reconstructs,
replays or changes either owner between these calls. The proved guard selects
the actual else path. This avoids expanding the unexecuted whole buddy release;
no physical callee or allocator algorithm is replaced by a stub or assumed law.
Both policies and all their allocation domains are checked for classes 0 and 15. The independently stated 8/128-byte strides, 256/512-byte extents and capacities are checked against the actual geometry. Bump/live counts, live released index, old free head, optional other partial head and frame queries are symbolic. Caller premises include an owned live cell, correct local list membership and the remaining free-chain invariant. Full-chain reachability, acyclicity and cardinality are not proved here.
The result gives the exact decrement, new free head, old head written into the released cell, unchanged bump/domain/reserved fields, and unchanged other initialized payload bytes. A formerly full slab is prepended exactly once; an already partial slab keeps its membership. Named neighbor fields and independent queried bins are framed within the supplied local fixture. An arbitrary other slot remains disjoint from the released cell. Covers reach both list-insertion cases, existing partial membership, empty/nonempty free chains, endpoint slots and the final policy domain.
The fixture uses real aligned MaybeUninit byte owners for the actual Heap and
Slab, initializes them with their actual types and retains unique access until
all operations finish. Size/alignment checks establish that the larger Heap
image contains either actual policy type. This supported representation is
explicit: it is not an equivalence theorem for arbitrary native storage or IC
memory. The typed-Heap/byte-Slab combination below remains unqualified.
Conditional final call boundary
The final model
uses a separate BoundaryHeap receiver with matching partial/page field types.
It retains exact SDK list helpers, the same checked prefix, a checked zero-live
guard, and the original 191-byte final unlink/dispatch tail. Its release_span
callee is an observation-only recorder, not the actual SDK operation.
This is a conditional dispatch model, not a production whole-release theorem.
Every compared header, neighbor, selected-head and page-bin value is captured at entry to that omitted physical call. Assertions after the model returns consume only those pre-call snapshots. They grant no post-release byte frame, continued span liveness or ownership transfer. A future consumer must supply the actual buddy/provider release contract and establish the receiver/resource connection; the recorder supplies neither.
Class zero checks final head/middle/tail/sole-list removal. Class 76 supplies a
real one-slot witness: its full slab is already absent and its partial list is
empty. Both policies are covered. A real 32-KiB aligned object contains the
actual typed Slab and uninitialized payload. The model checks the header/payload
offset, extent, slot capacity, classifier, span order and actual span_base
recovery for the live cell. These are native model facts, not Wasm refinement.
Pinned-Kani false-theorem discrepancy
The minimal authored comparison
calls the unchanged actual link_slab, at domain two/class zero, with initialized
partial header values. Only the owners' representation differs:
| Owners | Correct new-head property in Kani | False retained-old-head property in Kani | Both native compilers |
|---|---|---|---|
| Typed Slab and typed Heap | Passes | Rejects | Correct property passes; false property panics |
| Byte-backed Slab and typed Heap | Rejects | Passes | Correct property passes; false property panics |
| Byte-backed Slab and byte-backed Heap | Passes | Rejects | Correct property passes; false property panics |
Thus the mixed case is stronger than a false alarm: pinned Kani accepts a
postcondition contradicted by the same source executed with both production
Rust 1.101 and Kani's pinned native Rust 1.100.0-nightly
(8925ea358, 20 August 2026), the version enforced by the comparison runner.
All normal pointer, memory, overflow
and assertion-reachability checks remain enabled in this preserved comparison.
The earlier diagnostic trace printed a flattened partial[0][154] store while
partial[2][0] retained its old value. That observation suggests a representation
correspondence issue; it is not a complete upstream root-cause analysis.
That early trace omitted synthetic assertion-reachability markers only to find
the failing model state; it is unqualified. The six-client comparison above
retains those markers and every ordinary safety check.
The comparison runner requires the exact six-harness status/obligation population, exactly the three designated counterexamples, all covers, native success for all correct properties, and the exact assertion panic for every false property under both native compilers. It always labels the comparison EXPERIMENTAL_UNQUALIFIED, exports no producer ticket and is separate from normal proof counts. Its diagnostic-only suite must not be imported as an allocator fact. The SDK was not changed to appease this model. General memory-model and compiler correctness remain trusted/open.
Qualification and reproduction
Final qualification uses factory
25d6b24b8f954cd6a6d426a550ec49b4b41c1597, unchanged SDK
409a7176096c06c2dd9b7e491e8dc630951e83b4, Kani 0.68.0/CBMC 6.11.0,
and unchanged 90-second per-harness caps with one solver worker.
| Scope | Final observed result |
|---|---|
| Actual nonfinal paths | Four harnesses, 32 required covers, all checks pass; reported solver duration 216.208 seconds |
| Conditional final dispatch model | Four harnesses, 14 required covers, all checks pass; 16.028 seconds |
| Actual-path payload fault control | One harness/one cover; only its designated false assertion fails; exact exit one; 6.357 seconds |
| Dispatch-model membership fault control | One harness/one cover; only its designated false assertion fails; exact exit one; 0.552 seconds |
| Quarantined representation comparison | Six harnesses/six covers reproduce the exact mixed false-theorem pattern; both native compilers execute all correct clients and reject every false client at its exact assertion |
The normal complete command and separate diagnostic command both finish through their intended gates. The latter still exports no theorem or producer ticket. Independent reconsumption rechecks source, complete staging, metadata, factory/SDK, pinned tools, reports and logs, together with every recorded native artifact and compiler hash. All checks pass at the frozen source identity. All 336 verification-tool tests pass, including fourteen new source-path, inventory, provenance and diagnostic-admission regressions. Documentation links, research indexes and baseline whitespace checks pass. Solver durations above are not product instruction, latency or memory measurements.
Development results retain their earlier unqualified scopes and are not relabelled as this frozen qualification. The normal runner independently derives source obligations, authenticates pinned tools, and rechecks source, complete staged files, metadata and factory/SDK identities before consuming complete reports and diagnostic logs. Required fault controls reject a claim that released payload bytes are preserved and a claim that a final partial slab remains linked. Unrelated failures cannot qualify either control.
The first whole-body symbolic nonfinal attempt exposed the mixed representation failure. A whole-body byte-owned Heap attempt and a monolithic 32-KiB byte-array final model reached repeated 90-second caps; owned process trees were stopped and those attempts remain unqualified. Path decomposition and typed final header storage remove unnecessary verifier expansion without changing a production algorithm, adding a trusted allocator law or increasing the cap.
python3 verification/tools/slab_release.py all --timeout 90
python3 verification/tools/slab_release_representation.py --timeout 90
python3 -B tests/verification/run.py discover -p 'test_slab_release*.py'
The supported native memory model, source correspondence, successful owned fixtures, caller liveness/list/chain premises and stated partial scopes remain part of every result. Complete slab histories, other classes, actual span/page return, full allocator composition and IC execution remain open. Verification stays outside product builds. Generated output is ignored and removed after authored findings are preserved.