Skip to content

Engine: a Chromium-synthesized table column or header group re-created between observations keeps its token, when every sibling is known (#303) - #343

Merged
SSFSKIM merged 11 commits into
mainfrom
fix/303-recreated-tokens
Nov 9, 2026

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

Closes #303

What changed

Chromium re-creates the AXColumn elements it synthesizes for a table, and the table's header AXGroup, between observations: after the first observation turns its accessibility on, and whenever the table changes. The old handles then read −25202. Under the vendor's N = 1 identity rule (matchSiblings, CFEqual) every re-created column took a new token, so the model saw a new index each time.

keepRecreated (Lineage.swift) runs in emission after matchSiblings. It is cua's one departure from the vendor's rule: a new sibling the vendor's rule left unmatched keeps the token of an old sibling it left unkept when all of these hold:

  • the role is synthesized: AXColumn, or AXGroup under an AXTable or AXOutline;
  • every sibling is known on both sides: the previous observation emitted or carried every child of the parent, counted before the width rule, and this walk showed and read every child;
  • it has the same place among that role's siblings;
  • the eleven identity attributes are equal;
  • the frame is equal within 1 pt once the parent's own move is taken out;
  • the first child is the same element (CFEqual), and that first child heads no other sibling of the role on either side;
  • the old handle is gone. This is one AXRole read, asked last, only for a candidate, and never past the deadline.

A frame or first child missing on either side is no match. LineageEntry keeps each element's first child and its child count.

Spec: the #303 Decision Log entry, and the Design's Indexes, tokens and handles, now name the departure. Version 0.27.20, set at its merge turn (main is at 0.27.19 after #342).

Why

Columns and header groups churned tokens on every re-creation, and the HN thread churned every observation (#301's limit). A token that changes while the element is the same breaks the model's references across observations. The design session approved the strict rule: nothing unknown counts as a match, and a wrong token on an inserted column is a wrong click target, which outweighs churn.

Live (hosted macOS, Chrome for Testing 156)

Rerun on the head's rule: https://github.com/SSFSKIM/cua/actions/runs/42562287610 (main 364e017 against 5b544a1, two runners). b1b065e came after it and only narrows lists of more than 100 children, which here are the cut tables, already under the limit.

page cut? main branch
20×5 table (both runners) no columns and header group re-issued at obs 3 (t286–t290 | t291 → t327–t331 | t332); 6 read failures at obs 2, no columns printed there t286–t290 | t291 kept through obs 3; 0 failures
replacement page, button cloned at obs 3 no button new (t329), columns re-issued (t330–t334 | t335) button new (t329), columns kept (t288–t292 | t293)
replacement page, column inserted at obs 4 no all new (t378–t383 | t384) all new (t372–t377 | t378)
3,000 rows yes, node cap re-issued (t3959–t3964 → t4000–t4005) the same as main: the stated limit
6,000 rows yes, node cap re-issued at obs 3 the same as main
HN thread yes, node cap re-issued (t3963 → t4000) the same as main

The first A/B, on fd51d41 before the completeness condition (https://github.com/SSFSKIM/cua/actions/runs/42558781067), kept the tokens on the cut tables too. Its records are in the evidence README.

Cost

Nothing is read unless the vendor's rule leaves both a new sibling and an old synthesized one unmatched on a fully known parent. Then each candidate that matched everything else costs one AXRole read: 5 or 6 per re-creation here. The completeness and anchor checks read nothing.

Limits

Tests and review

Residue

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

…d between observations keeps its token, cua's one departure from the vendor's identity rule (refs #303)

After the CFEqual rule, an unmatched AXColumn (or an AXGroup under an AXTable or AXOutline) keeps the token of
the old sibling at the same place among that role's siblings when the eleven identity attributes match, the
frame matches once the parent's move is taken out, the first child is the same element, and the old handle
reads kAXErrorInvalidUIElement. Any other role, a live old handle, an inserted column or a changed header
keeps the vendor's rule.

Sminos-Session: cursor235#b93055dd (cua on macbook)
… nothing missing counting as a match (refs #303)

Sminos-Session: cursor235#b93055dd (cua on macbook)
Sminos-Session: cursor235#b93055dd (cua on macbook)
…s departure, the hosted evidence, and 0.27.16 (refs #303)

Sminos-Session: cursor235#b93055dd (cua on macbook)
…no gone check is made past the observation's deadline (refs #303)

Sminos-Session: cursor235#b93055dd (cua on macbook)
…s known on both sides, a cut walk's unread sibling could share its first child (refs #303)

Sminos-Session: cursor235#b93055dd (cua on macbook)
…table's column and header-group tokens re-issued as on main (refs #303)

Sminos-Session: cursor235#b93055dd (cua on macbook)
…rule showed them all, on both observations (refs #303)
…fth test (refs #303)

Sminos-Session: cursor235#b93055dd (cua on macbook)
… cut tables under the limit, and 0.27.17 after #330's 0.27.16 (refs #303)

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

chatgpt-codex-connector Bot commented Nov 9, 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-09T06:49:18.039219Z bcab13c 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.

…side #303's, and 0.27.20 at its merge turn (refs #303)

Sminos-Session: cursor235#b93055dd (cua on macbook)
@SSFSKIM
SSFSKIM merged commit e31bb1f into main Nov 9, 2026
5 checks passed
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.

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

1 participant