Skip to content

Read the Question ring in the focus sweep - #2308

Closed
leaf-agent wants to merge 2 commits into
mainfrom
fix/ci-38051185604-question-focus
Closed

leaf-agent wants to merge 2 commits into
mainfrom
fix/ci-38051185604-question-focus

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

Why

#2252 made the remote Question outline use the canonical question focus-ring name. The focus sweep still expected ask, so it reports a missing ring even when the Question is painted correctly.

Change

Read the canonical question ring and locate its exact [data-lf-question] carrier when checking the sample. This keeps the sweep sensitive to a ring drawn on the wrong node.

The same sweep also depends on the scrolling diff keyboard repair in #2287. That PR needs to land before this test can pass on main. I verified the complete sweep on current main with #2287's current focus.js and reach.js changes applied temporarily: 1 passed in 219.51 s. Ruff formatting passes.

This was written by Codex on behalf of max-sixty

The canonical response styling calls this remote ring question. The browser sweep still expected ask and stopped before inspecting the remaining specimens; on a tree with the diff reach fix, the full sweep now passes.
max-sixty added a commit that referenced this pull request Oct 11, 2026
#2252 renamed the remote Question outline's focus ring from `ask` to
`question`, so test_each_sampled_focus_ring_is_shown_whole_in_its_surface
reported a missing ring even where the Question was painted correctly. The
sweep now expects `question` and still marks the exact carrier, so a ring
drawn on the wrong node still fails. Carried from #2308.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty added a commit that referenced this pull request Oct 11, 2026
…build (#2327)

Code-quality survey batch for `tests/`, `dev/` and `build/`: the test
page pool's regression, plus small cleanups, one commit each.

**Test page pool (F125).** Since #2155 put the `work` fixture package in
`serve`'s default selection by path, every default `serve(markup)` ran a
full `page init`. `serve` pooled only selections of bare package names,
because it named each template directory after the selection.
`initialized_page` now owns the key and the `page init` command. A shape
is keyed by the selection, the package directories it resolves to as
`page init` resolves them, and an optional named preparation step: an
example's stamped versions, or `page_dir`'s document. `serve`,
`page_dir` and the fixture check share that one keyed lend, templates
are numbered, and a selection naming a package under the test's own
`tmp_path` (a `layer_registry` or `./.leaf` page) is initialized in
place. On this host under load 40 to 58, a default `serve(markup)` went
from about 6 s to about 0.75 s after each worker's first.

pytest's own fixture caching can't hold this pool by itself. `serve`'s
selection is an argument of a call made inside the test body, sometimes
twice in one test, and fixture caching keys only on scope and
collection-time params. So the pool keeps the shape it had: a
worker-scoped `_page_pool` with a function-scoped lender.

**Wait deadlines (F79).** The deadline lint loses its per-file
allowance. The 33 literal deadlines it held now take the suite's
default, `HANDOVER_DEADLINE_MS` for a reload, or a bound past the
runtime's 10 s presentation wait. The gate tests whose deadline is meant
to expire share `EXPECTED_STALL_MS` (5 s), so two of them now wait 5 s
where they waited 2 s and 1 s.

**Console errors (F39).** `render_gate.scheme` gains `console_error`,
the error branch `console_problem` already had, and
`collect_page_errors`. probe, verify-site and the plain arrangement gate
use them: still errors only, and a failed load now names its URL. A
layout case drops its `response` listener, since the console entry
already reports error statuses.

**Stylesheets (F128).** `build/styles.mjs` exports `styleOutputs()`,
which `build/browser/build.mjs` merges into the outputs it writes and
checks. `build:styles` and `check:styles` are gone, and `check:bundles`
no longer rebuilds the sheets. The sheets' banner now names
`build/styles.mjs`.

**Framework facade (F66).** The ESLint rules now refuse deep imports
into `vendor/browser-runtime/`, which bypassed both the semantic
publisher's ownership rule and the content-module boundary. The rule
also drops a check on `createApplicationPublisher`, which the facade
never exported.

**Smaller items.**

- From #2308: the focus-ring sweep now reads the Question ring by
`question`, the canonical name since #2252. #2308 can close once this
lands.

- F131: `leaf-dev probe --do drive:NAME` reaches all 71 stills drivers.
13 were refused before.
- F130: `publish-site` now runs on any `dev/` change. Its hand-written
list had missed `startup.py`.
- F75: two unused test helpers are deleted.
- F117 and F118: maintainer docs now match the CLI and the suite, and
let `--help` own leaf-dev's flags.

**Not done.**

- F40, launching catalog previews through `chrome()`: #342 chose
Playwright's locked headless shell to keep previews reproducible, and
this would reverse that.
- F129, moving the package-lock check: #2317 deleted both lock checks
when it moved to pnpm.
- F58, the shared Lit binding: verification rated it low value and
recommended folding it into the next change to either binding.
- F34, the usability eval scorers: rewriting eight scorers onto
`SourceDocument` needs the stored runs re-scored before and after, which
is more than a small change.

> _This was written by Claude Code on behalf of max-sixty_

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty

Copy link
Copy Markdown
Owner

Landed in #2327 as its own commit (credited there); the sweep passes on main.

This was written by Claude Code on behalf of max-sixty

@max-sixty max-sixty closed this Oct 11, 2026
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.

2 participants