# Android large-review fold latency proof

Run both commits on the same Pixel 9 Android API 36 x86_64 emulator and the same Linux host. Use each checkout's dependencies (`vp i`), fresh server state (`T3CODE_DEV_SEED=0 vp run dev --host 0.0.0.0`), and its Metro bundle. Install with `vp run mobile:install android --prepare`, then `vp run mobile:install android --session SESSION --metro METRO_URL`. Both commits resolve to native fingerprint ebead6e2ce65187f63ddca6095d89aa1ddc8dc5e.

Use seed.py with CHECKOUT BASE_DIR PORT FIXTURE_ROOT. It creates independent Git repositories with an empty initial commit, 10,000 or two staged empty files, and replay-agent threads through the real server CLI. Pair the client with the isolated server using the repository's pair-client helper. Keep only the server under measurement connected.

Open Review fixture -> Git controls -> Review changes. This is the Changes review, whose patch contains the staged files. The screen is light theme, 1080x2424. The native canvas has no accessibility nodes; the first header chevron is at (52,301). Perform a warm-up fold/unfold pair, six seconds apart, and return to all expanded.

Run `python3 measure.py SESSION OUTPUT_DIR SIDE`. It records eight taps of the first file, six seconds plus command overhead apart, alternating folded/expanded; then opens Tiny fixture through the UI and records eight identical taps on the two-file baseline. The same driver runs on both commits. Side is only an output-file label.

Run `python3 analyze.py VIDEO TELEMETRY OUTPUT_JSON`. The analysis decodes every native video frame, obtains its PTS with ffprobe, and classifies the first chevron by its dark-pixel bounding box: wide is expanded, tall is folded. It pairs the eight visible transitions in each series with the corresponding eight gesture telemetry events. The difference between video PTS and telemetry has a constant recording clock offset. The 10,000-file median minus the two-file median within that same video cancels that offset. Negative individual deltas are therefore expected and are not negative physical latency.

Run `python3 sheet.py VIDEO MEASUREMENT_JSON OUTPUT_PNG` to inspect every measured transition. Each cell comes from the exact native frame used for its timestamp; the first three neighboring headers remain visible. Full recordings also show lazy body placeholders for empty files further down the screen; these are outside the chevron measurement.

No application source was modified. This is an integrated native UI measurement, not a hook runner or unit test. The measurement reports added latency over the two-file baseline, not absolute input latency or the author's Node timings. It does not measure iOS, release builds, or a scaling curve.

For publication, publish-video.py crops the video to 1080x700 (the first three file headers) and covers the navigation interval between the two measured series, because thread headers include private environment labels. It preserves every measured frame and its original presentation timestamp. Re-running analyze.py on the published video gives identical measurements. The original viewport remains 1080x2424; only the published view is cropped. No names, credentials, or local paths are included in the published artifacts.
