Stable-engine risk research after batch 12
Reviewed factory 9303c47e54c4b4e9f0e90d57cd9b23cad938e1dc, SDK
16bbcc1f2f4a312631cad3ce74c6b2f044d09cd3. Source research is not new
verification or evidence of a defect. No builds, proofs, tests or product edits;
confirmed-fix counter remains 2.
The candidates below are missing connected guarantees. Bounded actual executions and conditional metadata proofs already exist for parts of each. Risk ranking reflects the number and kind of invariants one valid operation must preserve; it is not a measured probability of finding a bug.
1. Hylix eviction/refill preserves one coherent resident state on every exit
Source: working_set.rs (source unavailable),
State::{mark_dirty,remove_dirty}:255/274, WorkingSet::load:422,
finish:377, visit:543, edit:644; pooled Buffer release:195.
Missing statement: derive actual map/FIFO/dirty membership, shared Cell inverse positions, pinned payload stability and one backing-image relation through successful load, all-pinned scratch, and a read that partially fills a recycled victim then returns Err. Victim publication/removal has already happened at that last exit. A retry and finish must neither resurrect its old key nor lose a different resident's dirty bytes. Do not require no physical effects on every returned Err: dirty eviction can already have published successfully.
Existing boundary: B12 WorkingSet proves arbitrary metadata via an exclusive projection and two real Rc/Cell transitions through supplied lookups. Its complete failed-refill history is native-only. B9 Pool proves actual first/two-slot and last-owner cases, not the cache embedding. B10 finish has a two-resident, sparse-image lookup seam. None proves the complete statement above.
Why prioritize: medium-high risk confidence, severe consequence if wrong. Nested read pins, FIFO rotation, successful victim write, Cell-only neighbor repair, fallible refill and automatic Buffer Drop interact in one method. Ordinary final-value tests may miss an orphaned dirty entry until a much later eviction; application fuzzing usually lacks an exact physical/cache oracle.
Smallest new cut: source-preserving Creusot induction for the actual load
control flow's map/FIFO detach/refill/publish protocol, initially supplying lawful
u64 map/queue operations and an explicit resident capability; then discharge
the shared capability correspondence separately. Carry an immutable payload
permission alongside permission to change only the inverse-position Cell.
Actual Cell setters have no admitted Creusot law: proving that permission bridge
is a prerequisite, not an assumption about arbitrary set(&self) aliases.
Keep Kani for one narrowly isolated actual shared transition, not another whole
HashMap/Rc World. B12 actual-map SAT and Cell translation attempts did not qualify.
Controls/difficulty: stale moved position, premature victim reinsertion and
lost surviving dirty identity must each fail a designated claim; high difficulty.
2. Hylix coalescing and descriptor reuse preserve live allocation identities
Source: arena.rs,
take_descriptor:611, retire_descriptor:652, remove_list:665,
claim_slab:731, release_slab:820, deallocate:1084;
validate_slab:551 and header invalidation:934.
Missing statement: consuming the final slot can merge both neighboring free extents or retreat the logical frontier without changing any live block's physical permission. Both free bins and the extent chain remain consistent; retired descriptors are unreachable as active allocations. Exhausted descriptor replacement and later reuse cannot make an old token valid, including when old header bytes remain in a newly owned payload. Protected metadata islands stay outside all payload permissions.
Existing boundary: B12 extent histories
checks the exact link_extent body against an exclusive map and an authored
replacement client. Its origin labels are numeric. Claim, coalesce, bins,
descriptor issuance and physical publication are not proved by that client.
B11 caches checks bounded
header invalidation/cache histories against a supplied coherent byte provider.
Why prioritize: medium risk confidence; high-impact ownership failure if wrong. This is two independent linked structures plus generation admission and frontier changes. Rare counter thresholds and long reuse histories are weak fuzz targets; matching user rows does not detect overlapping unused extents.
Smallest new cut: first check complete release_slab with its actual list
helpers under the existing exclusive descriptor-map specialization, adding bin
heads/mask, tail and an arbitrary protected-island sequence. Supply a genuine
pending extent permission and consume/return neighbors' permissions; establish
global separation before adding physical publication. Then check claim_slab's
exhausted-descriptor path and token refusal under that invariant. Creusot is
suited to these unbounded relational steps. Explicit TCB remains lawful private
map access, checked metadata IO and lower physical authority; the real
WorkingSet bridge stays separate. Do not repeat B12's capped joined 8-KiB SAT.
Controls/difficulty: omitted tail repair, stale free-bin membership and a
retired token remaining admitted; high difficulty, tractable in separate steps.
3. Minima bulk allocation preserves a physical partition, not just Page rows
Source: storage.rs,
Root::release:190, Collection::truncate_nodes:583, Drop:751,
Shared::{claim_into,grow_linear,claim_pages,claim}:890/898/914/981.
Missing statement: arbitrary mixed reuse/fresh bulk acquisition consumes each free page once, advances exactly its generation, initializes its full physical bytes, and appends a unique owning capability to the selected sink. Collection directories, raw blocks, linear Hylix pages, free pages and retired exhausted slots remain disjoint. Unrelated payloads and existing mappings survive arbitrary release order and inline/spill directory growth. Preflight refusal must preserve owners; a failed physical clear must abort rather than publish.
Existing boundary: B9 protocol has two-slot/one-page call recorders. B10 bytes checks a same-image reused branch with supplied metadata, not arbitrary bulk histories. B12 directory proves arbitrary inline/spill sequences; B11 pages has supplied same-Authority, inline len0/1 resource callers. They have not been joined into this partition theorem or actual mutable Root/Drop correspondence.
Why prioritize: medium-high risk confidence, severe consequence if wrong. The fast collection capability intentionally avoids repeated slot/owner lookup; its safety depends on earlier issuance and automatic retirement. A duplicate physical page may remain invisible until its two independent users both write.
Smallest new cut: deductively check complete static claim_pages over its
actual slots/free-head arguments with arbitrary acyclic free-chain invariant,
one exclusive byte image and move-only page resources. Use the checked B10 clear
writer and B12 sequence laws with explicit source/contract correspondence; prove
fresh grow preserves old bytes under a supplied lower growth law. This avoids
Rc/RefCell SAT while adding a genuinely new arbitrary bulk/physical result.
Then connect selected actual claim/Drop dispatch to that same branded authority;
do not assume this last connection or add product bookkeeping.
Controls/difficulty: duplicate page admission, wrong reused generation and
neighbor clearing; medium-high. Full owning Rc/RefCell pilots already capped.
4. Minima virtual Hylix reads/writes preserve exact physical byte origins
Source: storage.rs,
HylixMemory::{grow_to,read,write}:1148/1155/1174 and grow_linear:898.
Missing statement: under one injective live linear-page map, arbitrary cross-block ranges translate to exactly the requested logical bytes, preserve every physical byte outside their mapped destination and preserve collection pages/header. Existing logical mappings survive rounded growth and reopen. Read Err may leave an output prefix; write failure must abort.
Existing boundary: B8 authority checks actual leases/extraction/drop on a supplied sixteen-byte owner, not these translation loops. StableMemory IO proofs concern a different adapter. Neither numeric map equality nor exact single-page clearing proves this byte relation.
Why prioritize/cut: medium risk confidence; medium difficulty and a useful first deliverable. Contiguous-only providers and roundtrips using the same wrong map are weak oracles. Specialize the complete source read/write loops to an exclusive checked byte image and supplied injective page map, prove exact origin/frame and termination with Creusot, and keep actual RefCell acquisition as an explicit boundary. No full Shared destructor SAT is needed. The stronger end-to-end theorem consumes candidate 3's physical map/authority connection. Controls: wrong physical-page selection and changed excluded collection bytes must fail independently; retain reachable multi-page mappings.