Skip to content

Give every failure on main an owner, and fix the ones nobody owned - #3835

Merged
max-sixty merged 9 commits into
mainfrom
main-failure-owners
Oct 25, 2026
Merged

max-sixty merged 9 commits into
mainfrom
main-failure-owners

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

A session landing about a dozen PRs on 2026-10-23 kept naming test failures as "fails on main too" and moving on. Checked against main, most of them had no owner: the corpus render gate had failed three nightlies with no tend-ci-fix PR or issue, and four browser tests failed only on macOS, which tend-ci-fix never sees. This change gives such failures an owner in the guidance, and fixes the ones that were still failing.

Guidance

tests/AGENTS.md ("Selecting checks") already sent macOS-only failures to a local session, but the inherited-failure step ended at "name it and land", a paragraph away from that rule. The inherited-failure step now says to check for an owner first. The ownership rule says what tend-ci-fix owns: a failure in main's latest run while its run on it is going, or while an open fix/ci-* pull request or ci-fix: issue names it. Everything else goes to a local session once no session, worktree (Codex's included) or open pull request covers it: macOS-only failures, and failures whose tend-ci-fix run was refused (as the bot's rate limit refused two on 2026-10-23) or ended without naming them. It also says to confirm a macOS-only failure at normal priority, since taskpolicy -b slows headless Chrome's frames from about 17ms to about 100ms, and two of the four "macOS-only" failures came from that alone.

Fixes

  • Folded margin pin (product bug). Pressing e on a folded pin's toggle showed the six reactions and then tore them down: the unfolded face hides the toggle, and focus falling to the page closed the options. presentCluster (margin-projection.js) now moves focus from a toggle the new face hides to the first option, where a press on the toggle lands. New test: test_reactions_raised_from_a_folded_pin_s_toggle_take_the_focus. test_reactions_keep_all_six_buttons_on_an_occupied_target[390-keyboard] failed on macOS because the pin folds there (Charter's metrics leave no seat at 390px) and .focus() on the hidden Accept did nothing; it now Tabs to Accept, as a user would.
  • Suggestion picker test. The send button takes its new label a frame after the picker's, so for that frame two buttons are named "Comment"; the locator is scoped to .lf-response-options.
  • Gesture sampling. gesture_writes read anchor-positioned chips inside requestAnimationFrame, before Chrome moves anchored boxes in that frame, so samples lagged a frame. It now reads in a task posted after the frame renders, skipping frames that don't move the scroller. This fixes test_a_chip_seated_below_its_neighbour_rides_the_scroll_with_it (59 vs 60px at slow frame rates).
  • Corpus render gate (test_the_layer_holds_its_whole_page_rules_on_the_corpus):
    • Aims: the sweep now holds each control to the --aim-floor it declares itself, as the floor rule does, so diff line numbers (which opt out in packages/diff/styles/shadow.css) are no longer flagged. A floor inherited from a container still counts as the document's, and an aim covered to nothing is always short. The transparency skip that used to excuse the line numbers went away when Simplify diff layout with native source and conversation rows #3656 made them visible. wt-merge's terminal lines declare a zero floor (the scrubber and chapters are the touch route), and github-discoveries' refresh button folds in the floor.
    • lf-shot fit itself inside its stage's ResizeObserver delivery, changing the stage's height there ("ResizeObserver loop completed with undelivered notifications"). The fit now runs through frameFor after delivery, as lf-chart and page-layout do; after a width change, the old fit shows for one frame.
    • Paper: the marker check now counts only list items, and lf-shot's drawing is built from generated boxes again (shotBox in shot-view.js), with offers only on its presses. That removes the display: block !important print overrides, which had made the gate read its card dress as a promise of a press. On paper, the label the screen isn't showing now prints as plain words.

Testing

At normal priority on the merged head: the corpus gate, the reactions and picker tests, the chip and scroll-paint tests, test_shot_controls_have_disjoint_targets_and_labels_stay_passive, the control-archetype and focus-ring journeys and projection/test_visual_review.py (36 passed), plus pnpm run test:runtime (540 passed) and pnpm run check. A container-level --aim-floor: 0px on wt-merge makes the corpus gate fail, as it should. No printed PDF of lf-shot was inspected.

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

max-sixty and others added 9 commits October 23, 2026 17:31
A session landing a change confirmed failures as inherited by running them on
main locally, named them in its pull requests and moved on, about a dozen times
in one day. Several failed only on macOS, which tend-ci-fix never sees, and the
rule that sends those to a local session sat a paragraph away from the
inherited-failure rule, so nothing in the landing path reached it. Another was
red on main while tend-ci-fix's runs were refused by the bot's rate limit.

The inherited-failure step now points at the ownership check, and the check
names what tend-ci-fix owns (a run in progress, or a fix/ci-* pull request or
ci-fix: issue naming the failure). Everything else — macOS-only failures, and
failures whose tend-ci-fix run was refused or ended without naming them — goes
to a local session once no session, worktree (Codex's included) or open pull
request covers it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
`gesture_writes` read its `sample` in an animation-frame callback, where the
scroller already stands at the frame's offset but a box anchored to scrolled
content still stands where the previous frame drew it: Chrome moves an
anchored box at the frame's anchor recalculation, after frame callbacks.
Read at a ResizeObserver delivery in the same frame, the target picker's
chips had moved exactly as far as the page. The lag never reached the screen,
only the reading.

At 60 fps a smooth scroll ends with a frame that doesn't move, so the last
sample caught up and
test_a_chip_seated_below_its_neighbour_rides_the_scroll_with_it passed. Under
`taskpolicy -b` on macOS, headless Chrome draws a frame about every 100 ms,
the 60px gesture takes two steps, and `scrollend` fires in the frame of the
last one, so the last sample stayed a step behind (59 or 26 of 60px), failing
every run.

Samples are now read in a task posted from the frame callback, after that
frame has rendered. A frame that leaves the scroller where it was is skipped:
on such slow frames the runtime's 80 ms settle (arrivals.js, `SETTLE_MS`)
can come before `scrollend` and seat the chips again at rest, which failed 2
of 16 runs with the first version of this change. The test now passes 12 of
12 runs under `taskpolicy -b` and 3 of 3 without it. With `seatHints` changed
to hold every chip seated below a neighbour, it still fails (the held chip
moves 0px, the rest exactly 60px).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Pressing `e` with focus on a margin cluster's toggle stood the reactions
in the cluster, whose unfolded face hides that toggle. Nothing handed the
user on, so the hidden toggle read as leaving the cluster: the leave
handler closed the options, which put the reactions away in the same
frame and dropped focus to the page. A folded pin reaches this whenever
Escape folds it back onto its toggle. `presentCluster` now hands focus
that was on a toggle the new face hides to the first option, as a press
on the toggle lands, and the reactions stay up.

Two reaction tests failed on macOS and passed on Linux CI:

- test_reactions_keep_all_six_buttons_on_an_occupied_target[390-keyboard]
  called `.focus()` on Accept, which only works while the 390px pin
  stands whole. Whether it folds depends on where the host's serif face
  ends the target's last line: macOS's Charter ends it at x=352 of 366,
  leaving no seat for the 61px face, so the pin folds and Accept is
  hidden; DejaVu on Linux leaves room. The test now Tabs to Accept, which
  reaches it in both postures.
- test_suggestion_picker_preserves_the_comment_draft read the picker's
  "Comment" choice by name across the whole bar. The field's submit takes
  the new mode's name in the frame after the switch, so until a frame
  runs both say "Comment". Slow frames on a loaded host exposed it. The
  locator is now scoped to the picker.

A new test, test_reactions_raised_from_a_folded_pin_s_toggle_take_the_focus,
covers the toggle route on the deterministic FOLDING_PAGE.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The corpus gate's aims, window-error and paper readings failed on main.

Aims: the finger sweep compared every control with the root's
--aim-floor and skipped transparent ones. A diff line's comment press
sets its own --aim-floor to 0px, since it is one row of a stack of lines,
and the sweep only skipped it because it used to be transparent; #3656
moved the transparency onto its hover mark, so 164 line numbers read as
30x19 aims. The sweep now holds each control to the floor it computes,
as the floor rule does, and the transparency skip is gone. wt-merge's
desktop terminal lines are the same kind of stacked row and now say so;
the scrubber and chapters are the film's seek routes under a finger.
The discoveries feed's Refresh and news buttons folded no floor into
their 40px minimum and now take max(40px, --aim-floor), as the floor
rule's contract asks.

Window error: lf-shot fitted itself inside its stage's ResizeObserver
delivery, and the fit changes the stage's height, so revealing the
gallery's page view (whose shots were drawn at their source width) logged
"ResizeObserver loop completed with undelivered notifications". The fit
now runs through frameFor after delivery, as lf-chart's redraw does; a
width change shows the old fit for one frame.

Paper: the reading counted a marker on any box whose inherited
list-style-type was not none, though only a list item draws one. It now
reads a marker only on list items. The reading still fails on lf-shot's
printed frames and labels, which #3635 made offers and prints with their
ground, border and corners; that needs a decision about lf-shot's paper
form and is left open.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…t overrides

#3635 made every box of lf-shot's drawing an offer: the stage, canvas,
frames, frame labels, image windows, image links, planes, the slider and
the pixels view. Paper drops offers (state.css), so shot.css forced nine
of them back with `display: block !important`, and the corpus gate's
paper reading then read the frames' ground, border and corners, and the
labels' chips, as controls dressed to be pressed on a sheet.

Those boxes are now generated boxes (`shotBox`, shot-view.js), as the
frames were before #3635, and offers are left to the toolbar's controls,
the source labels, the slider's handle and the outlines. Nothing a press
does depends on the change: the image link opens the viewer natively, the
slider runs its own handlers, and inside a container the lf-shot itself
holds the gesture (`worksInside`), as it holds Design mode's target. The
runtime already read these boxes as no press, since an offer's empty
value is not one.

What changes for a user:

- Paper prints the drawing through the layer's own rule. The print block
  keeps only lf-shot's own layout (both sources stacked at the sheet's
  width, frames shown even from the Pixels view) and drops the overrides
  and the toolbar and outline rules state.css already covers. Pixels'
  own view no longer prints, which the `.lf-shotimage` override had
  turned back on.
- The source label the screen does not show now echoes the one it does
  (`says: "echo"`) rather than saying nothing, so paper prints the
  frames' labels as plain words, as it prints every label the page keeps.
- Before the page upgrades, the screenshot's frames and images paint with
  the authored page rather than waiting with the chrome; the toolbar and
  labels still wait.
- The drawing states its own border-box sizing, which `.lf-ui` had given
  it, so every frame keeps its width.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Holding each control to its computed --aim-floor let a container's 0px opt-out
exempt every control inside it, since custom properties inherit, and let an aim
another box covers to nothing pass under a zero floor. The sweep now lowers a
control's floor only where the control declares it, and a zero aim is always
short. A container opt-out on wt-merge's film now fails the corpus gate.

Ownership by tend-ci-fix now needs an open fix/ci-* pull request or ci-fix:
issue; a closed one leaves a recurring failure unowned.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts:
#	dist/kernel/runtime/bundle-annotation-overlay~index.js
#	packages/default/widgets/lf-shot.js
@max-sixty
max-sixty merged commit ef52372 into main Oct 25, 2026
4 checks passed
@max-sixty
max-sixty deleted the main-failure-owners branch October 25, 2026 01:52
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