Promotion: the selected implementation now lives in
ver1/crates/andrrt/. This directory is frozen experimental evidence. Earlier text below records its source boundary; the live research prototype is superseded. The last pre-promotion timer artifact is 115.089B / 49 rounds; see its exact qualification and the current whitepaper for implementation/limits.
Composable native runtime qualification
The actual IC nested-root gate passes on frozen source e8b99fba. This is the
next runtime foundation, separate from the frozen closed-root Heavy16 artifact.
The result records 13 checks, exact Wasm hashes and
before/after snapshots. Four compressed build manifests preserve the compiler,
features, source pins, commands and outputs. Each build verified 603 inputs and
outputs with unchanged source and checksum-based Cargo freshness.
The test installs a root with a child map and a branch containing another child. It populates native values, moves children, rejects an ownership cycle, retires a forgotten detached ticket and rejects stale bindings. Changed business code survives KEEP. Repeated KEEP clears a transient Rc cycle and one transient alias to retained data before startup; the alias count remains exactly two after bind. Skipping old-code teardown and changing the actual V1 layout both reject.
V1→V2 calls child-owned conversions. An intentional trap after those conversions restores the old code, native state, allocator and usable services. A successful conversion preserves the root vector buffer at address 2,240,544 and child byte buffer at 2,236,448, while adding new fields. Later appends, child management, already-V2 KEEP and fresh V2 installation also pass. These addresses are fixture observations, not application-assigned locations or a promised placement policy.
The runner uses the existing typed Wire client and picjs with normal IC limits,
DTS enabled, and pinned server 1fc9e6f5…. It deletes only its own instance. The
source variants are independently compiled; no binary is patched to manufacture
a layout change. Reproduce with lifecycle.mjs --source-root=... --v1=...
--business=... --v2=... --incompatible=... --output=... --pocket-ic=..., selecting
the four artifact directories from the result and a new output directory under
rrt/tmp/perf-round12/minimal-upgrades/. RRT_PIC_SERVER_URL selects a shared
server. The initial run also passed; the recorded second run adds the explicit
pre-conversion snapshot to the receipt.
The full RRT integration is independently built from eb8ca683, Wasm
84f8084c…, with 650 unchanged source inputs and the identical public Wire
interface. Its application lifecycle result
passes 60 heavy admissions, drained KEEP preserving durable stats and sampled
block bytes, another 60 admissions, pending-work rejection with an unchanged
snapshot, and completion of the original wait before another KEEP. The
build packet includes the source archive.
| Matched Heavy16 | Complete instructions | Included heap-page charges | Rounds | Grown Wasm memory, fleet |
|---|---|---|---|---|
| Previous persistent RRT | 386.486B | 69.844B | 64 | 626.44 MiB |
| Frozen minimal control, limited lifecycle | 121.861B | 78.928B | 51 | 270.44 MiB |
| Composable native runtime | 147.933B | 89.179B | 51 | 391.31 MiB |
| Controlled Motoko | 144.742B | 73.757B | 47 | 3,072 MiB logical capacity |
The independent replayable audit checks all 19,200 workflows, 594,000 visits, 202,800 attempts, 180,000 deliveries, 360,000 frames, 27,600 blocks, 1,024 typed block samples and sixteen certified tips of 1724. All work drains, with no errors or reoffers. Admission-to-completion latency is 4.8s median, 13.2s p95 and 20.4s maximum. These are single matched runs, 500M turn budgets, normal IC limits, and complete finished replicated traces including ordinary maintenance. Page charges are already included in instructions. Aborted DTS attempts and scheduler-only accounting are not represented; grown memory is neither live payload nor resident RAM. Newer independent Motoko candidates are reported separately.
This foundation reduces complete instructions 61.7% versus previous RRT, but is 2.2% above controlled Motoko and 21.4% above the limited minimal control. The performance goal remains open. The merged prototype workspace also passes 214 native and documentation tests, with no failed or ignored checks; its compiled sources match the qualified artifact. Most additional computation appears in Reactor turns; payload allocation and repeated scoped metadata access are the next experiments. Successful work counts alone are not recovery proof; actual callback cleanup has a separate fixture. Upgrades still require business and transport drain. Arbitrary Rust types/compiler changes and stable-backed collection integration are not qualified here. The earlier native core review and its 46 checks are recorded separately.
Measured access simplifications
Two isolated ordinary artifacts preserve the same checked workload and each pass the five complete-app lifecycle checks. The compact-access change reads only the live slot fields required by a bound service, preserving all previous checks and avoiding a copy of the cold semantic/physical contracts. Takt batching lends one state guard across local scheduling decisions, releases it before application callbacks, and skips metric writes only for events with no counter effect; enabled history tracing still runs.
| Candidate | Complete instructions | Included page charges | Rounds | Grown Wasm, fleet | p50 / p95 / max latency |
|---|---|---|---|---|---|
Composable baseline 84f8084c |
147.933B | 89.179B | 51 | 391.31 MiB | 4.8 / 13.2 / 20.4s |
Compact access d2f8f6e5 |
141.875B | 88.767B | 51 | 399.69 MiB | 4.8 / 13.2 / 21.0s |
Takt batching 627429ac |
144.802B | 87.846B | 51 | 398.88 MiB | 4.8 / 13.2 / 21.0s |
Combined b46bf9ea |
141.227B | 88.929B | 51 | 400.50 MiB | 4.8 / 13.2 / 21.0s |
Both are accepted for their complete instruction reductions (4.10% and 2.12%),
with the small capacity and maximum-latency increases recorded above. Source
commits are b7c40b62 and e28bf4f0; their build packets and actual lifecycle
results are beside each audit. The combined artifact independently passes the
same exact-work audit and all five application lifecycle checks. Its improvement
is 4.53% against the composable baseline and 2.43% against controlled Motoko;
the isolated savings do not add. It retains the 51-round result and uses 2.35%
more grown Wasm capacity than the composable baseline. The performance target
remains open, including the newer independent Motoko results. All measurement
boundaries above remain unchanged.
Shared immutable payloads
The source-owned SharedSlice<T> / SharedString carrier puts its reference
count, length and immutable elements in one retained allocation. It replaces
Rc<Vec<T>> for shared transport bytes, routes and workflow child arrays.
Uniquely owned Rechain history uses retained Vec directly. Actual header and
element layouts plus the exact tail/count/drop source are certificate inputs;
unsupported private standard-library DST layouts remain rejected.
The isolated ordinary artifact b2867851
passes exact work and all five full-app lifecycle checks. It uses 137.455B
instructions, including 80.120B heap-page charges: 7.08% fewer complete
instructions and 10.16% fewer page charges than the composable baseline.
Its 518,139 accessed and 483,363 dirty regions are counted per execution.
Latency remains 4.8 / 13.2 / 21.0s; it takes 52 rounds and grows to
391.75 MiB fleet capacity. These costs are retained alongside the instruction
improvement. The affected native suite passes 156 checks.
This artifact is based on the initial composable foundation, before compact access and Takt batching. The implementation is merged; the combined artifact is being qualified separately. The same measurement boundaries and newer Motoko comparisons apply.
The payload/access combination 700732e8
also passes at 131.499B instructions / 51 rounds / 387.625 MiB, with 80.646B
included page charges and the same 4.8 / 13.2 / 21.0s latency. All five lifecycle
checks pass. Its complete merged workspace passes 222 native checks. Some page
savings arise from the compiled allocator header sharing an already-used SDK
static page; fewer payload allocations alone do not explain the result.
Compact execution nodes
Each execution's live nodes now use a sorted retained table with capacity one initially, geometric growth and allocation-free replacement. IDs remain full monotonic u32 values, never indexes into a lifetime-sized array. It keeps sparse IDs, ascending selectors, callback snapshots and the existing 128-live-node cap; empty tables release their buffers. Middle removal shifts at most 127 rows. The large execution index and other collections remain general native maps.
The isolated df5de87a artifact is based on compact
access plus batched Takt, before shared payloads. It passes the exact workload
and all five lifecycle checks at 126.811B instructions / 51 rounds / 257 MiB,
with 76.030B included page charges and 4.8 / 13.2 / 20.4s latency. This is 10.21%
fewer complete instructions and 35.83% less grown capacity than its b46bf9ea
parent. Native qualification comprises 94 suite checks and nine focused layout
and state checks. The independent savings are not additive; the combination
requires its own qualification.
That combined artifact 93ae1499 now passes
at 119.719B instructions / 51 rounds / 257 MiB, including 70.409B page
charges, with 4.8 / 13.2 / 20.4s latency and all five lifecycle checks passing.
It uses 19.07% fewer complete instructions than the first composable artifact
and 69.02% fewer than previous persistent RRT. Its instruction count is
effectively tied with the newer independent Motoko 119.727B candidate; the
51-versus-49-round difference remains. The complete current frame integration
passes 229 native checks and is being measured separately.
Inline frame carriers and allocator header
The isolated frame artifact a2165f04 removes
the outer retained Rc allocation around each queued outgoing/incoming frame.
Snapshots and prepared exchanges own carrier clones sharing the exact origin,
route and payload allocations; retries keep exact bytes. It passes exact work
and all five lifecycle checks at 123.313B instructions / 51 rounds / 395.438
MiB, including 72.316B page charges. Latency is 4.8 / 12.6 / 19.8s. Against its
131.499B parent that is 6.23% fewer instructions, with 2.02% more grown capacity.
Two additional lifetime/identity checks bring the workspace native total to 224.
It is merged; larger contiguous carriers and repeated inner-owner count changes
remain explicit representation tradeoffs.
The natural allocator-header artifact d0ab0b00
passes with exactly the same instructions, page events, work and rounds as
its 700732e8 parent. It removes obsolete 4 KiB padding: the transient header
uses 1,304 bytes with eight-byte alignment. Both artifacts already colocate it
with SDK metadata in page 26, so there is no new page-charge saving to claim.
It is merged as a simplification, with 52 native checks and all five actual
lifecycle checks passing.
Timer coalescing screen
A separate timer candidate matches Motoko's policy of deferring an expired deadline to an already-armed immediate timer after reconciling due work. It passes the app lifecycle gate, but Heavy16 has identical execution/page counts, latency and 51 rounds; the total differs by only 93 instructions. It remains unmerged. This result gives no evidence that the policy explains the remaining completion-round gap.