# Real server proof for issue 42676

This experiment drives the real T3 Code server through authenticated WebSocket RPC. It does not run unit tests or substitute provider-core implementations.

Environment: Linux x86_64; Node v26.13.1; npm 11.20.0; globally npm-installed Codex 0.172.0. Each side has its own checkout, freshly created database, isolated npm cache, local throttled HTTP registry, and no copied user data. The reported npm version was 11.19.1; this worker has 11.20.0.

Base: 024da4f7bfa49973baddb35f39aa95f4ec20222c (merge-base of fix with origin/main).
Head: d39c590d52c84b9534a796239a5130fb1a25f430.

## Reproduce

1. Install dependencies with `vp i` in each checkout.
2. Download the real public Codex packument from [npm](https://registry.npmjs.org/@openai%2fcodex) to `packument.json` (19,956,129 bytes in this run).
3. Run `python3 prove.py CHECKOUT before OUTPUT_ROOT packument.json rpc-driver.mjs` on the base and the same command with `after` on the head. Requires Python Pillow, Node, npm, globally installed Codex, and ffmpeg.
4. The driver starts a local registry serving that exact JSON in 40,960-byte chunks every 100 ms (400 KiB/s). It starts `node apps/server/src/bin.ts serve --base-dir FRESH_DATA --host 127.0.0.1 --port PORT --no-browser`, with `T3CODE_DEV_SEED=0`, `npm_config_cache=FRESH_CACHE`, and `npm_config_registry=LOCAL_REGISTRY`.
5. Once the server answers its environment discovery route, leave it without a WebSocket client for 210 seconds.
6. Issue a bearer session using the tested checkout's `auth session issue --token-only` CLI. Mint a WebSocket ticket, connect to `/ws?orchestrationProtocol=2`, and send `server.refreshProviders` with payload `{}` 20 times, three seconds apart.
7. Observe for another 65 seconds after the final three-second interval, then measure the remaining files and bytes in `_cacache/tmp`, count completed/aborted registry requests, and read the prefix of a leaked file where present. Stop the captured server process.

`telemetry.json` and `transcript.txt` are the observations. The dashboard video is a visualization of real HTTP request events, RPC replies, and npm filesystem measurements sampled once per second, played at 5x. It is not a screenshot of T3's web UI. `render.py` renders these recorded measurements without rerunning the experiment; it wraps transcript text for legibility and checks the final still is identical across two renders 500 ms apart. Video review contact sheets come from decoding the actual MP4.

The private server log is deliberately excluded: the CLI prints fresh pairing credentials there. All published data is synthetic test state or public npm package metadata.
