Canonical memory32 and memory64 qualification — 23 October 2026
The canonical SDK now keeps wasm64 as its default and accepts an explicit wasm32 target. The focused source, build and functional lifecycle checks below pass for the exact recorded artifacts. This is not a 50k memory32 workload, capacity, latency, cost or near-address-limit qualification.
The inspected base was e5726ef3, with the new SDK edits present in its working
tree. That base commit alone does not identify the qualified implementation.
Each canonical SDK artifact captures 427 source/configuration inputs before and
after its build, plus the compiler, flags, source archive and output hashes.
Qualification pins all seven manifests and prepared Wasm
hashes. Complete immutable canonical capsules remain under
rrt/tmp/sdk-memory-profile-lifecycle-20261023T132618Z/artifacts32/ and
artifacts64/; do not discard those capsules with a compiler cache.
What changed and what was reviewed
Runtime geometry follows the compiled target. The native Wasm tool reads the module's memory declaration with the pinned wasmparser and independently selects memory32 or memory64. It never uses its host pointer width to choose artifact geometry. Memory64 retains format 3 and the 6 GiB limit; memory32 uses format 32 and 4 GiB minus one 64 KiB page. The page-table storage dimensions stay the same; the admitted claim bound differs. Small allocation headers preserve a 32-byte payload origin on actual 32-bit types.
Source review checked the IC import families and startup instructions: ABI-sized buffers/sizes/callbacks follow the module; timestamps, cycle quantities and all stable64 operands remain fixed-width. Unsigned memory32 constants retain their bits, memory.size widens unsigned before u64 arithmetic, memory.fill uses profile-width addresses/length, and passive memory.init source offsets/lengths stay i32. Fixed saved words remain u64. Raw geometry and clean-marker checks precede reset, catalog admission and retained pointer opening. The separate memory64-only page profiler passes its explicit memory64 import profile.
Pointer-sized public Wire fields were a real review finding: the former schema assumed both host and canister usize were 64-bit. Removing usize/isize WireType implementations makes such fields reject, including nested aliases. Actual public SDK/RRT DTOs audited here needed no migration; internal indexes and persistent native fields remain target-specific. Fixed-width DTOs and their native descriptors remain shared. Custom Serde/WireType implementations and application semantic contracts still require truthful author-supplied proofs; passing these fixtures is not a universal proof of their safety.
The first native attempt caught a missed page-profiler call argument; the second caught a negative fixture replacement that did not match its memory32 source string. Both were fixed before the passing rerun. Their byte-exact logs are preserved rather than relabeled as passes.
Focused checks
| Check | Exact evidence | Outcome |
|---|---|---|
| SDK native/tool/doc tests | Final native log | 125 total passes |
| Independent Wire clients | Wire authoring log | Fixed-width schema/extreme-value roundtrip passes; four pointer-sized DTO cases reject with only intended WireType E0277 diagnostics |
| Canonical SDK fixture builds | Commands and build results | Five memory64 variants plus memory32 normal/trap variants pass |
| Memory64 root lifecycle | Result, log | Four named groups pass: populated KEEP, bad source/policy rejection, late restore rollback, declared V2 conversion/publication and downgrade rejection |
| Memory64 Runtime recovery | Result, log | Five named groups pass |
| Memory32 Runtime recovery | Result, log | Five named groups pass |
| Paired profile rejection | Result, runner, log | Descriptor/runtime byte parity and both cross-profile KEEP directions pass |
The Runtime recovery checks store u64::MAX and another full-width scalar, then forget a 786,432-byte ordinary Vec and a same-sized Box. On both widths, committed memory stays at 257 pages and Store ownership stays at one page; Runtime ownership changes from one to 25 pages and returns to one after KEEP. Skip-pre-upgrade rejects. A late error after target save restores old code, retained values, byte witnesses and page authority; mutation and a subsequent valid KEEP succeed. Repeated cycles reuse the same committed capacity. This qualifies this small fixture, not growth near the memory32 address limit.
Both memory32→memory64 and memory64→memory32 populated KEEP attempts returned certified CanisterTrapped/unreachable. The old values and page authority were unchanged, the old canister accepted a new mutation, and a valid same-profile KEEP then succeeded. The mismatched saved geometry and raw startup ordering explain the expected guard rejection; no captured function trace independently locates the unreachable. The distinct same-width corrupted-word cases remain a separate negative-test obligation and are not claimed by this result.
Server, storage and reproduction
All passing IC checks used PocketIC SHA-256
360cc26cccf9d90d38070ed8d7104f4b4a2ca4e586b197af6f1cdd47e9c9fd67
on a separately owned server started with explicit --ram.
The server's /storage proof reports ram_backed: true
and /dev/shm/pic-SCHKfc. All four instance slots
reported Deleted before the owned server received
SIGTERM. No other server, instance or cache was removed.
The SDK harness's default child-server path omitted --ram; the first attempt
was cancelled after preserving its handles and log. It is recorded as a
configuration mismatch, with no claimed
SDK result or timeout diagnosis. Fresh attempt2 used RRT_PIC_SERVER_URL, which
the unchanged runners already support.
The lane used pinned nightly-2026-10-15, CARGO_HOME
/tmp/showtime-xchacha-cargo, exclusive CARGO_TARGET_DIR
/tmp/showtime-sdk32-lifecycle-target, 12 Cargo jobs and locked offline builds.
Related artifacts used identical build paths and canonical profile/debug
settings; only the intended target and application fixture features differed.
Exact canonical commands and
runner commands are retained. The existing original SDK
chat-rsx node_modules was linked read-only into this worktree; no dependencies
were installed. Use a fresh output/instance and verify the selected server's
storage mode when reproducing; a binary hash alone does not select RAM mode.
The copied cross-profile runner is byte-identical to the executed attempt2
source. Its artifact paths are relative to its attempt directory: place it in a
fresh sibling attempt beneath the canonical receipt root, whose parent contains
artifacts32/ and artifacts64/, before rerunning it.
Parent-owned application evidence
Parent qualification records exact source/manifest,
artifact, receipt and copied-log hashes for the separately run Showtime checks:
97 application native tests; memory32 public-view 6, encrypted 11 (including
an old-key sealed query after KEEP), controlled 14; and memory64 controlled 14
including populated KEEP. The prepared application hashes are
7932aa8730e0a2269aea266317098362193f715c2d80f7bdfdf7bfc53fc0b63a
(memory32) and
00fcfa8cecf4ef8dd85373ebadd865d065819049eeebbe77fbba35013fd25b9d
(memory64). Each application capsule records 2,528 source inputs; these are
separate from the SDK fixture's 427-input capsules.
The fresh application Wire JSON and generated JS/TS runtimes are byte-identical
across the two builds. The JSON hash is
8901d7820efa6f8c16065e6aa4e9aa4d9d300c8c7b85658235cda3c23d6b21fb;
the full runtime hashes and source archive references are in the JSON receipt.
This lane checked the parent receipts and file hashes rather than rerunning
those unchanged application gates.
Limits
No 50k populated memory32 workload, sustained SLO, replicated-cycle saving, near-4-GiB growth/headroom or instruction/page-cost comparison is qualified here. SDK page-profile rewriting remains memory64-only and explicitly rejects memory32 markers. Server tracing and new exact-artifact attribution would be needed for performance claims. The preserved format number does not bypass compiler, layout, policy or semantic admission after future source changes.
Logs and JSON files preserve failures, scope corrections and exact result boundaries. SHA256SUMS seals this research copy; the canonical artifact directories retain their own completion checksums and full capsules.