Skip to content

Engine walk: an AXColumn among a wide list's shown children waits unread in rule C's last queue (#310) - #347

Merged
SSFSKIM merged 4 commits into
mainfrom
fix/310-columns-last
Nov 9, 2026
Merged

SSFSKIM merged 4 commits into
mainfrom
fix/310-columns-last

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

Closes #310

What changed

In expand (Walk.swift), the shown children of a wide list now have their role read with their frame: roleReadWithFrame, Fetch.swift's readFramedRole, one 3-attribute multi-read in place of the frame read. An AXColumn among them goes to rule C's lastly queue, in the document's order, instead of being read with the shown run, so it is read only once nothing else is left. The column header cells and the table's header group stay shown children (ruling d9f6902b). When the budget has room, the deferred columns are read and printed as before.

Spec: #304's Decision Log entry, item 4, "Amended by #310" (amending ruling f1a7589f's rule B for the bare AXColumn), and a dated #310 entry pointing to it. Evidence: docs/evidence/2026-11-08-columns-last/. Version 0.27.21, set at its merge turn (main is at 0.27.20 after #343).

Why

Chromium frames each table column as the whole table, so #304's rule B always found a column shown and read it. Reading it took up the width rule over its 6,001 cells, at about 28 ms per column. That was most of #304's walk cost: +110 to +323 ms on local-table, -bar and -6k (run 42360213243).

Live (hosted macOS, Chrome for Testing 156; main 364e017 against 6ec647e)

Run https://github.com/SSFSKIM/cua/actions/runs/42561992545: 3 runners, 9 alternating pairs per cell.

page position walk ms, B − A paired median width rule ms, A / B columns printed, A / B read failures, A / B pairs identical
local-table (cut) top −385 141 / 24 0–6 / 0 22 / 0 2/9
local-table (cut) f50 −300 97 / 30 0–6 / 0 24 / 0 1/9
local-table-bar (cut) top −34 92 / 20 0–6 / 0 11 / 0 1/9
local-table-bar (cut) f50 −93 97 / 16 5–6 / 0 1 / 0 0/9
local-table-6k (cut) top −567 214 / 31 6 / 0 0 / 0 0/9
local-table-6k (cut) f50 −338 182 / 28 6 / 0 0 / 0 0/9
fit-120 top / f50 +29 / +27 9–10 / 10 6 / 6 0 / 0 9/9, 9/9
fit-200 top / f50 +26 / −26 19–20 / 16–18 6 / 0–6 0–1 / 7–14 8/9, 7/9
lean-600 top / f50 −121 / −35 10–14 / 11–13 2 / 0–2 0–1 / 0–3 9/9, 7/9

The stated limit, and its check (ruling 58a9bdf7). Across both runs, B lost all of a fitting table's columns in 5 of 108 observations: Chromium re-created them mid-walk, and reading them last leaves a longer window for that. Main failed in 4 of 108, one node each. In all 5, every header-row cell printed (the sort targets, reached through the rows). The nodes lost were only AXColumns and, in 4, the synthesized header AXGroup that Chromium lists right after them, framed 1×1 at the web area's origin:

record lost by B
42559947292 rep 1 lean-600 top B2 2 AXColumn + header AXGroup
42561992545 rep 1 fit-200 top B2 6 AXColumn + header AXGroup
42561992545 rep 2 fit-200 f50 B1 6 AXColumn
42561992545 rep 2 fit-200 f50 B2 6 AXColumn + header AXGroup
42561992545 rep 2 lean-600 f50 B0 2 AXColumn + header AXGroup

Cost

None added: the role comes in the same multi-read as the frame. The cut tables save 34–567 ms of walk per observation.

Limits

  • A table that fits can lose its columns, and the header group, in an observation where Chromium re-creates them mid-walk. The header row's cells still print.
  • On a table the budget cuts, the columns are not printed.

Tests and review

Residue

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

…ead in rule C's last queue, its role read with its frame (refs #310)

The design session's ruling d9f6902b amends #304's ruling f1a7589f: an AXColumn is no shown child for the
invariant, its cells being read through their rows; header cells and the header group stay judged, and a
column still prints when the budget has room. WideListInvariantTests encode the exemption and both conditions.

Sminos-Session: cursor235#b93055dd (cua on macbook)
Sminos-Session: cursor235#b93055dd (cua on macbook)
…, its Decision Log entry, the evidence, and 0.27.18 (refs #310)

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-09T07:03:18.897123Z 336d1c7 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.

…de rule C's, and 0.27.21 at its merge turn (refs #310)

Sminos-Session: cursor235#b93055dd (cua on macbook)
@SSFSKIM
SSFSKIM merged commit 95ed66e into main Nov 9, 2026
5 checks passed
SSFSKIM added a commit that referenced this pull request Nov 9, 2026
…ret (refs #341)

The spec's Decision Log conflicted at its end: both entries kept, #310's before #341's.

Sminos-Session: cursor235#b93055dd (cua on macbook)
SSFSKIM added a commit that referenced this pull request Nov 9, 2026
… main merged (refs #341)

Sminos-Session: cursor235#b93055dd (cua on macbook)
SSFSKIM added a commit that referenced this pull request Nov 9, 2026
…rs placed only when the reference box held still (#341) (#349)

* Engine: the caret's offset is searched over the field's boxes by line, then x, the linear scan deciding only what the search cannot (refs #290)

A bisection in reading order finds the point's line and its place on it, and #283's linear scan over the few
characters there places the caret; any other answer is the linear scan's over the whole value (within 5,000
characters) or over 5,000 around where the search ended, so no field is refused for its length. Unusable boxes
are stepped past, never inferred across; boxes out of reading order and right-to-left text are not searched.

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

* Engine: a right-to-left value past 5,000 characters keeps #283's refusal, nothing read, as no search gives a window near the point (refs #290)

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

* Docs: #290's Decision Log entry, its stated limits and #341, the hosted evidence, and 0.27.17 (refs #290)

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

* Engine: boxes out of reading order past the linear scan's reach are refused, not answered from a window near where the search stopped (refs #290)

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

* Docs: #290's disorder refusal past 5,000 characters and its one-style precondition, in the entry and the evidence (refs #290)

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

* Engine: the caret search reads the text's direction from its first characters, and checks the boxes it read on every way out (refs #290)

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

* Plugin: #290 takes 0.27.19, after #330's 0.27.16, #303's 0.27.17 and #310's 0.27.18 (refs #290)

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

* Engine: a text whose first characters have no boxes yet is not searched, an unknown direction authorizing no offset (refs #290)

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

* Engine: a click into a Chromium textarea computes its caret before any write and places it by AXSelectedTextRange, AXFocused only the fallback, placed only where the field did not scroll (refs #341)

AXFocused scrolls Chromium's textarea to its existing caret, so the boxes read after focus described a layout the
screenshot never showed (46 of 60 placed claims wrong, run 42568677106). The offset, its fresh wait for boxes included,
now comes first; the caret's write focuses the field; a reference character's box read before and after must not move
more than a point. #296's guard after the wait now refuses with nothing written.

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

* Engine: the focus route's comments state #341's order, the caret's write first and AXFocused its fallback (refs #341)

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

* Docs: #341's Decision Log entry (the caret's write first, AXFocused the fallback, placed only where the field did not move) and the hosted A/B's evidence, run 42578081142 (refs #341)

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

* Docs: #341's test count after main's merge (refs #341)

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

* Docs: #341's layoutMoved false negative stated as shipped (finer proof #348), and #296's amendment approved and cross-referenced (ruling 1ea561bc:550) (refs #341)

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

* Engine: an empty field's exemption from the reference box is re-checked at read-back, so a field a focus handler fills is not placed (refs #341)

The review of round 1 (P2): the exemption was fixed before the writes, so a textarea filled and scrolled while taking
focus, its caret still at {0, 0}, answered placed with its scroll unproven. It is now layoutMoved.

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

* Engine: the reference box is waived only for a field empty before the writes and at read-back, so a field a focus handler clears is not placed either (refs #341)

The review of round 2: a field with text, offset 0, cleared by its focus handler read empty at read-back and was waived
the proof with its box unreadable after the writes. Both emptiness reads are now required.

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

* Plugin: #341 takes 0.27.22, after #347's 0.27.21; the test count with main merged (refs #341)

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.

Engine walk: AXColumn elements themselves wait with rule C's queue, so big Chrome tables don't pay for their cell lists

1 participant