Repository navigation
Description
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 neitherunreadablenorabsent;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)
- Add
nullSlot()in AX.swift, and anullset inAttributeRead, carried intoElementData. screenshotLabelsUnreadtakesunreadable ∪ null; optionallyroleReaddoes the same.unreadableitself is untouched, sovalueFailed/descriptionFailed, macOS engine: observation never reads a secure field's value, length or selection (protection is the AX provider's today) #405's classification and TypeReadbackLength are unchanged.- The live side treats a null label read as unknown for the agree-required checks.
What each consumer answers after the fix:
- twin search: refuses (
nodeGone); overlayLabelsAgree:labelChanged, so main'sappWindowOverPointstands;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
SSFSKIM commentedon Nov 23, 2026
[board] in-progress: Ruling 1131: shape accepted with like-with-like comparison; building.
Pre-flight: #500 and #501 gate the flip with their witnesses and clos…
macOS engine: a label comparison that compared nothing is unread, and…
Tech debt: relabelledLabel's one-sided CFNull check skips the parts t…
SSFSKIM commentedon Nov 23, 2026
[board] in-review: Draft PR #507; hosted measuring run pending.
SSFSKIM commentedon Nov 23, 2026
[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.
Probe 500: CFNull label slots counted on CfT, Electron, Safari and #453…
Merge origin/main into fix/500-cfnull-label (refs #500)
Plugin 0.29.7: a CFNull label slot is unknown, never absent (refs #500)
Merge origin/main into fix/500-cfnull-label (refs #500)
Merge origin/main into fix/500-cfnull-label (refs #500)
Plugin 0.29.8: a CFNull label slot is unknown, never absent (refs #500)
macOS engine: a CFNull label slot is recorded unknown, and labels com…
SSFSKIM commentedon Nov 23, 2026
[board] done: Landed via PR #507 (cua 0.29.8)
Merge origin/main (cdb36ad, #500's null-aware label record) into fix/…
macOS engine: #481's route compares its control's label like with lik…
Plugin 0.29.10: #481's corrected-hit route on #500's null-aware label…
Plugin 0.29.11: #481's corrected-hit route on #500's null-aware label…
Own native engine M5: origin/main (M4, #516) merged in, engineVersion…