Direct stable encoding experiment
Parked as a qualified standalone candidate: complete Heavy16 instructions fell 1.271%, but every latency quantile worsened and completion took four more rounds. No main integration or further adoption was authorized. This may merit another matched evaluation if SharedCell changes the write workload.
Runtime commit: 563375a0dd7b662edbb7d764a53e7c5dcc24f97a, based on dense
259047365d51268f2a37f70466d904b6f6638d48. Ordinary Wasm:
091376d7c5a7380f8496ca51e919fb5c37c2271e9b0e2c65935171c38edc98ac.
The artifact was built from the dirty baseline snapshot before the runtime
commit; all 597 archived/current input hashes match the committed runtime.
Canonical build used the pinned compiler, locked offline dependencies, content
freshness and fresh Wire metadata; build time was 139.38 seconds.
Storage::write_with is a required infallible callback operation. Arena checks
the live allocation/range and writable capability before one exclusive mutable
loan; downstream persistent-operation failures trap. write_value zeroes the
exact codec span before encoding, including padding. Store creation/publication,
collection Edit drop, Cell/Shared constructors, Queue pushes and Vec insertion
adopt it. Empty Cell/module owners retain their initialized one-byte allocation.
All live wrappers forward the operation and frame hooks with one logical write.
Map structural writes and the with_encoded helper remain unchanged.
Contained active spans encode in the coherent segment workspace. Crossing and unframed spans retain allocation/copy fallback; unframed edits also read the old span. This changes neither cache policy nor physical first-read behavior.
| Complete measurement | Dense control | Direct encoding |
|---|---|---|
| Small64 instructions | 2,004,780,470 | 1,994,638,489 |
| Small64 rounds | 13 | 13 |
| Small64 admission p50/p95/max, ms | 2,400 / 6,600 / 6,600 | 2,400 / 6,600 / 6,600 |
| Small64 heap page instructions | 462,880,000 | 463,360,000 |
| Heavy16 instructions | 653,114,199,925 | 644,814,880,329 |
| Heavy16 rounds, primary + tail | 103 + 2 | 107 + 2 |
| Heavy16 admission p50/p95/max, ms | 43,800 / 55,200 / 58,200 | 48,000 / 57,000 / 60,600 |
| Heavy16 receipt p50/p95/max, ms | 45,000 / 56,400 / 58,800 | 49,800 / 57,600 / 62,400 |
| Heavy16 physical calls | 3,218 | 3,078 |
| Heavy16 heap page instructions | 72,279,600,000 | 69,399,920,000 |
| Heavy16 final heap bytes | 269,484,032 | 269,484,032 |
| Heavy16 final stable bytes | 295,043,072 | 297,140,224 |
Both audits passed exact work and source/trace guards. Heavy16 completed 19,200 workflows, 594,000 visits, 202,800 attempts, 180,000 messages, 360,000 frames and 27,600 blocks; 1,024 sampled canonical blocks were verified. There were no traps, ingress rejections or reoffers. Seven workflow graph sources are identical. Small64 completed the expected 64 workflows and 80 physical calls, with unchanged final memory sizes. These are finished replicated instructions including ordinary maintenance, not cycles or a per-operation microbenchmark.
Native gates passed: Stable 61 tests, Store/Collections 106, RRts workspace 187, and stable-profile Common 9. Six new tests cover initialized/exact and crossing spans, padding, empty values, stale/range rejection without callbacks, read-only access, closed reentry, returned errors, panic discard and post-encoding provider failure with native host image restoration. Two independent reviews passed the frozen source; the IC reviewer also verified the complete Small64 and Heavy16 raw packets and lifecycle result. The same artifact passed all five composed-root lifecycle checks, including drained KEEP, fresh work after KEEP, atomic rejection of pending-work KEEP and continuation of the original wait. Native RRT performance was not remeasured; this candidate was parked before integration.
Evidence remains outside the sparse worktree in repository ignored outputs:
rrt/tmp/stable-round5/direct-encode/:frozen.patch,frozen-source.json,freeze-commit-receipt.json, native logs,build/,heavy16/,life5/,life5-process-receipt.jsonandserver-generation.json.rrt/tmp/stable-round4/direct-encode5-small-2/small-audit.json.- Control:
rrt/tmp/stable-round4/fresh-dense4k-heavy16/.
The first Small64 attempt failed externally after 120.78 seconds with
ConnectionRefused before creating instances. Its separate direct-encode5-small-1
directory contains no workload measurement. The successful retry, Heavy16 and
lifecycle used root-owned server generation 20261020T2256, binary SHA
1fc9e6f58f7b329a0deb0c1944306a74625293fa56decf9df653ba8ec41fa45c.
No server was stopped and no traces were cleared by this lane. The shared
ver1/target lease was released immediately after canonical build/verifier
publication; no later compilation used it.