Skip to content

macOS engine: a null or failed subrole leaves an AXGroup open, never 'value unread' (#525) - #533

Merged
SSFSKIM merged 7 commits into
mainfrom
fix/525-null-subrole-group
Nov 23, 2026
Merged

SSFSKIM merged 7 commits into
mainfrom
fix/525-null-subrole-group

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 23, 2026

Copy link
Copy Markdown
Owner

Closes #525.

What

#501 made a null AXSubrole read as failed. A readable role with a failed subrole was then closed and marked valueUnread. In Finder's toolbar, an AXGroup was printed as container Value: value unread … and kept unpruned, where the vendor prints just its button Search. The extra line shifted 13 lines of the full and before goldens in M5 pilot B (run 45226949355).

Rule (rulings 1156 and 1166): an allowlist that fails closed

Review fix: the role in the fresh batch decides Markdown reads

A handle observed as an AXTextField can answer AXGroup in the batch taken just before its Markdown read. markdownEligible now requires AXTextArea or AXTextField in that fresh batch before AXAttributedStringForRange, in both the walk and select_text. This is slightly stricter than main: any non-text role there now skips the read.

Consumers

The table is in the Decision Log. In short:

Proof

  • Red on 893e19d: 4 tests, 22 assertions, every one an AXGroup case. The cases for AXTextField, AXComboBox, AXTextArea, a custom role AXMyCustomRole (null and failed), AXUnknown, AXButton, AXStaticText, an unreadable role and AXSecureTextField pass on both base and head.
  • The review fix's two-batch test (field, then group) is red on 271aa18.
  • swift test: 1741 tests, 1 skipped, 0 failures. The Xcode 27.2 release build passes. services-engine-render.test.mjs: 46 of 46.
  • There is no Finder golden in the repo. M5 pilot B is re-judged on the fixed engine.

Review

reviewer-high, 893e19d..271aa18: one introduced P2 (the stale role before the Markdown read) and one P3 (Decision Log wording), both fixed. The re-review of 271aa18..f938346 was correct, with one P3 (a skipped Markdown fetch is still counted in diagnostics), logged in tech-debt-tracker.md.

Plugin 0.29.13.

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

…refs #525)

Ruling 1156, in ruling 1166's allowlist form: a role on `neverSecureRoles`
(AXGroup, the only one the evidence needs) is not closed for a null or
failed subrole, so Finder's toolbar group around Search no longer says
"value unread" and is pruned as the vendor's is. Every other role keeps
#405's and #501's classification: the text-entry roles stay secure, and a
custom role, AXUnknown, AXButton and AXStaticText stay closed and unread.
type_text's `readbackSecure` follows the same rule, so a focused group with
an unreadable subrole is refused notTextField rather than secure.

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

Pins the render side of #525: the same group with `valueUnread` keeps its
line, without it is replaced by its only child, as the vendor prints it.

Sminos-Session: cursor235#b93055dd (cua on macbook)
Decision Log entry for rulings 1156 and 1166: the cause evidence from M5
pilot B, the allowlist rule and which part of ruling 813 it reverses, the
consumer table and the red and green test counts.

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

Review of 893e19d..271aa18, P2: a handle observed as a text field that
answers AXGroup with a null or failed subrole in the batch just before the
attributed-string read is now open, and both the walk's Markdown and
select_text went on to request that read of the group. `markdownEligible`
requires the fresh batch's role to be in `markdownRoles` (now shared);
otherwise nothing more is read and the group's ordinary value stays open.

Sminos-Session: cursor235#b93055dd (cua on macbook)
Records the attributed-read role check (P2) and corrects the StalePoint
line: only `valueOpen` changes, never a refusal's text (P3).

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

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-23T19:10:56.776234Z faa2d9a PR opened
ℹ️ 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 f2e179b into main Nov 23, 2026
7 checks passed
@SSFSKIM
SSFSKIM deleted the fix/525-null-subrole-group branch November 23, 2026 19:26
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 null subrole marks a non-text group 'value unread', so Finder's toolbar group is not pruned (#501 regression)

1 participant