Skip to content

macOS engine: a non-text label slot at observation is recorded as known absent #519

Closed

Description

@SSFSKIM

Problem

The macOS engine's observation decoder (ElementData.init, native/engine/Sources/Engine/Fetch.swift, string(_:) on AXTitle, AXDescription and the other label attributes) turns a label slot that holds a non-string value (a CFNumber, for example) into nil. It doesn't put that attribute in unreadable or null. So the stale-point record (ScreenshotNode, StalePoint.swift:392) treats the label as known absent, when the screenshot never established that it was absent.

The strict live reader (stalePointStrictLabelRead) treats a non-text value as unknown, so the two sides disagree. A screenshot whose title is non-text, with the live title absent and other parts unchanged, reads as nil == nil and agrees. On main this reaches #453's overlayLabelsAgree and the overlay identity check, which may press. It is the same family as #500 (CFNull slots) and #501's withheld value.

Found by the reviewer of #481's second attempt (finding 2, reproduced headlessly on the route). The route is parked, but the decoder is on main.

Fix shape

At decode time, a label attribute whose slot is present but non-text goes in unreadable (or a new non-text set that the record folds into labelsUnread), never into absence. Test it through the observation decoder (AttributeRead.decode / the walk fake), not only the strict reader. Add a #453 regression: numeric screenshot title, live title absent, same description → refuses.

Acceptance

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: Building after ruling 1146 (P1): non-text observation label slot -> unread; consumer table; tests on every consumer

  3. 3 remaining items

  4. added 6 commits that reference this issue on Nov 23, 2026
  5. added
    status:in-review
    and removed
    status:in-progress
    on Nov 23, 2026
  6. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-review: PR #523: narrowed per 1151/1152 (decoder nonText + #453/#454 strict refusals); rest byte-identical to main

  7. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    [review-trail] reviewer-high aa9571d0, 4 rounds: (1) 0d19fdf..3481810 incorrect (relabel press, decoder cost) fixed; (2) ..3a8276c incorrect (#433 neighbour promotion, unclassified AXValue) fixed; (3) ..3fd27fe incorrect (2 #433 target reversals) -> convergence stop, narrowed (1151); (4) 0d19fdf..158e94c incorrect (P1 classified read batch CFNull) -> read removed to #520 (1152). Final 6664470 proven by identical-function diff vs 0d19fdf + swift 1726/0/1 + release build, per 1152.

  8. removed
    status:in-review
    on Nov 23, 2026
  9. SSFSKIM commented on Nov 23, 2026

    @SSFSKIM
    OwnerAuthor

    [board] done: Landed via PR #523 (cua 0.29.11)

  10. added a commit that references 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