Store, admission, Ashroot and protocol frontiers after batch 7
5 November 2026. Source-reviewed factory
4e8875c746b7126da51d3e0eb508dddbe4704463, SDK
16bbcc1f2f4a312631cad3ce74c6b2f044d09cd3.
This is a source/contract inventory and proposed work, with no compiler, prover,
VM, test or benchmark execution. Previous generated reports were deliberately
removed; recorded qualifications below come from their authored scope notes.
No new runtime defect is established by this assessment.
Current position
The lower proofs do not yet establish Store privacy, lifetime-safe arbitrary container ownership, complete upgrades or Ashroot database integrity. Those contracts need their own actual callers and source correspondence. Existing Rust encapsulation, borrow checking, runtime admission and tests are useful evidence, but are not deductive proofs of the complete persistent system.
| Layer | Current evidence | Missing formal connection |
|---|---|---|
| Store identities/bindings | Private identity construction, namespace/generation/epoch checks, typed keys, frame tests | Constructor invariants through slot reuse and conversion, then live cell permission/loan transport |
| Module tree | Accounted attach/detach, ancestry cycle check, pending retirement, owner-private children | Acyclic unique-parent invariant and exact orphan/destructor accounting over actual transitions |
| Upgrade admission | Compiled physical/semantic catalogs, generated admission checks, canonical Wasm startup transform, lifecycle tests | Admission dominance over typed interpretation; successful conversion/retirement and failed-upgrade VM refinement |
| Ashroot | Actual admit/charge and owning caller: three reports/32 goals/32 leaves at 6b34b875 |
Full graph callback/closure, exact index deltas, primary/index/FK storage correspondence |
| Tripwire/Wire | Bounded typed APIs, compiler lifetimes and protocol tests | Actual frame/window/source laws; the external Wire parser is not proved by its facade |
| Reactor/Rechain/Takt | Persistent implementations, native/IC tests and workload qualification | Formal delivery/debt/replay/history/accounting invariants and their storage/codec links |
The Ashroot count is conditional on the explicit standard-library and key-model laws in the planner note. It is not an application-integrity theorem. The current proof source directories contain no dedicated Store, Tripwire, Reactor, Rechain, Takt, crypto or compression proof family. This is an inventory observation, not an exhaustive audit of those implementations or proof that no external verification exists.
U1: actual Store binding and epoch seed
Read backend.rs,
particularly slot, resolve_bound, insert, remove, bind (282–433), and
scope.rs, particularly
Context::resolve and convert (103–109, 215–307).
Identity and ModuleRef (source unavailable)
keep fields private; Identity is explicitly not deserializable. The directory's
insertion bound supplies a canonical slot-width invariant. A proof must establish
and preserve that invariant, rather than assuming arbitrary public u64 identities
or adding checks solely because a proof representation omitted construction.
First export: successful actual resolution returns the current live slot's pointer with matching namespace, generation, binding epoch and admitted state; reusing a slot or completing conversion invalidates the corresponding old binding. Other directory entries stay unchanged. This is a metadata guarantee, not permission to dereference an arbitrary returned pointer.
Use strict source-linked shadows of the small actual checks, with a fixed admitted directory first and explicit Vec lookup/physical-containment laws. Then add one owning caller that binds, resolves, performs the checked epoch transition and rejects its prior binding. Construct a valid success case and exercise each actual refusal branch independently. Exact wrong-result controls must distinguish generation from epoch and preserve failure precedence.
Do not start by unfolding arbitrary PhysicalModule<M>, RefCell, Nyxus, pending
children and every destructor simultaneously. The next consumer adds one real
cell permission and scoped guard/drop pair. Generic destructor behavior,
unsafe key authors and no-loan-across-await remain separate obligations.
Readiness: small conditional seed; useful after the current allocator and callback producers, independently of full Wasm origin. Main-batch candidate.
U2: one exact Ashroot replace delta
Change/project/apply (source unavailable) (102–108, 210–228)
is a smaller next exported contract than the whole callback planner.
apply skips equal old/new projections, removes the exact old pair when present
and inserts the exact new pair when present. The ordered-index implementations
prepare uniqueness separately. Batch maintenance removes old entries across
all affected rows before publishing new ones (308–324).
First export: with an admitted set of (projected_key, primary_id) entries,
actual single-row application removes exactly the old pair and inserts the new
pair when the projection changes, preserving unrelated pairs. When projections
agree, it preserves storage exactly and performs no maintenance. To derive a
uniform final index/row invariant, require that the old projection already
corresponds to the stored entries; this is maintenance, not repair of arbitrary
corrupt indexes.
Keep faithful key Eq/Ord/deep-model identity and projection purity explicit.
Use a ghost set and narrow storage-method laws; do not pretend that set algebra
proves the engine's B-tree implementation.
A real small owning caller should cover insert, replace, delete, sparse None, unchanged projection and an unrelated row. Independent controls keep a stale old pair or erase a neighbor. The no-maintenance property needs an erased ghost operation trace/count or strict erased-body control: remove+reinsert can preserve the same final set, so a set-only oracle cannot detect the extra work. Follow with unique-key preparation and two-row key swaps under batch validation.
The database mutation path (source unavailable) (777–864)
separates preparation from gate.begin() and maintenance. Its two actual
backend paths have different borrowing/preparation premises. PREPARE_IN_WRITE
and the self-FK exception must remain visible. Publication failures trap; a
returned ordinary business error is not local rollback. No overlay, journal or
new runtime purity monitor belongs in this proof.
Readiness: independent conditional leaf, good reserve task when a lower ownership lane is blocked. Complete primary/index/FK correspondence still needs backend/Store contracts and exact custom-index author obligations.
U3: full planner, in explicit stages
The actual planner (source unavailable) (50–178) scans roots,
uses a visited set, enumerates incoming relationships through a callback, stores
a sticky refusal and filters nullable edits against the eventual deletion set.
Existing checked admit/charge contracts are producers, not a proof of these
loops or of Graph::incoming.
A useful intermediate export checks one real incoming-edge transition:
visited/rows correspondence, once-only affected-row accounting, edge and byte
budgets and immediate Restrict. During traversal, a row may be both nullable and
visited after a later cascade: use affected = |visited union null_rows|, not
intermediate disjointness. Prove nullable/deleted disjointness for the returned
plan after the actual final filter. Start with a fixed
immutable complete edge slice and a source-correspondence audit of the callback;
then prove the scanning loop/cursor invariant and consume the checked admission
producer. The graph law must state complete, stable enumeration and propagated
errors. A pure trait signature does not establish those facts.
Construct a cycle, repeated edge, null-then-cascade row and ordinary restriction. Negatives should independently change the closure or retain an edit of a deleted row. Resource refusal remains possible. The earlier whole-planner Kani timeout must not be repeated unchanged, and a bounded fallback must state graph/key bounds. Avoid a proof-only callback rewrite without checked correspondence.
U4: Tripwire source/window leaf, then actual publication
SourceWindow (source unavailable)
checks reversed ranges, source length, child-relative bounds and absolute offset
addition; slice retains the original source and lifetime.
Source (source unavailable)
requires stable immutable bytes and full destination initialization on success,
but a failed copy can alter destination bytes. A safe custom implementation can
return a different valid initialized slice; a caller publishing owned bytes must
validate the promised origin, not merely its length.
First export: checked window arithmetic composes nested frames without
out-of-window reads or offset wrap, and preserves original source identity.
Start with actual SliceSource and a checked scalar absolute shadow. Treat
dyn Source support as a feasibility gate, since the analogous retained-bounds
trait-object path is still limited. A numeric u32 model is not an executed-Wasm
or general memory32 refinement proof.
Construct nested empty and nonempty windows; check maximum-address and reversed
range refusals. Independent controls shift an origin or admit one extra byte.
The later copy_range_uninit consumer must track initialized bytes and the exact
returned pointer/range; it must not infer unmodified output on Err. A window
proof does not prove generated request/list parsing or all user Source impls.
The Wire facade (source unavailable)
reexports ic_wire::native; proving its Nat/Int helpers does not verify that
external parser or arbitrary Serde serializers.
Readiness: useful independent reserve leaf, no need to wait for every engine.
U5: admission dominance and synchronous conversion
The root generator (source unavailable) (204–268) matches current/exact predecessor catalog digests and requires admission before init/restore and target publication. The Wasm transform (source unavailable) (518–560) emits controlled startup ordering. Their connection is more important than proving a detached digest-comparison boolean alone.
First inventory the emitted startup calls and allowed memory effects, then check a successful generated root and a rejection path against that exact transform. A proof of a small event model needs source/binary correspondence; source reading or PocketIC execution alone does not establish general dominance. Hash collision resistance, physical recipes, compiler/Wasm semantics and the IC upgrade transaction remain named trust boundaries.
The actual Context::convert marks the old slot converting, moves old data,
allocates/binds target children, advances binding metadata, delegates child
conversion, retires old children and publishes the final state. A later owning
proof should consume a source owner and produce one target owner, invalidating
old bindings and retiring nonadopted children exactly once. Failure after movement
traps; it does not return a recoverable partial conversion.
Keep the existing one synchronous upgrade/DTS policy. No continuation messages, background migration, dual schemas, call-denial state machine or local undo journal is needed. First prove one owner-local field change and child adoption; large stable-data migration/cost bounds remain separate application choices.
Protocol/runtime and algorithm follow-ups
Small source-linked leaves can proceed independently, without claiming durable
workflow correctness. Reactor PhysicalDisposition (source unavailable)
(22–58) distinguishes physical debt retirement from business acknowledgement;
ExchangeGuard::finish/Drop (503–524) is a later exact-completion consumer.
Do not turn an unknown outcome into proof that no remote effect may occur.
Rechain Reader::accept (source unavailable) (316 onward) accounts an actual outstanding request before response processing; archive Coordinator::finish (source unavailable) (409 onward) validates an accepted prefix before local release. These are promising future replay/accounting invariants, conditional on storage, exact saved bytes and cryptographic assumptions. Takt scheduling/fairness, logical and physical call counts, generation and durable uncertainty need separate proofs. A model with no implementation link is not a verified workflow runtime.
Executor/call cleanup, cryptographic algorithms and compression are outside this source audit's detailed coverage and the current checked foundation theorem. Their tests/benchmarks must not be relabeled formal proof. Keep them visible in the later inventory rather than claiming that a verified allocator downstreams their semantic correctness automatically.