Repository navigation
Description
Question
Since #301, a walk the node budget cuts reads first the elements whose frames show in the window. A container that reports a collapsed 1-pt frame while its children fill the viewport (for example a float's parent in Chromium) is deferred. A visible control under it can then be cut, and #296's stale-point guard checks that control container-only. The #299 spike's full trees held up to 28 such strips per page. In #301's A/B none of them stood over visible content: the guard's checked share was 100% on every cut page.
#301 first built a hit-test seeding pass for this case. The design session dropped it (ruling 66f90453): seedPromoted was 0 in all 56 rows, at a p95 of 250 ms.
Spike
Measure the case on real pages likely to have it: layouts with floats, absolutely positioned overlays, and sticky or collapsed wrappers. Examples are news sites, documentation sites with sidebars, and web apps that need no login. For each page, scroll to where the budget cuts, then count the clickable points that read unrecordedDescendant under a collapsed-frame container. Use the #299 kit on probe/299-hosted.
If a page shows such points, revisit seeding with its measured benefit: the equivalent of seedPromoted > 0.
Also in scope: a wide shown list starves the visible siblings after it (design session ruling 76660861)
On #301's walk, the selection reads every child of a shown list or table to learn their frames, and that spends the node budget. On a local 3,000-row table in Chrome (run https://github.com/SSFSKIM/cua/actions/runs/42246731024, b268504), reading all 3,008 rows spends the 4,000-node budget before preorder returns to Chrome's toolbar and infobar. Those 11 clickable points per observation stay container-only: the guard's checked share is 92.1 / 93.6 / 94.1 / 94.1% at top / 25 / 50 / 90%, against main's 92.1 / 34 / 32 / 31%. The dropped hit-test seeding had covered them (ab0e019, run 42231389508).
Candidate fixes:
- read a child's frame before charging it to the budget;
- a cheap pass over the window's chrome (toolbars) first;
- a bounded seed limited to the window's non-web area.
Price each in walk ms against the coverage it buys.
Activity
Engine: drop the seeding, the frame-ordered walk serving every app, a…
Service and first-call docs: the truncation marker gives the total an…
Engine: when the node budget cuts, keep what the window shows (visibl…
SSFSKIM commentedon Nov 6, 2026
[board] in-progress: Taken by cursor235 (design session 0a8bbaa2)
SSFSKIM commentedon Nov 7, 2026
Findings: the two holes, measured (hosted macOS, main f20a25e, 2 reps)
Hole 1 (collapsed-frame containers) never occurs. Hole 2 (a wide list starving later siblings) is real, and one fix closes it for a few ms. The spike also found a third hole, in #301's record-only bisection, on Safari.
Scope: 234 observations, 57,836 clickable points on a 20-pt grid, at top / 25 / 50 / 90%.
probe/304-hosted, head 07ed050. It is instrumented on the runner only, and no product code changed.How often each hole occurs
Hole 1: Chrome gives empty or collapsed wrappers their descendants' union bounds. The float, fixed-banner and zero-height wrappers all reported their children's frames.
Hole 2, the mechanism:
AXVisibleChildrenon anAXTablewith every row, so the width rule keeps all 3,001 and charges each one.AXColumnlists every cell again. The walk charged 818 offscreen cells on the 3,000-row table and 2,042 on IANA's page.Hole 3: docs.python.org in Safari, nothing cut, 36.8–91.1% checked on all 8 observations.
recordedChildPositions(Walk.swift:160–162) picks the axis by comparing the first and last framed children. The body's last child is a 10-pt group framed at the body's own top. With equalminYandminXthe function returns[], and the record holds none of the body's children.Per page (checked / container-only / unrecorded %, per rep where the two differ; main's walk ms)
Cut but 100%: go-http, hn-thread, py-docs, rust-vec, wiki-article, wiki-table and the local float and overlay fixtures in Chrome, and Wikipedia in Safari.
Fixes priced offline (a replay over the wide engine's full trees, on the 119 cut observations)
The replay matches main's own guard share within 1 pt on 233 of 234 observations. The one miss is the 6,000-row table read before Chrome had built it: 56 nodes.
AXColumnchildrenAXColumnchildren not taken up, aloneUnit prices on the runner: a frame read 0.06 ms, a children read 0.075 ms, a full node read 0.55 ms, a hit-test with its parent chain 1.43 ms.
The column skip was also built and checked live, on the runner only:
So it can't stand alone.
Not yet verified: the bisected frame-first fix's cost is a replay estimate (read counts × the unit prices). It was not measured on a live build.
Runs
Traps for the next probe
AXValue.Sminos-Session: cursor235#b93055dd (cua on macbook)
Engine: a wide list's shown run is read first, AXColumn children wait…
Spec and plugin 0.27.2: the #304 and #309 Decision Log entry, its ame…
Engine: an element two parents list has its action descriptions judge…
Engine: action descriptions are judged at each read element's preorde…
Tech debt: a shared element's settable flag follows the parent it was…
6 remaining items
SSFSKIM commentedon Nov 7, 2026
[board] in-review: PR #311 (with #309)
Engine: a wide list's shown children are read first, so the stale-poi…
SSFSKIM commentedon Nov 7, 2026
[board] done: Landed via PR #311 (0.27.2)
Probe 287: #304's coverage with one engine process for both heads whe…
Probe 287 wave 3 again: the recon's timeline also on a big page in Fi…
Engine: above 499 children with no visible subset, the width rule pri…
Probe 314 A/B confirmation: B = fix/314-ff-wide 4737987 (each candida…
Probe 314 A/B, the full run on the fix head: B = fix/314-ff-wide 4737987
Engine: above 499 children with no visible subset, the width rule pri…
Docs: #310's amendment of #304's rule C with its A/B and stated limit…
Engine walk: an AXColumn among a wide list's shown children waits unr…