Tripwire and RRT optimization — 30 October 2026

Goal: reduce complete Heavy16 instructions and charged cycles while keeping installed Wasm near the existing 3,644,159-byte image. Use approximately 2% as the working size budget; report raw and installed size separately. Preserve all workload, durable ownership, admission, authority, ordering, retry and lifetime rules. Improve latency or keep it unchanged. No old-format readers.

The starting factory is 4287cf9c, SDK 74b4e6c. The previous measured runtime is SDK 54d7c40 (later74b changes only documentation/tests), artifact ae0023042551eaec4a45bb153853d0147716d5db9d9c73463e956e03b85b03ae. It completes with 82,695,510,009 instructions, 42,319,040,000 included page instructions and 350,570,464,018 cycles. Complete simulated time is 29.4s; root p50/p95/max 4.8/12.6/19.8s. Work is 19,200 workflows, 594,000 steps, 180,000 endpoints,360,000 frames and 1,024 verified canonical blocks.

Independent lanes:

  • SDK: expose the checked slice copier to inlining.
  • Packets: smaller slab-backed retained packet chunks.
  • Encoding: batch-selected full-domain scalar widths.
  • Ingress: normalize scalar magnitudes without temporary owners, preserving full external inputs and validation order.
  • Stack replies: generic checked inline output storage, replacing the application-specific reply owner in the combination.
  • Split owner: separate counted metadata from the immutable backing; source/native acceptance is distinct from selection.
  • IC review: source review, captured pricing, instruction/page attribution and independent result audit.

Every candidate has its own real factory/SDK worktree. Only toolchain, package and node-module caches may be linked. One owner leases the warm Cargo target; canonical outputs and run state use fresh external directories. Keep the pinned PocketIC 6a9a75ad binary and actual captured charging rules. Source-known proofs stay in generation/compilation; dynamic bounds and ownership checks remain.

Build a fresh control first. Normal non-debug builds may contain source-path strings; compare Code/Data as well as output identity with the previous frozen image. Reuse a control only when its measured scope is proven unchanged; otherwise run it. Attribute incidental address/layout effects explicitly. Native tests/static evidence select plausible candidates; complete matched Heavy16 measurements select winners. Combine successful independent changes, then requalify the actual combination. Preserve rejected candidates and failures.

The measured combination is selected and merged locally: factory 9c58a3e8, SDK 5f59c5b6. It combines checked-copy inlining, compact peer integers and normalized ingress with generic stack replies. Smaller packet chunks and the split-owner representation are rejected: both increase complete instructions and page charges. See the result table for costs, exact work, source/artifact identities and qualification scope.

Versioned evidence retains exact build/run receipts, the selected source archive and complete result. The compressed capture index maps original paths to byte-verified full copies in the gitignored local playground, including every raw trace shard. Those local captures are not shipped in Git. Embedded historical paths are preserved rather than rewritten; experiment worktree availability is separate from the retained source and result evidence.