Next verification batch
This is the historical plan used for batch 7. The latest source reassessment and proposed work are in the batch-8 proposal. Its results do not rewrite this plan's original source identities or research findings.
Assessment: 5 November 2026, factory
87b7233794da334e03f8fa0b714a9b3cd902efa6, SDK
409a7176096c06c2dd9b7e491e8dc630951e83b4.
Four isolated research audits inspected current implementation, proof contracts,
runners and qualification notes. The research packet
contains exact source references, controls, feasibility risks and primary sources.
This assessment adds no theorem, compiler/VM execution or performance result.
Current position
The strongest existing work is actual-source metadata reasoning and selected native byte/allocator effects. The next batch should connect owned resources, representations and actual callers. Three different outcomes are needed: repair the remaining qualification-binding gaps, strengthen useful source-level contracts, and establish the first bounded engine/owner consumers.
Recorded qualification remains 180 core reports/657 goals/2,615 closed leaves at
f4c23a0a, eleven core and seven resource controls, and 436 verification-tool
tests at 1ddefde2. They are not fresh runs in this research or a percentage of
CDK correctness. Allocator pipelines include overlapping producers and must not
be summed as distinct coverage.
| Foundation area | Current evidence | Next missing connection |
|---|---|---|
| Physical native memory | Fixed split byte owner, selected raw operations, ultimate-root loan frames | Actual provider/bounds/callback admission and general metadata-byte transport |
| Page authority | 25 actual Pool method shadows, packed metadata, validation/recovery, exact release and conditional claim effects | Arbitrary committed-run search completeness; provider/growth and termination premises |
| Wasm/target | Scalar wrapper models, native/wasm32/wasm64 compilation and selected actual witnesses | One physical world capability, Memory64/emitted-feature matching, real host/target refinement |
| Buddy/bins | Actual selection/split effects, same-execution universal split/coalesce conservation, separate global models | Selected owned page, complete bin representation, live-span tokens and physical page return |
| Slabs | Local allocation/nonfinal release for both policies/classes 0 and 15; wider geometry/list checks | General chain/cardinality/live-slot invariant and construction/retirement of owned spans |
| Allocation facade/Nyxus | Fast/invalid/failed fixed-layout resize, retained-region checks | Successful copy/zeroing, allocation ownership and owning-container/drop contracts |
| Stable providers | Full scalar capacity/range reasoning and bounded native byte effects | One exclusive physical stable domain shared by engines, actual VM/ABI connection |
| Hylix/Minima | Runtime safeguards, tests and application qualification | Page/owner partition, virtual-map disjointness, cache coherence and publication contracts |
| Store/upgrades | Private module tree, typed admission/generation checks and lifecycle tests | Binding/tree ownership, exact destruction and admission-before-interpretation composition |
| Ashroot/protocols | Typed contracts, tests and IC/performance qualification | Source-linked index/FK/planner, decoder/window and workflow invariant proofs |
| Verifier assurance | Erasure, authenticated producers, report inventories and newer sealed runners | Old-runner receipt consistency, emitted-helper assertion audit and known Kani representation root cause |
The 20 explicitly unproved original-derived files/25 goals are Clone, Debug, Eq-marker and PartialEq/refinement groups, not 25 missing Pool algorithms. Current equality consumers have a separately qualified bridge. Prioritize an actual downstream use; closing formatting goals to improve a count is low value.
Research findings that affect the plan
- Concrete qualification gap: four older source-proof runners and a
compilation-only runner lack the newer receipt/checkout sealing policy. A pure
mocked-backend call to actual
physical.runaccepted changedinputs.json. Partial factory-clean/model-receipt inconsistencies also remain. This does not show historical outputs were altered or falsify the recorded theorems. - Native movement and pinned growth differ: the production Backing contract allows native relocation after loans end; current proof-side growth preserves a pinned metadata loan. A single assumed generic growth law would conceal this mismatch. Admit a no-growth callback first; separate later growth modes.
- Membership does not establish completeness: a valid bin entry list alone cannot prove that allocator search finds every owned free page. The owned page/bin/bitmap/live-token representation must connect these facts.
- Slot reserve exceeds requested bytes: a one-byte request can occupy an eight-byte slot, and release writes a two-byte free link. Keep allocator-owned stride/padding distinct from the client's initialized byte extent.
- Small general slab model: an independent geometry survey found 77 classes, at most 28 slots per span, and 18 one-slot classes. This is planning arithmetic, not a new Rust theorem. It motivates a small ghost chain/partition proof.
- Publication is not discard rollback: Hylix can write a dirty eviction before frame completion. Ordinary returned Err still finalizes; trap/IC rollback is a distinct premise. Native caught panic does not restore the backing image.
- Bounded pilots remain conditional: Minima, Hylix, Store and Ashroot do not currently have dedicated end-to-end formal proof families. A small actual algorithm check may proceed with explicit lower contracts, but cannot export an unconditional durable-engine or application-integrity theorem.
Recommended ten workstreams
These are scoped assignments, not promises to prove the entire implementation in one round. Each produces a small reusable contract or an honest feasibility result. Runtime algorithms, memory layouts and instruction costs stay unchanged.
| ID | Priority/readiness | First reviewable result | Dependencies and consumer |
|---|---|---|---|
| N1 Receipt coverage | P0, ready | Reuse run_receipt in the older qualified cohort; cover metadata/stage replacement, symlinks, clean HEAD moves, dirty factory/SDK and compiler drift |
Shared admission infrastructure; scoped fresh positives/controls, not unrelated SMT replay |
| N2 Kani representation triage | P0, research-ready | Locate the mixed byte-Slab/typed-Heap LINK discrepancy across unchanged Rust/MIR/GOTO/CBMC stages; preserve paired true/false/native matrix | Gates expansion of affected raw-memory imports; no theorem ticket from the diagnostic |
| N3 Actual callback capability | P1, frontend feasibility first | One preallocated actual VecMemory/VecBounds retained callback carrying root/control/payload ownership and disjoint live loans | Uses existing splits and explicit raw/zeroing/Perm trust; supplies a conditional no-growth callback byte/loan contract |
| N4 Claim search completeness | P1, metadata-ready | Any admissible aligned free run inside committed memory is found without growth; then precise no-fit/growth-refusal cases | Reuses query/claim contracts and explicit physical primitives; independent of completing provider admission |
| N5 Owned buddy acquisition | P1, representation seed first | One owned page, complete relevant bins/live partition, exact existing selection/removal and checked split yield one live span token | Native seed can use explicit std/provider premises independently of N3; production Wasm origin still needs the Wasm-world lane; supplies slab/facade consumers |
| N6 General slab invariant | P1, conditional span | Parameterized live/free-chain/bump partition, actual pop/push and partial-list effects, at most 28 slot identities | Uses geometry/source-local effects; physical construction/final return wait for owned-span contracts |
| N7 Successful facade path | P1, bounded native seed | One actual direct-to-direct successful Heap resize with exact prefix copy and old-run retirement | Explicit disjoint owned-run/provider premises; tail zeroing is a separate later Nyxus Allocator::grow_zeroed contract, then general slab/direct transitions |
| N8 Minima mapping/owner seed | P1, bounded actual-source pilot | Small real Root: generation/reuse, stale/foreign rejection, move/disarm and linear-versus-collection page disjointness | Stable Memory plus live Nyxus metadata contracts remain explicit; supplies virtual Hylix mapping |
| N9 Hylix publication seed | P1, bounded actual-source pilot | Dirty eviction/read-your-writes, query no-write, normal/Err finalization ordering and permitted early eviction writes | Coherent exclusive provider/cache loans and IC rollback remain premises; feeds Store frame composition |
| N10 Ashroot planner seed | P2, independent conditional pilot | Actual graph planner: unique cascade closure, immediate Restrict, grouped SetNull disjoint from deleted rows and exact budgets; then one exact replace delta | Complete immutable edge enumeration and storage/purity contracts remain explicit; not an all-engine database theorem |
Detailed producer/consumer premises and independent wrong-result checks are in physical, allocator, upper layers, and assurance.
Scheduling with four workers
Keep at most four workers plus the integrating agent, including nested/external reviews. Freeze the narrow contract shared by neighboring tasks before parallel edits; one worker owns each mutable proof target/cache. A suggested queue is:
- Start N1, N2, N3 and N4 independently. Each must state feasibility and complete its first scoped result before its consumer claims that contract.
- As slots free, start N5's representation seed and N8/N9 bounded pilots. Conditional storage contracts must be visible, not hidden by a successful run. N5 can construct a native page seed under explicit std/provider premises independently of N3. N3 concerns Store/root callbacks and does not admit production Wasm RuntimePages; that origin still needs the Wasm-world lane.
- Follow with N6 and N7; run N10 in an available independent slot. A ghost-chain lemma may start early, while its actual-source/owned-span consumer remains dependent. Assign a separate review slot after workers finish.
If a representation or frontend pilot fails, preserve its exact unsupported feature/minimal example and scope; move to another ready task. Raising solver budgets, changing native owners just to get a pass or broadening a trusted algorithm is not a substitute for the missing connection.
Design lanes and later consumers
These remain important; they need explicit design or predecessor work before a broad proof claim. They are not silently covered by N1–N10.
- Generic metadata-byte transport: connect the exact metadata-only permission to raw word reads/writes, endian view and byte frames. The separate 24-byte raw-operation fixture is not the complete producer for this edge.
- Cold native provisioning/relocation: model absent control before first allocation, qualify std reserve/resize behavior and rebuild address facts after movement. Do not reuse the pinned-growth contract unchanged.
- Wasm world/runtime pages: one erased nonduplicable world, actual RuntimePages/ensure_pool/bootstrap/KEEP composition and target witnesses; distinguish System API assumptions from verified target execution.
- Exclusive stable-domain capability: distinguish it from linear-memory Wasm authority. Construct one physical stable root/lease shared by Hylix and Minima, with coherent observations and actual System API byte contracts. Cached counts or domain IDs alone do not construct exclusivity; Minima also needs its live Nyxus metadata ownership.
- Full buddy release: consume the exact span token, derive its page/offset, relate live count to token cardinality, rebin or return the final page exactly once, and retire header permission. N5 acquisition alone does not prove it.
- First owning container:
SharedSlice<u8>before arbitrary std Vec/Rc/B-tree internals; initialization, immutable loans and clone/nonfinal/final drop need actual allocator contracts. Generic destructors/panic paths are later scope. - Store and upgrades: scalar bind/epoch/tree seed, then real typed allocations, destruction and generated admission dominance over interpretation. Preserve owner-local conversion and one synchronous upgrade/DTS operation; no migration continuations, background jobs or denial flags.
- Independent protocol leaves: Tripwire SourceWindow bounds/framing can start
with an explicit Source contract. Wire reexports external
ic_wire, so its facade is not a parser proof. Reactor/Rechain/Takt require separate durable identity, delivery, uncertainty, accounting and replay invariants. - Tooling follow-ups: modest emitted-authored-assert inventory/exclusions and the frontend features actually needed by N3/N5; no generic Rust call-graph project or second proof registry. Keep manual author obligations visible.
The tool-options study selects a possible bounded unsafe-Rust or target pilot. It authorizes no install, tool upgrade, runtime replacement or cross-verifier theorem import.
Acceptance for every next-batch result
Require exact implementation/source correspondence, constructed valid inputs, complete fresh inventories, reachable positive cases and independent designated negative controls. Record model/target/width/history bounds, ownership origin, all imported or trusted laws, the caller that establishes each premise and the consumer that uses the result. An observation-only release recorder exports pre-call facts only. A native source theorem or actual IC example does not close the compiled target/host gap.
Keep annotations and ghost state outside product builds. No runtime ownership registry, local rollback journal, per-entry scan or algorithm replacement is needed to write these contracts. Any actual production bug requires a separately reviewed fix and normal matched native/IC/performance qualification. This research confirmed a host-admission consistency defect; it established no new SDK defect.