# Real-server reproduction

Run each side from its own checkout, with `vp i` installed. Use the same Node and Codex CLI (this run: codex-cli 0.172.0). No test runner, fake CLI, or fabricated provider response is used.

1. Put `codex-capture.mjs` in a scratch directory and make it executable. It transparently records only actual `turn/start` stdin requests and forwards all bytes unchanged to the installed `codex` on PATH.
2. Give each side a fresh `T3CODE_HOME`/explicit `--base-dir`, with `userdata/settings.json` containing:

```json
{"providerInstances":{"codex":{"driver":"codex","enabled":true,"config":{"binaryPath":"<absolute-path-to-codex-capture.mjs>"}}},"defaultModelSelection":{"instanceId":"codex","model":"gpt-6-luna"}}
```

3. Start the real server from the side's checkout:

```sh
T3CODE_DEV_SEED=0 T3CODE_AUTO_BOOTSTRAP_PROJECT_FROM_CWD=0 PROOF_CAPTURE="$PROOF_ROOT/$PROOF_SIDE-requests.ndjson" node apps/server/src/bin.ts --base-dir "$PROOF_ROOT/$PROOF_SIDE" --port 17777 --no-browser
```

4. Put `captured-window-proof-driver.ts` in `scripts/scenarios/` of a runner checkout with `t3.ts` and installed dependencies. Run:

```sh
PROOF_ROOT="<scratch-directory>" PROOF_SIDE=base node scripts/scenarios/captured-window-proof-driver.ts
# Stop the first server; start the head server with PROOF_SIDE=head and its own base-dir.
PROOF_ROOT="<same-scratch-directory>" PROOF_SIDE=head node scripts/scenarios/captured-window-proof-driver.ts
```

5. The driver creates a synthetic Git project and three new Codex threads via the real T3 RPC. It uploads a valid synthetic PNG and dispatches the message attachment with captured-window metadata (Editor, Demo, Save button). It sends one x for calibration, enough x characters to make the full prompt exactly 120,000 characters, then a control 120 characters shorter. Each turn is stopped after its actual outbound request is captured; model interpretation is not evaluated.

In this run the overhead was 439 characters on both sides, so the boundary message contained 119,561 x characters and the control 119,441. The different fixture/path overhead from the reported screenshot is measured rather than hard-coded.

Published transcript text abbreviates only the repeated x characters and redacts the scratch-directory prefix. Published outbound-text JSON retains every x and redacts only that prefix; its originalCharacterCount is measured before redaction. Other request fields are omitted to avoid publishing machine context. The initial setup attempt omitted attachment source metadata; it was corrected before the published three-step captures were collected.

The defect is in the server's outgoing prompt; no client screenshot is presented as evidence for text that the client does not display. The real Codex protocol was captured because the generic Replay adapter does not expose its outgoing prompt in native logs.
