Risk-focused verification research after batch 11
Reviewed on 7 November 2026 at factory
8fe99daac828b34a0166b2b213d78beefa0f9988, SDK
16bbcc1f2f4a312631cad3ce74c6b2f044d09cd3. Five read-only subagent reviews
covered memory/allocation, Store, engines, collections and Ashroot. Integration
also examined compiled catalogs and upgrade teardown. This is source research,
not a new proof qualification. Runtime-fix counter: 2, unchanged.
The requested priority is likely correctness mistakes that ordinary tests and fuzzing have difficulty exposing. The ranking combines interacting state, consequences, weak test oracles and the exact proof boundary. It is engineering judgment, not a measured defect probability. An unproved contract alone is not evidence of an implementation defect.
The batch-11 report and foundation map retain the checked source identities and contracts. The targets below are the remaining parts of those systems. Existing selected allocator return, cache/codec effects, memmove, u8/u8 node movement, Store handoffs, migration arithmetic and scalar Ashroot laws remain valid within their stated scopes.
Ranked targets
| Rank | Unverified contract | Why ordinary tests and fuzzing have a weak oracle |
|---|---|---|
| 1 | Complete Store frame completion: actual pending retirement, record flush, provider entry, natural Context destruction and TLS exit agree. | Correct returned rows can coexist with a stale snapshot or wrong nested-owner lifetime that becomes visible only after reuse or later teardown. |
| 2 | Actual Hylix WorkingSet coherence: resident map, FIFO, dirty positions, pinned buffers and backing bytes agree through eviction, refill failure and finish. | Cache reads can conceal disagreement with backing storage; the revealing observation may require a particular pin/failure history followed by reopen. |
| 3 | Nested module conversion and recursive retirement: adopted, converted and omitted owners form one exact partition through the complete trace, including ChildMap. | Old/new destructor mistakes can be invisible for equal layouts or trivial Drop; values may survive while identities or nested resources do not. |
| 4 | Consuming migration of populated owning trees: recursive Drain/build, source-node reuse and target rebuilding preserve the specified row and resource relation. | Equal row counts and values do not establish exact owner transfer; the source is consumed, and a defect may surface only during later allocation or destruction. |
| 5 | Nyxus shared-slice publication and append: immutable published spans, initialized elements and unpublished writable tail stay disjoint; partial construction and final destruction are exact. | Bytes and counters can look correct despite invalid alias permissions, pointer provenance or an incorrect initialization boundary. |
| 6 | Actual Ashroot adapters refine the scalar backend laws: real Nyxus/Hylix owners and Minima workspace/slot publication satisfy preparation, rejection and commit contracts. | Logical array effects omit the owner, provider and callback-loan state. Reentry through another database sharing Resources is a topology of handles, not an ordinary input mutation. |
| 7 | Generated structural-owner transfers: every field stays protected throughout partial split/rebuild and failure; an abandoned intermediate cannot allow successful completion. | Ordinary inputs do not generate forgotten field owners, partial Rust construction or destructor failure; the important observable is whether the frame can commit. |
| 8 | Actual Minima owning wrappers and shared provider: inline/spilled directories, raw Blocks, Collections and Hylix mappings partition physical pages through real Rc/RefCell and automatic Drop. | Owner permission and physical-page lifetime differ. A live-page total can remain plausible while the wrong collection loses a page. |
| 9 | Complete Hylix tree publication: split propagation, separator replacement, rotations, merge and root collapse conserve generic encoded key/value/child owners. | Temporary duplicate bytes are legitimate; only the tree/workspace ownership interpretation distinguishes them from two live owners. |
| 10 | Allocator invariants across arbitrary histories: live allocations, free structures, summaries and generation identities agree in the actual Nyxus Heap and Hylix Arena. | A duplicate free-list/extent entry can stay latent until distant reuse. Seeded exhaustion and long random histories do not prove inductive closure. These engines require separate proofs. |
| 11 | Complete Nyxus Allocator resize/zeroing entry: zero-size, in-place and moving branches preserve initialization, alignment, ownership and refusal guarantees. | Arbitrary old initialization states, alignment changes and dirty spare capacity are poorly represented by ordinary byte-pattern tests. |
| 12 | Grouped SetNull plus cascade final-state semantics: complete graph closure, grouped surviving candidates, unique exemptions and actual mutation agree. | The oracle must describe the simultaneous final database. Replaying scalar deletions in an arbitrary order can reproduce the implementation's mistake. |
Concrete proof cuts and existing boundaries
1. Complete Store frame
Sources: scope.rs finish (186), execute_write (535); Store hylix.rs
FrameRecords::get/finish (77/140), Record::into_value/Drop (207/222);
Store backend.rs hylix_write (212); Hylix context.rs using (177).
The eventual real public caller has one dirty surviving record, one retired or transferred cached owner and a neighbor, with natural cleanup and a usable subsequent frame. First isolate the existing natural-destruction/deallocation boundary using exact bodies and the smallest nonempty cache; larger B10/B11 public-frame/pipeline callers already capped. Expand only after that closes. Establish actual provider entry/exit and both TLS lifetimes. B11's selected callbacks, safe supplied storage and ManuallyDrop contexts do not establish this contract. Reuse those checked handoffs.
Ordinary returned Store errors complete retirement/publication and may preserve writes. Errors after consuming conversion ownership, retirement invariant failures and provider publication failures must take the fatal boundary. A native caught unwind is not restoration. Difficulty: high, beginning with an explicit feasibility investigation rather than a promised complete frame.
2. Actual WorkingSet representation
Sources: working_set.rs (source unavailable) mark_dirty/remove_dirty (255/274), finish (377),
load (422), visit/copy/edit (543/572/644), Pool/Buffer (133/195).
Prove an inductive relation between the actual map, FIFO, dirty-position vector,
pool occupancy, pinned Rc resources and logical backing image. First close the
dirty bookkeeping; then each load exit, including recycled-buffer refill
failure; then full finish. A failed read may follow successful publication of a
previous dirty victim. Do not impose an incorrect universal no-effects-on-Err
postcondition. B11's cache and memmove proofs and B10's selected flush supply
ingredients, not the actual resident-map/provider invariant. Difficulty: high.
3. Nonunit conversion, ChildMap and recursive retirement
Sources: scope.rs convert (215), pending-destructor replacement (293),
release (320); children.rs ChildMap attach/take/take_first/adopt_from/clear/Drop
(195/207/224/235/251/267).
Prove that actual nonunit conversion produces the pending-loop ownership invariant, then prove preservation/termination of the complete recursive drain. Use distinct old/new layouts and independent nested-resource observations. ChildMap needs its own entry/directory/pending partition and key-allocation transfer proof; the qualified B11 owning-container path uses ChildSlot.
B11 checks one parent/enqueue step and a separately supplied leaf drain. Its
combined conversion callers capped and remain unqualified. A longer SAT unroll
is not the new method. Use source-preserving resource invariants and a small
actual join caller before generalizing. Native Core's destructor BTreeMap is
native-only; Wasm retirement uses retained state and typed Pending.destroy.
Difficulty: high.
4. Recursive consuming migration
Sources: map_build.rs (source unavailable) Drain::new (19), build/values (111/142),
transform.rs (source unavailable) (17); Ashroot migration.rs (source unavailable) rebuild/Recode (150/191),
native/stable iterators (278/339), From::apply (539), target validation (771).
Separate sequence/value preservation from the linear resource partition. Prove the source cursor and target construction for different capacities/heights, allowing target allocations to reuse exhausted source nodes and converters to move/retire nested owners. Then connect Ashroot rebuilding and deferred FK validation to the complete target, including intentional table removal. B10's five-row/height-one relation and B11's separate bounds/distribution contracts are prerequisites; their recursive join and real allocator/codec refinement remain open. Difficulty: high to very high.
5. Shared allocation and published tail
Sources: shared.rs (source unavailable) layout/Building (31/55), initialized-prefix cleanup (90),
range projection (244), clone/final Drop (263/278); span.rs (source unavailable)
UnpublishedBytes::drop/append_from_reader (213/259).
Start with a real allocation-backed byte owner: header, immutable published prefix and writable unpublished tail have disjoint permissions. Byte backing starts zero-initialized; failed append zeroes its current unpublished destination and leaves the logical used length unchanged. Prove those effects and that all loans rejoin the ultimate owner. Generic partial element construction has a separate initialized-prefix invariant. Extend later to zero-sized, over-aligned and nested-drop elements. Arithmetic/projection proofs alone do not supply pointer provenance or the allocation-backed shared-owner theorem. Stop if the verifier cannot represent the actual pointer-origin operation; replacing it with a safe adapter does not close this target. Difficulty: medium-high only after the allocation/pointer bridge qualifies, higher for generic Drop.
6. Ashroot physical adapters and callback boundaries
Sources: Ashroot database.rs (source unavailable) mutate_locked (793), factory/producer/read
workspace release (804/840/910/1298); native.rs (source unavailable) optimized edit_with/remove_with
(170/285); stable.rs (source unavailable) put/edit/remove (287/310);
minima.rs (source unavailable) workspace access (35), get/edit (204), remove (439).
Refine B11's supplied logical row/publication laws using actual owning inputs, displaced rows and container operations. Nyxus's fused Entry implementation is outside the checked default algorithm. For Minima, prove the actual public wrappers release operation/buffer loans before permitted callbacks into another database sharing Resources; then connect slot payload and retained directory publication. Same-database mutation reentry remains prohibited. Difficulty: medium-high for a callback cut; high for complete adapters.
7. Generated field ownership
Sources: collections derive.rs (source unavailable) rebuild fold (82), split_owned (95),
from_owned_fields (111); ownership.rs transfer/Drop/produce/pending
(241/280/321/341).
Prove the emitted fold retains every source loan or pending target at every field boundary, including empty records and nested fields. Arbitrary field arity requires induction over the generator's fold; several selected checked expansions would remain finite witnesses. Then connect it to actual ContextLoan/epoch/quarantine and completion on constructor, codec or retirement failure. B10 selected owner bodies consume a supplied valid frame; they do not qualify this generated fold or its actual loan bridge. Difficulty: high. Coordinate with the Store-frame contract.
8. Minima real wrapper and provider refinement
Sources: Minima storage.rs Block transfer/Drop (278/289), allocation transfer (371/379), PageDirectory (459), truncate/Drop (583/751), Shared/lease (762), open (825), Hylix view (859), claim_pages (914), HylixMemory Drop (1134).
Prove the directory's inline/spill sequence and physical resource partition, then connect actual mutating Rc/RefCell dispatch and automatic destructors. Owner retirement and physical reuse use distinct generations. One actual provider capability must remain live until the last Shared view drops, and reopening must bind the same retained mappings to the same image. B11's explicit Authority projection is len0/1 and caller-bound; its read-only wrapper and native history do not close the mutation bridge. Difficulty: very high; qualify a small refinement method before larger histories.
9. Full encoded-tree ownership
Sources: map.rs insert (583), split (692), root collapse (754), removal and strengthening (762/819), edge extraction (897).
Generalize plane geometry to admitted widths, then prove promotion, separator replacement, rotations and merge as linear transitions. Compose persisted reachability/order/count and workspace ownership across recursive publication. Include zero-width value planes and nested owners. B11 u8/u8 byte/header laws do not prove these generic ownership or full-publication contracts. Difficulty: high.
10. Inductive allocator histories
Nyxus sources: transient.rs allocate/release (150/208), span acquisition and release (321/367), populated page bins (400). Derive live-span cardinality, free-forest summaries and exactly-once populated-list membership from issued resources. Connect slabs' live/free/bump partition, then consume B11's already checked final return after proving its sole-owner premise.
Hylix sources: arena.rs descriptor acquisition/retirement (611/652), slab claim/release (731/820), allocation/deallocation/resize (1022/1084/1118). Prove the descriptor/extent/free-list graph, metadata-island exclusion, nonoverlap and nonwrapping stale-token refusal through split/coalesce/reopen. These are separate engine proofs, not one shared allocator theorem. Difficulty: high to very high; use transition induction, not larger unrolls.
11. Complete Allocator initialization and resize
Sources: Nyxus allocator.rs Allocator entry (88), resize (130),
Wasm backend resize (437); transient.rs resize_layout (259).
First prove the zero-size and in-place branches with symbolic valid layouts and an explicit initialized/uninitialized byte relation. Include all required grow_zeroed tail bytes, prefix/neighbor frames, alignment changes and refusal. Then connect the full moving branch to allocation/release ownership. The qualified 37-to-65,537-byte direct fallback is one layout pair with supplied resources, not this complete entry. Difficulty: medium-high initially; full Heap/provider refinement remains a lower dependency.
12. Final-state relationship deletion
Sources: planner.rs (source unavailable) (88); Ashroot database.rs (source unavailable) prepare_nulls (192),
remove-old/apply-new phases (284), delete (1162); index.rs (source unavailable) unique batch
preparation (266), composed preview/clear (737).
Prove frontier/visited/null-intent invariants, then that actual prepare, erase, remove-old and apply-new phases produce the simultaneous final database. Include SetNull followed by Cascade discovery, multiple clears on one survivor, final unique ownership exchanges, self-relations and reverse-index completeness. Keep nullable author contracts explicit. Existing admit/charge and scalar/delta proofs do not establish closure or this multirow commit. Difficulty: high; the previous whole-source cyclic SAT pilot capped.
Existing tests affect the ranking
These targets are not simply missing test cases. Inspected tests already cover all 77 Nyxus classes, 12,000 mixed allocator operations, a 6,000-operation buddy cell model, seeded counter exhaustion, Minima spill past 16 pages, partial I/O failure, type-width-changing migration and nested-owner retirement examples. Ashroot already tests cycles/diamonds, grouped uniqueness and batch failures. Its generated 192-graph exercise covers Cascade/Restrict, not SetNull.
Fuzzing remains useful for varied histories and differential logical oracles. Formal work adds most where correctness depends on permissions/provenance, exactly-once ownership, arbitrary transition induction, generated Rust control flow, or a nonlocal commit/destruction observation. Sanitizers and specialized ownership-aware fuzzers can expose some of these; they do not prove the contracts.
Foundational follow-ups with less immediate source-local bug evidence
- Actual Wasm physical authority and PageSource adapters: wasm.rs (source unavailable) WasmBacking/ensure_pool (34/103), retained callbacks (183), claim/release (247), RuntimePages (476); Nyxus allocator.rs Pages (377). Prove one external world, pinned growth and exact capability construction/consumption. Extremely consequential, but current tool/resource construction is a major feasibility boundary. Receiver arithmetic alone cannot produce that authority.
- Actual native VecMemory callbacks and relocation: memory.rs backing growth (295), callbacks (450/513), paired windows (536). Bind actual pointer origins and old/new allocations to the ultimate Vec owner. Native relocation is distinct from Wasm's pinned linear-memory growth.
- Catalog coverage before actual typed restore: rooted.rs (source unavailable) traversal/digest (170/234/99), memory ABI lib.rs (source unavailable) physical/interpretation catalogs (226/256), root macro.rs (source unavailable) admission/restore/publication (208/267). Prove structural certificate completeness and the actual bind/convert connection. B9 already checks the emitted decision for fixed digest values. Compiler reflection, hash collision resistance and truthful custom semantic declarations remain explicit assumptions, not automatic proof obligations.
- Complete KEEP teardown: SDK transient.rs (source unavailable) registered-root clearing, provider teardown and final clean marker (24/63/79), SDK lib.rs (source unavailable) pre-upgrade/readiness (123/160). Connect actual timers/tasks/providers, destructor effects and old-code quiescence to the new startup. Existing registry identity and controlled startup wrappers do not establish that join; undeclared owning statics remain an authoring obligation.
Research method and next execution
The five reviews inspected current implementation, crate-local tests and exact prior proof scopes. Two peer reviews checked the consolidated coverage and feasibility claims. No compiler, prover, workload, installation or network operation was run. Documentation checks pass for 2,082 local links across 336 Markdown files; research indexes and whitespace checks pass. Only authored research and navigation are added; no generated evidence or runtime changes belong to this review.
A useful first group of feasibility investigations/proof cuts is 1, 2, 4 and 5, with independent review and explicit lower contracts, not promised complete closures. Work 3 needs a genuinely new compositional method after its prior caps; 6's Minima callback cut and 11's in-place zeroing are useful smaller independent targets. Qualify actual-source feasibility before expanding any tool-limited ownership model. Do not replace the missing implementation with a supplied safe adapter and claim closure.
Keep normal safety checks and caps. Do not change runtime representation merely for proofs, add journals, introduce multi-message migrations or infer IC rollback from native catching. All supported migrations remain one synchronous upgrade with DTS. Future proof work needs isolated mutable targets and the normal independent original-result review. This document does not launch that work.