# Android PR search runtime proof

Base: d0f148b2cb76b00e676e3718b63371fd044473df
Head: 093a4687e4806be3c14371c872fe7f7ac1780d19

Each commit ran from its own checkout, with dependencies installed by `vp i`,
and its own fresh backend (`T3CODE_DEV_SEED=0 vp run dev:server`). No live database
was copied. The authenticated GitHub CLI and the real pingdotgg/t3code repository
provided actual PRs; no fake forge or response fixtures were used.

The device was a pooled Pixel 9 emulator, Android API 36, portrait 1080x2424,
light theme with Gboard. The cached native dev client was installed for each
checkout using `vp run mobile:install android --session "$DEVICE_SESSION"`.
Its native fingerprint was identical on base and head. Metro ran each checkout's
JavaScript separately (`vp run dev:client --port 8081` in apps/mobile, with
REACT_NATIVE_PACKAGER_HOSTNAME set to the device-reachable host). The app was
restarted when switching Metro. Its local storage was cleared between sides by
uninstalling and reinstalling the dev client. Each server was paired using the
repository's pair-client.sh helper and a fresh credential.

`wire-proxy.mjs` is a transparent HTTP/WebSocket forwarding proxy, not a stand-in
backend. It forwards to the real app server and records only outgoing
pullRequests.list requests; no responses are invented or edited. Example:

```
CHECKOUT=<checkout> TARGET_PORT=<backend-port> PROXY_PORT=<device-reachable-port> \
CAPTURE_FILE="$EVIDENCE_DIR/base-wire.jsonl" node wire-proxy.mjs
```

Pair the client to the device-reachable proxy URL. Start the driver on a freshly
started, paired client. `drive.py` opens Pulls, taps Search pull requests, and
fills the same three strings on each commit:

1. 199 ASCII x characters plus 😀.
2. `label:` plus 199 x characters plus 😀 plus ` fix`.
3. 198 x characters plus 😀 (the complete emoji fits inside 200 UTF-16 units).

```
EVIDENCE_DIR=<output-directory> DEVICE_SESSION=<pooled-session> python3 drive.py base
EVIDENCE_DIR=<output-directory> DEVICE_SESSION=<pooled-session> python3 drive.py head
```

The driver records the interaction, waits for the corresponding real request,
and requires two identical screenshots at least 500ms apart for each still.
The search field horizontally scrolls its long contents; full inputs and raw
request payloads are in observations.json. Each screenshot shows the same empty
search result, so it alone cannot distinguish malformed Unicode on the wire.
The annotated evidence image combines the real screen with measurements from
the observed request. It does not represent an app diagnostics UI.

On base, the first two cases send a 200-unit string ending in lone high surrogate
D83D; String.isWellFormed() is false. On head, both send exactly 199 x characters,
with no surrogate. The fitting-emoji control sends all 200 UTF-16 units, ending
D83D DE00, on both commits.

The proxy's utf8RoundTrip field is a Node Buffer encoding calculation on the
captured value. It is not a capture of what gh or GitHub receives downstream.
No claim about the downstream U+FFFD behavior is made by this proof.
