Repository navigation
Description
Problem
#296's stale-point guard has a gap. It is meant to stop a click from landing on something other than what the agent's screenshot showed. But when a link is removed and a different link with the same label slides into its place, the guard lets the click through, and the click lands on the other link.
Measured in #340's phase 1 (main 1e56ca40, run 44507959686, kit probe/340-qual, README at 77a00f78, cell twin):
- The setup: two links with the same label and different destinations. The first is removed, and the second slides up into its place at the same frame.
- The result: main kept the click, and it landed on the second link 10/10 on Chrome for Testing, Safari and Electron. That held whether the record held the link's AXStaticText or the AXLink itself.
Why. #296's re-created search accepts any node of the same role within 2 pt of the recorded frame and with the same label. A different control that takes the old one's place passes all three checks.
The risk is real in lists of same-labelled actions: "Delete", "Reply" or "Open" per row, after one row is removed.
What to do
Anchor the re-created match on the recorded control's identity, not only its role, frame and label. #340 does this for a resized text: the recorded interactive control must be alive on its own handle (CFEqual), hold the point, and contain the new text through inert elements only. Options for the same-width path:
- (a) Same rule as Engine: a link whose text grows with a count (Inbox to Inbox (3)) is refused nodeGone by the stale-point guard #340. Require the recorded control's own handle to be alive and to hold the point. A link re-rendered whole (both the link and its text new) would then be refused. Measure how often that happens on real pages before choosing.
- (b) Refuse when the matched node was in the record. When the matched node, or its control, was already in the record under a different token, refuse: it's a different control that moved. Page-made suggestion lists take a coordinate click aimed at the control under them (wrong target, all browsers) #330's rule partly covers this today, but not for a node recorded elsewhere on the page.
Check
twinanswersnodeGone, both with the record at the text and with the record at the link, on CfT, Safari and Electron.- Engine: refuse a coordinate click whose screenshot target has moved or been replaced (stale-point guard) #296's final A/B set, Engine: a control relabelled in place (same handle, Save to Delete) passes the stale-point guard #298's cells and Engine: a link whose text grows with a count (Inbox to Inbox (3)) is refused nodeGone by the stale-point guard #340's cells are otherwise unchanged.
Found by #340's qualification.
Activity
Probe 340: twin answers as main (#431), a count badge in an AXPress c…
SSFSKIM commentedon Nov 19, 2026
[board] in-progress: taken by cursor235 under ruling 880 (ahead of #337); re-created match demands the candidate be new to the record
macOS engine: a re-created match is refused where the record could no…
macOS engine: a re-created node under a control of another role than …
macOS engine: the re-created match's refusals close the review of 849…
macOS engine: the re-created match reads the whole handle map, decode…
Evidence: #431's hosted qualification, main against the strict form (…
SSFSKIM commentedon Nov 20, 2026
[board] in-review: PR open; ci-gate GREEN 44676224125; hosted qual all gates
SSFSKIM commentedon Nov 20, 2026
[review-trail] Reviews of main..79496a5: reviewer-high on 3ece1a1 (6 wrong-target holes; Safari evidence then led to ruling 889's strict form); reviewer-high on 849bcda (9 findings, fixed in 38a5546); reviewer-medium on 849bcda..38a5546 (3 findings, fixed in 9028206); reviewer-medium regression-only on 38a5546..9028206 (correct, no findings; converged under ruling 891). Hosted qual: probe/431-qual README 3f97d53, all gates on CfT, Safari and Electron, 0 wrong targets on the fix. ci-gate GREEN https://github.com/SSFSKIM/cua/actions/runs/44676224125.
macOS engine: the stale-point guard refuses a same-label control that…
SSFSKIM commentedon Nov 20, 2026
[board] done: Landed via PR #434 (cua 0.28.19)
macOS engine: #431's twin search also reads record nodes without a fr…
macOS engine: a click recorded on an inert overlay is vouched for by …
macOS engine: the stale-point guard refuses a kept decoration that no…
macOS engine: a CFNull label slot is recorded unknown, and labels com…
macOS engine: #519 narrowed to the decoder and the consumers that cho…
macOS engine: a non-text label slot is non-text, never known absent (#…