Collections and Ashroot: residual risk after batch 12

Read-only source review, 7 November 2026. Factory 9303c47e54c4b4e9f0e90d57cd9b23cad938e1dc; SDK 16bbcc1f2f4a312631cad3ce74c6b2f044d09cd3. No builds, tests or provers ran. These are ranked verification targets, not confirmed defects. Likelihood labels express engineering judgment about the interaction, independently of proof absence.

Reviewed the current foundation/memory-integrity maps, batch 12 C/I/F/G/M, batch 11 packed-node/integrity/shape scopes, and the actual paths below. Their conditional proofs remain useful; a supplied decoder, logical index or valid deletion plan does not establish its physical producer.

1. Consuming migration: target construction must not invalidate unread source

Source: SDK map_build.rs (source unavailable), Drain::next lines 40–73, build 111–137 and values 142–167; transform.rs (source unavailable) 17–28; Ashroot stable.rs (source unavailable) 333–355. Missing guarantee: each callback consumes the next exact key/value owner; target allocation may reuse only exhausted source blocks; every unread source child remains live; the target owns every preserved child once and every removed field retires once. Source exhaustion and builder completion must terminate. Adding/removing fields can change source/target capacities, so their subtree boundaries need not align. The source releases exhausted nodes while recursive target allocation and mapper allocation are already running. Already checked: B12-C gives ordered/count partial correctness under immutable Decoder laws; B11 shape exports have an explicit unjoined bounds premise; B10 uses five rows, equal capacity three and monotone six-slot allocation. The actual 2,048-row native conversion is valuable finite evidence, not reuse or arbitrary-capacity ownership induction.

Why fuzz is weak: correct output bytes/counts do not establish that unread blocks remained protected at every allocation, or distinguish inert snapshots from transferred owners. Reuse timing and different tree shapes multiply cases. Impact very high; likelihood medium, confidence in prioritization high.

Smallest advance: source-preserving Creusot proof of actual recursive build against a consuming ordered-stream contract, first joining B11 distribution to the actual bounds call. Then compose with C using a decreasing valid-forest rank and a source/target/free block partition. Keep real allocation/codec authority as an explicit dependency until refined; numeric IDs are insufficient. Negative controls: wrong separator consumption and allowing reuse of an unread block. Difficulty high; the first builder contract is a useful independent cut.

2. Packed deletion: a missing key can still restructure and free nodes

Source: SDK map.rs, remove_entry 737–752, collapse_root 754–760, remove_from 762–815, strengthen_child 819–893 and take_edge 897–913. Missing guarantee: rotations, separator replacement, merge and root collapse partition node and nested-row owners exactly. A miss preserves all logical rows and row owners even when it merges children and frees an empty root. This is a normal history after prior deletions; physical topology need not remain unchanged. Branch left rotation additionally relocates the old first child after open_entry, unlike ordinary insertion. Already checked: B11 byte movement is u8/u8; B12-I generic split conserves supplied existing-edge fragments but exports only narrowed open_entry facts. No full removal/resource theorem follows. Native adversarial tests explicitly cover both rotations, merges, internal replacement and absent-key collapse; wide/owning native witnesses further reduce concern about simple branch errors.

Why fuzz is weak: lookup agreement and aggregate drop counts do not establish the complete node/child-owner partition throughout recursive repairs; ordinary no-change-on-miss assertions would also demand the wrong physical contract. Impact very high; likelihood medium, prioritization confidence high.

Smallest advance: prove one actual branch-left rotation with an exact ordered row/child image and outside frame, then its exclusive edge partition; follow with one actual merge plus root-collapse miss caller. Reuse B11/B12 movement lemmas, adding phase-local generic-width frame lemmas rather than a larger SAT image. Physical deallocation requires a supplied genuine block capability, not just a fresh-looking ID. Negative: retain the rotated child at its old logical position, or free a surviving child in the collapse caller. Difficulty medium/high.

3. Hylix primary-row adapter: snapshots, transferred input and displaced owner

Source: Ashroot stable.rs (source unavailable), get 208–216, put 287–303, edit/remove 310–327 and backend guards 413–430; database.rs (source unavailable), separate preflight/commit 828–869. Missing guarantee: preflight lends an inert decoded old row; refusal disposes only the new actual input; approval installs that exact owner and retires the displaced actual row once, preserving neighbors and primary/index correspondence. Index commit precedes put; any subsequent storage/retirement failure must reach the fatal boundary, never return an apparently recoverable partially written DB. Already checked: B11 scalar laws and B12-F's one-key affine Entry client do not execute this stable carrier path. B12-G checks emitted zero/two-field owners and loans through another Storage seam. Actual native stable tests already check noncloneable payload insertion, uniqueness refusal, replacement and destruction.

Why fuzz is weak: raw snapshots and actual owners can encode identically; content-only checks cannot establish which one was retired. Impact high; likelihood medium, prioritization confidence medium/high.

Smallest advance: Kani exact put/remove with actual Owned/ContextLoan and actual small Hylix Map, real owning codec and bounded initialized Storage; keep a neighbor and inspect natural retirement. Avoid the capped std-BTreeMap route. First export the adapter theorem under a truthful Map owner contract if needed, clearly separate from its eventual concrete Map refinement. Include scalar preflight refusal and forced postcommit fatality. Negative: treating decoded Drop as actual retirement. Difficulty medium conditional, high joined.

4. Migration rebuild: exact traversal must establish target reverse indexes

Source: Ashroot migration.rs (source unavailable), rebuild 150–176, Sink::store 73–89, HylixValues 339–358, validate_table 771–823 and try_migrate validation suffix 918–934. Missing guarantee: after an exact key-preserving row transformation, fresh indexes equal the target projections, uniqueness holds, and deferred FK checks refer to the complete target schema. Counting visited == count alone cannot prove exact-once coverage; that must come from the traversal producer. New target relations can point to tables built later, with tables reordered or omitted. Already checked: scalar one-row maintenance and finite grouped deletion; no source theorem currently joins the rebuild fold to complete target validation. Native migration tests cover reindex, reorder/add/seed, sparse references and late failure; installed rollback remains a separate execution assumption.

Why fuzz is weak: individually plausible row and index counts can coexist with a wrong membership relation; the oracle must independently compute all target references. Impact high; likelihood medium, confidence medium. Smallest advance: Creusot actual rebuild fold over an exact traversal law, then actual visit_references/validate_table proving every emitted target edge is checked against the target handles. Use pure projection/backend laws explicitly; do not assume coherent output indexes. Negative: correct counts with one omitted reference, and a target lookup bound to old positions. Difficulty medium.

5. Reverse-index enumeration into the whole deletion frontier

Source: index.rs (source unavailable) Foreign::incoming 491–499 and Cons dispatch 768–791; database.rs (source unavailable) Head::incoming 148–172 and child recursion 489–497; planner.rs (source unavailable) 88–172. Missing guarantee: each actual reverse entry produces exactly its table, index, key and rule; the frontier reaches all cascaded rows, terminates on cycles, and final null intents exclude rows later cascaded. Restrict is intentionally immediate, even for visited rows; a SQL final-state oracle would be incorrect. Already checked: local admit/charge/SetNull and a supplied three-row plan; native cycle/restrict/mixed-policy tests do not prove the enumeration-to-plan join. Why fuzz is weak: a model using the same reverse index can share an omission; duplicates, table-local equal keys and discovery order complicate independent oracles. Impact high; likelihood medium/low, confidence medium. Smallest advance: first prove actual Head/Cons dispatch completeness against the compiled metadata plus exact OrderedStorage::equal law; then source outer loop induction consuming checked admit/SetNull, with finite graph/edge ranks and unchanging graph premises. Do not start by enlarging the supplied-plan fixture. Negative: omit a nonhead foreign index or retain an intent for a deleted row. Difficulty medium dispatch, high full frontier; physical indexes remain a separate refinement dependency.