Skip to content

Name the catalog preview digest as its own red-suite class - #168

Merged
max-sixty merged 3 commits into
mainfrom
daily/review-runs-33370128348
Aug 31, 2026
Merged

max-sixty merged 3 commits into
mainfrom
daily/review-runs-33370128348

Conversation

@leaf-agent

@leaf-agent leaf-agent commented Aug 31, 2026 •

Copy link
Copy Markdown
Collaborator

running-tend classifies red browser suites. The stale catalog preview failure has recurred often enough to deserve its own short class. This change keeps only the operational guidance: run scripts/example-previews.py, commit a manifest-only refresh, and send changed images through ordinary visual review.

It also removes frequency and class-count wording that would age as the suite changes.

This was written by Codex on behalf of @max-sixty

@leaf-agent leaf-agent added the review-runs Opened by the tend-review-runs sweep label Aug 31, 2026

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two statements in the new class are wrong against the repo's current state. Flagging them because the paragraph exists so a cold session doesn't re-derive — and a cold session will follow both.

#133 is closed. closedAt is 2026-08-31T06:55:43Z with stateReason: COMPLETED, and gh issue list --state open returns only #17, so nothing tracks the design call. A session routed to a thread GitHub renders as COMPLETED reads the question as settled, which inverts "open on #133" — and the closure is the PR body's own premise for why the analysis stopped being reachable. Suggestion inline. (The last comment on #133, at 07:08Z, was posted after the close, so the design half genuinely outlived the thread rather than being answered there.)

The Contention entry still says "the rarest of the four." Adding a fifth class falsifies it. It sits three lines past the hunk, so no inline suggestion:

.claude/skills/running-tend/SKILL.md, in the - **Contention.** bullet:

  the commit slow against its usual wall time. It is the rarest of the four.

→ the rarest of the five.

Comment thread .claude/skills/running-tend/SKILL.md Resolved
The new catalog-preview-digest class said the hashing design call was
open on #133, but that issue closed 2026-08-31 as COMPLETED, so a cold
session would read a settled thread as the place to take the question.
Adding a fifth class also falsified the Contention bullet's "rarest of
the four".
max-sixty pushed a commit that referenced this pull request Aug 31, 2026
…169)

## Problem

`bba885a` ("Canonicalize target Buttons") landed the `…` fold without
the nightly suite, and [run
33364553456](https://github.com/max-sixty/leaf/actions/runs/33364553456)
came back `14 failed, 1558 passed`. They are one change seen from
several sides: a secondary contribution is now `display: none` in the
rail and stands in the fold as a proxy, and the fold itself is a
generated container that stands in every cluster. The same set has been
red on every `ci` run of `main` since, most recently [run
33434899458](https://github.com/max-sixty/leaf/actions/runs/33434899458)
on `627ea48`.

`627ea48` ("Route margin Escape through the keyboard register") has
since landed the Escape half of this branch on `main`, as one registered
`margin.back` row. That half is out of this PR now — see **What main
took over** — and the twelve still red on `627ea48` are what is left
here, plus the catalog preview digest, which CI is the wrong machine to
refresh (**Left alone**).

## Solution

Two of these are the layer's, not the tests':

- **A copy holds a rail open for nothing.** `bake` takes
`.lf-margin-item:empty` so a pending action's stripped shell does not
reserve the live page's rail. The fold is a child of every item whether
or not anything is folded into it, so once its proxies were stripped the
item was no longer `:empty` and kept the rail on the strength of a
shell. Take the emptied fold first, then ask the item.
(`test_a_copy_says_a_change_is_only_proposed` counted 3 items where it
wanted 0, and
`test_an_exported_example_stands_on_its_own[release-notes]` read the
empty right strip those shells left standing.)
- **The page-map sheet's focus ring is cut on both sides.** A row fills
the list to its own edge and the list is a scroller, so the outset ring
was 3px outside the band on the left and the right. Inset, which is the
layer's own rule for a box whose edge touches something that paints.
Found by the ring walk once it could reach the sheet at all.

One behaviour change survives from the Escape work, because `main` has
no equivalent: a reaction raise that unfolds a cluster to stand its
choices in folds that cluster back when the choices are put away — that
cluster only, and without claiming the focus. Without it, disarming a
reaction on a reply strip took away a fold the reader had opened for
themselves, and a fold-back that moved focus threw a reader standing on
another cluster's `…` onto one they had left. `unfoldedButtons()` hands
back the unfolded cluster rather than a flag so the raise can ask whose
target it belongs to; each guard has a test that fails against the
unguarded form.

The rest is test surface that still names a control the reader can no
longer aim at:

- `unfolded_button(control)` presses `…` and hands back the Button
standing in for one folded contribution — the owner keeps the row's
record and never comes out from behind the fold. Six presses of
`.lf-sug-reject` go through it.
- Two assertions had gone vacuous rather than red, and are restated so
the fold alone cannot satisfy them: a refused decision is read where the
reader would find it, and a settled pair is read as the computed
`visibility: hidden` that says the decision was taken.
- The `margin-action` archetype's target moves from the accept press,
which has no visible control left to hold still, to `…`, whose neighbour
is the primary and whose transition adds Buttons to the row it is made
on.
- The ring walk gains the two scopes a Tab walk of the page cannot open
for itself — a Thread card and the compact Page-map sheet — since
`.lf-margin-preview-action`, which used to light `page-map-action`, went
with the card that now holds only threads.

## Testing

Against `dae00e6`, `main`'s head at the merge:

- `uv run pytest tests` — the PR gate: **749 passed, 6 skipped**.
- The twelve this PR answers, plus every file the dropped half touched:
`test_render_controls.py`, `test_render_export.py`,
`test_render_outbox.py`, `test_render_projection.py` — **204 passed**;
`test_render_widgets.py`, `test_render_navigation.py`,
`test_render_margin.py`, `test_render_reactions.py`,
`test_render_aim.py` — **221 passed**. Both under `--run-nightly -n 2`.
- `pre-commit` on every changed file: pass.

The ring walk's own two halves are asserted before they are divided by,
so the new scopes are evidence rather than coverage: `a thread card` and
`the page map sheet` both open, both walk, and the walk reports the
sheet's cut ring before the theme fix and nothing after it.

<details><summary>What main took over, and the one question it leaves
open</summary>

`627ea48` replaced the living margin's two local `keydown` listeners
with `keyboardRung()` in `living-margin.js`, registered as `PAGE_MAP`'s
single `margin.back` row ahead of the reaction and navigation modes.
That satisfies the register invariant on its own:
`test_the_register_is_the_only_way_a_key_enters_the_runtime` and
`test_design_mode_comments_on_what_a_press_lands_on_and_nothing_else`
both **passed** on `627ea48` with none of this branch applied.

So this branch's own ladder comes out rather than standing behind
main's: the `unfolded` branch in `rung()`, the popover `toggle`'s focus
return, and the two tests that read this branch's wording (`fold`, and
the reply box as a rung of its own under the card). Kept, both
implementations would be live at once with main's row in front — one act
named two ways depending on where the reader is standing.

Two cases main's row does not carry, left as a question about `main`
rather than a blocker here, since nothing red waits on either:

- **The fold with the reader standing nowhere.** `margin.back` fires
with `atFocus` true, so it needs focus inside the cluster; this branch's
rung also folded for a reader holding nothing.
- **The reply box as its own rung under the card.** This branch gave the
box back on the first press and the card on the second; `627ea48` closes
the card on the first press from inside the box, and main's own copy of
`test_a_new_anchored_comment_opens_its_inline_thread` asserts that.

</details>

<details><summary>Left alone: the catalog preview digest</summary>


`test_site.py::test_the_public_catalog_is_a_visual_index_of_full_page_routes`
fails on `preview inputs changed — rerun scripts/example-previews.py`,
and this branch does not run it. #133 measured why: the runner has none
of Charter, Iowan Old Style or Georgia, so a capture taken here falls
the prose to a generic serif and clips the banner's sentence in every
still — recapturing from CI would swap the public gallery's typography
for the runner's. I ran the script here to confirm that is still true;
all nine stills changed, including the six whose examples nothing had
touched, which is the substitution's signature rather than a real
recapture. The bytes are not in this branch.

It would also be moot: this branch edits `leaf.js`, `chrome-style.js`,
`living-margin.js` and `reactions.js`, all hashed inputs, so the digest
moves again when it lands. #168 is open to name this as its own
red-suite class; the refresh belongs to the next `wt merge` from the
authoring machine.

</details>

<details><summary>The twelve still red on 627ea48, and where each
goes</summary>

| test | cause | fix |
| --- | --- | --- |
| `test_render_widgets::test_a_copy_says_a_change_is_only_proposed` |
emptied fold keeps the item non-`:empty` | `bake` |
|
`test_render_export::test_an_exported_example_stands_on_its_own[release-notes]`
| same | `bake` |
|
`test_render_controls::test_every_ring_the_layer_draws_is_shown_whole_somewhere_in_the_corpus`
| `margin-target` and `page-map-action` painted nowhere the walk reaches
| two walk scopes; inset ring |
|
`test_render_controls::test_each_control_archetype_holds_its_neighbours_still[margin-action]`
| accept's only row-mate is folded away | retarget to `…` |
|
`test_render_widgets::test_a_decision_the_server_never_took_never_shows_as_taken`
| reject read in the rail | `unfolded_button` |
|
`test_render_widgets::test_a_widget_naming_its_own_words_does_not_read_the_runtimes[reject-Rejected]`
| reject pressed in the rail | `unfolded_button` |
|
`test_render_widgets::test_a_second_press_inside_the_round_trip_adds_no_second_decision`
| same | `unfolded_button` |
|
`test_render_widgets::test_a_decision_travels_between_tabs_and_the_log_has_the_last_word`
| same | `unfolded_button` |
|
`test_render_projection::test_a_pending_suggestion_can_be_discussed_instead_of_decided`
| same | `unfolded_button` |
|
`test_render_projection::test_a_decision_that_empties_its_widget_detaches_the_element_anchor`
| same | `unfolded_button` |
| `test_render_outbox::test_a_second_tab_takes_the_decision_back_too` |
same | `unfolded_button` |
|
`test_site::test_the_public_catalog_is_a_visual_index_of_full_page_routes`
| stale digest | left alone, above |

The two Escape-ladder failures from the original fourteen —
`test_render_navigation::test_the_register_is_the_only_way_a_key_enters_the_runtime`
and
`test_render_aim::test_design_mode_comments_on_what_a_press_lands_on_and_nothing_else`
— are `627ea48`'s now and pass on `main`.

</details>

---
Automated fix for [failed
run](https://github.com/max-sixty/leaf/actions/runs/33364553456)

---------

Co-authored-by: leaf-agent <[email protected]>
@max-sixty
max-sixty merged commit 2cae083 into main Aug 31, 2026
3 checks passed
@max-sixty
max-sixty deleted the daily/review-runs-33370128348 branch August 31, 2026 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review-runs Opened by the tend-review-runs sweep

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants