Tripwire and RRT optimization round 2 — 29 October 2026

Cleanup removed inactive caches and old worktrees while preserving unique source, patches and raw benchmark evidence. Four agent lanes then tried packet ownership, direct batch encoding, packed receive rows, explicit borrowed payloads, inline ACK replies and build iteration changes. The previous best Tripwire control is the earlier byte-reuse qualification.

Completed application cohorts

Cohort Complete instructions Included heap fees Result
Earlier Tripwire control 95,985,080,127 49,928,560,000 Frozen control
A: packet release, one output, packed rows 95,443,039,946 49,246,800,000 PASS
B: larger source enum, borrowed fields, inline ACK 95,663,486,909 49,343,920,000 PASS; slower than A
C: compact source hook, cheap row validation 94,808,165,875 49,099,120,000 PASS; best Tripwire

All cohorts complete exactly the same work and latency, with zero recorded traps/rejections and unchanged grown memory. C remains 1.03% above the original 93,843,009,985-instruction Wire control. The matched ordinary Wire path with the selected shared SDK passes at 93,549,758,138 instructions (−0.31% versus its earlier control), with unchanged work/latency/memory. Tripwire C is 1.35% above that current Wire run. Wire stays the default; selected shared APIs and the opt-in Tripwire mode are merged. The full report includes exact costs and qualification boundaries.

Findings and rejected ideas

  • Moving the outgoing Vec into the existing Call frees it after sending rather than on its later ACK. Direct batch output removes three temporary buffers.
  • Packed receiver rows reduce temporary owners. Their first implementation parsed full frames twice; C validates only raw shape/bounds first, constructs each visited frame once, and preserves whole-batch validation before admission.
  • B's SourceRef enum increased view sizes and regressed total cost. C replaces it with an optional borrowing hook while retaining the original four-word view. IC/custom sources still use explicit copies unless they can lend a safe bounded slice; there is no automatic cache.
  • The small owned response API remains bounded before copying. A compact u16 initialized length restored native state allocation size; no union/niche trick was selected. Actual C callback recovery passes 15 IC checks.
  • Forced scalar schema-reader/header dispatch changes were rejected: official baseline code already has immediate schema checks and direct header reads.
  • Ordinary release artifacts contain absolute source paths. Normalizing them and selecting native rlib-only output need separate compiler/tooling qualification; those prototypes were not mixed into runtime cohorts. Matching the existing tooling fingerprint for the native verifier reduced its observed rebuild time.

Receiver and inline review retains source patches, focused test logs, golden/error cases and independent review. Complete application audits, source archives and compact result packets live under evidence/. Profiles retain truncation flags and exact installed-module identities; complete ledgers do not imply a complete origin map. Full raw trace shards and executables remain local under /dev/shm/tripwire-round2-20261029/; receipts alone are not an independently replayable full trace archive.

The live integration worktree advanced from B to C only after B's run and bounded profiles completed; frozen B receipts/source archive remain preserved. Run hashes refer to each recorded source snapshot, not the current content of that path.

Selection and provenance

Selected source is factory 94bee885419e5d5714535d68dd4c049a7af51f8d and SDK af763c1a6139333a26ba8edb023b2a4466843fad; the SDK was consolidated on main as b115bf7 with an identical tree. All 50 selected runtime/tool/test files were checked byte-for-byte before staging in the main harness. The RRT lockfile was aligned to the exact measured closure, including the already-required Tripwire dependency absent from its stale main lockfile. No unrelated dirty Rust/chat source or the PDF was staged. Main metadata passes locked/offline; host tests and current SDK links pass. The broader harness link check retains the 16 previously disclosed unavailable historical crypto-receipt links.

The complete raw callback artifact bundles, build-only prototypes, snapshots and cleanup source archives remain in playground/tripwire-round2-20261029/. Their receipts preserve the original hashes/paths. These compact copied reports are not a complete raw execution archive. Same-artifact KEEP checks do not authorize a cross-format or cross-SDK upgrade; no such compatibility alias was created.