# Reproduction driver

Core comparison: base 66cc44d75b95b76933443b6864054a5354d52c27, head 5ffb465fd5591196000c4675098a8f63581a6fe2. Use separate checkouts, dependencies (`vp i`) and builds (`vp run --filter @t3tools/web build`). Run start-server.sh once per side, with the same empty proof root mounted at /proof; base port 14895 and head port 14894. The image was node:24-alpine, sha256:116b800c3754b440ee0aa3ed2f20f5bf3d99a554bfd9adeea09ea8017f6e85f5. Servers use their own fresh database and no seed from any existing T3 installation.

Pair each browser through the startup URL (do not publish tokens), visit /welcome, use dark appearance and 1440x1000 CSS pixels. browser-driver.mjs records the tool interactions: Browse ACP Registry, search VT Code, Add VT Code, wait for Identity displaying v0.96.14 binary, Continue to sign-in. The original head recording includes pauses to inspect snapshots. Uploaded videos remove trailing idle time only, without changing speed or the interaction sequence. The endpoint stills were byte-identical in repeated screenshots more than 500 ms apart. The hostname alpine-proof was assigned deliberately; no container IDs were redacted or claimed to be redacted.

## Supplemental live-server RPC

rpc-driver.mjs runs inside the same container, issues its own local session without printing the token, and calls the real server. Mount all supplied scripts under /proof. Examples:

```sh
node /proof/rpc-driver.mjs /proof/head-state 14894 search
node /proof/rpc-driver.mjs /proof/head-state 14894 prepare sigit
node /proof/rpc-driver.mjs /proof/head-state 14894 prepare amp-acp
```

Repeat search against base, changing the state directory and port. Sigit has a gnu Linux binary plus npx and no musl target; amp-acp has no compatible fallback. Runtime transcript contains the actual responses, not assertions or a mock registry.

For executable override, call server.updateSettings via rpc-driver.mjs `call` with a JSON argument:

```json
{"name":"server.updateSettings","payload":{"patch":{},"providerInstanceMutation":{"operation":"upsert","instanceId":"acpRegistry_vt_code","instance":{"driver":"acpRegistry","displayName":"VT Code","enabled":true,"config":{"agentId":"vtcode","distribution":"auto","commandPath":"/proof/head-state/tools/vtcode/0.96.14/linux-x86_64-musl/vtcode"}}}}}
```

Then run watch-spawn.mjs with the same arguments as rpc-driver, using `call` and:

```json
{"name":"provider.auth.start","payload":{"instanceId":"acpRegistry_vt_code"}}
```

The observer samples the real process's command line and only the two VT_ACP environment variables. The CLI is the actual managed VT Code executable. No wrapper or substitute provider was used. Cancel the returned auth flow through provider.auth.cancel (instanceId and returned flowId); do not complete account login.

## Terminal PATH and uninstall fixture

After core captures, preserve base's original gnu installation by moving `/proof/base-state/tools/vtcode/0.96.14/linux-x86_64` to `/proof/base-original-glibc`. Copy head's actual downloaded `/proof/head-state/tools/vtcode/0.96.14/linux-x86_64-musl` directory, unchanged, to the corresponding base directory. Base cannot download this target itself; the fixture isolates directory discovery and cleanup. Both now have the same official musl binary.

The prebuilt node-pty addon segfaults under this image. For these supplemental terminal checks, install python3, make, g++, linux-headers, bash, and git via apk in each container, then build node-pty with the installed node-gyp 12.4.0 (`node .../node-gyp/bin/node-gyp.js rebuild`, cwd the real node-pty package directory). Restart both servers after compiling; already-loaded native modules cannot be replaced in a running process. This changes native build output only, not T3 source. Do not install glibc compatibility packages.

Open the existing bootstrap thread on each server, dismiss the unrelated unavailable Codex status, open the terminal drawer, and run the identical command:

```sh
command -v vtcode; vtcode --version; echo exit=$?
```

Base prints `vtcode: not found`, exit 127; head resolves the managed musl directory and executes, exit 0. The upstream registry's 0.96.14 musl artifact prints version 0.96.12.

Remove the VT Code provider instance on each server via server.updateSettings with providerInstanceMutation `{ "operation": "remove", "instanceId": "acpRegistry_vt_code" }` and empty patch. Once prepared-install reservations have expired, run:

```sh
node /proof/rpc-driver.mjs /proof/base-state 14895 uninstall vtcode
node /proof/rpc-driver.mjs /proof/head-state 14894 uninstall vtcode
node /proof/filesystem-evidence.mjs
```

Actual responses and filesystem results are in runtime-transcript.txt. Base leaves the musl directory; head removes it. Stop both named containers and discard only these isolated states and worktrees when finished.
