Repository navigation
Engine: a coordinate click whose screenshot target has moved, gone or been replaced is refused, nothing posted or pressed, on every route including #282's element route (#296) - #300
Merged
Conversation
…he screenshot showed is refused, nothing posted (refs #296) Every observation with a screenshot now records, with it, each window node's handle, role, title, description and frame (cut by its clipping ancestors), and whether its children were all recorded. A coordinate click (every button, count and route) and a drag's start take the deepest recorded node at the point and check it: its own handle while its frame reads, else a handle re-created in place among the hit, its parents (300 levels) and its first 300 descendants (same role, frame within 2 pt, same title or description when both readable). Refused as screenChangedSinceScreenshot when the node is gone, its frame no longer holds the point (#294: Chrome's hit-test still answers the moved Reload), or another interactive element is hit; a non-interactive hit inside a node in place passes. Where #282 element-routes the click the guard is skipped; every path that would post there is refused before subtype 1 instead (PointerHold.refusedIfPosted). The meta carries stalePoint {verdict, reason, identity?, recordedRole?, hitRole?, ms}. Scroll is not guarded. Sminos-Session: cursor235#b93055dd (cua on macbook)
… screenChangedSinceScreenshot reaches the model as an input error (refs #296) Sminos-Session: cursor235#b93055dd (cua on macbook)
…-point refusal (Table 3 addition, refs #296) Sminos-Session: cursor235#b93055dd (cua on macbook)
…cendant bound, the limits, the vendor divergence, the 240-cell table) and its Interfaces lines; 0.26.0 (refs #296) Sminos-Session: cursor235#b93055dd (cua on macbook)
…ace, carries incompleteness through frameless nodes, and compares labels as the walk cuts them (refs #296) The review of d482bcc..a7a43b0, three P2s: - A coordinate is posted at the window's current origin, the record's frames are where the window lay at the capture. The record now keeps that origin; the node is chosen at the posted point less the window's shift, its frame read now is checked against the posted point, and a re-created handle is matched against the recorded frame moved by the shift. - A frameless node is never chosen, so its unrecorded children now count against its nearest framed ancestor's subtreeRecorded (window, frameless group, unreached button: unrecordedDescendant). - The record's labels are ElementData's, cut at 10,000 UTF-16 units; the label read now is cut the same way (and read from an attributed string too), so a long label re-created matches. Sminos-Session: cursor235#b93055dd (cua on macbook)
…ss and the like-for-like label cut (refs #296) Sminos-Session: cursor235#b93055dd (cua on macbook)
…resses only the observed node or its control and checks again after its wait; an empty hit mid-replacement is re-hit (refs #296) The design session's ruling 1ea561bc ca82a6f4 on the hosted A/B (run 42184616121): the skipped guard read stale while the element route pressed what lay there now (item-11 for item-9, the link Remove). Now: - deliverPointer throws a refused point's error first, on every path, the element route included; the hold's refusedIfPosted and PointerPostRefused are gone, and so is the meta's skipped verdict. - A kept point's route (#282's press, #283's focus) acts only on the node as found now or an ancestor of it (an incompletely recorded node's inside, or an unrecorded point, also pass); anything else is refused as pressedOther. - After the route waited (#282's action re-read; #283's focus settle and boxes' re-read), the guard runs again with a fresh hit-test just before the press (StalePointGate, meta rechecked). #283's waits follow its focus write, so a change there places no caret (CaretNotPlaced.screenChanged) rather than refusing. - The A/B's one false positive (a button replaced every 500 ms, refused nodeGone with no hit): with the handle gone and no real hit, the point is hit-tested again up to 3 times, 50 ms apart. - The sentence names nothing there when the hit's role cannot be read (no "element is there now"). Sminos-Session: cursor235#b93055dd (cua on macbook)
…d path, the second check, the pressed-element rule, the re-hit bound and the A/B's two corrections (refs #296) Sminos-Session: cursor235#b93055dd (cua on macbook)
… checked last at the perform; a truncated container passes only while it passes the guard itself (refs #296) The re-review of c8f37a9..7f79ca3, two P2s: - The route and its view are read from the hit the guard judged (stalePointRouteHit): a re-hit that recovered a re-created button now gets the web area's route and presses it, where the empty first hit had left a possible web area with no route. - The final check runs just before the action is performed, after the route's focus hold (pressAfterFinalCheck), whose activation guard polls; after a hold the guard runs again with a fresh hit-test. A refusal there presses nothing; the meta says afterActivation and the sentence says the app was activated but nothing was pressed. The hold is left as other refusals leave it. The design session's ruling 0a14b51f: inside a node the record holds incompletely, a post or a press goes through (any hit role) only while that container passes the guard itself, its own handle's label agreeing where both read (else relabelled, refused); the reason then names unrecordedDescendant, on both paths. Sminos-Session: cursor235#b93055dd (cua on macbook)
…ry early exit, and its interior is unrecordedDescendant; relabelled is gone (refs #296) The re-review of 7f79ca3..4630b68 (one P2) under the design session's ruling 2db3ba75: the incomplete-container condition ran only for a hit strictly inside, so a container-level hit (sameElement) or an empty hit (noHit) skipped it. The condition is now the guard's own (a live handle whose re-read frame holds the point, no label compared; or a re-created handle by role, frame and label), applied before those exits, and anything the point reaches inside such a container, itself or nothing included, is reported unrecordedDescendant. The live-handle title compare and the relabelled reason are removed (a web area whose title gains a count no longer refuses). Sminos-Session: cursor235#b93055dd (cua on macbook)
…sses as every node does, before every exit; a live one relabelled in place passes) and drops relabelled from the wire (refs #296) Sminos-Session: cursor235#b93055dd (cua on macbook)
… and the Decision Log's Proven live line (refs #296) Sminos-Session: cursor235#b93055dd (cua on macbook)
SSFSKIM
marked this pull request as ready for review
November 6, 2026 09:47
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A coordinate click or drag start whose screenshot target has moved, gone or been replaced is now refused, with nothing posted or pressed. Before this, cua posted at the screenshot point blindly and answered success, so a model clicking from a screenshot the app had since re-laid out hit whatever was there now. #294 found the case: Chrome for Testing's toolbar re-layout moved Reload, and the click landed on Forward. The hosted A/B also showed main pressing Delete for Save, the wrong row of a scrolled list, a later feed item, and a link that replaced a button.
The vendor posts blindly here. This refusal is cua's own, and the limits below state it.
Closes #296
The rule
The design session's rulings are 1ea561bc ee29283e, 0c0b70f0, ca82a6f4, 0a14b51f and 2db3ba75. The full text is in the spec's #296 Decision Log entry.
screenChangedSinceScreenshot, names what the screenshot showed and what is there now, and asks for a new screenshot.pressedOtherotherwise);cua/stalePoint {verdict kept|refused, reason, identity, recordedRole, hitRole, rechecked, afterActivation, ms}, says which reading applied, includingunrecordedDescendantandunrecordedwhere nothing could be checked. Observations carrystalePointRecordMs.Limits
unrecordedDescendant). A point in no recorded node is not checked (unrecorded). How often real pages hit this is Spike: how often real pages truncate the observation, leaving clicks the stale-point guard can't check #299.Live proof (GitHub-hosted macOS runners, 2 reps, branch against main d482bcc)
Evidence:
docs/evidence/2026-11-06-stale-point/(four runs; the final section is the head's).Before the build: the false-positive spike. https://github.com/SSFSKIM/cua/actions/runs/42179036967 and https://github.com/SSFSKIM/cua/actions/runs/42180641939 emulated the rule over 240 cells. As ruled it gave 0 false positives and 24 false negatives (same-role swaps). With the title amendment it gave 0 and 0.
The A/B on the first build: https://github.com/SSFSKIM/cua/actions/runs/42184616121 (134 branch cells), with record costs in https://github.com/SSFSKIM/cua/actions/runs/42185576996. It found:
The re-run on 7f79ca3: https://github.com/SSFSKIM/cua/actions/runs/42187363305. The rebuilt button at 20 s was kept 6 of 6, and the background Chrome cells were refused.
The final A/B on 2fdb9c9: https://github.com/SSFSKIM/cua/actions/runs/42189536608, with 72 branch cells across Chrome for Testing, Safari and a native window.
frameMovedrechecked, one clickrecreated), deliveredpressedOther;Cost per click,
stalePoint.ms, p95 in the final A/B:The p95 comes from the re-created search; a live handle checks in under 1 ms.
Record cost per observation, p95: Chrome 0.9 ms, Safari 0.3 ms. Native is 0.2 ms, apart from a single 9.5 ms outlier.
Tests and review
Engine: 849 of 849, including
StalePointTests(18) andStalePointDeliveryTests(4). The named load-bearing tests:Each rule's test fails when the rule is removed. The service suite passes 38 of 38.
reviewer-high, in four rounds, each re-review bounded to its fix range:
CI: ci-gate is GREEN on the final head 697ebd2: https://github.com/SSFSKIM/cua/actions/runs/42194976178 (all five gates). It is also GREEN on 2fdb9c9, the last code commit: https://github.com/SSFSKIM/cua/actions/runs/42189262790.
Sminos-Session: cursor235#b93055dd (cua on macbook)