Stable storage and engines after batch 7
Source review on 5 November 2026, frozen factory
4e8875c746b7126da51d3e0eb508dddbe4704463, SDK
16bbcc1f2f4a312631cad3ce74c6b2f044d09cd3. This note inspects implementation,
proof and runner source plus authored qualification notes. No compiler, prover,
test, benchmark or installation was run. The old generated reports were removed
after review; they have not been independently reconsumed here. Counts below
retain their original scope and identities, rather than becoming new results.
Current status
| Boundary | Established checkpoint | Still required |
|---|---|---|
| Stable capacity | Actual full-width rounding, callback delta/error ordering and cache transitions; direct/adapter checks refreshed on the corrected profile in batch 7 | Physical stable-byte ownership, growth zeroing and actual IC/target refinement |
| Stable byte access | Actual range/import wrappers; batch-7 replay refreshes the bounded byte-window suite | One exclusive stable domain and general byte-resource transport |
| Broader stable I/O and lease traces | Historical symbolic writer through 4 GiB minus one, reader through 255 bytes, and scalar finite lease/reacquisition traces | Preserve their separate old source/backend identities; refresh the particular producer before a new corrected-profile consumer imports that scope |
| Hylix context | At 6594b158/SDK16: five positive harnesses, 29 required assertions, ten covers, four exact controls; actual normal/returned-Err/query sequencing and local dirty intervals |
Resident/dirty/FIFO invariant, pooled-buffer ownership, real Arena publication and arbitrary callback/guard histories |
| Hylix cache | Actual native execution covers dirty eviction, clean retention, pinned fallback and frame failure paths | The cold actual-cache Kani attempt remains unqualified at its 90-second cap; native examples are not a cache theorem |
| Minima | Source-bound native/Wasm32 witnesses and tested SDK correction; native storage/collection suites | Formal owner/slot generations, move-only block transport, collection/linear partition and physical stable authority |
| Engine collections | Concrete ownership APIs, codecs and native tests exist | Fixed/Codec laws, collection structural invariants, exact retirement and their connection to checked storage contracts |
See the maintained batch-7 status, stable capacity, symbolic I/O, lease traces, Hylix publication, and Minima frontier. The Hylix/Minima engine-level theorem is still open. The historical experimental Kani function-contract dispatch is also unqualified; the backend correction does not by itself repair that separate instrumentation path.
Source boundaries that determine the next work
- Platform
Memory, lines 9–39, requires lifetime-exclusive bytes, exact reads/writes, growth preservation/zeroing and abort-before-reuse.StableMemory::acquirein wasm.rs (source unavailable):419–429 observes size under an unsafe caller authority premise; it does not construct or dynamically enforce global exclusivity. A capacity mismatch diagnostic is not that ownership proof. - Minima storage:760–875
already owns one
Shared<M>, ties provider liveness to its last shared owner, permits oneHylixMemorylease and refuses extracting a still-shared provider. The sole physical capability must enter here; Hylix must consume this virtual image instead of independently acquiring the same stable memory. - Hylix working set (source unavailable):255–287
maintains a resident map, dirty vector and per-segment dirty position. Actual
finishat 377–410 relies on every dirty identity being resident with a valid range.loadat 422–514 additionally relies on FIFO membership and Rc pins. The checkedSegment::mark/range/clear_dirtydoes not establish these callers' representation invariant. - Hylix
Pool::acquire/Buffer::Dropat 133–201 separately require disjoint initialized slots and last-pin retirement. Actual Arena publication:1007–1013 publishes slabs, then allocator metadata, then finishes buffered bytes. Existing native predecessor markers do not prove the first two actual operations. - Minima
Root::{owner,validate,release,retire_owner}at 124–220, private owning carriers at 242–383,Shared::claim_pagesat 914–978, andHylixMemoryat 1141–1193 form different obligations. A live metadata slot alone does not prove who owns its payload. The proof needs an erased ownership partition connecting those actual operations.
Five next tasks
E1. One stable-domain resource through the actual provider lifecycle
Export: one noncopy physical-domain capability, consumed by the stable adapter and transported through Minima's shared provider/Hylix lease; no second independent writer and no early provider return while an adapter is live.
Start with an owned native byte resource and proof-only carrier, then an erased
view of the actual acquire, Arena::{format,open,hylix_memory,into_memory} and
ProviderLease/HylixMemory Drop paths. Keep System API read/write/grow behavior
as separately named premises. The first result should explicitly be conditional
on authority supplied by the host: an erased token cannot prove that unrelated
unsafe IC imports respect it. A real IC world/resource interpretation is a later
producer, not something stable64_size establishes.
Dependencies/acceptance: the physical-byte work's resource constructor and explicit Rc/RefCell/last-owner laws. Construct one valid provider, lend/release the Hylix view and reacquire it; prove provider-return refusal while the view lives. An exact false early-return assertion and a resource-duplication rejection must fail for their designated reasons. Preserve ordinary allocation/resource failure.
Obstacle/fallback: raw import casts and complete Rc lifetime reasoning exceed
the current Creusot adapter fragment. If needed, first check the exact selected
lease-state transitions and a real native lifetime client; label those as
conditional components, not a complete Memory implementation theorem. Add no
runtime lock, ownership registry or local rollback journal.
E2. Actual Hylix dirty-index coherence before cold-cache expansion
Export: dirty identities are unique; each is resident with a nonempty valid
interval; dirty_position points back to its identity; marking once/repeatedly
and swap-removing preserve that relation and frame unrelated payloads/pins.
Check actual State::mark_dirty and remove_dirty first. A practical Kani seed
has two actual resident entries with initialized Buffer::Scoped buffers,
covering clean-to-dirty, already-dirty and non-last swap removal. This avoids the
old cold path's 64 KiB pooled allocation without pretending to prove the pool.
The remove precondition must account for load having already removed its
victim from the map while its dirty identity is still in the vector.
Acceptance: nonvacuous two-dirty-entry removal, including a live immutable
view of the moved entry; exact controls for a lost dirty identity or wrong moved
position; exact byte/slot frames. Then let actual finish consume the invariant
to prove one write per dirty interval and an empty dirty set on normal return.
Keep write failure as abort; discard does not reverse earlier eviction writes.
Dependencies/fallback: native std map/Rc semantics and existing dirty-range
producer; broader byte coherence additionally needs E1 and pooled buffer/pin
ownership. If two-resident checking remains expensive, use an inductive metadata
model plus a separately checked source transition, naming the embedding premise.
Do not assume a high-level cache law or merely rerun cold-research longer.
Actual Arena publication can follow after these producers; query/ordinary-Err
context rules already have a useful sequencing checkpoint.
E3. Split Minima owner and slot-generation transitions
Export: valid free/live/retired partitions, exact selected-entry changes, strict reuse generation advance, permanent exclusion of exhausted generations, and invalidity of the prior nonowning identity after retirement/reuse.
Begin with actual Root::validate on an admitted small owner table, then
retire_owner and the reuse arm of owner; check slot release separately.
Use full-width identities and an arbitrary framed neighbor. A Creusot Seq/ghost
table contract with strict source-body/selected-arm correspondence is preferable
to executing the whole Rc/Vec lifecycle in one model check. Keep actual table
borrowing/allocation and retained-origin obligations visible at that boundary.
Acceptance: reachable empty/new, reusable and exhausted entries; exact
false stale-validity, wrapping-generation and neighbor-change controls. Supply
a move-only ghost page permission to release and an owning ticket to owner
retirement; neither a copied Page nor a nonowning CollectionId grants that
ownership. Eventually connect consumption to
Block::into_page/Drop and Collection::truncate_nodes/Drop.
Obstacle/fallback: the recorded actual Rc/RefCell/Vec owner-reuse probe hit 180 seconds even before a byte/mapping proof. Do not repeat it unchanged. A method-local bounded actual-source result is a useful first seed; a separate unconnected free-list model is not a complete Root theorem. Native Global allocator substitution proves neither live Nyxus origin nor KEEP.
E4. Same-execution physical-page partition for both destinations
Export on successful return: Shared::claim_pages returns exactly the
requested distinct owned pages; preserves existing live owners; consumes only a free prefix plus fresh
slots; initializes every new destination; and extends either a Collection
directory or Hylix's linear map without overlap.
Use E3's generation invariant and an erased partition of physical pages among
free/collection/linear owners. Annotate the actual preflight and mutation loops
of claim_pages, retaining exact PageSink implementations. Prove the invariant
for one execution and compose it into claim_into/grow_linear; do not conjoin
separate observations of different calls. Physical growth and clearing need E1's
byte contract, including old-byte preservation and reused-block initialization.
Acceptance: mixed reused/fresh acquisition into both destinations, a framed live collection beside linear pages, and exact duplicate-page/cross-destination or incomplete-initialization controls. No-growth requests must preserve the physical provider. Failures after physical mutation must not yield a committable normal return; there is no physical rollback postcondition for returned errors.
Fallback: first prove arbitrary scalar preflight/one-page metadata steps,
then loop composition. A two-page native or Kani mapping client may exercise the
bridge but remains bounded. Do not allocate/unroll many full physical blocks or
claim that CollectionBlockRef alone constructs the missing global partition.
E5. Small codec/collection consumer with an explicit storage contract
Export first: exact fixed-width integer/bool roundtrips and invalid-pattern
rejection; FixedVec position/overflow arithmetic and disjoint logical record
windows. Relevant sources are
Minima fixed codecs (source unavailable):36–103,
FixedVec:61–164,395–402,
and Hylix scalar codecs (source unavailable):287–295,371–383.
Check the two codec implementations separately; sharing little-endian syntax is
not proof that arbitrary custom codecs or their ownership interpretations agree.
These pure producers can proceed now. Then a checked FixedVec<u64>::set/get
caller should consume E4's exact-range Storage contract: one changed record,
same length/ownership, framed neighbors and rejection before payload I/O.
Before E4 exists, that storage law is an explicit assumed predecessor, not a
proved full-engine consumer.
Acceptance/fallback: non-power-of-two widths and node-tail boundaries, overflow rejection, exact wrong-endian/overlapping-window controls, and a real two-element valid caller. FixedKey requires canonical equality and lawful Ord; little-endian integer encodings need not have numeric lexicographic order. If trait/codec generics block translation, qualify concrete scalar instances and arithmetic first rather than adding a trusted arbitrary Codec theorem.
Scheduling and deferred work
E1, E2's metadata seed, E3's small transition and E5's pure producers can run in parallel. E4 consumes E1/E3; general Hylix cache-byte coherence consumes E1/E2 and actual pool ownership. Real Arena metadata publication and Store retirement ordering follow those producers, not caller-supplied event markers.
Hylix owning carriers remain another explicit frontier: Owned transfer/replace/Drop:235–297 must eventually connect ContextLoan validity, exactly-once child retirement, field transfer and actual record publication. B-tree/queue structure, Shared counts, custom codecs, graphs and the paper collections are not covered by the current engine checkpoints. Their native tests and compiled type contracts are useful witnesses, not substitutes for those invariants.
Use the installed verifier set and erased ghost resources; change no product algorithm/layout just to ease a proof. Preserve one synchronous upgrade with DTS, no memory loan across await, and IC-owned rollback. No continuation migrations, runtime journals or compatibility readers are part of this proposal. This research adds no runtime correction, speed claim or Wasm-size measurement.