Repository navigation
macOS engine: the stale-point guard refuses a same-label control that takes a removed control's place (#431) - #434
Merged
Merged
Conversation
…d where it lies, under no recorded control but the node's own (refs #431) #296's re-created match took any element of the node's role, a frame within 2 pt and an agreeing label, so a same-label link that slid into a removed one's place passed (#340's `twin`, 10/10 on CfT, Safari and Electron). recreatedIsNew now also requires the candidate to be absent from the record, its nearest recorded ancestor to have every child recorded and to list it now (ruling 1ea561bc:881's coverage, by screenshotChildrenRecorded's flag), and its control to be new or the recorded node's own (ScreenshotNode.control). Any failed read refuses. Existing re-created tests now pass the observation's lookup; RecreatedIdentityTests covers twin, a moved control, uncovered regions, failed reads and genuine re-creations kept. Plugin 0.28.19. Sminos-Session: cursor235#b93055dd (cua on macbook)
…t tell it from another element (ruling 889) (refs #431) Safari gives a link moved in the page new accessibility handles in the removed link's own row (hosted smoke, run 44520748737), so 3ece1a1's novelty proof kept twin, twincap and twindeep there. Ruling 889 replaces it: a re-created candidate, on #296's path and #305's, refuses when the walk did not record the node's web area (else the record) whole, judged on the node's own ancestors and by membership of each listed child; when the record holds another element of the node's role in its region whose label agrees by the match's own rule, other than under the node's own control; when its control is unknown (an action-name read failed at the observation); or when its control still lives without it. #330's lookup takes the same membership. RecreatedIdentityTests covers twin on own and new handles, twincap, twindeep, plain, like, remount and capremount. Sminos-Session: cursor235#b93055dd (cua on macbook)
…its gone one is refused (refs #431) Finding 1's role half, put back: with the recorded node's control gone, a candidate whose nearest control (an interactive role or AXPress, below the web area) has another role than the recorded control's (a link's text under a button, a clickable row's under a link) refuses; a failed parent, role or action-name read on the way refuses. It only adds refusals (twinbtn). Sminos-Session: cursor235#b93055dd (cua on macbook)
…bcda's nine findings (refs #431) A sibling link under a shared clickable group is a twin, only the node's own control and its inert content are exempt (1). The candidate's nearest control is compared with the recorded one in every case: none where none was, the same element while it lives, a new one of its role once gone (2). A node whose own handle lives, or a candidate the record holds as another node, refuses (3, 8). #330's lookup keeps main's count (4). The twin's label rule never falls past an unread label (5). An unread role counts as a twin and an unknown control (6). The candidate's nearest web area must be the node's (7). Coverage is by handle membership, by count only where the handles are unknown (9). Sminos-Session: cursor235#b93055dd (cua on macbook)
…s no actions as main does, and keeps #330's reason (refs #431) The candidate's and a replacement control's membership in the record reads the screenshot's whole handle map, framed and frameless, on #296's path and #305's. The observation decodes action names as the click does (kAXErrorNoValue is none, `decodedActionNames`), so a text with no actions stays inert content of its link. A re-created match the record refuses is judged on as main judges it: a rule that refuses keeps its reason (#330's newElementOverPoint), and a verdict that would keep it becomes nodeGone, so a refused match never carries a pointer. Sminos-Session: cursor235#b93055dd (cua on macbook)
…refs #431) Sminos-Session: cursor235#b93055dd (cua on macbook)
SSFSKIM
enabled auto-merge (squash)
November 20, 2026 04:56
Codex Review Summary: ✅ CompletedThis 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.
Closes #431
What changes
This fixes #296's stale-point guard, which let a click through when the recorded control was removed and a different control with the same label slid into its place. On main the click then landed on the other control, 100% of the time on Chrome for Testing, Safari and Electron.
When the recorded node's handle is gone, a re-created candidate is now refused if any of the following holds (design ruling 889, the strict form, under
recreatedRefusedinnative/engine/Sources/Engine/StalePoint.swift):.noValuemeans no actions, and the observation and click-time readers decode it the same way.kAXErrorInvalidUIElement).The same refusals apply to #305's recorded-hit path and the press verdict, and a refused match can never authorize delivery. Where another rule refuses first, such as #330's
newElementOverPoint, its reason stands. #330's own lookup and every own-handle verdict are unchanged from main. So are position, role, label agreement and #298's edited-text exemption. The label is used only to refuse: nothing passes on it.This is a plugin bump to 0.28.19.
Evidence
docs/evidence/2026-11-19-recreated-identity/README.md. Kitprobe/431-qual, workflow 423762603; the README with every table is3f97d533.nodeGoneon every row on all three lanes. The cells aretwin,twinbtn,twindel,twincap,twindeep,twinrow,twincoverat the text, andtwinwide(Safari only).wideoverlaygave the same answer and reason as main. No wrong target on the fix: 3,295 valid fix rows.stalePoint.msp50: within 2 ms of main on every lane.capremountandwideremount; every other cell had none.Limits
sameElement, no re-creation involved) still lets the click fall through on Electron, as on main. It's a separate mechanism, filed as Stale-point guard keeps a click recorded on a click-through overlay, which lands on a different control under it #433 (ruling 890).tech-debt-tracker.md.nodeGone, and no field says which rule refused.Review
3ece1a1a, the novelty proof: 6 wrong-target holes. Then the Safari run showed that WebKit defeats any novelty proof, which led to ruling 889's strict form.849bcdad, the strict form plus the role check: 9 findings, all fixed in38a55469. 7 were wrong-target keeps; the other 2 were regressions against main (Page-made suggestion lists take a coordinate click aimed at the control under them (wrong target, all browsers) #330's own-handle verdict, Chromium tables).849bcdad..38a55469: 3 findings, fixed in90282060. One was a regression against main:.noValueread as a failure.38a55469..90282060, regression-only (ruling 891's stop rule): correct, with no findings.Tests:
swift testinnative/engineran 1470 tests, 0 failures, 1 skipped. Mutation passes caught every mutant (12, 17, 5, 34 and 7 per wave).Sminos-Session: cursor235#b93055dd (cua on macbook)