Skip to content

Engine: re-created Chromium synthesized nodes (AXColumn, table header) keep their token #303

Closed

Description

@SSFSKIM

Problem

Chromium re-creates its synthesized table elements, the AXColumn children of an AXTable and the table-header AXGroup, between observations. The old handles return kAXErrorInvalidUIElement (−25202). The engine matches siblings by CFEqual, the vendor's N = 1 identity rule (Lineage.swift, matchSiblings), so each re-created element takes a new token, and the model's index for it changes on every observation. If the walk reads one mid-re-creation, the read fails, and the observation counts it as a read failure.

This happens on main. Run https://github.com/SSFSKIM/cua/actions/runs/42243553112 (main c4057c3, a 20×5 local table, 3 observations on one connection) shows main's column tokens going t286–t290 → t327–t331, with the kept handles returning −25202. Since #301's visible-first walk, the engine also reaches these elements on long tables, where Chrome lists them after the rows (#301's A/B, https://github.com/SSFSKIM/cua/actions/runs/42231389508: the HN thread's AXColumn takes a new token on every observation, and the 3,000-row table has 7 read failures per observation).

Wanted

Re-created synthesized nodes keep their token across observations. One way is a structural fallback in sibling matching: same role, same index among same-role siblings, and a matching frame, for handles that read invalid. Scope the fallback so a real replacement still takes a new token. Since this departs from the vendor's identity rule, the spec must state it as cua's departure.

Check

The 20×5 table, observed 3 times: the column tokens are equal across observations, and there are 0 read failures.

Activity

  1. added
    enhancement
    status:ready-for-implementer
    priority:P3
    on Nov 6, 2026
  2. added
    status:in-progress
    and removed
    status:ready-for-implementer
    on Nov 9, 2026
  3. 5 remaining items

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

    @SSFSKIM
    OwnerAuthor

    [board] in-review: PR #343: re-created synthesized columns keep tokens when every sibling is known; review clean after 4 rounds; ci-gate green

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

    @SSFSKIM
    OwnerAuthor

    [board] done: Landed via PR #343 (0.27.20)

  8. added 4 commits that reference this issue on Nov 9, 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

    enhancementpriority:P3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions