Memory and allocator priorities after batch 12

Read-only assessment: factory 9303c47e54c4b4e9f0e90d57cd9b23cad938e1dc, SDK 16bbcc1f2f4a312631cad3ce74c6b2f044d09cd3. No verifier, test, build, installation or product mutation was run. No additional runtime defect confirmed. Ranks combine production exposure, unsafe state complexity and weak observation; absence of a proof is not evidence of an implementation defect.

1. Derive page-return authority from actual span history

  • Source: cdk-rsx-platform/src/transient.rs: acquire_span 321–364, release_span 367–397, rebin_page 400–410; paths are relative to cdk-rsx/ver1/crates/ throughout this note.
  • Already checked: bitmap/split/coalesce components, selected same-image acquisition and final return. B12J moves real supplied capabilities, but ledger.rs:38,65 assumes counter/issued-ledger cardinality; its typed header and image are separate inputs (:88–94). It has no authoritative all-ticket census, pool identity or physical header embedding.
  • New guarantee: one real page's reserved/free/issued partition and branded outstanding span capabilities make zero live spans imply possession of the complete page; no count or externally supplied SoleSpan manufactures it.
  • Legal history: mixed-order spans, nonmonotone releases/reuse, last-span return with another page still live. Native B12J checks sixteen concrete histories, but bytes and counts cannot observe omitted/duplicated permission fragments or prove arbitrary histories.
  • Smallest cut/tool: Creusot source-erased fresh-page initializer plus one page's acquire/return transitions, an inductive interval partition and sealed affine issued-fragment registry; build the typed header/payload from the same supplied page owner. Start with an explicit exclusive PageSource contract; do not assume the registry equals all tickets. Reuse checked bitmap laws and require token construction/consumption to establish that equality. Global bins, built-in physical provisioning and raw alias refinement remain separate.
  • Control: retain one live fragment while requesting the full-page collector; reject that caller, and reject a fragment from another page/issuer.
  • Assessment: high consequence; medium structural concern, low confidence that a defect exists. Difficulty high; this is a structural ownership advance, not another larger finite-history SAT run.

2. Populated slab lists and full/partial/empty transitions

  • Source: transient.rs:156–194,214–231; actual link_slab 295–304 and unlink_slab 306–318, especially last-live removal of a non-head partial slab.
  • Already checked: all-77 geometry, general conditional chain model, separately owned header/word components, fixed five-cell class-0 tickets, fresh class-0 first/last lifecycle. B9 tickets exclude full-slab relinking; B7 source fixtures use null-neighbor singleton lists. B12J is page-bin prepend, not slab-list/history closure.
  • New guarantee: actual span-slot free-word chain, live/bump partition and exactly-once partial-list membership agree through full→partial insertion in front of an existing slab and middle/tail empty removal, in the recorded band.
  • Legal history: at least two slabs in one class, then release/reuse in a different order from allocation while another slab/user loan remains live. Random churn checks many examples; a self-consistent lost list edge can remain invisible until a later refill, and data patterns do not establish alias rights.
  • Smallest cut/tool: deductive list-segment invariant over supplied actual Perm<Slab> owners; check the complete link/unlink bodies with owned previous, next and framed arbitrary remainder. Compose one actual complete partial allocation/nonfinal-release arm with the existing cell-capability contract. Start class 0, arbitrary valid bump/free partition and all domains; other-class refinement uses already-checked geometry, not an assumed physical embedding. Nested raw-place frontend support and physical span provenance stay explicit.
  • Control: omit the old head's back-link or preserve a removed slab in its bin; require failure of reciprocity/membership, preserving other live bytes.
  • Assessment: high consequence; medium likelihood concern/confidence because several interacting branches lack a common theorem. Difficulty medium–high.

3. Nonempty resize dispatch, including unchanged-pointer alignment

  • Source: transient.rs:259–292; Nyxus allocator.rs:130–162 and Wasm backend allocator.rs:437–446.
  • Already checked: selected fixed direct move/refusal over supplied owners, classifier/guard components and zero-size entry. B12L checks only the suffix after a supplied successful next allocation; it proves neither backend copy nor old-owner consumption. Finite SDK resize cases remain tests.
  • New guarantee: for admissible old/new Layouts, both reuse guards imply enough capacity and the new alignment; moving small/direct dispatch preserves exactly the prefix initialization state, recorded band and neighbors, retires old ownership once after copying, and refusal preserves the old allocation.
  • Legal history: Vec/Box resizing across class/direct/alignment boundaries while neighbors remain live. Selected-byte tests miss uninitialized-state preservation and simultaneous ownership; fixed examples do not establish both reuse guards for every legal Layout pair.
  • Smallest cut/tool: first source-linked Kani scalar contracts for the two reuse guards over symbolic Layout pairs, under the old live-object geometry; then Creusot complete resize_layout with proved small/direct allocation and release contracts, actual copy prefix and affine old/new permissions. A first small→small caller can use supplied span owners; that premise must remain visible. Compose the existing Nyxus zero-tail export only after this backend theorem. Built-in provider and Rust/Wasm pointer semantics remain lower leaves.
  • Control: demand stronger alignment than the selected returned pointer, retain old-live ownership after success, or assert refusal retired it; each must fail on a reachable legal case. Difficulty medium for guards, high overall.
  • Assessment: high consequence and frequent path; medium structural concern, low confidence of an actual bug given existing geometry and native tests.

4. Actual Wasm recovery and PageSource share one physical authority

  • Source: wasm.rs:34–59,103–130,183–227,247–274,392–401,476–505; Nyxus allocator.rs:377–417.
  • Already checked: Pool metadata/recovery contracts and B6 changing scalar observations. Its actual wasm_authority_model.rs:4–7 contains only counts, failure and call metadata: no bytes or physical permissions. It executes only the capacity step of ensure_pool, not anchor/recovery/startup composition.
  • New guarantee: repeated unit backing handles access one nonduplicable VM domain; actual raw PageSource pointers carry exact disjoint run authority. Recovery happens before the first new allocation, once per opening, preserves retained bytes/pointers and cannot reclaim later decoded upgrade arguments.
  • Legal history: retained live objects across KEEP, first post-upgrade Runtime allocation, subsequent Store reopen and unrelated growth. Native tests use a different provider; scalar oracles cannot detect incorrect byte ownership or provenance, and ordinary tests rarely exercise transformed startup ordering.
  • Smallest cut/tool: source-erased ensure_pool success/recovery control plus actual Runtime/Nyxus PageSource adapters over a single explicit world token; compose existing Pool contracts with exact run payload fragments. Prove SDK sequencing and separation first, leaving VM memory.grow pinning/zero/failure and integer-pointer interpretation explicit trusted target contracts. This is conditional provider admission, not a claim to have verified the Wasm engine.
  • Control: second recovery after a new Runtime claim must not be accepted; a returned Runtime fragment must not authorize a Store window.
  • Assessment: highest consequence, medium concern but low defect-likelihood confidence; difficulty high. Depends on quiescent KEEP/raw-startup admission.

5. Production VecMemory callback origin and allocating growth

  • Source: memory.rs:258–270,294–315,450–475,532–552; sparse region constructors/projections in memory/region.rs:72–85,100–113,186–194,226–243.
  • Already checked: B10's same-image query then safe split_at_mut caller; B6 nonallocating/overflow Vec growth. The actual as_ptr/as_mut_ptr callback bridge, successful reserve/resize, relocation and failure are not those proofs.
  • New guarantee: admitted windows become actual same-owner raw slice loans, metadata loans end first, rejected windows never invoke callbacks, Ok/Err both retain callback writes and frame neighbors; later relocation preserves bytes and exposes exactly zero new pages only after all loans end.
  • Legal history: sparse copy callback with disjoint neighbors, then growth and reopen. Native tests observe byte results, but not raw-loan validity; plain partial images must stay distinct from admitted whole-page sparse images.
  • Smallest cut/tool: Creusot exact bounds/check_range/with_retained_pair over one supplied owned Vec and explicit standard raw-origin contracts; do not substitute safe split calls again. Separately qualify actual reserve/resize effects with visible std/allocator leaves, including refusal and rejoin. Native Vec relocation is not Wasm pointer stability or typed retained-pointer rebasing.
  • Control: wrong origin, callback on refused range, false Err rollback, nonzero newly exposed suffix; preserve all other support claims.
  • Assessment: medium deployed exposure, high consequence if violated; medium concern/confidence because provider admission previously found a defect. Difficulty medium–high; no new defect observed here.