Repository navigation
Conversation
Size Report
Startup median (7 runs, lower is better):
|
There was a problem hiding this comment.
All reported issues were addressed across 11 files
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 1 new finding on 1f857e8. The verdict and the full list are in the summary comment.
- 🟡 Minor · Interruption-handling check now asserts nothing outside the simulator ·
apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/UnitTests/RunnerTests+AlertObservationTests.swift:244
|
The code at 1f857e8 looks correct, and all 23 checks pass at that head, including the runner unit tests on iOS simulator destinations. No conflicts are known. Live evidence at this head is still missing, so this is not ready to merge yet. Not verified here: whether SpringBoard-owned system alert windows (passed as resolvedWindow) resolve a display ID and touchscreen sender on every supported runtime. On base, those taps fell back to the XCTest record. Now they refuse. Not verified here: how often RunnerSimulatorTouch.prepare fails on supported simulators, and the 333/333 cross-app figure has no artifact attached. The 47-test simulator run was at 7314eaa, and 1f857e8 adds the Alert.swift refusal catch. Please run a tap on a system alert button on a simulator at this head. The output should show either the HID dispatch succeeding or UNSUPPORTED_OPERATION with zero coordinate taps. Please attach it. Not blocking, take or leave: (1) the no-fallback rule lives in a thrown error raised only inside simulatorHIDTap. Pre-dispatch refusals from pointGestureTarget (SynthesizedInteraction.swift:97-98) return .unsupported, and with a readable tree the caller still runs the XCUICoordinate tap. On a #4091 simulator, a portrait tap refuses but a landscape tap goes through XCUICoordinate. Either state the rule in the policy owner or narrow the ADR sentence to the HID-preparation case. (2) The refusal hint at RunnerTests+SynthesizedInteraction.swift:651 always says to retry after foregrounding the app, which does not help a broken simulator runtime. A restart-the-simulator or rebuild-the-runner hint fits those reasons. (3) That hint text duplicates RunnerTests+ScreenEdgeGesture.swift:46, so one shared hint would do. (4) The "contact never went down" branch at RunnerTests+SynthesizedInteraction.swift:641 has no test. One case with a prepared touch that returns a message and touchDown false would cover it. Simplicity question: under #if targetEnvironment(simulator), could SynthesizedGesturePolicyKind.coordinateTap.allowsXCTestCoordinateFallback return false, with simulatorHIDTap returning .unsupported(message, hint) for prepare and no-touch-down failures? Then RunnerGestureRefusedWithoutFallback and its catches in performSynthesizedGesture and activateAlertButton could go. One rule in the owner would cover HID failures and pointGestureTarget refusals alike, and the ADR sentence would become true. |
A simulator tap is now only its touchscreen HID contact. A contact that cannot be prepared, or never goes down, throws RunnerGestureRefusedWithoutFallback: performSynthesizedGesture answers it as an UNSUPPORTED_OPERATION refusal with the HID reason and a hint, and no XCTest event record or XCUICoordinate tap runs in its place. Physical devices keep the XCTest record and its fallback. The unit tests stub RunnerSimulatorTouch preparation and the lit-panel probe's prepared touch instead of XCTest tap synthesis, and the tests that asserted an XCTest fallback on a simulator now assert the refusal. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…the ADR wording Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…tact that never went down Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
1f857e8 to
16489d4
Compare
|
Live evidence at Changes for the review items:
Tests passed on this change before the clean rebase onto main (the live run above used the rebased head): the new test, the prepare-failure selector tap, alert activation refusal and synthesized sequence tap refusal tests. |
Apex Sentinel · ✅ Approve · review of
|
| Command | What it does |
|---|---|
@apex-sentinel-staging note <context> |
Adds context; Sentinel re-checks the cited code |
@apex-sentinel-staging pivot <why> |
Says the finding is wrong; Sentinel re-checks the cited code |
@apex-sentinel-staging like |
Marks the finding as useful |
@apex-sentinel-staging dislike <why> |
Marks it as not useful, so it is not raised again |
On this conversation, comment @apex-sentinel-staging review to run a full review once again.
Summary
A simulator tap is only its touchscreen HID contact (#5350). When that contact cannot be prepared or never goes down, the tap answers
UNSUPPORTED_OPERATIONwith the HID reason and one shared hint (restart the simulator, then rebuild the runner), and sends nothing: no XCTest event record, noxctest-coordinate-tapfallback. The refusal is a typedRunnerGestureRefusedWithoutFallbackthatperformSynthesizedGesture(and alert activation) answers before any fallback policy. Physical devices keep the XCTest record and its fallback. ADR 0011's simulator amendment is updated.Consequence: on a simulator whose display size is unreadable (#4091), a portrait tap now refuses instead of dispatching through the XCTest record.
Value
RunnerSimulatorTouchpreparation and a recording prepared touch instead.Validation
At
7314eaa, on a fresh iPhone 17 Pro iOS 27.0 simulator:pnpm build:xcuitest:ioswith unit tests, thenxcodebuild test-without-buildingfor the 47 tests that use the changed stubs (all ofRunnerRequestPanelTests,SynthesizedTapContextTests, and the reworked alert, command, sequence and #4091 tests):Executed 47 tests, with 1 test skipped and 0 failures(the skip is the host-dependent placed-window case). CI owns the remaining gates.🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.