# Real iOS delayed-route measurement

Platform: pooled iPhone 17 Pro simulator, iOS 27.2. Same device, Linux host,
light theme, 402×874 logical viewport, and native dev-client fingerprint on both sides.
JavaScript served by Metro from separate untouched checkouts:
base eb37934065f57f356ab66fcd4a018f24b2d9f4b7 and
head f5cc9078aee05e2a8f9daf15bb1a5f8a41a11b6e.
Each checkout runs its own real T3 server with fresh state and T3CODE_DEV_SEED=0.
No provider/model calls, copied database, mock server, or fabricated response.

1. Install dependencies with `vp i`; prepare/install iOS via `vp run mobile:install ios`.
2. Start that checkout's server with `T3CODE_DEV_SEED=0 node apps/server/src/bin.ts serve --port 47801 --host 127.0.0.1 --base-dir "$STATE"`.
3. Run `node route-proxy.mjs "$ARTIFACTS/proxy.jsonl"`. Both :47811 and :47812
   forward HTTP and WebSocket traffic to that real server. The localhost-only
   control port :47813 sets delay/blackhole mode and tags runs.
4. Start Metro from apps/mobile on a reachable port and open its dev-client URL.
5. Pair :47811 using a fresh token issued by `auth pairing create`, then use
   Settings → Environments → environment → Add route to pair :47812 with another
   token. Rename the client entry “Route timing demo”. Order :47812 first, :47811
   second. Check exactly two routes; the loopback-bound server advertises no extra
   reachable route. Routes are labeled VPN because they reach the forwarding host
   over the simulator pool's private network; :47811 plays the report's LAN role.
6. Start with the environment enabled. Run `python3 measure.py head "$ARTIFACTS"`
   (or `base`) from the corresponding checkout. It records the entire batch,
   blackholes :47812, delays each :47811 descriptor GET by 600 ms, and performs five
   off → wait 5.5 s → on cycles. Each cycle waits four seconds after the tap command
   finishes, captures the route screen, and records the accessibility state.
7. Collect the request-only sanitized proxy log as measurement-events.jsonl, then
   run `python3 analyze.py "$ARTIFACTS"`. probe1 is the first LAN descriptor GET;
   probe2 is the next LAN descriptor GET; shell is the first
   /api/orchestration/shell request. All timestamps use the forwarding process's
   monotonic clock. Ranges are min–max across five runs, not confidence intervals.

The same 600 ms delay applies to both descriptor requests in both builds.
Unlike the report's local-device numbers, the pooled simulator crosses a remote
network on each request, so absolute numbers differ. The comparison tests the
same late-answering route versus silent route, with identical delay on both sides.

Recordings preserve interaction timing; addresses are redacted and resolution is
reduced to the logical viewport for sharing. No status text or frames are removed.
The record starts before the first off action. Each batch shows all five cycles.
