Skip to content

macOS engine: on Chromium a kept click under an inert overlay presses the approximate first hit (the overlay group), a false ok; build the element route from #442's corrected hit #481

Open

Description

@SSFSKIM

Problem

On Chromium (Chrome for Testing, Chrome, Electron), the stale-point guard can rightly keep a click under an inert overlay, yet the element route then presses the action's first AX hit. That hit is Chromium's approximate answer: the overlay group. Nothing happens, and the call answers ok, a false ok.

#433's overcontrol cell shows it on CfT. #442's measurement (probe/442-measure, README §"#442" 2050fb4, main 5580ac2) found that with a corrected hit, overcontrol, bgbutton and overlaprow land on CfT. With the first hit they miss.

#442 (ruling 1073) adds a Chromium re-hit after 80 ms on the inert-overlay and nonInteractiveHit keep paths, but uses it only for the verdict. The kept verdict still carries the action's own first hit, which the element route builds from (#442 builder's decision 3; ruling 1077 kept #442 verdict-only).

Fix

Build the element route from the corrected hit whenever #442's re-hit ran (stalePoint.hitCorrection present).

Bar

Order

Take it right after #442 merges, before #438, since it reuses #442's re-hit (ruling 1077). Declared meanwhile in #442's PR limits.

Activity

  1. added
    bug
    status:ready-for-implementer
    priority:P2
    on Nov 22, 2026
  2. added 2 commits that reference this issue on Nov 23, 2026
  3. added
    status:in-progress
    and removed
    status:ready-for-implementer
    on Nov 23, 2026
  4. added 7 commits that reference this issue on Nov 23, 2026
  5. 12 remaining items

  6. added 5 commits that reference this issue on Nov 23, 2026
  7. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    [parked] Second attempt (ruling 1130) stopped by its own rule: the one focused review found presses the record does not vouch for. No further waves.

    Attempt: fix/481-corrected-hit-route at c35722c (merges main da92726; d455144: like-with-like route label check via #500's stalePointLabelPair; a6d5a4e Decision Log; 0.29.11 placeholder). The first park's P1 (CFNull screenshot title, description "Delete", live title "Delete") now refuses. swift 1727/0/1.

    reviewer-high on da92726..c35722c: incorrect. Each P1 was reproduced headlessly against the engine objects (no GUI):

    1. P1, the route falls back without its gate. ElementInput.swift:479-488: if corrected control A qualifies but its next role read fails, pressingCorrected goes nil and the route walks the first hit with no routeDispatchGate. With two overlapping recorded controls (the first hit is text inside B, the corrected hit is A), a transient role-read failure presses B without the route's final check. "No corrected target" and "the selected target can't be read now" need to be told apart; only the first may walk the first hit.
    2. P1, non-text screenshot labels read as absent. StalePoint.swift:1373-1380: the strict decoder runs only on the live side. At observation, a numeric AXTitle decodes as present, then ElementData turns it into nil without marking it unread. Screenshot numeric title, live title absent, same description: .beneath selected and dispatch passes. This is an observation-decoder gap of the same family as macOS engine: the screenshot decoder records a CFNull label slot as absent, not unknown; twin search and #453 row identity can keep or press wrongly #500/macOS engine: a CFNull AXSubrole classifies as none, so a text field is not presumed secure (#405 fails open); a CFNull AXRole records as known #501 and may reach main's macOS engine: deliver a click on an app's overlay window (Chrome's omnibox popup) to that window instead of refusing it #453 overlayLabelsAgree.
    3. P1, actionability not established at observation. StalePoint.swift:1330-1332: underlyingIdentity == .handle proves which element survived, not that it was a control in the screenshot. underlyingTargets includes action-unread elements for Stale-point guard keeps a click recorded on a click-through overlay, which lands on a different control under it #433. A recorded AXGroup whose action read failed, now AXLink with AXPress, at the same frame and label, is selected and passes. Proposed: require beneath.actionable == true || beneath.pressRecorded for the route.
    4. P1, AXValue compared across roles. StalePoint.swift:1369-1374: the recorded role alone decides whether AXValue is compared. A recorded AXStaticText with AXPress, a live AXLink, and null titles and descriptions: the static text's value matched the link's value and the route pressed. Decline when the two roles disagree on whether AXValue is a label.
    5. P2: liesIn walks up to 300 live parents before the beneath eligibility check rules the route out (StalePoint.swift:1330-1331).

    Unpark condition is for design to set. Note: finding 2's decoder gap may need its own ticket independent of #481.

  8. added
    status:deferred
    and removed
    status:in-progress
    on Nov 23, 2026
  9. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    [board] deferred: Parked again per ruling 1130's stop rule: 4 P1 wrong-press findings on c35722c (fallback without gate, non-text screenshot label as absent, actionability unestablished, AXValue across roles). Design sets the unpark condition.

  10. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    Ruling 1146 sets the unpark condition: a short design note, reviewed (adversarial-reviewer) before any code. It must give one structural requalification gate for every dispatch path, three-valued reads (value / known-absent / unread) on both the observation and live sides, a proof of control at observation time, and what the route buys over main's safe refusal. Dropping #481 is an acceptable outcome. Not before #518, #519 and the M5 lanes.

  11. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    [ruling 1146] The park stands. A third fix-and-review attempt is not the unpark. Unpark condition: a short design note on #481, reviewed by doperpowers:adversarial-reviewer before any code. It must give: (1) one structural gate, where every dispatch path, fallbacks included, gets its target only from a single requalification function, enforced by the type system or the module boundary; (2) three-valued reads throughout (value / known-absent / unread) from both the observation decoder and the live read, with no nil==nil equality; (3) what proves a control at observation time (starting from actionable == true || pressRecorded); (4) what #481 buys over main's refusals in these cases, since dropping #481 is an acceptable outcome. Not urgent: it comes after #518, #519 and the M5 lanes. #481 is not a flip gate: no M5 gate row, judge or sitting assumes the route.

  12. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    [ruling 1151] #521 (T3, P1: #305/#296 re-created match wrong press on main) and #522 (T1: three-valued labels on candidate-selection consumers) are folded into this ticket's design note. The note now comes right after #520 (T2), in parallel with M5, and must say how a refused re-created match is handled without promoting the next candidate (target monotonicity).

  13. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    [ruling 1163] Three-valued reads for the design note (1146) now also cover AX errors on live value reads: what "unread → refuse" means and where the refusal is decided. #520 dropped its read-side change (1163) after three rounds of introduced P1s, so the note must answer these scenes as test cases (from #520's scoped re-review of fe59314, all reproduced against main 82ac93f):

    1. Per-candidate unread flag, overwritten. Two static texts at the same frame under one button. The first records Delete; its replacement reads Open raw but classifies closed. Main skips the first text without asking for its frame. A classified read that treats it as unread asks for the frame, and meanwhile the second text disappears. The second text's recorded title makes its comparison independent of the value, so it finds its handle gone and returns .hit with the unread flag false. Main saw it still alive and returned nil. Result: recordedHit where main gave pressedOther. Lesson: an unread comparison that decides whether another AX call runs has to stick to the whole verdict.
    2. Unread counterpart flagged after an exemption that makes AX calls. The recorded label was the value (Open), the new title is Close, and the live value is genuinely kCFNull. Main's single read gives .null and stops at the counterpart check. A batch read gives unread, calls editedInPlace, and its extra editable-ancestor read lets the text move back under the hit. Result: hitAboveNode where main refused interactiveHit. Lessons: batch kCFNull isn't main's null, and the flag must be set before any exemption that reads.
    3. Batch read adds a call. fetchAttributes → prepare() sets the messaging timeout on every sample, open ones too. That is an extra AX call, and it overwrites the handle's timeout. A call-trace oracle that logs above the wrapper can't see it. Lesson: a parity proof has to trace at the AX API boundary.
  14. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    [#520 residue] #520's output-side gate (fix/520-output-quote 7a74be0) quotes a value only where the observation's #405 classification recorded it open. One case remains: an element recorded open that has since become a secure field is still quoted from its live value. Closing that needs a classified live read, which is the three-valued reads this note covers. Test case: a static text recorded open with value 'Open' that now has subrole AXSecureTextField and a secret value. The refusal sentence must not contain the secret.

  15. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    [correction, ruling 1165] Disregard the #520 residue comment above. #520 now closes that case itself at output: a refusal sentence never quotes a live value, only values recorded open at observation. #481's note doesn't need that test case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority:P2status:deferred

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions