Skip to content

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

Closed

Description

@SSFSKIM

What

The screenshot decoder records a CFNull label slot (AXTitle, AXDescription, AXValue) as absent, when it should be unknown:

  • AttributeRead.decode (Fetch.swift:205) drops the value (present() maps CFNull to nil, AX.swift:54), and the slot lands in neither unreadable nor absent;
  • screenshotLabelsUnread (StalePoint.swift:203, called at Walk.swift:936 and :1132) therefore treats the part as a confirmed nil.

This contradicts ruling 1083 ("a null slot or a missing entry is unread"), which AXChildren already follows. #481's final review found it (88d9ead): it let #481's route press a control the record never vouched for. That route is parked until this lands (#481's [parked] comment).

Effect on main (435420c), by consumer

Consumer Today Shape
recreatedLabelsAgree (StalePoint:1036; #431 twin search via recreatedRefused :953, from recreatedHandle #296/#433 and recordedHitAtPoint :1609 #305) wrong keep N (AXButton, title null, description "Edit") and twin P (title absent, description "Delete") in the same web area. N's handle is gone and a re-created button sits at its frame. The twin is missed, so the click is kept; an unread title would make P a twin and refuse
overlayLabelsAgree (OverlayClick:221, #453 row identity) wrong press A bubble button recorded with title null and description "Allow". It changes, but its title still reads null and the description is the same. Null and nil "agree", so it is pressed
overlayDuplicate (OverlayClick:376, ruling 1083 "repeats the row") wrong press (narrow) A datalist row (title null, value "Apple") holds an acting AXStaticText (title absent, value "Apple"). It is excused as a repeat instead of refusing actionableDescendant
relabelledLabel (StalePoint:739; #298 at :1504, #433's candidate test at :1430) wrong refusal Title null (really "Save"), description "Save changes", live title "Save": refused relabelled
controlDiffers (StalePoint:1337, #443) wrong refusal Null title on both sides falls through to the description: "A" vs "B" gives a spurious controlGone
#442 otherControlOnTop, stalePointLabelsAgree (:1065), overlayKind (OverlayClick:201), refusal text no effect —

Live side: stalePointLabelRead(kCFNull, .success) (StalePoint:212) returns absent. On main this matters only for overlayLabelsAgree.

Frequency: no evidence. The probe kits read attributes with as? String, so they can't tell null from absent. No meta counts null slots, and no recorded fixture has a null label.

Proposed fix (minimal)

What each consumer answers after the fix:

  • twin search: refuses (nodeGone);
  • overlayLabelsAgree: labelChanged, so main's appWindowOverPoint stands;
  • overlayDuplicate: actionableDescendant;
  • relabelledLabel: keeps (unread means keep);
  • controlDiffers: checks the frame only.

Trade-off: a node whose title is always null and whose label lives in the description loses #298's relabel check (it would keep), and #453 rows with an always-null title would no longer be pressed. Both scale with frequency, which is unmeasured.

Done when

Observation-side tests (CFNull injected at decode) for each affected consumer fail on main and pass with the fix. A value-free count of null label slots is in the observation meta. A hosted measuring run shows how often null slots occur on CfT, Electron and Safari, and that #453's qual rows don't regress (or the regression is ruled).

Related: #481 #442 #453 #499. Out of scope (own ticket): null AXSubrole classified .none (#405 fail-open).

Activity

  1. added
    bug
    status:ready-for-implementer
    priority:P2
    priority:P1
    status:in-progress
    and removed
    priority:P2
    status:ready-for-implementer
    on Nov 23, 2026
  2. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-progress: Ruling 1131: shape accepted with like-with-like comparison; building.

  3. added
    status:in-review
    and removed
    status:in-progress
    on Nov 23, 2026
  4. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-review: Draft PR #507; hosted measuring run pending.

  5. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    [review-trail] reviewer-high afe7137f: 17930e2 incorrect (P1 all-null overlay press/duplicate; P2 relabel cross-slot one-sided null) -> fixed 37ba139; re-review: one P2 (three-slot wrong refusal) shipped with, tech-debt 6c49629. Converged.

  6. removed
    status:in-review
    on Nov 23, 2026
  7. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    [board] done: Landed via PR #507 (cua 0.29.8)

  8. added 5 commits that reference this issue on Nov 23, 2026
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:P1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions