perf(ios-runner): confirm a back button pop from the back buttons before reading the bars
Summary
After iOS back taps the navigation bar back button, each confirmation read snapshotted every navigation bar, even when the back buttons alone already showed the pop. The candidates are a tree-order subset of the BackButton buttons, so when the labels before the tap are not a subsequence of the labels read now, no bars can keep them. Such a read now answers the pop without the bar query, so a bar read that would fail or hang cannot turn it unverified. Otherwise nothing changes, including the lookup before the tap.
The BACK_NAVIGATION_BAR_BUTTON line gains poppedBy=buttons|bars. A fixture flag keeps the floating back button across the pop, as on the closed iPhone Duo.
Validation
iPhone 17 Pro simulator, iOS 27.2. Base feb94004f5, timed at 8f71338150 (head 65cc2da784 only rewords RUNNER_PROTOCOL.md). Settings, General > Fonts > System Fonts, then back three times; builds alternated, 21 backs per build per round:
median (p90), ms base head delta
head 8f71338150, 2 rounds
daemon 901 (1019) 833 (956) -68 (-7.6%)
CLI 1050 (1162) 954 (1094) -96 (-9.2%)
aab1deb7ab, 4 rounds (same runner code; head changes tests and a test hook)
daemon 868 (953) 787 (893) -81 (-9.3%)
runner confirmMs / lookupMs 180 / 293 106 / 295
- At head, Safari's edge swipe still runs (
outcome=performed changed=yes). Ataab1deb7ab, base and head matched on Settings depths 3, 2 and 1, Safari in both orientations, and landscape Contacts. - iPhone Duo, closed:
poppedBy=bars, thenpoppedBy=buttons. Open and half-open: the lookup exceeds its 1 s budget at base and head alike. - Runner unit tests at head: 790 run, 0 failures, 2 skipped. New tests cover the subsequence rule, the bar title path, a bar query that fails or hangs, and the read deadline; 10 mutants each fail a test.
native-dupes,xctest-selection,packaged-runner-swiftandcheck:affectedpass.