Skip to content

macOS engine: a null subrole is unread and a null role unknown (#501) - #518

Merged
SSFSKIM merged 6 commits into
mainfrom
fix/501-null-subrole
Nov 23, 2026
Merged

SSFSKIM merged 6 commits into
mainfrom
fix/501-null-subrole

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 23, 2026

Copy link
Copy Markdown
Owner

Closes #501.

What changes

#500 left two null-slot cases in the macOS engine. Both now fail closed:

The consumers left unchanged, and why each already reads null as unread or fails closed, are listed in the spec's Decision Log (two #501 entries).

Tests

  • native/engine/Tests/EngineTests/NullClassifyingSlotTests.swift (5 tests). Nulls are injected at decode time (AttributeRead.decode, the walk fake's nullAttributes).
  • On cdb36ad the first four fail (37 assertions); the review regression fails on 7574c05 (3 assertions: the row would be pressed).
  • swift test: 1714 run, 1 skipped, 0 failures; release build passes on Xcode 27.2.

Review trail

  • reviewer-high on cdb36ad..7574c05: incorrect, one P2 (withheld static-text value recorded known-absent → press). Introduced by the change → fixed in ab7fc27.
  • reviewer-high re-review of 7574c05..ab7fc27: correct, no findings.

Plugin 0.29.10 (main took 0.29.9 with #516).

Sminos-Session: cursor235#b93055dd (cua on macbook)

…presumed secure; a CFNull AXRole is unknown (refs #501)

Ruling 1131 after 1083: valueClassification takes a null subrole slot (AttributeRead.null) as a failed read, so a
text-entry role is closed, secure and failed (#405's presumption) and another role closed but not secure; every reader
of the classification follows (the walk, the Markdown's re-check, classifiedRead, select_text, paste's effect reading,
the read-back's class and length, whose concealed final batch answers fieldUnreadable). ElementData.roleRead is false
for a null AXRole as for a failed one, so the stale-point record has roleUnknown, not a known inert node.

Sminos-Session: cursor235#b93055dd (cua on macbook)
…ead and a CFNull role unknown (refs #501)

Sminos-Session: cursor235#b93055dd (cua on macbook)
…refs #501)

Sminos-Session: cursor235#b93055dd (cua on macbook)
…ale-point record, never known absent (refs #501)

The review of cdb36ad..7574c05 (P2): an AXStaticText closed by a null (or failed) subrole kept its value as
.text(nil), so #453's overlayLabelsAgree pressed a row whose label-bearing value vanished before the click.
screenshotLabelsUnknown now marks the value unread whenever ElementData.valueUnread is set; overlayDuplicate,
relabelledLabel and the twin search read it as a failed read through ScreenshotNode.label.

Sminos-Session: cursor235#b93055dd (cua on macbook)
Sminos-Session: cursor235#b93055dd (cua on macbook)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T15:38:16.673076Z e9e5685 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SSFSKIM
SSFSKIM merged commit 0d19fdf into main Nov 23, 2026
7 checks passed
@SSFSKIM
SSFSKIM deleted the fix/501-null-subrole branch November 23, 2026 15:36
SSFSKIM added a commit that referenced this pull request Nov 23, 2026
Brings #501 (#518). screenshotLabelsUnknown keeps both: #501's withheld value
and #519's non-text slots go in labelsUnread.

Sminos-Session: cursor235#b93055dd (cua on macbook)
SSFSKIM added a commit that referenced this pull request Nov 23, 2026
origin/main at 0d19fdf (#518, #501: a null subrole is unread and a null role
unknown; plugin 0.29.10) merged into feat/117-m5, no rebase.

One conflict:
- docs/doperpowers/specs/2026-10-18-own-native-engine-design.md Decision
  Log: both ends appended; M5's entries kept, main's #501 entry after them
  (233 + 231 - 229 base = 235 entries).

Fetch.swift, StalePoint.swift, Walk.swift and the new
NullClassifyingSlotTests merged clean. Versions: engineVersion stays 0.3.0
(main's is 0.2.0; #518 does not move it), macOS MIN_ENGINE_VERSION 0.1.0,
Linux 0.4.4, plugin 0.29.10 (main's).

Sminos-Session: cursor235#b93055dd (cua on macbook)
SSFSKIM added a commit that referenced this pull request Nov 23, 2026
…feat/117-m5-flip (refs #506) [skip ci]

feat/117-m5 at 28fd8d1 merged in, no rebase: origin/main's #518 (#501,
plugin 0.29.10), 311d308 (the pending slot is authoritative) and
28fd8d1 (the vendor row names a pending build once).

Conflicts:
- .claude-plugin/plugin.json, marketplace.json: the flip's description (cua's
  engine the default on macOS), main's version 0.29.10.

doctor-engine.mjs and engine-minimum.mjs merged clean: ruling 1148's
notInUseRow/installState (its reason and remedy line, the
pending-below-minimum remedy) stand beside vendorRow's single pending mention
and the authoritative slot.

Versions on the flip: engineVersion 0.3.0, macOS MIN_ENGINE_VERSION 0.2.0,
Linux 0.4.4, plugin 0.29.10, darwin default 'cua'.

Sminos-Session: cursor235#b93055dd (cua on macbook)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant