Consuming migration and bulk construction experiments
Status: completed and selected on 18 October 2026. Allocation-group trimming,
the allocation-history Map writer, ordered Map copies / Set merge constructors,
and sequential Hash batches / direct frozen source reads are integrated.
Consuming P0/P1 and grouped Hash target construction are rejected research.
The selected SDK inventory is 08c42ef5… (361 inputs). Final checks pass:
1,388 Rust executions, thirty fresh PocketIC correctness Wasms and selected
current-API coverage of 3,072 cases / 9,216 samples. See the
selection report,
qualification packet
and performance packet
for the separate artifact scopes and accepted small residuals.
Baseline: 1eadee26811bbee62521ae24abee52154adda695.
Five isolated worktrees investigated allocator reuse, consuming installation
execution, Map/Set sorted construction, HashMap/HashSet grouped construction, and
independent IC qualification. Worktrees and build outputs live under ignored
tmp/2026-10-17-bulk-migration/; reports, sources and compact raw evidence belong
under this research directory. Each lane owns its same-named subdirectory.
Boundaries
- Allocator: reusable source-group fragments and measured reclamation overhead.
- Driver: explicit consuming authority and installation continuations, initially a flat reference-free sole-inbound Map. No silent change to replayable adapters or staged source-preserving abort semantics.
- Map: collection-owned sorted writer, ordinary-operation geometry and actual payload capacity. Research previous rejected policies before writing another.
- Hash: collection-owned grouped construction and source traversal; HashSet shares HashMap. Private pools are not regular Map allocation groups.
- IC: primary-source research, target constraints, actual wasm64/PocketIC tests, source/artifact attribution, rollback and performance review for every lane.
Store remains collection-independent. Static proofs belong in compiled contracts where possible. Persistent failures use IC rollback; no journal or transaction layer. Converters remain module-local. Changing a prototype is permitted, but surviving aliases, source reads and adopted resources require explicit semantics.
Acceptance
Research and profile before choosing an implementation. Compare each frozen candidate with the exact baseline before combining it. Builders must outperform successive insertion on measured cohorts without material regressions in later lookup, iteration, replacement, growth, removal or memory costs. Cover retained and stable placement, fixed/variable/heterogeneous values and allocation/split boundaries, including the previously failing payload-growth probes.
Consuming experiments must demonstrate destination reuse of released source space, not only lower source live counts. Measure complete conversion/cleanup, allocation/reservation peaks and backing growth; report instrumented peak runs separately from uninstrumented instruction measurements. Frees do not shrink already grown IC memory or reset finite installation/page-access budgets.
Use existing canonical wasm64 tooling and the Rust PocketIC client. Verify exact data/order, attachment/alias identity, reference accounting, reopens where the contract permits them, early/middle/late traps and restoration of callable V1. Use bounded transient input; do not collect entire large sources to sort them.
After lane gates, integrate the measured winners, run workspace/static and actual IC checks, and compare the final source's normal-operation benchmarks. Remove rejected production paths, retain clearly labeled research evidence, and update current design/user documentation only for accepted behavior. No compatibility adapters for discarded prototype code.
Resource discipline
At most five active subagents, no nested delegation. Shared caches/toolchain are read/reused; each lane names its own output paths and records source and Wasm hashes. Prefer debug=0/incremental=false for native research builds and bounded Cargo concurrency. Do not duplicate old Wasm archives or dependency caches. Each lane reaps its own PocketIC servers. Remove newly obsolete build/worktree output after evidence is preserved; never remove another lane's active files.