Minima fixed-width stable collections — 21 October 2026

This experiment implements collection-controlled stable storage beneath the existing Store root. V2 and the selected v3 span change are independently qualified controls. Four further user-requested candidates pass a separate v4 sketches qualification followed by the selected v5 gate. All thirteen types are retained as specialized experimental options. The sketch runner populates only its owner and has its own row matrix; it does not requalify the original 159 rows in the extended actor. The v3 report and sketches v4 control and selected v5 report record actual whole-endpoint costs and tradeoffs. Handoff notes preserve the earlier checkpoint; they are historical, not the current selection status.

Physical design

cdk-rsx-engine-minima owns the stable block authority, fixed encoding and borrowed workspace. cdk-rsx-collections-minima owns the algorithms. Root and move-only collection descriptors, scalar lengths/seeds and block directories are retained Nyxus Data beneath ordinary private module memories. Stable payloads contain positional fixed-width data, not native Rust padding or pointers. Minima is not a third Store Memory selector.

Every collection owns complete, absolutely aligned 64 KiB stable blocks. Each contains sixteen aligned 4 KiB node positions; allocator metadata and other collections never share them. Whole blocks are reclaimed by Drop through the retained authority, without a provider call or active thread-local context. Reused owners/blocks change generation and are initialized before admission; maximum generations retire permanently. An empty descriptor can own no payload block. Reserved capacity is distinct from live encoded records and physical stable high-water cannot shrink.

One physical provider owns the stable domain. Hylix can borrow a single leased virtual contiguous image mapped onto disjoint blocks from the same authority. There is no independent second allocator. Root/provider leases reject duplicate safe bindings. Existing Hylix, Nyxus, Store, ABI, runtime and Wasm-tool source directories remain unchanged; Minima composition explicitly pays the mapping cost. The fourteen-directory proof is preserved in the review evidence.

Fixed encodings compile widths and offsets: LE integers, exact bytes/UTF-8 byte counts, arrays, tuples and records. There are no per-entry lengths, tags, truncation, ambiguous padding or arbitrary native dumps. FixedKey requires canonical equality bytes and a total comparison consistent with equality. Geometry rejects at compilation; live ownership, generations, bounds, configuration and external input remain checked. Owners admit engine and collection policies, concrete type contracts and custom interpretation inputs.

The caller owns one aligned NodeBuffer and lends a thin Workspace sequentially. Scalar reads fetch known fixed spans; grouped/tree operations fetch once per selected source page. No provider loan, workspace or node view crosses await. There is no automatic cache. Normal root teardown drops transient providers before KEEP; restoration admits the saved contracts, reopens Root, then reopens Hylix's unchanged virtual image. Unexpected mutation faults trap and use IC rollback, with no local undo journal.

Implemented roles and limits

Family Useful role Restriction
FixedVec Cheap fixed indexed reads, bounded scans and append/pop Values fit a node; whole-block rounding
SlotArena Fixed slots with owner-bound generation IDs and reuse 16-byte slot header; removed IDs cannot name replacements
BitmapSet Exact integer membership and bounded ranges Dense bounded domain; allocation follows highest inserted ID
FrozenHashMap / FrozenHashSet Exact read-optimized full-key buckets Finite whole-input build, duplicate rejection, bounded reseed/growth; rebuild for edits
FrozenSortedMap Ordered exact reads and contiguous-leaf scans Finite whole-input build and fixed inline values; rebuild for edits
FrozenPrefixSums Exact immutable nonnegative range sums Preflight total overflow; original values and point updates not retained
BlockedBloomFilter Miss-heavy prefilter before an exact index Positive requires exact lookup; no deletion; all-hit costs can regress
MinimaHll Approximate distinct-count updates, union and estimates Matching key/precision/hash/seed for merge; statistical accuracy, no exact set semantics

These are nine collection families when hash map/set are counted separately. Their useful domains differ; a frozen lookup result does not establish mutable map performance. The benchmark report retains cases where Nyxus mutation or scalar access is cheaper. Optional construction vectors and batch/sort scratch are finite but not free. Admission limits for a large immutable input must account for the complete transient builder, not just the 4 KiB node workspace.

The four additional candidates are Count-Min Sketch, blocked counting Bloom, Cuckoo filter and Binary Fuse filter. The native design record states their contracts and observed tradeoffs. Their original notes, byte-traffic screens, independent oracle vectors and licenses are being preserved separately. The v4 family-specific IC gate passes 144 series / 4,608 updates, nine complete profiles and four lifecycle stages. Qualification does not establish universal utility: low-frequency Count-Min precision is poor here, counting Bloom's 32-key mutation batch regresses, and fuse trades slower reads for less reserved space than the higher-accuracy Bloom control. V4 crossover probes select a Count-Min automatic threshold of 256 for v5. The selected expanded matrix passes 150 series / 4,800 updates, nine complete profiles and four lifecycle stages. Of 144 common v4/v5 rows, 143 have identical costs/replies; default128 improves 3.970%. The six added rows cover 256/512 explicit and automatic modes.

RingLog, FixedMultiMap and Column were deferred without implementation, not measured and rejected. No distinct scoped advantage was established beyond existing sequence carriers, composite fixed keys/ordered scans, or separately composed fixed vectors. No performance result is attributed to them.

What was measured

The historical raw ten-tree reference is preserved with its 32.2k complete/16.2k amortized lookup figures. It used a raw fixed-key tree without Store ownership, mutation or upgrades. It does not turn the current complete SDK endpoints into 16k operations.

The v2/v3 fixture populates one actor in prior committed calls and measures 32 fresh physical updates per series after a warmup. Fresh updates reset IC page tracking, not live engine cache history. Hylix controls pay the shared virtual map and all same-actor SDK costs. Complete endpoint instructions and body Counter0 remain separate; no no-op is subtracted as a universal base or pure CPU measure. Source metadata and heap/wrapper work leave roughly 0.9–1.0M complete instructions even when the selected scalar profile has an 8-byte/28-instruction stable API read. Copy bytes, first-read eligibility and complete call cost are different measurements.

Both qualified controls have 159 series, 5,088 committed updates, 17 complete bounded profiles and five actual lifecycle stages. Independent arithmetic checks reconcile every ledger and profile companion delta. Post-KEEP samples cover representative boundaries/interiors, not all 100k records. V1's 146 completed rows and stack-truncated sorted diagnostic remain a distinct failed partial qualification; no lifecycle pass is claimed for v1.

V3 fetches a minimum covering span per grouped source page and avoids redundant HLL populated-path allocation admission. The paired experiment improves distant32 FixedVec grouping by 11.258% and 99%-miss/100-key Bloom grouping by 5.327%. Scalar 1,000-key HLL rows improve 8.426–9.510%; P14/P16 batch rows regress 0.668–0.831%, with unchanged observed heap fees. The matrix's aggregate 0.699% decrease is a weighted diagnostic sum, not a production workload forecast.

Primary references and independent checks

  • Pagh/Rodler cuckoo hashing and cuckoo hashing with pages inform bounded two-choice full-key buckets. Their probability/load results do not guarantee this builder succeeds for arbitrary input; publication verifies exact coverage.
  • Parquet split-block Bloom supplies eight-lane masks over one 32-byte block. This is an algorithm over canonical fixed bytes, not a Parquet file reader or column encoder.
  • Official XXH64 v0.8.3 supplies the independently compiled C oracle; original BSD license and generated vectors are preserved. The independent review checks 1,747 C/Rust cases.
  • Ertl's HLL estimator supplies the highest-bit/rank geometry and improved raw histogram estimator. HLL++ supplies the nominal error/64-bit-hash context. The implementation does not claim HLL++ sparse or empirical corrections. The pinned author's oracle revision and vectors are retained; unlicensed upstream headers and downloaded papers remain external.
  • Cuckoo filters motivate partial-key alternate buckets and exact-presence-authorized deletion. Binary Fuse and its licensed reference inform the new immutable filter candidate; its qualified v4 evidence is separate from the original actor and its selected v5 gate passes separately.

Each owner's dated notes retain initial hypotheses, failed checks, exact source pins and native limitations. The custom PocketIC executable has a hash/version, computation catalog and matching listed IC working-file hashes. These pins do not establish a complete reproducible source-to-binary build of that profiler.

Packet status

evidence/packet.py prepares a content-addressed tar.xz with exact logical file hashes, canonical source archives, prepared modules/interfaces/receipts, raw traces, host sources, licensed oracles and all owner notes. It reconstructs original gzip bytes with their exact headers/DEFLATE recipes and checks the original hashes. Compiler binaries, native builder tools, raw/debug Wasm, PocketIC copies/state, targets, caches and raw downloaded papers are external and explicitly listed. The checkpoint predates v3 qualification. The sealed 32.11-MiB packet preserves exact prepared normal/reject artifacts and original gzip byte hashes; all 4,162 logical files verify. The packet instructions describe the exact-byte verifier and the frozen v4 Cuckoo report correction. A separate future capability audit is retained in notes/capability-audit/ inside the packet: it identifies retained metadata checks worth studying, with no implementation or measured savings.