Retained packet spans and borrowed dispatch — 29 October 2026

Selected the shared-packet implementation. Tripwire Heavy16 uses 4.85% fewer instructions than its previous best, and 3.48% fewer than matched current Wire. Default Wire also improves slightly. Work, latency and grown memory remain unchanged. Wire remains the default; Tripwire is an explicit compiled protocol choice.

Complete replicated workload + normal maintenance Total instructions Included heap-page instructions Other instructions by subtraction
Previous Tripwire C 94,808,165,875 49,099,120,000 45,709,045,875
New packet Tripwire 90,207,425,197 45,600,320,000 44,607,105,197
Previous matched Wire 93,549,758,138 47,077,920,000 46,471,838,138
New matched Wire 93,458,955,224 47,055,600,000 46,403,355,224

Tripwire saves 4,600,740,678 instructions: 3,498,800,000 from heap fees and 1,101,940,678 from other work. These are combined-cohort effects, not isolated attribution to one API. Other instructions include Wasm and system APIs, not only computation. New Wire improves 0.0971% against its previous control.

Primary Tripwire function group Previous C New packet path Change
Peer receive 14,350,935,476 10,945,189,854 −23.73%
Peer ACK callbacks 16,182,160,990 15,531,967,001 −4.02%
Reactor/workflow turns 50,194,398,253 49,660,136,703 −1.06%
Ingress starters 13,306,770,444 13,307,905,812 +0.009%

These groups describe the primary workload; the complete table additionally includes ordinary publication/maintenance. ACK callbacks still pay 14.86032B heap instructions. Packet grouping does not eliminate queue/index metadata, reference counts or native task-input clones.

Behavior, memory and cost boundaries

All four auditors PASS with exactly 18,000 roots, 1,200 children, 19,200 workflows, 594,000 steps, 202,800 attempts, 180,000 endpoint messages, 27,600 dispatches, 360,000 protocol items and 1,024 verified canonical blocks/certificates. No recorded trap, rejected ingress or reoffered frame occurs.

Matched new-run property Tripwire Wire
Complete model time 29,400 ms 29,400 ms
Root p50 / p95 / maximum 4,800 / 12,600 / 19,200 ms same
Workflow p50 / p95 / maximum 4,800 / 11,400 / 18,600 ms same
Queue delay p50 / p95 / maximum 600 / 600 / 1,200 ms same
Physical peer calls 2,422 2,434
Fleet grown Wasm / stable bytes 269,484,032 / 0 same
Complete cycles charged 419,634,857,394 368,624,822,448

Tripwire's complete cycle charge remains 13.84% higher than Wire, despite its lower instructions. The protocols retain different encoded traffic and associated charges. This comparison establishes an instruction improvement; it does not establish lower cost on every metric. Grown memory is address high-water, not live payload or resident RAM. Model time is not host wall time or a mainnet throughput prediction.

What changed

SDK nyxus::SharedBytes and SharedText retain checked immutable ranges of one owner. Reactor copies accepted operation, route and payload bytes into bounded retained chunks, then queues spans. The synchronous append builder preserves the existing per-frame instruction check and accepted-prefix publication order. Unauthorized, duplicate and unaccepted suffix payloads are not fetched. Ordinary wasm64 chunks leave room for their 16-byte owner header inside one 64 KiB run; jumbo frames use separate allocations. A surviving span pins its whole chunk.

When processing starts, nested Tripwire messages borrow existing retained bytes. Commands lend magnitudes, topics and replay metadata through synchronous reducer dispatch. Producers use stack magnitudes/memos, and successful replies consume nested fields without constructing owned intermediate values. Permanent bytes, exact retry identities and business effects remain unchanged. Takt progress was already native typed state; no per-step serialized snapshot was removed.

The obsolete Direct/Shared prototype payload union is removed. There is no old-format decoder, local journal, new runtime registry, weakened admission or reduced workload. Incoming messages still need retained ownership between the receive execution and later processing. Views never cross await.

Qualification and provenance

Qualified factory 4f60af6a7cae5ae68aab0ac7b1db33059c474760, SDK 09e68c714fa7966704d2d776df4d7e89a9091efc, pinned compiler and exact PocketIC 6a9a75ad…; same Heavy16 configuration as the previous cohort. Both new builds have the same archived source closure and no compatibility aliases. Installed Wasm:

  • Tripwire: b0b376ffede2583af3415664d3e807fabebbb3fa24c5f0d047d70d17035d912c.
  • Wire: f897844375f458494e915634959ab14a8aec7e657f9ae0efcc8ee4b20c77a4c1.

Passed 44 SDK native tests/doctests, 199 default and 223 Tripwire combined RRT checks, and 15 actual IC callback/retry/cleanup/same-artifact KEEP checks. Exact borrowed/owned encodings, arbitrary-width Nat handling, source-copy bounds, disjoint appends, UTF-8, owner release and private rooted composition are tested. The actual artifact contains the reviewed owner policies; its memory summary does not export the full physical type graph. Native physical-graph fixtures, source review and actual canister qualification are separate evidence.

Independent audits reconcile both complete raw traces, including every charged region event and function total. Finished entries exclude aborted DTS attempts and scheduler-only costs; zero trace errors does not prove no aborted slice. The bounded diagnostic resolves only 44/117 first-fault charges; its origin map and timer stack details are truncated. Do not assign unresolved fees to a particular object or extrapolate its tiny sample as full-workload attribution.

Experiment evidence and comparison JSON retain sources, test/review records and compact results. Complete raw shards and executables remain local. Selected source files were checked byte-for-byte when merged; costs belong to these exact artifacts. Rebuilding at another absolute path may change static placement. This is fresh-install protocol qualification and same-artifact KEEP, not cross-SDK or old-queue migration admission.