# Real-app proof driver

Base: [a2ba869f2a](https://github.com/pingdotgg/t3code/commit/a2ba869f2aa54e397011dc5d4b87bd303a11fcfb)
Head: [ea19933d10](https://github.com/pingdotgg/t3code/commit/ea19933d10b19184b648fc48ec31ab256d81ba68)

Each checkout uses its own fresh server home. No database is copied. The seed script creates one project through the server API and adds the public GitHub repository remote; all pull requests, authors, avatars and merge counts come from live GitHub data.

## Web

Run the repository's scripts/scenarios/start-app.ts with surface web, a fresh PROOF_HOME, loopback host and a free port. Run seed-project.mjs with RUNNER_CHECKOUT, T3_SCENARIO_APP_DIR and PROOF_HOME naming that checkout and home. Sign in using the server's dev browser credential through POST /api/auth/browser-session. Drive the built-in T3 preview browser, light theme, 1280x800 CSS pixels (screenshots at 2x).

1. Open /pull-requests?q=author%3AStiensWout+fix. Open Filters and hover Author. Wait for live author search and image decoding to settle. Capture typed author.
2. Search authors for saphid and choose saphid. Show the Author menu again and wait for settled results. Capture replaced author.
3. Open /pull-requests?q=author%3AStiensWout+fix again. Choose Anyone in Author and show the menu again. Capture direct clearing of a typed qualifier.
4. Open /pull-requests?q=author%3AStiensWout+fix&author=saphid. In Filters > Draft choose Hide drafts. Show Author. Capture preserved query.
5. Close both menu levels, replace the main search with fix, and show Author again. Capture stored saphid fallback, with Hide drafts still active.

Each still is accepted only when two PNG hashes match at least 500 ms apart. Record the interaction in the preview browser; published web videos play at 4x, with no fabricated frames.

## Native iOS

Use device-pool via agent-device 0.21.45, base session proof43968 and fresh head session proof43968h, iPhone 18 Pro / iOS 27.2. Obtain the client via vp run mobile:install ios --prepare, then vp run mobile:install ios --session proof43968. The repository's pinned agent-device version cannot boot the current pool protocol; the newer CLI can lease and drive it.

Run start-app.ts with surface mobile, a fresh home, free server/Metro ports and the device-reachable host. Seed the same public GitHub project. Open the dev-client Metro deep link, then a fresh server pairing link through the app's connections/new route. Pairing/setup is excluded from published recordings. Return the base lease and take a fresh head lease: iOS Keychain connections survive app uninstall, so reinstalling on the same device does not provide isolated connection state.

1. Select PRs, open Search, enter author:StiensWout fix, and press keyboard Search to end editing.
2. Swipe the horizontal filter strip left to reveal Author. Open Filter by author > Search authors. Capture the StiensWout selection state in the actual native sheet.
3. Search the author sheet for saphid, press keyboard Search to dismiss the keyboard, and tap the visible saphid row. Capture the main query, active author chip and settled PR results.

Native accessibility falls back to XCTest on this pool device. Its sheet-row tap coordinates are vertically offset, so after semantic taps miss, use the visible row's screenshot coordinates. The native capture helper verifies matching screenshots 500 ms apart. Use --delay-ms 80 for reliable text entry. The first head recording download reset; the uploaded shorter head recording repeats the same sequence using native-recording-driver.sh. The head device has a working accessibility bridge, so semantic row taps work there; the base worker required screenshot coordinates for those same rows.

4. In the main search enter author:saphid fix and end editing. Open the author sheet again, then tap the checked saphid row to clear it. Capture the main query and chip after clearing.
