RRT computation reset

The user explicitly permits replacing the Store, collection APIs and RRT internals, including independent implementations. Keeping the current machinery working is not an experiment constraint. Preserve the application's actual workflow/effect behavior and benchmark limits; label any narrower persistence/lifetime guarantees. Experiments are not production qualification.

The frozen ordinary timer-500M control is af2eb51d, built from f95f0651 (integrated in main as 5d51dada). Its complete Heavy16 run costs 386.486B instructions, including 69.844B heap-page charges. Current Motoko costs 144.742B, including 73.757B heap-page charges. Both finish the same 19,200 workflows, 594,000 visits, 180,000 endpoint deliveries and 27,600 blocks. The matched comparison records the remaining source differences and exact observation. These residuals are not pure CPU.

Experiment Machinery replaced Main question
Derived scheduler indexes Persistent ready/call/coordinated queues and wake index Can saved workflow phases remain authoritative while private heap indexes handle ordinary scheduling?
Execution lifetime regions Per-object ownership edges inside one execution Can one execution attachment govern bounded reclamation, accepting longer retention of intermediate allocations?
Direct native integer table B-tree index plus private value-slot lookup for execution/node heads Can typed direct slots remove layers of native object access while retaining required ownership and iteration?
Closed typed root runtime General Store object identity, codecs and ownership graph How close can new native collections get to heap execution while surviving an explicitly narrow, exact-layout KEEP upgrade?

The first candidate aims at normal lifecycle qualification. The radical region and closed-root candidates must state unsupported cases before their results are interpreted: cross-region references, dynamic module removal, changed-layout conversion, old transient allocations and in-flight physical callbacks are not implicitly solved. A computation floor is useful evidence without being a complete replacement SDK.

Each lane uses an isolated sparse worktree from 8836ac6e, writes outputs outside that checkout, and coordinates native/Wasm build-target ownership. Qualify source and behavior before measuring; select with complete Heavy16 instructions and report latency, memory and lifecycle tradeoffs. Reuse the unchanged control. No neighboring repository is writable.

The existing instruction-profile feature has completed on unchanged control source. It raises complete-workload instructions by 1.077%; this diagnostic artifact is never used as a performance candidate. The independent profile review and reproducible audit identify workflow-step bodies (208.327B) and completion bodies (53.534B) as the largest measured areas. All operation entry/exit spans together are 9.152B, 2.343% of primary instructions. Store operations inside the bodies are still included; this does not isolate their cost. Inclusive nested phases must not be added. IC review covers host tracing and KEEP constraints.

The additional completion experiment collapses repeated lookup, payload lifting and node rewriting for a single authenticated completion. It preserves mailbox visibility while invoking the synchronous reply mapper and retires the mailbox after mapping. The independent completion review passes ordinary Heavy16 and actual-IC mapper rollback, immediate replay, timeout, unresolved identity preservation and late reply after KEEP. It saves 6.07% from the qualified scheduler runtime, or 19.26% combined from original af2.

Compact diagnostic build receipts and canonical metadata are in profile-build/; the exact unchanged source archive is already preserved with the admission-aligned control. The full diagnostic run is stored beside the matched control under page-locality runs. Candidate qualification remains separate: native tests alone do not establish IC rollback, upgrade safety or a performance improvement.

The scheduler implementation is selected and integrated in e4883a4f: complete Heavy16 instructions fall 14.04%, with identical work, improved latency and slightly lower grown memory. Actual IC rollback, immediate retry, KEEP recovery and restored timers pass. The standalone direct-table candidate regresses instructions 5.65% and is not integrated; its representation is being replaced. Execution lifetime regions save 3.15% instructions but remain an isolated experiment with narrower lifetime guarantees. Their results are not additive.

The closed native root review audits 121.861B complete Heavy16 instructions: 15.81% below current Motoko and 68.47% below af2 RSX, with the same completed work. It takes 51 rounds versus Motoko's 47. Actual exact-artifact/full-drain KEEP, post-KEEP work, pending-work rejection, changed raw-artifact rejection and allocator update-trap rollback pass. General typed root upgrades, in-flight upgrade recovery and bounded transient memory across repeated KEEP remain absent, so this is a measured architecture prototype.

Qualified comparison and selected direction

Ordinary complete Heavy16 Instructions Change from original RRT Rounds Decision
Original RRT control 386.486B — 64 Frozen comparison
Derived scheduler indexes 332.208B −14.04% 62 Integrated
Scheduler + completion coalescing 312.052B −19.26% 62 Integrated
First direct-table design 408.304B +5.65% 77 Rejected
Execution lifetime regions 374.324B −3.15% 67 Isolated; narrower lifetime guarantees
Minimal persistent runtime 121.861B −68.47% 51 Selected foundation; limited upgrade support
Current Motoko 144.742B −62.55% 47 Matched language/runtime comparison

Every row completes the same requested work; see the individual independent reports for source differences, memory, latency, trace boundaries and exact qualification. Improvements from separate branches cannot be added. The minimal runtime uses fewer instructions than Motoko but takes more rounds. Its current exact-artifact/full-drain upgrade boundary is narrower than the ordinary SDK.

The user selected the minimal runtime as the main development path. New work focuses on explicit retained allocators, native collection APIs, root-owned opaque modules, typed owner-local version upgrades and complete transient teardown. The compact-table revision (4a2e9287, 250 native tests) and cold-task revision (3b26286c, 76 native tests) were frozen before Wasm/performance qualification when the effort moved to the new foundation; neither is selected or treated as a measured improvement.