Ordinary Rust allocation and bounded startup

Control source: 32d14cb6. This follows the Rust page-control study. Ordinary Rust values remain transient and valid across calls/await until dropped. Current behavior is described in runtime memory.

Decisions

Trial Outcome
Bound startup reset to linker-declared statics/BSS Selected; actual install, KEEP and first/restored actions pass
Dense runtime slab/buddy geometry, v2 Rejected after complete workloads despite strong SDK microbenchmark gains
Precomputed class facts with baseline allocation geometry, v3 Not selected: instructions improve in both engines, but Hylix latency regresses
One-page warm allocator cache Rejected; mixed complete instructions rise 1.92%
Cache plus dense geometry Rejected; 0.62% worse than dense alone, extra HashMap regions
Lazy executor context Rejected; modest mixed gains, no real Store first-action page saving

The next four paper-guided trials are independent hypotheses, not installed defaults.

Bounded startup

The canonical transformer fills only [STACK_SIZE, __data_end) before replaying initialized data. Build-time checks include zero BSS/TLS omitted from active data segments and require all initializers to fit. Bootstrap admission, clean-marker checks, provider recovery and original Wasm bodies remain unchanged. Fresh instance globals supply the stack pointer; old stack bytes and unused static capacity need no clearing. This is not secure erasure.

The small SDK fixture's install/init falls from 8,983,614 to 2,125,223 instructions and 36 to 6 accessed/dirty regions. Complete old-pre/new-post KEEP falls from 20,529,690 to13,671,299. All 352 warmed operations and every first/restored operation have identical counters. These ratios are not projected onto larger applications.

A real pinned Rust fixture checks all 131,073 BSS bytes, initialized data and TLS after baseline→candidate and candidate→candidate KEEP. Retained contents and occupied page IDs survive. Skip-pre attempts reject, old state stays usable and a subsequent valid upgrade succeeds. The runtime observation checks rounded page IDs; source review separately establishes that startup leaves retained pointers untouched.

Why dense v2 was rejected

Dense v2 uses aligned slots and header-free buddy blocks for ordinary runtime allocations, plus compiled class facts. It preserves original Layout-based free, failed-realloc ownership, dirty-byte zeroing and immediate empty-page return. There is no per-object descriptor or empty-page cache. Nyxus retains a separate allocation policy. The prototype source contract changes deliberately; no old recipe adapter is introduced.

In 11 SDK cases, each averaged over 32 complete physical update calls after prior population/warmup, improvements range from 7.37% to 46.85%. Every non-page remainder also improves; that remainder includes all non-page charges, not pure CPU. The fixed live runtime footprint falls from 10 to 8 provider pages. Eight 20 MiB burst/drop/regrow cycles plateau; all 320 released pages are reusable by Nyxus. Real await, query isolation, trap rollback, alignment, zeroing, failed realloc and checked KEEP pass. Those results did not predict the complete workload:

Complete Heavy16 Control Dense v2
Nyxus replicated instructions 105,147,079,081 105,614,693,981
Nyxus heap-page component 61,367,040,000 62,525,200,000
Nyxus completion rounds 49 49
Hylix replicated instructions 382,407,040,226 374,402,998,004
Hylix completion rounds 66 68
Hylix p50 latency 19.8s 22.8s
Hylix p95 latency 28.2s 28.8s

Nyxus total rises 0.445%; extra callback/receive page fees outweigh other savings. Hylix instructions fall 2.093%, but completion time rises 3.03% and p50 latency 15.15%. Hylix stable high-water also rises. Both perform identical verified work with no traps/reoffers. Main retains baseline geometry; v3 isolates class computation.

Class facts v3

This isolates precomputed class geometry and inlined lookups while preserving the baseline allocation sequence. Native differential testing verifies 21,302 operations and 4,316 provider events; the SDK fixture has identical absolute page ranges for all 352 ordinary update calls, with lower total instructions in every case.

Complete Heavy16 Control Class facts v3
Nyxus replicated instructions 105,147,079,081 103,154,480,514
Nyxus completion rounds 49 49
Hylix replicated instructions 382,407,040,226 372,313,517,155
Hylix completion rounds 66 69
Hylix p50 latency 19.8s 21.6s
Hylix p95 latency 28.2s 28.8s

Nyxus instructions fall 1.895%, with unchanged latency/work/capacity and slightly fewer page charges. Hylix instructions fall 2.639%, but completion time rises 4.55% and median latency 9.09%; stable high-water rises 1,835,008 bytes. The strict audits pass correctness and source integrity for both; this standalone candidate is not selected under the latency gate. Allocator computation is not the whole workload: budget-driven scheduling can change after instruction reductions.

Comparisons and strict audit receipts preserve these decisions. This receipt bundle does not reconstruct the candidate's full raw traces; that scope is explicit in its manifest. All original traces remain in the ignored experiment results. The SDK v3 source/trace packet is below.

Other findings

The earlier lazy executor patch contained a real destructor-spawn ordering bug. Eager, failing and corrected regressions are preserved. The corrected candidate saves roughly 800 initial-action instructions but no pages in the actual Store fixture; its aggregate gain is 0.36% with mixed regressions. Main stays eager.

The first complete capture overflowed the shared trace-cost budget during post-drain observer queries. It is a failed evidence run, not a runtime failure. The harness now exports between observer batches and canister audits without changing calls, rounds or limits. Two regression tests cover export boundaries and failure propagation. The source auditor also resolves graph paths from the canonical manifest's worktree root, still requiring exact archived byte hashes.

Reproducible evidence

Packet hashes pin selected and rejected source, artifacts, compact traces, profiles, failed attempts and verifier scripts. Build targets and server binaries are not archival evidence.

Packet Scope Verification
startup Bounded reset and real BSS/TLS/KEEP checks python3 evidence/verify-startup.py evidence/startup.tar.xz
compact v2 Exact SDK fixture, patch and micro results python3 evidence/verify-compact.py evidence/compact-v2.tar.xz
dense v2 complete runs Four full runs, startup cohorts, diagnostics and rejection Extract; run its v2-evidence/verify-v2-evidence.py
class facts SDK v3 patch, native sequence proof and equal physical page sets python3 evidence/verify-class-facts.py evidence/class-facts.tar.xz --repo ../../..
rejected caches Warm-page and combined variants python3 evidence/verify-caches.py evidence/rejected-caches.tar.xz
rejected lazy context Lifecycle ordering and measured rejection python3 evidence/verify-lazy.py evidence/rejected-lazy.tar.xz

Commands assume this directory. The dense-v2 packet reconstructs exact decoded HTTP JSON, retaining original gzip-container hashes separately. Its lean source capsule omits the full compiler/registry/debug inputs, so original strict live audits are retained receipts rather than independently rerunnable from this packet; LIMITATIONS.json makes that scope explicit. None of these offline verifiers reruns builds or actor behavior.