Tripwire clock reuse and peer compression — 30 October 2026
The selected clock + safe LZ4 + shared receive workspace saves 445,341,468 instructions (0.544824%) and 15,516,202,936 cycles (4.520156%) against fresh control. Peer bytes fall 62.590108%, with exact work, latency and grown memory unchanged. Clock alone uses fewer instructions; the selected combination provides the lowest measured cycles and bytes. This balanced choice passes native and actual IC safety gates.
| Complete replicated workload plus ordinary maintenance | Instructions | Included page I | Charged cycles | Charged peer request B | Peer / self calls |
|---|---|---|---|---|---|
| Fresh control | 81,740,424,932 | 42,200,160,000 | 343,267,008,864 | 23,367,143 | 2,428 / 856 |
| Clock | 81,001,697,612 | 42,200,160,000 | 341,789,554,224 | 23,367,143 | 2,428 / 856 |
| Common-route metadata | 81,705,476,854 | 42,199,680,000 | 342,072,062,708 | 22,242,093 | 2,428 / 856 |
| Safe LZ4 envelope | 82,035,187,731 | 42,595,040,000 | 329,231,014,462 | 8,741,623 | 2,428 / 856 |
| Clock + envelope | 81,296,460,411 | 42,595,040,000 | 327,753,559,822 | 8,741,623 | 2,428 / 856 |
| Selected clock + envelope + workspace | 81,295,083,464 | 42,588,960,000 | 327,750,805,928 | 8,741,623 | 2,428 / 856 |
Page charges are already included. Finished replicated entries and maintenance count; discarded queries, aborted DTS and scheduler-only work do not. “Other” or non-page instructions include System API charges, copies and computation; they are not an isolated CPU measure. The independent comparisons and selection inputs retain complete ledgers. Audited runs each verify 1,648 trace shards, 44,252 execution rows, all archived sources and 24 outputs, with zero cycle residual and no unknown callback roles.
| Audited cohort | Model time ms | Root p50 / p95 / max ms | Workflow p50 / p95 / max ms | Queue p50 / p95 / max ms | Grown Wasm / stable B |
|---|---|---|---|---|---|
| All completed runs | 29,400 | 4,800 / 12,600 / 19,800 | 4,800 / 11,400 / 18,600 | 600 / 600 / 1,200 | 269,484,032 / 0 |
Those audited runs perform exactly 19,200 workflows, 594,000 steps, 202,800 attempts, 180,000 endpoint messages, 27,600 dispatches, 360,000 frames and 1,024 verified canonical blocks. Rejected ingress, reoffered frames and traps are zero. Self requests remain 42,704 charged bytes and actual replies 33,696 bytes. Request accounting includes UTF-8 method names. Model time is not wall throughput; fleet grown capacity is not live payload size. Matched settings are 16 canisters on one subnet, 30 arrival rounds of 600 ms at 1,000 requests/second, concurrency 4,096, batches capped at 1,024 frames / 1,900,000 bytes, callback cap 40 and instruction budget 500M.
| Canonical image / installed SHA-256 prefix | Factory | Raw Wasm B | Installed Wasm B |
|---|---|---|---|
Fresh control b99e32e8d6cd |
bb17d953 |
3,548,896 | 3,659,917 |
Clock 6bca071d32d7 |
5802b666 |
3,548,790 | 3,659,811 |
Metadata 2eec675b0d17 |
3f71c504 |
3,552,896 | 3,663,917 |
Envelope 4d1362adfc12 |
82128a67 |
3,563,352 | 3,674,373 |
Clock + envelope 0e50d7a7b469 |
485c80a0 |
3,563,127 | 3,674,148 |
Selected workspace 494ffe07483c |
b4cc74d1 |
3,563,154 | 3,674,175 |
All builds use SDK d0e53afc7b7fdc4b7cf4e2ccbe1e55a386133c4b, real nested Git
worktrees/gitlinks, pinned nightly-2026-10-15, canonical wasm64 transformation,
Nyxus persistence and tripwire-workload. Full identities and frozen source
checks accompany the review.
Selected factory is b4cc74d1dc2839d5d9b0fc696b29db0bfd5010e8; installed SHA-256 is
494ffe07483c4ad1d8103a264f6c63ea18dde47390ba7a504e0d496938a54d9b.
Recorded installed sizes fit the approximately 2% budget against the fresh
3,659,917-byte control.
The fresh-control comparison
reproduces the prior 12f01f912ba7 image's complete costs, work, traffic,
latency and memory exactly. Fresh Wasm adds four bytes; its archived source
closure matches all 999 inputs. The compiled-section comparison is retained.
Clock reuses the first requested timestamp inside one synchronous
Controller::run_turn. The lazy closure is recreated for every turn; it neither
crosses await nor caches SDK/global time. Scheduler's injectable changing clock
and progressing instruction counter remain intact. Its entire 738,727,320-I
gain is the timer executor's non-page remainder, with unchanged page charges
and all other entry roles. Cycles decrease by exactly twice that amount. The
result
distinguishes the IC constant-time contract/current-source proof from the frozen
server. Complete captures contain no per-System-API counters or instruction
profiles: removed time calls cannot be counted from the aggregate delta.
Metadata stores byte-identical full routes once per actual selected batch, preserving ordinary mixed routes, full per-frame admission bounds and bounded retained-chunk ownership. It saves 34,948,078 I, 1,194,946,156 cycles and 1,125,050 peer bytes, while installed Wasm grows 4,000 bytes. The role comparison records increased timer execution and reduced receive work, rather than attributing isolated encoder/decoder costs. It is excluded for small benefit and added framing/lifetime complexity. Expected overlap with LZ4 informed that decision; no common-route/LZ4 union was measured.
The envelope keeps exact inner/application bytes and chooses raw or one safe
LZ4 block under a ten-byte header. Authentication and fixed admission precede
decompression; output is bounded to 2 MB, exact length/header agreement is
checked, and temporary heap buffers cannot enter queues. Only admitted fields
enter existing retained chunks. The
dependency and source review
pins checksum-verified lz4_flex =0.14.0 with safe encode/decode and checked
decode. The combined source proof
contains exactly clock plus envelope, without common-route metadata. Neither
changes persisted memory fields, saved retries, batching, priorities or physical
accounting. Changed peer contracts require matching fresh installations, with no
old-byte decoder, migration or negotiation.
Standalone LZ4 fails the instruction objective: +294,762,799 I, including 394,880,000 additional page I, despite saving 14,035,994,402 cycles. The paired page review locates the increase in heap/provider regions; no matched receive/timer adds any 64 KiB region below 32. The measured combination reproduces clock's exact standalone delta against compression, with pages, bytes and calls unchanged. These are measured results, not added predictions. Sharing compressed-input and decoded-output receive workspace saves another 1,376,947 I and 2,753,894 cycles. Its 38 fewer access/dirty region pairs save 6,080,000 page I while other I rises 4,703,053. 388,800,000 additional page I versus control remain; coalescing does not solve the full overhead.
Native qualification is distinct: clock passes 125 checks across default and Tripwire; metadata passes 170 plus callback compilation; compression passes 193 plus callback compilation; the combined source passes 123 plus callback compilation. The workspace source/native review passes 250 checks. Application producer bytes match the frozen corpus. Metadata's first compile-only type-inference failure, compression's callback adaptation and probe-link failures, an excluded mixed-profile probe, and a Heavy launch blocked by a missing host dependency cache remain preserved in their experiment records. Pack16/zero-word packing was excluded after poor native compression; unsafe encoder research was not adopted. The selected workspace retains safe encoding and decoding.
Actual IC qualification
passes five lifecycle checks on selected Heavy image 494ffe07483c and 15 on
separate callback image 5e61e0d2afa5, including expected trap counts 1/1/2.
Same-image drained KEEP, pending-work rejection/resumption and callback recovery
do not establish old-contract cross-upgrade compatibility or performance.
Adding the LZ4 registry dependency conservatively changes the compiler class,
despite unchanged SDK source. No compatibility alias was added; control-to-selected
class upgrades were not qualified. The independent review records that boundary.
All measurements use frozen PocketIC
6a9a75ad9b4551d2b0f4a0d954ffb8bd5bbd0ebc44ac00290679b06ad0b2f8e6:
Normal/Application, 13-node reference pricing. Captured tariffs are two cycles
per Wasm64 instruction, 5M/execution, 260k/call pair and 1,000/transmitted byte.
The saved explain prices argument append at 500 + 50 I/byte.
Current IC source is separate evidence, not asserted binary provenance.