Tripwire header-first request access
Implemented in SDK 2b4884840bb97e8851d8d8a4b4a3203848e83606 as cdk-rsx-tripwire and its host proc macro.
Ordinary IC Wire remains unchanged. The previous optional-IC-Wire experiment
was stopped on request; none of its local codec changes was integrated.
Generated requests copy a compiled header, use named fixed-width accessors, and fetch only selected relative-offset fields into caller buffers. Schema IDs and offsets are generated during the build. The current IC source is private and scoped by higher-ranked callbacks; handles cannot leave the execution.
Instruction comparison, exact rows, full result, and independent review describe the measured boundary.
Qualification and limitations
- 55 focused SDK/macro/Tripwire tests and doctests, including four compile-fail request/field/future escape examples; 13 additional adversarial tests; two native fixture tests. All pass. Documentation links pass.
- Fresh canonical wasm64 install; 63 measured physical updates after three excluded startup updates; nine malformed-input/lazy-access checks.
- Independent audit of every captured execution and all 192 raw/compressed trace shards, source/output archives, schema, payload and source-copy oracles.
- Large-message early rejection reads only the 57-byte header. Full scans remain work proportional to consumed data. Tiny individual copies can be much slower.
- This fixture has an empty root. It qualifies request access, not a populated application's storage, real latency, async handling, upgrades or RRT performance.
- Native descriptors/builders are present. Automatic Wire client generation does not encode this separate explicit format. Payload validity is lazy: unused variable fields are not globally scanned or canonicalized.
Reproduce
The preserved fixture uses the canonical SDK builder. The archive contains its Cargo lock, Rust sources, runner, exact prepared/raw Wasm, preparation tool, compiler/source receipts, client assets and complete raw trace data. Paths in old receipts remain their actual original paths; extract a source archive and make a fresh build instead of relabelling an old receipt.
source /path/to/cdk-rsx/ver1/tools/env.sh
cargo test -p cdk-rsx-tripwire -p cdk-rsx-tripwire-derive -p cdk-rsx-macros -p cdk-rsx
python3 /path/to/cdk-rsx/ver1/tools/build-app.py \
--manifest-path /path/to/probe/Cargo.toml --package tripwire-probe-canister \
--name tripwire_probe --out-dir /fresh/artifact --offline --locked
RRT_PIC_STATE_DIR=/short/ram/path bun /path/to/probe/run.mjs \
--source-root=/path/to/harness --artifact=/fresh/artifact/tripwire_probe \
--output=/fresh/result --pocket-ic=/path/to/pinned/pocket-ic
Create the result parent directory first. Original paths were
/srv/shared/code/newstack/playground/tripwire-20261029/probe, /dev/shm/tripwire-20261029/artifacts/probe and /dev/shm/tripwire-20261029/results/first.
The measured PocketIC is 16.1.0 with SHA-256
6a9a75ad9b4551d2b0f4a0d954ffb8bd5bbd0ebc44ac00290679b06ad0b2f8e6; the executable is not duplicated in the archive.
Source inspection of IC commit 49a947 confirms argument copies operate on the
requested range; actual fees are taken from this pinned server's complete traces.
Evidence manifest, checksums, and full packet retain the exact qualification.