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 25 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: 2 new findings on 36c4f9e. The verdict and the full list are in the summary comment.
- 🟡 Minor · synthesizedSwipeFallbackHoldDuration branch is now unreachable on every platform ·
apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+ScrollDragExecution.swift:102 - 🟡 Minor · ADR still calls the Swift policy a source of truth for fallback rules it no longer models ·
docs/adr/0011-interaction-guarantee-contract.md:401
This comment has been minimized.
This comment has been minimized.
|
This PR is ready at 42d8585. Not blocking, and each can be taken or left: the new nav test testInAppBackAfterAnInterruptedBackButtonTapSendsNoSwipe runs only on a simulator, where the tap path already threw the outcome-unknown error before this change, so it passes without the physical-device fix in https://github.com/callstack/agent-device/blob/42d8585/apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/SynthesizedInteraction.swift#L109-L124 (a small static status-mapping function that a unit test calls for all four statuses would pin it, or the test doc can say it covers the simulator route only); apple/runner/RUNNER_PROTOCOL.md:357 should say that a synthesized sequence tap or long-press step reports the two codes, because tap steps now report them too; the PR body Summary still maps every non-NOT_DISPATCHED failure to UNSUPPORTED_OPERATION and omits SYNTHESIZED_GESTURE_OUTCOME_UNKNOWN, and its counts and validation head predate this commit; and the earlier note that SynthesizedGestureAttempt is now just timing plus a non-performed outcome, so the "Policy" file name no longer fits, can wait for a follow-up. Of the earlier review threads, #5359 (comment) (failure after hand-off) and #5359 (comment) (ADR error mapping) are fixed at this head. The threads #5359 (comment) (rename covers naming concern) and #5359 (comment) (ADR now limits the Swift file) no longer apply and can be resolved. CI is still pending: the one non-passing check is an in-progress review check that exercises no route this diff touches, and the other 17 checks pass at 42d8585, including the iOS simulator runner build and unit tests. No CI job compiles the physical-device runner, so the rewritten tap branch is checked by inspection only. Not verified here: a device build (xcodebuild build-for-testing -destination generic/platform=iOS) and one tap on a physical iPhone, which would close that gap. No conflicts. Nothing in the code blocks merge, so the merge waits only for the pending check. |
A synthesized tap, long press, drag, sequence step, nav-bar back tap, coordinate fill tap, or one-contact gesture whose private XCTest event record is refused now answers the refusal (SYNTHESIZED_GESTURE_NOT_DISPATCHED when nothing was sent, UNSUPPORTED_OPERATION otherwise) with the synthesis hint, instead of replaying the gesture through XCUICoordinate. Removes the fallback policy, its deferred-window proof and policy log marker, the gestureFallback* response fields and their TS diagnostic, and amends ADR 0011. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… unknown outcome The physical-device tap reported every event-record failure as UNSUPPORTED_OPERATION, so `back` read a record that failed after XCTest was handed it as unsent and sent the edge swipe too. The tap now reports its dispatch stage like the drag and long press: a refusal before hand-off answers SYNTHESIZED_GESTURE_NOT_DISPATCHED, and a failure after it throws the unknown outcome, so no second gesture follows. ADR 0011's amendment maps both stages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…own status The tap synthesis status now carries the dispatch stage, so the dispatched out-parameter leaves the tap API, and the unit tests share one tap helper. This clears the native-dupes clones. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…stale policy docs Off iOS no synthesized lane exists, so a caller that passes a drag profile still performs the XCTest coordinate drag; the branch stays and its hold helper no longer implies a removed fallback. ADR 0011 now names only the rules the Swift policy file still owns. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
42d8585 to
75aa712
Compare
Apex Sentinel · ✅ Approve · review of
|
| Where | Finding |
|---|---|
apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+SequenceExecution.swift:181 |
🆕 Uncaught RunnerCoordinateRefusal in performSequenceStep fails the whole sequence command |
Reviewed with this repository's own Sentinel configuration (64dd30eae755).
💬 Talking to Sentinel
In a finding's thread, reply with:
| 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.
There was a problem hiding this comment.
Apex Sentinel: 1 new finding on 75aa712. The verdict and the full list are in the summary comment.
- 🟡 Minor · Uncaught RunnerCoordinateRefusal in performSequenceStep fails the whole sequence command ·
apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests/RunnerTests+SequenceExecution.swift:187
Summary
Stacked on #5354. Invariant: a synthesized iOS gesture never switches to an
XCUICoordinategesture. Covered: tap, long press, drag, one-contactgesture, sequence tap/long-press, nav-bar back tap, coordinate fill tap. When the private event record is refused, the runner returns the refusal with the synthesis hint:SYNTHESIZED_GESTURE_NOT_DISPATCHEDwhen nothing was sent, otherwiseUNSUPPORTED_OPERATION.Why: both routes go through testmanagerd event synthesis and only differ when a private selector is missing. The XCUICoordinate route crashed the runner on a rejected AX root (#4274). No report or local log shows the fallback firing.
Removed: the fallback policy, the deferred-window proof, the policy log marker, the
gestureFallback*wire fields, and the TS diagnostic. Older runners still send the fields; the client ignores them, so version skew is safe. ADR 0011 and RUNNER_PROTOCOL.md are amended.Value
.xctestFallback): 10 → 0Validation
141 affected runner tests on an iPhone 17 Pro simulator (iOS 27.0) at 3b10ed3: 140 passed;
testCoordinateTapCommandOnASoleScreenPhoneLandsWithoutAWindowsQueryread its witness early, is unchanged here, and passed alone.pnpm vitest run runner-session-response.test.tspassed (10 tests).Risk: if the event record fails only on a physical device, the gesture is now refused instead of falling back to a slower XCTest gesture.
🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.