Skip to content

ci-fix: declared scroll surfaces break browser placement checks #3695

Closed

Description

@leaf-agent

Main CI run 39896265506 failed with 24 browser test failures and 34 errors after #3673 introduced declared scroll surfaces. The preceding main run 39891211177 had 10 failures and no errors. The new failures include sticky diff headers sitting 40 px below authored scrolling boxes and many render checks reporting repeated placement writes or changes without input.

One cause is reproducible on current main: tests/browser/widgets/test_diffs.py::test_any_box_that_scrolls_starts_the_sticky_header_slot_again creates page scrollers with overflow but no scroll class. The new reach.js reads only declared surfaces, so those boxes do not restart the sticky header slot; the focused test reports gap: 40 where it expects zero. The test and its authored fixture need to reflect the declaration contract, but changing them alone does not explain or fix the other new failures. An exact-class assertion in test_a_source_widget_releases_its_fallback_face_when_it_renders also expects lf-rendered while the widget now correctly carries scroll lf-rendered.

The remaining failures cross focus, drafts, diff controls, margin placement and shift detection. In particular, 34 tests error when the write watch sees unchanged data-lf-place writes on margin rows or unchanged diff summary children. I reproduced one placement error on current main: tests/browser/drafts/test_reply_sessions.py::test_send_follows_a_reply_composition_whose_diff_outlet_disappears passes its assertions but errors at teardown because data-lf-place is rewritten without a net change. I have not established whether this shares a runtime cause with the scroll declarations. A broad test update would remove coverage before those interactions are understood, so no safe repair PR was produced. Diagnose a representative new placement error against #3673, then update the stale declaration fixtures and exact-class expectation alongside the runtime repair.

Activity

  1. leaf-agent commented on Oct 23, 2026

    @leaf-agent
    CollaboratorAuthor

    The placement error still reproduces on current main. In test_send_follows_a_reply_composition_whose_diff_outlet_disappears, the assertions pass, then the browser write watch fails at teardown. Instrumenting that watch showed one diff-backed margin row go from no data-lf-place to rail and back to no attribute within a single task as the source revision replaced its outlet. The row is gone by the end of that task. layoutMarginRows assigns the posture and unregisterMarginRow removes it in margin-layout.js; the watch reports the zero-net write. This narrows one of the 34 errors, but does not establish that scroll discovery caused the row lifecycle or that relaxing the watch would preserve its coverage.

    The scroll declaration fixture and exact-class assertion identified in the issue are separate test updates. I did not open a repair PR because a local change to those assertions would leave the placement failures unexplained, and I could not validate a runtime repair for them. The tracker remains open for a fix at the row lifecycle boundary.

  2. leaf-agent commented on Oct 23, 2026

    @leaf-agent
    CollaboratorAuthor

    PR #3697 repairs the two clear fixture failures from run 39901745205. Both failed before the change and pass locally afterward. The run still reports 23 failures and 34 errors, including the margin-placement writes already described here.

    A third sticky-header case exposes a contract conflict: test_a_diff_pins_to_its_page_tab_panel_or_past_an_option_card styles an lf-tab itself as a scroller, but the declared-surface contract requires class="scroll" and the lf-tab schema rejects class. A nested declared box makes the assertion pass, but no longer tests the tab panel itself. The remaining repair needs a decision on how a page declares that panel as a scroll surface while retaining the test's coverage.

  3. leaf-agent commented on Oct 23, 2026

    @leaf-agent
    CollaboratorAuthor

    Work from run 39901745205 has landed in #3697 (the declared scroller fixture and rendered class assertion), #3698 (discarded margin rows no longer write a final placement reset), #3699 (unchanged diff summary keys no longer replace their nodes), and #3705 (two more authored scroll surfaces). #3706 updates seven watcher expectations to the declared scroll class; its exact-head CI and review are still running.

    The focused cases for those changes fail before and pass after. The browser suite is still red, and these repairs do not establish a green main run. A focused rerun on the repaired tree passes two sampled teardown cases but still errors in test_on_me_materializes_a_frozen_review_at_its_requested_case: the write watch reports unchanged children of div.lf-fp-answers. The lf-tab scroll-declaration conflict described above also remains. These require separate runtime or contract decisions; this issue remains open for them and the other untriaged browser failures.

  4. leaf-agent commented on Oct 23, 2026

    @leaf-agent
    CollaboratorAuthor

    The latest investigated main run 39906202258 was taken before several repairs landed. #3706 has since merged, and #3712 fixes its separate draft-marker test failure; that focused test failed before #3712 and passed afterward, with the PR checks green on its head.

    Two failures still reproduce on main at b2d1513e2: test_a_diff_pins_to_its_page_tab_panel_or_past_an_option_card reports a 47 px sticky-header gap, consistent with the lf-tab declaration conflict already described here, and test_margin_content_fits_where_the_column_leaves_room reads position: relative for an in-flow sidebar where the test expects static. I have not established whether the latter is a product regression or a stale style assertion. This tracker remains open for those failures and the other untriaged browser failures; no green full main run is established.

  5. leaf-agent commented on Oct 23, 2026

    @leaf-agent
    CollaboratorAuthor

    #3715 has merged after its focused sidebar test and exact-head checks passed. The old run's sidebar assertion was stale because the shared scroll style gives an in-flow sidebar position: relative; the repaired test checks that it stays in flow and aligned with the column.

    Two remaining tests reproduce on main at b2d1513e2: test_a_rewrite_of_a_comment_just_sent_is_the_reply_box finds the Edit control's top focus-ring edge missing, and test_releasing_a_drawing_does_not_read_every_card_before_preview reads styles from all 40 cards before the drawing preview. Instrumenting the latter's getComputedStyle calls showed the pre-preview reads come from paintSidewaysReach in reach.js, while later reads come from snapdom after its held request resumes. The early scroll-cue pass is the performance path to investigate. The lf-tab sticky-header gap reported earlier also still reproduces (47 px on that same main commit).

  6. leaf-agent commented on Oct 23, 2026

    @leaf-agent
    CollaboratorAuthor

    Run 39917870081 has five failures covered by focused fixes in #3720 (two visual review assertions), #3721 (drawing-release style reads), #3722 (the Edit ring), and #3723 (selection restoration). Each claimed case failed on main and passed locally after its change; their PR checks and landing are still in progress.

    Two focused failures remain on current main. The tab-panel diff still has a 47 px header gap: the panel's authored overflow needs the declared scroll class, while the lf-tab schema rejects class, as described above. The frozen-review On me test still reports an unchanged write in div.lf-fp-answers. Mutation instrumentation narrowed that write to one card during Show: its Discuss button is replaced with a temporary “Toggle Looks right” answer while the frozen widget materializes, then Discuss returns in the same task as navigation selects another case. The card's final children match its initial children. The answer choices come from onItemCard through obligationView.choicesOf; I have not verified a repair that avoids the transient paint while preserving the card's answer routes.

  7. 1 remaining item

  8. leaf-agent commented on Oct 23, 2026

    @leaf-agent
    CollaboratorAuthor

    The repairs for run 39917870081 have merged: #3720 updates the two visual-review layout assertions, #3721 keeps drawing-release style reads bounded while refreshing scroll cues after style changes, #3722 restores the Edit focus ring, #3723 updates selection-restoration coverage, and #3724 keeps the On me Discuss control stable. Each PR’s claimed test failed before its change and passed afterward; each merged head had terminal green PR checks. The draft-marker and sidebar cases had already been repaired by #3712 and #3715.

    One reported case still fails on current main at 941b59da57b4b29192aca276bee76be02998f86e: test_a_diff_pins_to_its_page_tab_panel_or_past_an_option_card measures a 47 px sticky-header gap after scrolling the tab panel. Its fixture makes lf-tab itself scroll with CSS, but the declared-surface contract requires class="scroll" and the lf-tab schema rejects class. A nested scroll box would test a different surface. Resolving this needs a choice about how an authored tab panel declares itself scrollable; this issue remains open for that decision. The new full main CI run is pending, so no green main result is established.

  9. leaf-agent commented on Oct 23, 2026

    @leaf-agent
    CollaboratorAuthor

    Run 39930571983 now has six merged focused repairs: #3730 fixes panel label selection and Send placement checks; #3731 aligns the margin ring assertion; #3733 keeps the reply walk aside still while drafting; #3735 restores the card grip; #3740 follows a hidden document tab's end; and #3742 places the continuation fade below the sticky author. Each claimed focused case failed before its repair and passed after it, and each merged head had terminal green PR checks.

    PR #3732 was closed unmerged because moving the scroller inside the tab made its assertion pass while dropping coverage of the tab panel itself. The lf-tab scroll-declaration conflict described above remains open for a contract decision. I have not established a green full main run.

  10. max-sixty commented on Oct 23, 2026

    @max-sixty
    Owner

    when you report these, can you give a clear table of failures and status of each? add to skill

  11. leaf-agent commented on Oct 23, 2026

    @leaf-agent
    CollaboratorAuthor

    Here is the status of the failures tracked in this issue:

    Failure Status Evidence / next step
    Undeclared scroller fixtures and the exact lf-rendered class assertion Repaired #3697 and #3705 merged; the affected focused cases passed after those changes.
    Repeated margin placement and diff-summary writes Repaired #3698 and #3699 merged; the focused teardown cases passed after those changes.
    Frozen-review answer card's unchanged child write Repaired #3724 merged; its focused case passed after the change.
    Diff sticky header in an lf-tab scroll panel Repaired #3746 declared tab panels as scroll surfaces; its focused pinning case passed after the change. #3758 fixed a related repeated class write, with its three focused cases passing.
    Full browser suite Unverified on current main Run 39975651411 failed with 16 failures and 3 errors across several browser areas; run 39980902303 is still in progress. Those counts do not establish that the remaining failures share this issue's cause.

    I'll put this failure/status table format in running-tend so subsequent CI reports identify each known failure's outcome and the evidence behind it.

  12. leaf-agent commented on Oct 24, 2026

    @leaf-agent
    CollaboratorAuthor

    The October 24 nightly run reported 24 failed tests and 2 teardown errors. Six failing cases now have focused repairs merged with green PR checks; a fresh full nightly run has not yet established a green main result. The teardown errors belong to the opening-line and whole-page-rules rows below.

    Failed case Status
    Edge shell equals served document and runtime Repaired in #3804; focused case passed.
    Opening a line under a full last line Unresolved; the test assertion and shift-watch teardown both failed.
    Wait takes the suite deadline Repaired in #3803; focused case passed.
    Open draft retains words after responsive target hides Unresolved.
    Code copy stays beside scrolling and revised blocks Unresolved.
    Sample editor focus preserves scroll and caret (WebKit) Unresolved.
    Layer whole-page rules on the corpus Unresolved; its touch-aim finding and ResizeObserver teardown both failed.
    Sampled focus rings remain whole Still failing after the live sample frame's ring fix in #3807; clipped rings and stale audit carriers are tracked in #3808.
    github-discoveries render gate Repaired in #3809; focused case passed.
    dynamic-widgets render gate Repaired in #3810; focused case passed.
    ship-review render gate Unresolved; thread-card closure changes scroll position and resize changes keyboard stops.
    visual-review-gallery render gate Unresolved; resize geometry and held shot scrollers remain.
    worktree-diffs render gate Unresolved; generated nodes among authored evidence are tracked in #3811.
    Inline thread keeps one readable card across claims Unresolved.
    Margin card holds its top as turns and replies arrive Unresolved.
    Inner state leaves before its outer surface Unresolved.
    A box that starts scrolling takes a stop Unresolved.
    Presses and fills leave no stale element keys Unresolved.
    Left sidebar yields the margin to the page Repaired in #3806; focused case passed.
    Trace comments restore exact image and duplicate name Unresolved.
    Reload swap retires pending sample faults Repaired in #3805; focused case passed.
    Offline reaction waits for saved state Unresolved.
    Region capture draws live samples after removed links Unresolved.
    Refused panel reply retains its live foot Unresolved; the expected 400 response also produced uncredited panel movement.

    The unresolved rows are the status of this run, not a claim that they share one cause. #3808 and #3811 preserve the two diagnoses established in focused reproductions; the other rows still need their own causal checks.

  13. max-sixty commented on Oct 25, 2026

    @max-sixty
    Owner

    The declared-scroll-surface regressions this issue was opened for are repaired (#3697, #3698, #3699, #3705, #3706, #3724, #3746, #3758). The rows added since are unrelated nightly failures; most of them failed on every nightly from the day they appeared, so they are deterministic regressions in nightly-only journeys tests rather than flakes.

    The Oct 25 nightly (run 40186470627) has 31 failing tests. #3939 is repairing main's and macOS's failing tests from the previous nightly, including the render-gate "Copy link to section" failures from #3836, and Tend's ci-fix run on this nightly deferred to it. Closing this umbrella. A nightly failure that is still red after #3939 lands, or that no open PR covers, gets its own ci-fix: issue keyed by test, recording the first nightly it failed on (#3872 writes that rule into running-tend).

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

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions