Historical research supporting the persistence kernel
Research date: 15 October 2026. All source repositories were inspected read-only.
Only /srv/shared/code/icrustmem/ contains work produced for this task.
These notes preserve the source research and Draft 2 proposals from that date. They distinguish public platform contracts, observations of pinned revisions and proposed design consequences. An inspected upstream revision is not evidence of the replica version or configuration deployed on a particular subnet. The original study produced no Rust implementation or performance measurements; the project has since implemented and measured the system described below.
For the current system, use the whitepaper, application conventions, SDK guide, backend contract and verification record. The research index links subsequent evidence. In particular:
- cdk-rsx supports wasm64 canisters with one modern runtime and Store. The temporary wasm32 option has been removed; its dated target experiments remain historical evidence, not supported build instructions.
- One Store combines retained main memory and stable64 storage. Shared metadata remains retained, so the entire hybrid requires KEEP upgrades.
- Generated root hooks check runtime quiescence and saved contracts, run typed conversion synchronously under IC installation rollback, and restore runtime bindings. DTS slices do not publish partial conversion or reset its total budget.
- Persisted handles and counted ownership drive bounded reclamation. The Store does not persist arbitrary Rust heap objects, trace a garbage-collected graph, or maintain a local rollback journal.
The historical notes are:
- IC execution, paging and metering: memory units, native stable-memory paths, local/upstream differences, rollback, queries and timers.
- Motoko and mo:fast: what their implementations do and which mechanisms can transfer to Rust or a generated runtime.
- Collections and actual workloads: storage layouts, ownership, allocation, API costs and library-specific requirements.
- Toolchain and backend opportunities: generation, compiler/Wasm integration and the retained-arena alternative.
- Design review: material review findings, resolutions and the original qualification gates.
- Draft 2: the superseded proposal, retained as history.
The current solution is in kernel.md. The larger port inventory is needed.md. Historical proposals below are not alternate supported APIs or evidence that a currently implemented feature remains absent.
Source baseline
| Source | Inspected revision |
|---|---|
| Takt | b7d4291088472309775676a0e7ffaa1da9ce421d |
| Reactor | be86e32e6638a2eee7439dfd4a889b654ac651ee |
| Rechain | e3e0f24e2f01f6b0239591fc093d134037c5d9ff |
| Motoko compiler/RTS | 9f6ebeedc547e389a0529b4c91442e46b88fcbe0 |
| Motoko plugins / mo:fast | d635e59a6dcb23f0ca7a89ddc12b6ec93845e1b3 |
| Local stable-structures | b5d1650463f477affb3d358e86b1113953fc9937, package 0.7.2 |
| Local IC replica | 60344996b38c27481445fb45b8f4372cb2673768, 31 March 2026 |
| Remotely inspected IC replica | 7975589f1cba0bd3a73a1cb5287a20aa9be0ac29, 15 October 2026 |
| ic-memory evaluated API | 2c4a6871a805214628b35a634fba65e968e7e1ee, 0.41.0 |
| mosup | Takt vendored 0.1.1 |
The actual Motoko compiler checkout is
/srv/shared/code/motoko_experiments/motoko_sha; the initially suggested path was
absent. The IC checkout is /srv/shared/ic. Its older implementation is valuable
for comparison but must not silently stand in for current upstream behavior.
Evidence discipline
A source fact describes the cited revision. A design implication is our inference from those facts. A benchmark hypothesis requires measurement. The original backend, tree, cache and compiler alternatives were hypotheses. Current choices and their measured limits belong in the linked implementation and verification documents. This is an unreleased prototype: obsolete internal formats are rejected, without compatibility adapters or speculative migrations. Application memory-version conversions remain explicit compiled contracts.