Tripwire input preparation and final-storage paths
All 768 compute calls and 180 storage uploads passed. For the 1 MiB full-copy compute profile, mean complete instructions fell from 7,706,526.125 for published IC Wire 0.7.21 to 4,985,743 for zero-initializing Tripwire and 3,937,043 for direct initialization: reductions of 35.30% and 48.91% versus Wire.
The full-copy compute profile prepares every body byte, then returns length and first/middle/last bytes through the same consumer. It performs no FNV, full-body application scan or storage. Native tests separately check every copied byte and source range. These results isolate input preparation plus a small consumer; they do not establish a general application, RRT or throughput improvement.
Full-copy compute
Eight recorded updates per size/codec. Totals include normal entry, argument handling, allocation, copying, selected work, reply, cleanup and recorded page charges. Means below are rounded to the nearest instruction; exact totals, rational means and min/max are in comparison.json. Negative Δ means fewer instructions than Wire. All eight calls, including the first, remain included.
| Body bytes | Wire | Zeroed Tripwire | Δ vs Wire | Fast Tripwire | Δ vs Wire |
|---|---|---|---|---|---|
| 0 | 166,353 | 166,639 | +0.17% | 166,637 | +0.17% |
| 32 | 328,277 | 329,392 | +0.34% | 329,236 | +0.29% |
| 128 | 330,191 | 329,333 | -0.26% | 329,081 | -0.34% |
| 512 | 331,242 | 330,000 | -0.37% | 329,364 | -0.57% |
| 4,096 | 338,338 | 337,343 | -0.29% | 333,123 | -1.54% |
| 32,768 | 714,669 | 554,127 | -22.46% | 521,235 | -27.07% |
| 262,144 | 2,293,421 | 1,492,879 | -34.91% | 1,230,611 | -46.34% |
| 1,048,576 | 7,706,526 | 4,985,743 | -35.30% | 3,937,043 | -48.91% |
The zeroed cohort used SDK 392ad8626d4167fec3d5c0eef7b8b658300174a1; the fast cohort used 78fa70be4f30663a993804c944f2c03675e966b9. Fast Tripwire copies the IC field directly into reserved final capacity, verifies the initialized span's exact pointer and length, and publishes Vec length only afterward. Custom sources retain a safe zero-initializing default. The public schema and selected work did not change.
Removing the explicit zeroing pass reduced the 1 MiB Tripwire total by 1,048,700 instructions (21.03%). Its heap-page charge stayed at 2,880,000. The rebuilt Wire raw/prepared images are byte-identical across cohorts, and all 192 Wire samples have identical input/reply bytes and hashes, instructions, cycle debits and heap-page charges. Small full-copy cases remain close: at 32 bytes fast Tripwire costs 0.29% more than Wire.
Included heap-page instructions
These charges are already inside the complete totals above; do not add them again. They describe metered heap regions, not allocated buffer bytes.
| Body bytes | Compute Wire heap fees | Compute Tripwire heap fees |
|---|---|---|
| 0 | 160,000 | 160,000 |
| 32 | 320,000 | 320,000 |
| 128 | 320,000 | 320,000 |
| 512 | 320,000 | 320,000 |
| 4,096 | 320,000 | 320,000 |
| 32,768 | 640,000 | 480,000 |
| 262,144 | 1,760,000 | 960,000 |
| 1,048,576 | 5,600,000 | 2,880,000 |
Subtracting the recorded heap subtotal does not produce a pure CPU measurement: API, allocation, reply and other charged work remain.
Supplementary rejection and prefix access
These operations intentionally leave most or all payload unread in Tripwire. They are separate from full-copy compute. Reject uses user zero; prefix16 inspects only min(length,16) bytes. Both Tripwire profiles are unchanged sample-for-sample across the zeroed and fast cohorts (128 matched calls). Header-only paths retain 160,000 heap-page instructions.
| Body bytes | Reject: Wire | Reject: Tripwire | Δ vs Wire | Prefix16: Wire | Prefix16: Tripwire | Δ vs Wire |
|---|---|---|---|---|---|---|
| 0 | 166,319 | 166,349 | +0.02% | 166,359 | 166,555 | +0.12% |
| 32 | 328,233 | 166,349 | -49.32% | 328,283 | 167,143 | -49.09% |
| 128 | 329,953 | 166,349 | -49.58% | 330,003 | 167,143 | -49.35% |
| 512 | 331,004 | 166,349 | -49.74% | 331,054 | 167,143 | -49.51% |
| 4,096 | 338,100 | 166,349 | -50.80% | 338,150 | 167,143 | -50.57% |
| 32,768 | 714,356 | 166,349 | -76.71% | 714,406 | 167,143 | -76.60% |
| 262,144 | 2,293,108 | 166,349 | -92.75% | 2,293,158 | 167,143 | -92.71% |
| 1,048,576 | 7,706,213 | 166,349 | -97.84% | 7,706,263 | 167,143 | -97.83% |
Final-storage uploads
Storage used SDK fe0bd48d72c939c81a5babd545b6d72027561d87, which also contains the later lazy slicing helper. That revision is not the measured compute candidate. Each image owns private Nyxus and Hylix children beneath the same Store root. Every upload's complete stored bytes were verified afterward by bounded queries outside its trace window.
First insert means the target ID is absent, with one observation per codec/engine/size. Allocator, provider and codec history may already be warm. Replacement columns average eight varied uploads at that ID, including disposal of the displaced owner. The two first/replacement populations are never pooled. Two startup uploads are excluded.
Nyxus
Tripwire selects Nyxus for the final field allocation and adopts it with nyxus::Vec::from_std, without a second payload copy. Wire first owns decoded transient bytes and moves their contents into a new retained vector. Both use normal owner insertion and replacement.
| Body bytes | First: Wire | First: Tripwire | Δ vs Wire | Replace: Wire | Replace: Tripwire | Δ vs Wire |
|---|---|---|---|---|---|---|
| 32 | 729,189 | 728,685 | -0.07% | 729,503 | 728,999 | -0.07% |
| 4,096 | 824,446 | 813,349 | -1.35% | 744,527 | 733,430 | -1.49% |
| 32,768 | 1,454,313 | 1,227,417 | -15.60% | 1,314,797 | 1,087,901 | -17.26% |
| 262,144 | 3,459,049 | 2,133,401 | -38.32% | 3,339,623 | 1,993,885 | -40.30% |
| 1,048,576 | 10,445,018 | 5,626,265 | -46.13% | 10,325,670 | 5,486,869 | -46.86% |
At 1 MiB the replacement mean improves by 46.86%. Included heap-page instructions average 6,120,000 for Wire and 3,380,000 for Tripwire.
Hylix
Both codecs use the same Blob::from_reader constructor and reusable 4 KiB scratch. Wire fills it from its decoded body; Tripwire copies selected IC argument chunks into it. Stable writes and the engine's existing bounded heap cache are included. This is streaming into stable memory, not a direct IC-argument-to-stable-pointer transfer.
| Body bytes | First: Wire | First: Tripwire | Δ vs Wire | Replace: Wire | Replace: Tripwire | Δ vs Wire |
|---|---|---|---|---|---|---|
| 32 | 857,065 | 857,667 | +0.07% | 824,780 | 825,380 | +0.07% |
| 4,096 | 891,074 | 880,595 | -1.18% | 871,677 | 861,167 | -1.21% |
| 32,768 | 1,900,643 | 1,276,896 | -32.82% | 1,921,302 | 1,347,555 | -29.86% |
| 262,144 | 6,341,958 | 4,884,939 | -22.97% | 6,436,657 | 4,369,638 | -32.11% |
| 1,048,576 | 21,249,883 | 15,267,076 | -28.15% | 22,536,080 | 15,032,833 | -33.29% |
At 1 MiB the replacement mean improves by 33.29%. The 32-byte replacement is a small regression: +0.07275%. At 1 MiB, the recorded heap-page subtotals average 8,720,000 and 3,200,000. Stable-memory charges are not all represented by page_access_instructions. Complete instruction totals include them; neither the heap subtotal nor total-minus-heap should be labelled CPU-only or all memory fees.
All 180 uploads passed complete readback. Twelve additional checks passed: same-artifact KEEP, a real replacement followed by a post-Store-frame trap with old bytes preserved, and business rejection preserving the old owner, for each codec/engine. These support the exact candidate's storage/lifecycle behavior; they are not cross-revision KEEP or RRT qualification.
Artifact sizes and provenance
Uncompressed full images; no empty control is used here, so these are not isolated codec-code-size estimates. Prepared metadata differences also contribute.
| Image | Measured SDK | Raw Wasm bytes | Prepared Wasm bytes |
|---|---|---|---|
| zeroed-compute / wire | 392ad86 |
210,763 | 215,587 |
| zeroed-compute / tripwire | 392ad86 |
207,592 | 209,613 |
| fast-compute / wire | 78fa70b |
210,763 | 215,587 |
| fast-compute / tripwire | 78fa70b |
207,523 | 209,544 |
| storage / wire | fe0bd48 |
396,454 | 404,464 |
| storage / tripwire | fe0bd48 |
397,063 | 402,115 |
The measured server is PocketIC 16.1.0, SHA-256 6a9a75ad9b4551d2b0f4a0d954ffb8bd5bbd0ebc44ac00290679b06ad0b2f8e6; compiler/settings are pinned in the canonical receipts. Compute excludes four physical startup updates across its two cohorts; storage excludes two. Servers were shut down and owned temporary directories removed. Current SDK changes do not inherit these measurements.
The baseline's 19 actual host pins are preserved from its verified snapshot, including its original zeroing descriptions. The fast cohort has its own 19-pin closure. Storage's 17-pin actual host closure includes the null-prototype record fix and expanded source pins made after canonical guest archives froze, before its first run. Guest images did not change. Both the older archived host sources and actual run sources are retained without rewriting metadata.
Reproduction, native-check scope and preserved evidence, exact machine comparison, compute runtime audit, storage runtime audit, API/ownership review, and IC memory-boundary review.