fix(capture): retain observed post-gesture surface changes

Merged
TH
1d ago
+338-34

Summary

Fixes #5286.

A comparable capture on the same ordered stream must show new identified content to retain a transient response. Edge bounces can shift or clip existing rows. Capture planning derives ordering from producer facts with the comparison keys. Equal signatures across a capture-key switch at budget expiry report unsettled.

Physical iPhones use apple-runner. Its AX-free scroll and XCTest tree read lack a freshness guarantee, so ordering stays disabled. Guard history · Scroll dispatch · XCTest capture

Before / after

iPhone 17 Pro Simulator, iOS 27.0, AX bridge. Median guard time across three alternating runs per build.

Exact command and fixtureBase d0c9f5ebc2Measured head 7b664996e7
scroll up --settle, no control3/3 stale accepts, 3.555 s3/3 stale accepts, 3.528 s
scroll refresh --settle, no controlCLI blockedCLI blocked
scroll refresh --settle, real controlCLI blockedCLI blocked

Settle JSON omits postGestureOutcome. Edge stale accepts had no veto. The bound CLI rejects refresh. Replayed refresh followed by snapshot returned {"postGestureOutcome":{"kind":"no-effect","gesture":{"action":"scroll","positionals":["refresh"]}}} on both builds. A settled pull with a real control took 3.539 s vs. 0.786 s in the guard.

Validation

Final head 72cb20875b makes the quiet-key helper private. Build and 44 focused tests passed. The bounce test fails on ba07010ebf. No physical iPhone was available.


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.