fix(cache): a row of a windowed list is not keyed by its list's first rendered row; mobile benchmark re-recorded, Android strict
Merged
OK
2mo ago+3567+3567+0123456789012345678901234567890123456789-4121-4121-0123456789012345678901234567890123456789
What and why
- The 39 mobile recordings dated from Sep 23-24, before the Oct 3 replay policy bump (#732) and the key change in #929. Every mobile agentic CI run missed all of them (
20 missed/21 missedon the last three merge queue runs) and called the model for every step. - Both platforms are re-recorded on a Mac: iPhone 17 Pro on the pinned iOS 26.5 runtime, Pixel 7 API 36 headless, against release builds made the way
.github/actions/expo-appmakes them. 20 Android entries, 21 iOS. - The Android agentic job runs with
--strict-cachelike the web one: a recording that no longer replays fails its step asREPLAY_STALEinstead of spending model calls on every run. - iOS stays lenient. Three iOS recordings hand off on every replay, each an engine gap the README now names: Debounced Search (replay looks before the debounced results render, and relocation settles on the search field's wrapper, which reads "Benchmark Target" too), Choice Controls (the notes field's keyboard covers the Mushrooms checkbox and iOS drops it from the tree), Stripe PaymentSheet (the card form's fields are not in the tree after the Card tab is tapped). The other 18 replay.
- The web benchmark cache kept 30 entries under the pre-#929 key next to their re-keyed twins; the orphans go. Every one of the 30 has a live twin recorded for the same step.
- One cache fix, found by the first strict Android run on this branch. The container key of a row inside an unnamed list was the list's first leaf text (
containerKey,packages/e2e/src/agent/actions.ts). On Android a windowed list renders whichever rows are near the viewport, so that text is a scroll position: the Huge Virtualized List tap was recorded astap group "Row 0512" in "Row 0500"and handed off whenever the window started at 0501, once locally and once in CI. A container whose first text sits in a twin of the row the node came up through is a list and keys nothing by that text; its own label still keys it. The four Android entries that carried such a key (Infinite Scroll List, Huge Virtualized List, Sticky Chrome Target, Product Catalog) are re-recorded. iOS entries carry no placement. Web entries are unaffected: strict web replays the same 26.
// packages/e2e/src/agent/actions.ts
const key = (namedAfterTwinOf(container, nodes.get(came)) ? undefined : firstLeafText(container)) ?? ownLabel(container);
flowchart LR
A[mobile agentic job] --> B{platform}
B -- android --> C[e2e run --strict-cache]
C --> D{entry replays?}
D -- yes --> E[replayed, no model call]
D -- no --> F[REPLAY_STALE, job fails]
B -- ios --> G[e2e run]
G --> H{entry replays?}
H -- yes --> E
H -- no --> I[hand off to the model]
Verified
Ran it locally: yes
- mobile-benchmark, Android,
e2e run --target android-emulator --config e2e.agent.config.ts --strict-cacheon Pixel_7_API_36 with the committed entries:20 passed,15 replayed · 2 handed off · 3 missed. The hand-offs and misses are swipes and run-time values, which the grammar does not record. - mobile-benchmark, iOS, same command without
--strict-cacheon two iPhone 17 Pro (26.5) simulators:22 passed, 18 replayed; the three named above hand off. With--strict-cachethose three fail asREPLAY_STALEon every run, which is why iOS is not strict yet. - web-benchmark,
e2e run --config e2e.agent.config.ts --strict-cachewith the pruned cache:33 passed,26 replayed · 2 handed off · 4 missed, the same summary main's web agent job has printed since Oct 5.
| suite | main | this branch |
|---|---|---|
| android agent | 20 missed | 15 replayed · 2 handed off · 3 missed (strict) |
| ios agent | 21 missed | 18 replayed · 1 handed off · 3 handed off on known gaps |
| web agent | 26 replayed · 2 handed off · 4 missed | 26 replayed · 2 handed off · 4 missed |
CI on this branch
- web agent (strict): 33 passed, 26 replayed, same as main.
- android agent (strict): 19 passed, 1 flaky, 15 replayed, Huge Virtualized List replayed. The flaky test was Login Form: a recorded action failed on the first attempt (
REPLAY_STALE, action-failed, typing on the loaded emulator), and the--last-failedpass replayed it under strict and passed. An earlier run flaked on Gestures the same way: the replayed long-press completed, then the live agent's swipes were not accepted. - ios agent (lenient): 21 passed, 10 replayed. Besides the three gaps above, three entries hand off on the CI simulator only, now named in the README: Login Form (the CI simulator reads the route as the screen title
Login Form, a Mac reads the back button'sBenchmark Examples), Photo Picker (the recorded tap names the photo by its seed time), Permission Prompt (end stateMicrophone enableddoes not show after replay). All six are engine or cache follow-ups; none is a stale recording.
The first strict Android run on this branch failed on Huge Virtualized List both passes; that was the placement key above, not scroll-until. With the fix, Android strict replays locally: 20 passed, 15 replayed · 2 handed off · 3 missed.