Tripwire — selective reads of a 1 MiB request

SDK 2b4884840bb97e8851d8d8a4b4a3203848e83606. The ordinary control uses unchanged published ic-wire =0.7.21 in the same installed Wasm. Each request carries the same 1 MiB body, 32-byte field and scalar values. The business result agrees; response formats differ (Wire record versus a fixed 64-byte report).

Complete replicated instruction counts include SDK entry, input copies/decoding, handler work, response and page fees. One physical update per route warms startup before tracing; three physical updates per route/case are measured. All three samples match for each row. This is a request-access probe, not application throughput or latency qualification.

Operation Ordinary Wire Tripwire Change Tripwire bytes fetched
reject-user-id 7,870,134 167,905 -97.87% 57
accept-header-only 7,870,133 167,908 -97.87% 57
read-small-32 7,870,486 168,908 -97.85% 89
partial-body-reuse-4096 7,944,248 255,316 -96.79% 8,249
whole-body-buffer 17,307,740 14,424,025 -16.66% 1,048,633
whole-body-chunks-4096 17,325,877 10,824,585 -37.52% 1,048,633
whole-body-scalars-8 26,613,813 95,981,604 +260.65% 1,048,633

The uninstrumented Tripwire header-rejection path accesses and dirties one 64 KiB heap region: 160,000 included page instructions. The ordinary control pays 5,760,000 page instructions. Opening Tripwire uses its fixed 57-byte stack header, not a full encoded buffer or decoded owned body. A separate counted route confirms exact source reads; its counter overhead is excluded from the headline comparison.

Partial reads consume two 4 KiB ranges through one buffer. Full streaming scans fetch the entire body, once in 4 KiB pieces, and keep the same one-region page footprint. All full-body modes also compute FNV over the bytes; their totals are not pure transfer costs. Repeated 8-byte fetches are a deliberate poor case: 131,072 payload copies make Tripwire 260.65% more expensive than scanning the existing decoded vector. Use chunked access for substantial scans.

All 63 measured executions and nine malformed/lazy-access boundary checks pass. Native checks cover layout, scoped lifetime escape, truncation, range arithmetic, source failure and caller-buffer reuse. No RRT rerun, async-request, callback, persistence or KEEP qualification is claimed.

Method, exact sources, commands and full evidence.