Retained packet spans and borrowed dispatch — 29 October 2026
Implemented and measured one immutable retained owner with checked byte/text spans, so nested messages can consume existing encoded bytes without reconstructing owned inputs. Takt progress is already native typed state; it is not serialized on every step. This experiment targets message admission and dispatch, not a replacement for typed progress or persistent module ownership.
Selected result
Merged SDK 09e68c7 and the factory's app/transport changes after matched
Heavy16 qualification: 90.21B Tripwire instructions, down 4.85% from its
previous best and 3.48% below new matched Wire. Default Wire improves 0.097%.
Exact work, latency and grown memory stay unchanged. Tripwire still charges
13.84% more complete cycles than Wire. See the
full report and
machine-readable comparison.
Qualified factory 4f60af6a7cae5ae68aab0ac7b1db33059c474760 and SDK
09e68c714fa7966704d2d776df4d7e89a9091efc; selected files were compared with
main in the equality receipt. Costs refer to the
recorded artifacts, not an unmeasured rebuild at a different absolute path.
Implementation
- SDK: immutable
nyxus::SharedBytesand UTF-8SharedTextranges, plus a synchronous append-only builder. The builder can publish a completed prefix before filling a disjoint later range. It does not expose the complete owner or general mutable access. - Reactor: incrementally retain accepted operation, route and body fields in bounded chunks. Keep instruction checks and prefix publication in their existing order; never fetch an unauthorized, duplicate or unaccepted suffix.
- Fourcans/Rechain: borrow command magnitudes, topic and replay metadata through synchronous dispatch, and encode native workflow fields without first allocating an owned command. Preserve permanent record bytes and identities.
Existing retained bytes can serve as a Tripwire slice source directly. The
fixed message header is still copied to its scoped handle. Queued owners survive
until consumption or retry completion; ordinary views do not cross await.
Keeping one small span pins its complete chunk, so long-lived small business
fields should normally be copied instead. Processed entries release their owners.
Safety and measurement
The selected builder initializes its bounded capacity before publishing spans. Appends mutate only the unpublished disjoint tail, with no whole-buffer mutable reference. Failed native fills reinitialize that unpublished destination; this is initialization cleanup, not transaction rollback. The IC still owns rollback. Physical contracts must describe the real owner header and range representation. No old queued-format adapter or admission alias was added.
Ordinary wasm64 chunks allow 65,520 payload bytes: the actual shared owner adds a 16-byte header, and Nyxus's large direct allocation is page-aligned. A 65,536 byte payload would necessarily cross into another charged region. Oversized frames use separately bounded allocations. Placement geometry alone is not an instruction measurement; the complete workload establishes the selected gain.
Use the unchanged Heavy16 work, arrival schedule, admission/budget rules and
frozen 6a9a75ad… PocketIC binary from the
previous qualification.
Controls: selected Tripwire C at 94,808,165,875 complete instructions; matched
Wire at 93,549,758,138. Preserve instructions including heap fees, latency,
completed work, physical calls and grown capacity separately. These controls
qualify their recorded artifacts; they are not predictions for new builds.
The source review, SDK checks under sdk-span-native/,
application checks under workflow-native/ and transport-native/, and
actual callback qualification keep their
distinct scopes. Native tests pass 44 SDK checks, 199 default RRT checks and 223
Tripwire RRT checks. The unchanged callback runner passes 15 actual IC checks,
including same-artifact KEEP. This is not an old-to-new SDK migration or a
live-chunk upgrade qualification.
evidence/ contains both audits/manifests, compact result packets and one shared
source archive. Complete raw trace shards and executables remain local under
/dev/shm/tripwire-packets-20261029/ and the integration worktree's rrt/tmp/.
Compact receipts are not a complete independently replayable raw trace archive.
Both raw traces were independently audited before merging. Bounded diagnostic
snapshots stay in playground/segments/tripwire-packets-20261029/; derived
reports and capture scripts are copied under profiles/. Preserve unresolved
origins and truncation flags when interpreting those samples.
Additional reviews and live worktrees remain under
playground/tripwire-packets-20261029/. Retained evidence is indexed by files.json.