# Resource telemetry history measurement

Linux x86_64, Node v26.13.1 selected by vp, same VM, sequential base/head servers, fresh separate data directories. No real user data.

Base bf6c5dfd556b7ff9556eb730f1d686d7de12646b; head 4391de1c1ac9621b3bd7bac6fc2daafe551547ed.

The actual T3 server is started from each checkout using:

```sh
T3CODE_DEV_SEED=0 vp exec node --expose-gc --inspect=127.0.0.1:0 --import ./preload.mjs apps/server/src/bin.ts --no-browser --host 127.0.0.1 --port 18461 --base-dir ./isolated-state > ./private-server.log 2>&1
```

Keep scripts outside the checkout and substitute their paths. Wait for the server's Listening message. Then, from that checkout:

```sh
vp exec node drive-server.mjs private-server.log CHECKOUT server-workload.mjs results.json
vp exec node drive-server.mjs private-server.log CHECKOUT repeated-workload.mjs repeated-results.json
```

Stop the captured server PID (results.json.pid) before starting the other commit. Server logs contain pairing credentials and are intentionally excluded from uploads.

The inspector invokes an imported scratch measurement module inside the real running server process. That module directly imports the checkout's unmodified production buildResourceTelemetryHistory. It feeds synthetic native snapshot-shaped input, as the triage benchmark did; it does not replace a provider, native monitor, or service. No RPC or browser is involved. No test runner or assertion timing is used.

Input: 3,600 snapshots one second apart, one-hour window, deterministic varying CPU/RSS/IO counters. Main matrix: 3 and 30 processes, buckets 1 second / 2 minutes / 5 minutes, 3 warmups and 31 timings per case. Primary stability check: 3 processes and 1-second buckets, five repetitions of 3 warmups plus 15 timings. GC is forced immediately before each call and excluded from the timer, on both sides. Returned history serialization is hashed in full outside the timer; matching SHA-256 means the output matches, including bucket series and process summaries.

All individual timings are retained. Repetition medians are separately compared to avoid treating a single GC/JIT/scheduling outlier as a stable performance difference. This measures synchronous computation on the server event loop; it does not measure RPC encoding, native history acquisition, UI rendering, or user-observed load latency.
