# Mobile exact-base proof driver

Run each commit from its own checkout, after `vp i`, with `T3CODE_DEV_SEED=0`.
Use an isolated fresh server home for each side. Start the real server and Metro with
`scripts/scenarios/start-app.ts mobile <home> <server-port> <metro-port> <reachable-host>`.
This repository helper disables paid providers and registers the recorded Replay (dev) agent.

Place `worktree-evidence-seed.ts` beside `scripts/scenarios/t3.ts` and `shell.ts`, then run:

```
node scripts/scenarios/worktree-evidence-seed.ts <home> <server-port>
```

Lease a fresh Pixel 9 (Android API 36) with the device-pool workflow. Install the dev client using
`vp run mobile:install android --session <session> --metro <reachable-metro-url>`.
Pair using `.agents/skills/test-t3-mobile/scripts/pair-client.sh` with the isolated home and port.

The same real-app interactions on both sides, in portrait/light theme (1080 × 2424):

1. Open the idle **Exact base worktree** thread.
2. Start `agent-device record start <video.mp4> --hide-touches --session <session>`.
3. Tap **Git controls**, **More**, **Branches & worktrees**.
4. Read a full `agent-device snapshot --json`; the **Worktree base branch** field is `release\u00a0` (U+0072 U+0065 U+006C U+0065 U+0061 U+0073 U+0065 U+00A0). Do not edit it.
5. Take a new interactive snapshot (full and interactive snapshots have different refs). Fill **Worktree branch name** with `feature/new-worktree`; dismiss Gboard with `agent-device keyboard dismiss`.
6. Capture the selected-base form twice, more than 500 ms apart. Tap **Create worktree**.
7. Open **Files**, tap **f**, and capture twice, more than 500 ms apart. Stop recording.
8. Run `python3 verify-result.py <home>` to read the resulting Git worktree HEAD and file content without exposing workspace paths.

All taps/fills used `agent-device press @ref` and `fill @ref ...` against fresh snapshots.
No test IME, patched client, fake server, or provider shim supplies the Git behavior.
The server performs real Git operations. Replay is used only to make the initial thread idle.

For published stills, crop the 70-pixel system status bar. Compare the two app-area images byte-for-pixel before accepting them. Recordings retain the full device viewport.

Additional head-only check: after the first result, return to the thread, open the same sheet,
fill the base with ` \trelease\u00a0\t ` (literal ASCII space, tab, release, NBSP, tab, space),
fill the new branch with `feature/padded`, and create it. The accessibility snapshot confirmed
all 12 characters before submission. Open Files → f again: it reads `nbsp`; Git confirms
`feature/padded` points to the NBSP branch commit. The base comparison uses the original
untouched-field reproduction; the additional padded-input check was run only on head.

Published videos are resized to 540 × 1212 and append a labeled three-second result still,
because Android screenrecord can stop encoding before a static final file view. Original
recordings are linked separately; no frames of the app interaction are replaced.
