RRT immutable payload placement and application HotRoot
The selected application change uses the existing SDK HotRoot slot for the Fourcans root header. Combined with the separately qualified scheduler slots, its independently qualified Main artifact uses 91,322,796,854 complete Heavy16 instructions: 1.94200% below the original control and 1.53876% below scheduler alone. Exact work, completion rounds, latency, physical calls and grown memory match. The proposed Minima payload placement loses its matched screen, even after the same root-header refinement, and is not selected. This is a performance experiment with unchanged application behavior; it adds no analytics.
The parent integrated the isolated HotRoot patch bff9a6c9 as Main f2de1963.
Its canonical Wasm 27c8881e differs from branch 976803d2, source 6c6d67cf.
Both were separately run through actual lifecycle, ingress and complete Heavy16
qualification. All measured phase/function cost counters, work, latency and
capacity match exactly. Source equality was not used to transfer measurements
between different binaries.
Source and exact artifacts
The experiment starts at Main a65d1b8012900388d8da1e9fc9c27eb0733533ab.
The pure application patch is
bff9a6c98b853de2166cff30d08a7fe18a8d38c1, changing only
rrt/bench/fourcans/src/root/mod.rs and its maintained call-path documentation.
The combined qualification commit is
6c6d67cf9d77409b74723d406470863fcadafbd7, adding the existing scheduler patch
from 12783c7c. Its only two product Rust changes from the base are:
| Source | SHA-256 |
|---|---|
| Fourcans root | 1e8810b92d10bad8eac924a8442955d25b91ee7dbf01a3bf64c8617e16e75b67 |
| Reactor scheduler | e89facaff1398d4266b056cb8f1ffe190633fde6f140cdc2d59fa6cd1d73fc7e |
| Artifact | Prepared Wasm SHA-256 | Qualification |
|---|---|---|
| Original Nyxus | 3545d06da4cab6272b0ee8b3668e72da8b4a7b6f155378ce9c7fb6e2b4acce4c |
Reused complete Heavy16 |
| Scheduler only | 44fe65d2c4a9b43d839001c9414b4e50c7b3febc59c0671bdb9586789bba61ed |
Reused complete Heavy16 |
| HotRoot only | 53d52b402bd643a8e50d1bb71e5bda2387865b7a6c3b916b6f1a6c4cfc1720ee |
Small matched screen, lifecycle, ingress |
| Scheduler + HotRoot branch | 976803d27a5fbe809e127b3edad5766801aa90567782f905df7c6fc88340aac0 |
Complete Heavy16, lifecycle, ingress |
| Selected Main | 27c8881e9e35acf8c4fc3179573a5558b55e990a0c56c91825de5747d7643b5c |
Separate complete Heavy16, lifecycle, ingress |
All actual runs use pinned PocketIC
2e1dae35a83d8169533630c06fb0a7cb4086f71fa10fa60a5fd4137ea5f3672f.
Canonical builds pass exact public Wire equality and source-freshness checks.
All seven workflow graphs match the qualified control byte for byte. The
complete branch runner verifies every manifest input/output and records unchanged
guarded sources through final inspection. Controls are reused by hash.
Diagnosis and rejected Minima placement
The current-artifact trace and code diagnosis identified immutable permanent
Rechain block payload allocations as a plausible target: normal processing
appends them but does not reread them. Hot workflow state, scheduling and the
tiny ingress queue stayed Nyxus. A bounded 16-canister profile reconciles the
selected timer executor's 57,830,509 instructions into 38,845,640 static,
11,900,744 dynamic, 1,324,125 other API and 5,760,000 heap fees. Workflow
processing and retained allocation dominate; block bytes are a modest target.
The ledger is complete, but runtime-origin and physical-stack attribution is
partial. It does not prove the precise source of each first-fault page.
The IC-source reviewer separately examined local ee8086a: first mapped
access/write charges apply once per physical execution, while eligible direct
stable reads require untouched 4 KiB source granules and still pay copy and
destination costs. These source findings are distinct from the measured pinned
PocketIC binary. Lower heap dirties alone cannot qualify a stable placement.
The rejected implementation stores exact payload and parent-option/hash bytes in an exclusive Minima Collection per chain. Nyxus retains 16-byte offset/length records instead of 64-byte descriptors plus separate payload allocations. One transient 4 KiB workspace coalesces small appends and streams larger records; an aligned read cursor reuses nodes within a synchronous history read. The chain owns its move-only collection descriptor, and runtime construction owns the sole stable provider. Restore reopens the admitted saved authority. No retry identity, hashing, replay, certification, reducer order or public Wire contract changes. No old representation, migration or fallback path is added.
Implementation 7eb5b887 and fixture correction 0802503b remain on the
isolated Minima branch; the bounded HotRoot refinement is 409ce120. Their
storage patch and
refinement patch preserve
the rejected idea without integrating it. The initial standalone fixture used
generic element serialization for a large byte vector and hit the normal Wire
element limit. Its correction uses the explicit byte serializer; failed and
corrected original evidence are retained. This did not change the application
encoder.
The corrected actual storage probe 42d50482 passes exact payloads through
900,000 bytes across logical/physical boundaries, parent hashes, post-dispatch
trap rollback of stable growth/bytes and retained offsets/tip, populated KEEP
and a new append preserving the original sequence. Native checks also cover
foreign-provider rejection and reopen. Both Minima Fourcans artifacts pass the
normal five-check composed lifecycle. These are correctness results, not a
performance recommendation.
The unchanged benchmark's matched screen uses four canisters, 60 roots, one arrival round at 100 requests/second and the ordinary Heavy settings. Every case completes the same 64 workflows, 1,980 steps, 676 attempts, 92 dispatches, 600 endpoint messages, 1,200 wire items, 80 physical calls and 92 verified canonical blocks in 13 rounds. Latency is 2,400/6,600/6,600 ms; traps and rejections are zero.
| Complete small screen | Replicated instructions | Heap-fee instructions | Discarded observer instructions |
|---|---|---|---|
| Original | 606,310,039 | 451,280,000 | 62,616,548 |
| Minima history | 622,199,535 | 461,600,000 | 63,048,178 |
| HotRoot only | 602,470,039 | 447,440,000 | 56,856,384 |
| Minima history + HotRoot | 614,519,535 | 453,920,000 | 57,288,014 |
Initial Minima costs 2.62069% more than original. The refinement is still 1.35401% above original and 2.00002% above pure HotRoot. Against its respective Nyxus control, each Minima case adds 5,569,496 non-page instructions, including stable API/copy work; this category is not a pure CPU measure. Query observers also add 431,630 instructions, including 320,000 heap fees. All four cases grow 16,842,752 Wasm bytes per canister. Minima additionally grows 131,072 stable bytes per canister; no heap-capacity saving appears at this workload size. This one payload layout is rejected after one bounded refinement. There is no full Heavy16 qualification or general rejection of Minima for other owners.
Selected HotRoot behavior and complete results
The manual Fourcans root used a thread-local Reclaimable<Option<Rc<Root>>>.
The selected wasm64 path uses one existing SDK HotRoot<Rc<Root>> through
RootKey. Native code keeps its thread-local owner. The manual root macro has
no state= option and generates no competing hot slot. current() clones
the Rc and ends the loan before entering business code. Shutdown keeps the
same local Rc, detaches the application header, shuts down the same services
and schedulers to break existing cycles, then drops the root outside the slot
loan. The existing domain drain, KEEP gate and canonical startup clearing
remain in force. No SDK/kernel or application behavior changes are required.
All four full runs use the unchanged 16-canister benchmark: 30 arrival rounds at 1,000 requests/second, 600 ms rounds, batch 1,024, 1,900,000 bytes, 500M instruction budget, concurrency 4,096 and 40 callbacks. The complete interval includes the ordinary publication/maintenance tail.
| Complete Heavy16 measurement | Original | Scheduler | Combined branch | Combined Main |
|---|---|---|---|---|
| Replicated instructions | 93,131,411,948 | 92,749,996,854 | 91,322,796,854 | 91,322,796,854 |
| Heap-fee instructions | 48,714,400,000 | 48,709,680,000 | 47,282,480,000 | 47,282,480,000 |
| Replicated executions | 25,091 | 25,091 | 25,091 | 25,091 |
| Completion rounds / simulated ms | 49 / 29,400 | 49 / 29,400 | 49 / 29,400 | 49 / 29,400 |
| Latency p50 / p95 / maximum, ms | 4,800 / 11,400 / 18,600 | 4,800 / 11,400 / 18,600 | 4,800 / 11,400 / 18,600 | 4,800 / 11,400 / 18,600 |
| Physical calls | 2,434 | 2,434 | 2,434 | 2,434 |
| Grown Wasm bytes, aggregate | 269,484,032 | 269,484,032 | 269,484,032 | 269,484,032 |
| Grown stable bytes | 0 | 0 | 0 | 0 |
Each combined artifact saves 1,808,615,094 instructions against original. Against scheduler
alone, it saves exactly 1,427,200,000 instructions: 17,840 fewer dirty 64 KiB
heap regions at 80,000 each. Access counts and non-page instruction remainder
match scheduler alone. This complete measured gain occurs in start; all
other complete function totals match scheduler. Full start instructions change
14,643,923,486 to 13,216,723,486, with fees 14,309,120,000 to 12,881,920,000.
Global timer, timer executor, receive and reply callback totals are retained
in results.json. Callback categories are combined there because
table indices are artifact-local identities.
All 44,272 trace rows per artifact pass. Exact work in all four complete runs is 18,000 admitted roots, 1,200 children, 19,200 workflows, 594,000 steps, 202,800 attempts, 180,000 endpoint messages, 27,600 dispatches and 360,000 wire items. Rejections, traps and reoffered frames are zero. The standard gate verifies 1,024 canonical blocks and certified tips. Discarded observer-query instructions are separately 10,145,619,323 / 10,149,729,710 / 8,705,789,874 / 8,705,789,874; they are not added to replicated work. Grown memory is capacity rather than live payload or resident RAM.
Fresh ingress, recovery and evidence
An identical external runner measures 32 independently awaited Local ingress receipts after eight completed Local workflows. All 40 workflows then drain. This includes complete physical entry cleanup; it does not subtract a no-op.
| Fresh sample | Mean complete instructions | Mean heap fees |
|---|---|---|
| Original | 793,882.4375 | 775,000 |
| Initial Minima | 873,877.3125 | 855,000 |
| HotRoot only | 743,882.4375 | 725,000 |
| Minima + HotRoot | 773,877.3125 | 755,000 |
| Scheduler + HotRoot branch | 743,666.46875 | 725,000 |
| Scheduler + HotRoot Main | 743,666.46875 | 725,000 |
The initial Minima ingress difference is almost exactly one additional 80k page charge per call; the root-slot refinement isolates and reduces this layout effect. The sample and full Heavy arrival patterns differ, so their mean ingress costs are reported separately. Ingress remains append-only and small; no processing is moved into admission.
The first 64 actual Heavy ingress calls on canister zero form a separate startup sample. Original mean instructions are 670,421.5 with 652,500 heap fees; scheduler gives 670,204.375 with the same fees. Both independently measured combined artifacts give 596,454.375 with 578,750 fees. Exact sequence numbers, page ranges, sample rows and source ledger hashes are retained and checked by the standalone verifier.
The combined native gate passes 54 reported tests including Reactor fairness, stale driver identities, callback capacity, cleanup and Fourcans behavior. Its actual wasm64 lifecycle passes all five gates: typed heavy blocks, populated drained KEEP of history/replay/counters/peers/metrics, fresh work after KEEP, pending-work KEEP rejection without loss and continuation of the original wait followed by successful KEEP. Pure HotRoot and the Minima refinement also pass their own actual lifecycle gates. The abandoned pure-HotRoot full run stopped before its first progress log and has no complete result; it contributes no performance number. Its saved start marker does not establish zero arrivals.
The old control manifest includes one Candid-probe README later edited outside compiled code. All 12,269 original records were checked; only that locator was rehosted to an owned copy of its original 1,588 bytes from the immutable source capsule. The rehost receipt preserves exact hashes. No original manifest, capsule, output or executable was modified.
The portable packet contains original canonical manifests,
complete execution ledgers and audits, selected/rejected source patches,
native/lifecycle/fresh-ingress receipts and independent review evidence. Its
standalone verifier reconciles every execution, phase and function total.
Original raw shards, executables, source/debug capsules, commands, build logs,
bounded diagnosis and failures remain under the ignored
playground/rrt-engine-20261022/experiment/minima-payloads/; original controls
remain in playground/sdk-entry-20261022/results/bulk-recovery/main-gate/ and
playground/rrt-engine-20261022/exact-guards/. The final Main build is under
playground/rrt-engine-20261022/hylix-rounds/main-selected/.
Independent source/ownership reviewers found no concrete HotRoot, lifecycle, retirement, Minima authority or source-contract blocker. A second reviewer independently reconciled all four small screens and all three full raw ledgers. Those reviews qualify their stated exact artifacts; Main has its own actual run and saved receipts. This is one deterministic run per exact binary, not a statistical latency study. Aborted DTS attempts and scheduler-only accounting are absent from this trace generation. No Hylix/RRts or ordinary collection-family performance claim follows from these results.