Physical memory and page-authority research
5 November 2026. Source-only audit of factory
87b7233794da334e03f8fa0b714a9b3cd902efa6, SDK
409a7176096c06c2dd9b7e491e8dc630951e83b4. This research ran no compiler,
verifier, VM or benchmark and changed no implementation. Source references below
are relative to these identities; S means
cdk-rsx/ver1/crates/cdk-rsx-platform/src, and P means
verification/proofs/page-pool/creusot.
The page-pool metadata algorithms have substantial source-linked contracts and a real fixed native resource client. The next missing connection is production capability construction and transport, rather than another scalar count lemma. A metadata permission plus matching base/count does not grant a live payload loan, admit relocating growth or establish a Wasm world. No new SDK defect was confirmed in this audit.
Recorded status and independently inspected boundaries
The latest recorded full core run is f4c23a0a: 180 reports, 657 goals and
2,615 closed leaves, with eleven core and seven resource controls. The final
436 verification-tool tests qualify at 1ddefde2. Neither was rerun here.
Later classifier tests and reviews are not additional mathematical proofs.
See the batch report and
page-authority scope.
| Area | What is established | What the source still leaves open |
|---|---|---|
| Pool metadata | 25 actual method shadows; exact packed-table effects, saved-image validation/recovery, exact run release and conditional claim/zeroing effects | Physical primitives and provider admission; general first-fit/no-fit theorem; whole-function termination of several effectful methods |
| Native physical bytes | Actual raw read/write bodies checked in a separate 24-byte receiver; endian oracle and three-word correspondence | Those checks do not discharge the generic Perm/byte-to-word bridges for the full metadata-only permission and virtual control view |
| Native resource origin | A real byte owner is split into root [0,512), metadata [512,65536) and payload; a root loan survives initialization/claim/install/rejoin |
The proof-side BorrowedBacking holds the entire payload slice; arbitrary application loans and actual Memory callbacks are not admitted |
| Native Vec growth | Exact full grow_to body; arbitrary existing contents and ultimate-owner frame on overflow/no-growth paths |
Successful reserve, failure/relocation behavior, new zero suffix, empty provisioning and resource transport across movement |
| Wasm observations | Actual wrappers in two native profile contexts; one changing scalar world through bootstrap plus two growth calls and a redundant call | No physical bytes or nonduplicable authority; not arbitrary histories or an actual VM proof; anchors, ensure_pool and RuntimePages composition excluded |
| Retained regions | Full-u64 extent arithmetic; actual projections over real 32-byte owners; seven harnesses/20 covers and exact native lifetime rejection fixtures | Production VecBounds/StoreBounds admission, general provenance and arbitrary-size ownership/lifetime refinement |
| Target checks | Built-in configs compile on native64/wasm32/wasm64 variants; actual PocketIC wasm32 saved-header witness | No general native-to-Wasm theorem, wasm64 execution theorem, bootstrap or KEEP proof |
The declarations and caller bodies justify these distinctions:
S/memory/page_pool.rs:59–74permits native relocation only after payload pointers/loans end; runtime sources separately owe pinning. In contrast,P/provider.rs:249–277assumes that growth preserves the metadata pointer, its permission and its ultimate loan. That pinned subclass cannot be assigned to general growing VecBacking merely by supplying std Vec contracts.P/control.rs:11–18,157–191ties PhysicalState to an actual metadata byte permission, but raw read/write remain#[trusted].P/provider.rs:111–117binds the receiver's count, base and payload;:228–285retains trusted observation/growth/pointer bridges. Clean facts require ownership, not only numeric agreement, and must be invalidated before arbitrary payload writes.P/resource_admission.rs:76–155constructs real split permissions and a shared root reference, but materializes one mutable slice for the whole payload at:95–101. That is a genuine quiescent client, not a general application callback transport theorem.S/memory.rs:289–315contains allocating Vec growth. The checked shadow atverification/proofs/provider/creusot/native_provider_growth.rs:8–21explicitly excludes calls totry_reserve_exactandresize. Empty provisioning also lacks the already-live metadata permission required byphysical_ready(P/provider.rs:238–246), so removing the no-growth precondition alone is not a legitimate solution.S/memory.rs:344–365,450–475connects production bounds to Pool queries and actual retained callbacks. Region checks instead use SparseProbe windows (verification/proofs/regions/kani/retained_regions.rs:50–79). The unsafe grant promised byS/memory/region.rs:8–16,64–85is the missing bridge.S/wasm.rs:34–59has a unit WasmBacking. The checked primitive model keeps mutable global counts but no bytes or authority (verification/proofs/platform/kani/wasm_authority_model.rs:1–39). Production bootstrap/recovery is atS/wasm.rs:103–130; RuntimePages translates claimed runs to pointers at:476–504. Neither is supplied by a scalar count theorem.S/memory/region.rs:46–52,100–113,226–243requires real allocation provenance and bounded slices. Correct integer extent arithmetic alone cannot establish those unsafe constructor premises.
Five next-batch candidates, in priority order
1. Admit one actual no-growth retained callback
Target: S/memory.rs:344–365,450–475, actual region projections, and the
existing split-permission client. Export a contract connecting valid Pool
metadata and the original byte owner to exactly the accepted Store/root window,
with its current and ultimate loans framed through callback return.
First useful milestone: a preallocated native image, actual VecBounds and actual Memory callback; prove a valid window's bytes and a disjoint live loan survive, while Runtime/control/hole windows are refused. Rejoin the original owner after mutation without retaining an escaped slice. Start with no growth; that is a useful bounded/conditional admission checkpoint, not whole Memory.
Approach/acceptance: reuse Creusot Perm splits and exact source erasure; first test concrete closure/dyn RetainedBounds frontend feasibility. If a staged actual-source Kani client is needed initially, state its object/history bounds and compare correct/independent false properties on the same valid fixture. Required controls: wrong Store owner, overlapping mutable loan, changed callback extent and a false untouched-neighbor claim. Current 32-byte fixture/compile checks do not substitute for this producer. Feasibility: medium; existing loan machinery helps, but trait/callback support and representation admission are real risks. It exports the first production-facing capability needed by containers.
2. Connect raw operations to the exact metadata byte permission
Target: P/control.rs:157–191, P/provider.rs:280–358 and production raw
methods S/memory/page_pool.rs:160–166. Supply the byte-origin, eight-byte
read/write/frame and little-endian view relation actually required by Pool.
First milestone: one arbitrary admitted metadata-word offset in a real metadata-only owner, with a disjoint root loan; establish all other decoded words and present/ultimate owner bytes are unchanged. Separate payload zeroing and its named Copy-fill std leaf rather than assuming a complete provider theorem.
Acceptance: use exact raw bodies; no new trusted whole read/write law or permission fabricated from an integer base. Include endian, off-by-one frame, misbound owner/count and independently false byte-effect controls. Preserve native-target/primitive trust explicitly if using a checked cross-verifier bridge. The separate 24-byte receiver is evidence for the low-level operation, not this general permission-transport connection. Feasibility: medium/high risk; first establish the supported raw/byte representation and honor the known Kani LINK quarantine. Do not enable unqualified function-contract stubbing.
3. Separate cold native provisioning from relocating growth
Target: S/memory.rs:301–310,369–385 and Pool initialization at
S/memory/page_pool.rs:96–153. Represent an absent control resource honestly;
provision backing first, then derive a metadata permission from the actual new
owner. General relocation must retire old address facts after all loans end.
First milestone: empty Vec to a complete page-aligned initialized image,
plus success/failure prefix/suffix contracts for actual VecBacking. Begin with a
stdlib feasibility check for the pinned try_reserve_exact/resize interfaces;
current shadows prove those calls unreachable. A named reviewed std primitive
contract remains a trust leaf, not proof of the allocator beneath Vec.
Acceptance: preserve arbitrary existing bytes, initialize the complete new
suffix, keep count/bytes unchanged on rejection and reconnect the ultimate Vec
owner; cover actual relocation and refusal paths separately. Negative controls
must expose stale-base use, partial-page admission and a nonzero fresh suffix.
Do not pretend the pinned grow_pages bridge admits movement. Feasibility: high
risk; reserve/resize support and permission reconstruction are separate blockers.
4. Give Wasm observations one erased world resource
Target: S/wasm.rs:34–59,103–130,476–504. Define a proof-only,
nonduplicable world capability carrying independent physical count and disjoint
root/metadata/Store/Runtime permissions. The unit receiver must observe that
world rather than a pure receiver-only page function. Reuse existing scalar
wrapper checks within this explicit model; System API/VM semantics remain TCB.
First milestone: an already-provisioned pinned world through the actual
RuntimePages claim-to-pointer and release-to-run translation, preserving a live
Store loan. Prove the zero-anchor fresh path and KEEP validation-before-recovery
separately; do not bundle them into a trusted admit_wasm constructor.
Acceptance: wrong origin, duplicate world, stale release and modified Store byte negatives, plus actual target witnesses for zero-fill/pinning/failure. The existing two-unit-handle count history establishes shared observations, not exclusive construction. Native64 saved-header theorems must retain the wasm32 narrowing caveat; add a real wasm64 witness separately from source compilation. Feasibility: high risk; genuine VM correspondence is a later obligation, not something a ghost token or PocketIC example alone proves.
5. Complete the useful metadata search contract
Target: S/memory/page_pool.rs:302–351, P/claim.rs:306–432 and its query
callees. Add a no_fit_before(cursor) invariant and prove that no admissible
committed candidate is skipped by rounding or the first_occupied + 1 jump.
First milestone: existence of any representable, absolutely aligned free
run fully inside committed memory implies success without growth. Current
immediate guarantees only a fitting reserved-prefix case. Then separate
no-fit, arithmetic-limit and provider-growth refusal causes of Exhausted;
"Exhausted iff no logical free interval" is wrong when growth may fail.
Acceptance: fragmented/adjacent runs, alignment-origin overflow, last fitting run and cross-word boundaries, with independent skipped-candidate/false-exhaustion controls. Retain the existing loop variant; whole-function termination also needs concrete min/max, iterator and Try callee contracts, not a termination waiver. Feasibility: medium and independent of completing physical providers; this is the best parallel metadata-only task.
Defer or avoid
verification/tools/creusot.py:49–63 excludes exactly twenty original-derived
files: four Clone, four Debug (eight goals), four Eq-marker, four PartialEq
(five goals), and four refinement files: 25 goals total. They are not 25 missing
Pool algorithms. Keep this inventory explicit and prevent unchecked original
calls. Comparison consumers already have their separately qualified Kani/body
bridge; Debug/marker closure is lower priority than live ownership transport.
Do not retry monolithic full-arena symbolic unrolls, promote finite scalar histories to arbitrary histories, turn a changed receiver into actual provider admission, or transfer a native raw-word validator theorem unchanged to wasm32. The existing target witness demonstrates a real acceptance difference, not a confirmed memory-safety defect. No runtime journals, tracking tables or ownership checks are proposed. Proof-side resources/specifications must erase completely; any later implementation repair needs its own native/IC and matched performance qualification.