Skip to content

ci-fix: ci failing — catalog preview digest stale, and CI is the wrong machine to refresh it #133

Closed

Description

@leaf-agent

Failure

ci run 33326754065 on ac5ba54 — test_site.py::test_the_public_catalog_is_a_visual_index_of_full_page_routes:

AssertionError: preview inputs changed — rerun scripts/example-previews.py
assert '00101a033b8c...0003cee1c5c39' == '18a2c889ef57...f7faeba9c36e2'

This is the one failure that entered the standing set on that run: the previous run (33324080398, 6794ddc) did not report it. It still reproduces on d7f9d0f.

Diagnosis

preview_build.capture_input_files() hashes every file under skills/leaf/assets, skills/leaf/packages/default, each package named in examples/layer.json, and all of examples/ — so any runtime, theme, registry or package edit invalidates docs/example-previews.json's inputs_sha256. ac5ba54 edited assets/leaf.js, assets/runtime/chrome-style.js and assets/runtime/keyboard/address.js, and docs/example-previews.json was last regenerated at fff16e6, its parent. Every commit on main since has changed inputs again, so the digest is now several runtime commits behind.

The remedy the test names is right, but it cannot be run from here: the stills are system-font dependent, and CI has neither of the faces the theme asks for first.

theme.css declares --serif: Charter, "Bitstream Charter", "Iowan Old Style", Georgia, ui-serif, serif and --sans: system-ui, -apple-system, "Segoe UI", sans-serif. fc-list on the ubuntu-24.04 runner has DejaVu and Liberation and none of Charter, Iowan Old Style or Georgia, so a capture taken here falls the prose all the way to a generic serif and system-ui to a Linux UI face. scripts/linux-suite.sh already states the same fact from the other side: "what the two platforms disagree about is exactly what a browser test measures: how wide a system font sets a word".

I ran scripts/example-previews.py here to measure it rather than to propose it. All nine stills came back changed, including the six whose examples nothing had touched, and the re-render is not subtle — the body text re-wraps throughout and the banner's sentence clips to "What you do here stays in this br…" in every image, because the Linux UI face sets it wider than the banner holds. Pushing those would swap the public gallery's typography for the runner's.

Where the rest of that run's 55 failures stand

Re-run on d7f9d0f, 24 of the 55 now pass on their own. Of the 31 that remain, the two open bot PRs account for most:

That leaves seventeen unowned, clustered on chrome changes from the last hour rather than on one cause: four in test_render_anchors.py (the version menu's focus and visibility), six in test_render_controls.py (coarse-pointer taps, the action shelf, esc handback, stacking workspaces, the corpus's control-row archetypes), two each in test_render_conversations.py and test_render_widgets.py, and one each in test_render_navigation.py (test_a_widget_that_renames_its_role_keeps_the_press_offer_gave_it, which #132 explains and deliberately leaves), test_render_outbox.py and test_render_semantic_selection.py.

Note also that #132's change to lf-command.js and lf-worktree.js is itself a preview input, so merging it moves the digest again — whichever of the two lands last is the one that has to be followed by a regeneration.

Why no fix was produced

Regenerating from CI is the one thing a fix PR here could do, and it would replace the whole checked-in catalog with runner-rendered stills — a visible change to https://leaf.page/ made on the wrong machine, and one that tests/CLAUDE.md's own account of the macOS/Linux split predicts. Rerunning scripts/example-previews.py on the authoring machine, as part of the next wt merge that touches the layer, is the fix; whether the gate should keep hashing every runtime file — which makes it red for the whole window between a layer change and the next capture — is a design call rather than a stale reading.

Activity

  1. leaf-agent commented on Aug 30, 2026

    @leaf-agent
    CollaboratorAuthor

    Recurs on ci run 33327317652 (531a41e), and still reproduces on the current tip af4eb72: manifest 5cade914…, computed 72368214….

    The new fact is that #130 did rerun scripts/example-previews.py on the authoring machine — all nine stills and the manifest are in af4eb72 — and the gate is red anyway. So "rerun it as part of the next wt merge that touches the layer" is necessary but not sufficient, and the design call this issue raises is sharper than the capture window: as written the gate cannot be satisfied from a pull request at all.

    Measured on the two trees: on #130's head 9aa4f61 the manifest matches its own inputs exactly. The same manifest on the squash-merge af4eb72 does not. Nothing about the capture was wrong — ten commits touching hashed inputs landed on main between #130's base ac5ba54 and the merge, and every one of them changes inputs_sha256. A capture is only current on a commit where it was the last layer change to land, which a PR author cannot arrange.

    That also predicts the next red: #121 and #132 both edit hashed inputs, so whichever lands last re-stales any manifest captured before it.

    How that was checked, and a second reproducibility hole

    capture_input_files()/digest() were run out of scripts/example-previews.py against three trees:

    tree manifest inputs_sha256 computed
    9aa4f61 (#130 head, pre-merge) 5cade914… 5cade914… match
    af4eb72 (squash-merge on main) 5cade914… 72368214… stale
    1a98129 (af4eb72^) 00101a03… 4206c5e0… stale

    The ten commits between ac5ba54..1a98129 that touch hashed inputs: d2dd825, 84aef1d, 2a1ca10, 2937e3b, e7299eb, 6a50d50, aa25ddf, 24759a0, 7336a14, d8d1f1e.

    Separately, the input list is a filesystem walk (rglob("*") over examples/, skills/leaf/assets, skills/leaf/packages/default and each package in examples/layer.json), not a git enumeration, and .gitignore covers .DS_Store and __pycache__/ — both of which land inside those roots. A macOS authoring checkout can therefore hash files a CI checkout does not have, which would make a correctly-captured manifest unverifiable here for a reason no diff shows. That is not what caused any mismatch above — all three trees were clean, and git status --porcelain --ignored over those roots is empty on this runner — but it is a second way the digest is not reproducible across checkouts, and git ls-files over the same roots would close it.

    I confirmed the font substitution this issue already describes rather than re-deriving it: fc-match Charter, fc-match "Bitstream Charter" and fc-match "Iowan Old Style" all answer DejaVu Sans on this sandbox, fc-match Georgia and fc-match serif answer DejaVu Serif. A regeneration here re-set the prose in DejaVu Serif across all nine stills — re-wrapped body text, and the banner clipped a phrase earlier than the committed capture does. Those files were discarded rather than pushed.

  2. leaf-agent commented on Aug 30, 2026

    @leaf-agent
    CollaboratorAuthor

    #134 now carries the recapture, and measuring it here changes two things in this issue's account.

    The digest half is satisfiable, and it turns on merge order. None of the nine stills nor the manifest is a hashed input — capture_input_files() takes only docs/leaf.js, session.js and sitenote.js out of docs/. So #134's diff is digest-neutral: computed on its rebased head it is 7010517b…, and computed on plain 26dbf42 it is also 7010517b…, which is what its manifest now records. A squash of #134 onto today's tip would be green. What breaks that is anything landing after it, and three of the other open PRs qualify: #121 edits assets/runtime/chrome-style.js, #132 edits packages/default/widgets/lf-options.js, and #135 edits assets/leaf.js, four runtime modules and assets/theme.css — all hashed, so any of them merging after a capture re-stales the manifest immediately. #134 is the one that has to land last, rebased and recaptured at that point, and the constraint recurs for every future PR that touches the layer — which is the structural problem #134's body describes, stated as the thing a maintainer has to schedule around today.

    The visual objection above is overstated. I compared the committed docs/example-postmortem.jpg against #134's. The banner clipping I attributed to the Linux UI face is already in the macOS capture on main — it reads What you do here stays in this brows… there, and What you do here stays … in #134's. So the clip is the banner's own truncation, not something the runner introduced; it just bites a few characters earlier. What genuinely differs is the serif face (Charter falls to a generic serif here, per the fc-match results above) and a slightly narrower text column from Linux drawing a scrollbar in the gutter — the prose re-wraps, but nothing renders wrongly. "CI is the wrong machine" still holds as a statement about fidelity to what the theme asks for; it does not hold as a claim that a CI capture ships a broken gallery.

    Still stale at the tip: 26dbf42 computes 7010517b… against a manifest of 5cade914….

    The design call this issue raises is unchanged and #134 lays out the two options; I have not picked one. One note for whichever regeneration lands last: swapping the input walk from rglob to git ls-files (the reproducibility hole in the previous comment) moves the digest too, so it costs nothing extra to fold in there rather than paying a separate recapture for it.

    How this was measured

    capture_input_files()/digest() run out of scripts/example-previews.py with PYTHONPATH=scripts:

    tree manifest computed
    26dbf42 (main tip) 5cade914… 7010517b… stale
    b824d6d (#134 head, rebased on 26dbf42) 7010517b… 7010517b… match

    142 files in the hashed set on both. The docs/ members are exactly leaf.js, session.js, sitenote.js; filtering the set for docs/example-*.jpg and example-previews.json returns empty, which is why the two computed values agree despite #134's ten changed files.

    Files each open PR changes, against origin/main:

    #121  skills/leaf/assets/runtime/chrome-style.js          hashed
          tests/test_render_controls.py
    #132  skills/leaf/packages/command-hub/widgets/lf-command.js   hashed
          skills/leaf/packages/command-hub/widgets/lf-worktree.js  hashed
          skills/leaf/packages/default/widgets/lf-options.js       hashed
    #135  skills/leaf/assets/leaf.js                          hashed
          skills/leaf/assets/runtime/{chrome-layout,chrome-style,living-margin,trays}.js,
          skills/leaf/assets/runtime/conversation/inline.js   hashed
          skills/leaf/assets/theme.css                        hashed
          skills/leaf/CLAUDE.md                               not hashed (outside the walked roots)
    #134  docs/example-*.jpg, docs/example-previews.json      not hashed
    

    The image comparison used git show HEAD:docs/example-postmortem.jpg against git show origin/fix/ci-33327342462:docs/example-postmortem.jpg, viewed at full size. Both banners are truncated with an ellipsis; the body serif and the wrap points differ; #134's content column ends roughly a scrollbar's width short of main's.

  3. leaf-agent commented on Aug 30, 2026

    @leaf-agent
    CollaboratorAuthor

    Dispatched for ci run 33326087140 (13a9fc9, 60 red). Not another failure report — every cause in it is already owned, and three of the owners did not exist when the collapsed block above was written. This refreshes that block against main at 1a98129, 19 commits on.

    27 of that run's 60 still reproduce. One id is gone from collection (test_example_renders[gallery]), 32 pass on their own. Applying #121's branch head (0812458) takes the 27 to 19 — and it cherry-picks clean onto 1a98129 now, so the chrome-layout.js conflict this issue records against syncPanelLayer is resolved by its rebase, not still pending.

    Ownership of the 27, all measured rather than read off the PR bodies:

    Owner Count
    #121 root gutter 8
    #137 versions menu 4
    #132 control text a selection can reach 2
    #136 sidebar rail vs. stated window 1
    unowned 12

    The twelve with nobody on them, from this run's set: test_coarse_pointer_chrome_gives_its_compact_controls_humane_aims, test_coarse_pointer_resize_reach_stays_reachable_without_trapping_scroll, test_esc_hands_the_page_back_after_it_has_closed_the_last_panel, test_the_responsive_action_shelf_keeps_primary_actions_in_reach, test_workspaces_replace_each_other_instead_of_stacking[500], test_a_mark_in_the_layer_promises_no_press_the_layer_will_not_take, test_a_settlement_in_a_reply_leaves_its_own_anchor_on_the_page, test_a_widget_that_renames_its_role_keeps_the_press_offer_gave_it (the one #132 explains and deliberately leaves), test_a_float_the_panel_displaces_hands_the_page_no_sideways_scroll, test_selection_hints_do_not_name_page_content_behind_a_covering_panel, test_suggestion_controls_stay_out_of_the_column, test_suggestions_sharing_a_block_keep_source_and_keyboard_order.

    Two more are red on 1a98129 that this run never reported, both #132's cause rather than new ones: test_example_renders[corpus] and test_the_composed_corpus_declares_every_control_row_archetype, each naming lf-command's 3 running / 5 workers / 5 stopped chips.

    How it was measured, and what a second remedy for the gutter showed

    Each figure is a run of the 60 ids from run 33326087140 on this runner, in chunks, with --run-nightly; the 19 is the same ids with git cherry-pick 0812458 on top of 1a98129. The four test_render_anchors.py failures and the page down / up reading were reached here independently before #137 was found, at the same numbers — a second confirmation of it rather than anything to add.

    Worth recording against #121 specifically, because it is the argument for its remedy over the obvious alternative. The gutter can also be answered at the reading layer: leave scrollbar-gutter: stable and measure sideways overflow against documentElement.offsetWidth instead of its clientWidth, in rootOverflow and in the six test probes that restate it. Built and measured here, that fixes 5 of the 8 and cannot fix the other 3 — test_covering_panel_keeps_toasts_on_screen_and_clear_of_the_footer, test_dynamic_chrome_offsets_keep_the_safe_area_in_their_arithmetic, and test_the_reader_draws_an_edge_to_the_width_they_want are not readings that disagree but chrome placed a bar's width off the window ('panel': {'left': -15, ..., 'right': 305} on a 320px viewport). A reading-layer fix leaves the reserved strip in the layout and only stops mismeasuring it; overflow-y: scroll removes it. Nothing from that alternative is proposed here.

    Also measured: with #121 applied, test_a_left_sidebar_uses_the_margin_until_the_page_needs_it_back fails at assert (950 - 264) == 720, which is #136's reading exactly — the column is 686px because --rail claims 250px on this runner's fonts against the ≤216px a 1200px page needs, and the claim is the widest margin row (228px) plus its margin. So the two are independent, and #136 does not need #121 under it.

  4. leaf-agent commented on Aug 30, 2026

    @leaf-agent
    CollaboratorAuthor

    Dispatched for run 33328158954 (acabe35, a hooks-only commit — 33 red, the same standing set). The comment above measured the board minutes before #138 opened, so only its last row has moved, and this is that row rather than a second reading of the rest.

    #138 takes five of the twelve — test_a_mark_in_the_layer_promises_no_press_the_layer_will_not_take, test_a_settlement_in_a_reply_leaves_its_own_anchor_on_the_page, test_a_float_the_panel_displaces_hands_the_page_no_sideways_scroll, test_suggestion_controls_stay_out_of_the_column, test_suggestions_sharing_a_block_keep_source_and_keyboard_order.

    Five of the seven left are one fact, not five bugs. A covering panel is a <dialog> now, so the document behind it is inert and the panel eats presses aimed past it. #138 names four on that fact and declines to pick the answer; test_the_responsive_action_shelf_keeps_primary_actions_in_reach is the fifth, and it reads as a gutter failure only because the gutter fails first. With #121's chrome-style.js hunk applied here on 726382c, it clears its sideways assertion and then times out at <dialog open id="lf-threads" class="lf-ui lf-panel open"> intercepts pointer events — the same string test_coarse_pointer_chrome_gives_its_compact_controls_humane_aims, test_coarse_pointer_resize_reach_stays_reachable_without_trapping_scroll and test_workspaces_replace_each_other_instead_of_stacking[500] report, and the same inertness test_selection_hints_do_not_name_page_content_behind_a_covering_panel reads from the other side when s reaches nothing. Whether a covering panel takes the page out of reach or covers it and leaves it working is one call that closes all five.

    The other two need nobody new: test_esc_hands_the_page_back_after_it_has_closed_the_last_panel sits with #137's Escape group, and test_a_widget_that_renames_its_role_keeps_the_press_offer_gave_it is the one #132 explains and deliberately leaves.

    Where the standing set entered, since this issue records the digest's arrival but not the rest's

    Comparing the reported failures of run 33297425217 (01ec4f4) with run 33317065355 (335bf9a): 13 red before, 60 after — 47 entered at 335bf9a "Delegate page chrome to browser standards", and none left. Of this run's 33, 18 are from that set, 12 are the ones it inherited (#121's, entered at 26feec8b), and 3 are neither — the digest, test_example_renders[corpus], and test_the_composed_corpus_declares_every_control_row_archetype, the last two being the pair the comment above already attributes to #132.

    So the whole board is two commits and their repairs, and the covering-panel call above is the last unanswered question either of them left.

  5. leaf-agent commented on Aug 31, 2026

    @leaf-agent
    CollaboratorAuthor

    Dispatched for ci run 33340110090 (536eb53, 30 red). Not another failure report — the board has moved a long way since the comment above, which predates #147 and #148 and the nineteen failures 292de9c brought. This is the ownership map for that run, measured on main at cd1b523 and on #148's head ea4eb0b rather than read off the PR bodies.

    Owner Count
    #148 19 The 292de9c seat/option cluster: 14 durable-draft tests, test_c_in_a_seated_conversation_reaches_the_thread_it_is_in, test_every_ring_the_layer_draws_is_shown_whole_somewhere_in_the_corpus, test_a_questions_digits_are_drawn_whole, test_the_ring_says_where_the_reader_is_standing, test_a_label_in_a_retired_slot_leaves_the_page_with_the_slot. All 19 green on its head.
    #137 4 The versions menu in test_render_anchors.py.
    #147 2 test_a_seat_conversation_leaves_the_pick_it_is_about_live, test_the_ring_holds_on_a_seat_the_agent_has_still_to_answer — the design call #148 leaves.
    #134 / this issue 1 The catalog preview digest.
    — 2 Unowned, below.
    — 2 Did not reproduce at -n0.

    The two unowned. test_coarse_pointer_resize_reach_stays_reachable_without_trapping_scroll is the one #144's body walks forward and hands on: past its modal failure, red on the earlier wait_for_function for .lf-threads scrollTop after a touch swipe, which belongs to #121's overflow-y: scroll and is live on main now. No PR carries it. test_a_coined_class_cannot_reach_the_chromes_rules is the layer-vocabulary gate: three names — lf-key-more, lf-key-sequence, lf-key-then — became document-level, and the gate's whole point is that widening the shared vocabulary is a decision rather than a test edit. They arrived with 360c40a "Clarify keyboard chord progress" through the one shared keycap-geometry rule (.lf-address, .lf-key-sequence > kbd, .lf-key-more kbd, chrome-style.js), which sits at document level because .lf-address is worn in the page. The question that decides the fix is whether a key sequence is ever drawn in the page: on corpus I could only produce them inside .lf-chrome, in which case moving that rule into the @scope block is the fix and the vocabulary should not widen at all.

    One more, not in this run but red on main now. test_the_responsive_action_shelf_keeps_primary_actions_in_reach fails assert 352.828125 < 320 deterministically at -n0, on main tip and on #148's head alike. It entered at 2659732 "Align compact banner controls" — green at 536eb53, 8ccdaf9 and 405d5d0, red at 2659732. It is also the shape running-tend warns about from the other side: it passed under -n4 on both trees, so a suite run wide enough will hide it.

    How this was measured, and the two that did not reproduce

    Ownership was taken by running this run's 30 node ids on each tree with the repo's own environment (uv run pytest … --run-nightly), not by matching PR bodies to test names.

    On main at cd1b523, the run's sixteen non-draft ids plus the whole of test_render_drafts.py under -n4: 15 of the 16 still red, and 14 of the drafts file. On ea4eb0b (#148's head, test and lint green there) the same selection is 9 failed, 57 passed, and the nine are exactly the four versions-menu tests, the two #147 leaves, the catalog digest, the coarse-pointer resize, and the coined-class gate.

    Two did not reproduce and are the race class tests/CLAUDE.md and the running-tend skill both name — a read that ran before the page said it was ready — rather than regressions:

    • test_a_reader_arrives_at_what_they_left_rather_than_watching_it_arrive — green at -n0 on main, and green under -n4 on both trees.
    • test_a_left_sidebar_uses_the_margin_until_the_page_needs_it_back — assert 1258 <= (1234 + 1), and it alternates at -n0: pass / fail / pass on main tip, pass / fail at 536eb53. It reproduces on trees as far back as b373511, so it is not something the last day's chrome work brought.

    The coined-class probe: on the corpus example, document.querySelectorAll('.lf-key-sequence') returned 9 elements after g, and 3 and 10 after g h and g f — every one of them inside .lf-chrome. .lf-key-then returned 1, also in the chrome. .lf-address returned 16, all in the page, which is why that name is in the gate's list already. addressChip in runtime/keyboard/address.js does put a keySequence inside an .lf-address chip, so the page-side case exists in the code; I could not get one to render on that example, and did not sweep the rest of the corpus for it.

    I reached the same diagnosis as #147/#148 independently before finding them, and re-homed the fourteen draft tests onto a lf-task talk seat the same way #148 does; that work is discarded rather than opened as a second PR. One measurement from it is worth recording against #147's option list, since it says the overlay route was refused: declaring x-conversation back onto lf-options through serve(..., layer_registry=…) does make both of #147's tests green, because the seat projection is registry-driven (seat_with_agent in decisions.py) and never asks for the box. It is still not a fix — the render gate's missingConversations would refuse that layer, so the tests would be reading a page no author could publish — but it does locate the objection precisely: what is missing is the module's conversationBox call, not the declaration.

  6. leaf-agent commented on Aug 31, 2026

    @leaf-agent
    CollaboratorAuthor

    Dispatched for ci run 33340209182 (8ccdaf9, 31 red). No new failure and no PR from this run: the set is the one the map above already covers, and the two it lists as unowned have since been claimed, so this is a correction to that list rather than another report.

    Two more from this run's set that the map does not list, both green at -n0 and under -n4 on main tip here, so they belong with its race class rather than with anything owned: test_a_label_press_keeps_the_controls_keyboard_standing and test_a_folding_reference_hands_its_hold_to_the_next_card.

    I re-derived #148's and #151's cluster before finding them and have discarded that work rather than opening a third PR for it.

  7. leaf-agent commented on Aug 31, 2026

    @leaf-agent
    CollaboratorAuthor

    Dispatched for ci run 33342751714 (7a8a039, 30 red). No new failure and no PR from this run: 7a8a039 "Remove unused browser boot forwarding" caused none of them — its 30 ids are a strict subset of the 31 its parent 92b54ae reported in run 33342043027, and the one it drops is test_a_left_sidebar_uses_the_margin_until_the_page_needs_it_back, the alternating read #153 owns. The 30 are the set the map above already covers.

    One row of that map has moved, and it moved green. test_the_responsive_action_shelf_keeps_primary_actions_in_reach — recorded there as red on main but not in its own run, and picked up by #150 — passes on main tip 1c7d033 at -n0, twice, in ~7s each. #150 landed at 50f261d, so this is the fix arriving rather than a wide suite hiding it: the width that hid it before was -n4, and -n0 is the reading that had it red.

    That leaves 29 red on the tip, all owned: 19 to #148 (14 in test_render_drafts.py plus the five option/ring ids), 4 to #137, 2 to #147/#151, 1 each to #145, #149, #152, and the catalog digest to #134 / this issue.

    How this was measured

    The subset claim compares the two runs' own summary lines (gh run view <id> --log-failed), not PR bodies — 31 ids at 92b54ae, 30 at 7a8a039, comm -13 empty in the direction that would show a regression.

    On main tip 1c7d033, with the repo's own environment (uv run pytest … --run-nightly):

    • the run's sixteen non-draft ids at -n2, run twice: 15 failed, 1 passed both times, the one pass being the shelf test;
    • tests/test_render_drafts.py whole at -n4: 14 failed, 36 passed, every failure the same Locator.fill timeout waiting on a textarea inside #jobs's conversation seat — Update the option-group tests for the removed seat, and ring the add field #148's cluster, unchanged;
    • the shelf test alone at -n0, twice: passed.
  8. leaf-agent commented on Aug 31, 2026

    @leaf-agent
    CollaboratorAuthor

    Recurs on ci run 33342915540 (2d46d4a), where it was 1 of 31 failures. The new fact is that landing last is not sufficient — the previous comment's remedy has now been tried and it did not hold.

    main merged, in this order: 6d68a1b (#152), d98ed92 (#151), c0a5b65 (#134). #134 was last. It is still stale at the tip: uv run pytest tests/test_site.py --run-nightly on c0a5b65 reads 0836f336… != 3c23a202….

    The reason is that "last" is a property of merge order while the digest is a property of the tree the capture was taken on. I recut #134 onto 4b5b4b8 and reran scripts/example-previews.py there; git diff --name-only 4b5b4b8 c0a5b65 restricted to the hashed roots is exactly one file — skills/leaf/assets/runtime/chrome-style.js, which arrived with #152, merged after the capture and before #134. So satisfying the gate needs the capture taken after every other layer change has already landed on main, not merely merged after them. That is a serialization the maintainer has to hold by hand across a queue that ran three merges in the window this one recapture took, and it is the third consecutive capture on this branch to land stale (26dbf42, then 4b5b4b8, both green on their own trees).

    Nothing else from that run is outstanding: all 31 failures were rerun against 4b5b4b8; three were already fixed on main (#150, #145, #153) and the rest landed as #152, #151 and #134. This digest is the only red left, and it is red for the structural reason above rather than for a missed step.

    The design call is unchanged and I have not picked one — #134's body carries the two options (assert the digest half in the everyday suite, where wt merge asks it on the rebased tree; or capture in publish-site.yaml and stop checking the stills in). This run is evidence for the first: a digest-only assertion is 142 file reads with no browser, and wt merge is the one place the tree is already final when the question is asked.

  9. leaf-agent commented on Aug 31, 2026

    @leaf-agent
    CollaboratorAuthor

    Recurs on ci run 33357968538 (16a5991), where it was 1 of 16 failures, and it is still red at main's tip. The new fact is that this staling did not come from the squash landing on a moved main. #161 recaptured on the authoring machine at 5efdaf9, correct against its own tree; the branch then merged origin/main one more time at 5eacc9a, and that merge pulled 16a5991's five hashed runtime files under the capture. The manifest was stale before the merge button was pressed, so the previous comment's "capture after every other layer change has already landed" is still not the whole condition — the capture also has to come after the branch's own last merge of main, which is a thing a PR can do and #161's did not.

    Nothing catches that in between: ci.yaml runs --run-nightly only under if: github.event_name == 'push', so #161's own PR CI never asked the digest question and was green. The gate first speaks on main, where the answer is no longer actionable — which is the same argument for #134's first option that the previous comment already records, now with a case where merge order was not the culprit at all.

    The other 15 failures of run 33357968538 are gone: rerun against main at 6bbfb4b with uv run pytest --run-nightly, all 15 pass (one had been renamed — test_a_comment_hidden_by_narrowing_lands_in_its_reply_box is test_a_comment_hidden_by_narrowing_opens_its_inline_reply since #161). This digest is the only one left, and it is deterministic — 145 file reads and a sha256, no browser involved.

    I have not produced a fix, for the reason this issue already carries: fc-match here still answers DejaVu Sans for Charter, Bitstream Charter and Iowan Old Style and DejaVu Serif for Georgia, so a recapture from CI would re-set the public gallery in the runner's faces, and editing inputs_sha256 alone would green the gate by removing what it proves. The design call is unchanged and still a maintainer's.

    Measured digests, and what moves next

    capture_input_files()/digest() replicated from scripts/example-previews.py#L47-L80, 145 files in the hashed set on every tree below:

    tree manifest inputs_sha256 computed
    5efdaf9 (#161, the capture commit) ae6f4b2d… ae6f4b2d… match
    03bfc0d (#161, merge of main) ae6f4b2d… ae6f4b2d… match
    5eacc9a (#161 head, merge of main again) ae6f4b2d… aa676dc2… stale
    b4a5aeb (#161 squash-merged) ae6f4b2d… aa676dc2… stale
    6bbfb4b ae6f4b2d… aa676dc2… stale
    d755e18 (tip) ae6f4b2d… a5fbd867… stale

    git diff --name-only 03bfc0d 5eacc9a is exactly 16a5991: five hashed files — assets/leaf.js, assets/runtime/anchors.js, assets/runtime/composing/surface.js, assets/runtime/design.js, assets/runtime/geometry.js — plus skills/leaf/CLAUDE.md and tests/test_render_aim.py, which are not hashed. b4a5aeb..6bbfb4b touches only tests/, which is why the computed value holds across those three rows; d755e18 "Keep page chrome on the document coordinate plane" moves it again through chrome-style.js, composing/surface.js, geometry.js and living-margin.js.

    Both open PRs will move it again after any capture taken now: #162 edits assets/runtime/conversation/thread-list.js, and #163 edits assets/leaf.js, assets/runtime/anchors.js, assets/runtime/composing/aim.js, composing/surface.js, composing/targets.js and examples/release-notes.html. Its examples/corpus.html is not hashed — capture_input_files() excludes that name.

  10. leaf-agent commented on Aug 31, 2026

    @leaf-agent
    CollaboratorAuthor

    Recurs on ci run 33358653065 (b4a5aeb, #161's merge). Two things about this run are new, and the second changes what the gate is measuring.

    It is now the only red on main. That run ends 1 failed, 1568 passed, 6 skipped in 2048.51s — the standing set every comment above maps is gone, and this manifest hash is the whole board. main is one recapture away from fully green.

    The gate has stopped being about the commit it fails. Four commits have landed since b4a5aeb, and the digest is stale on all four. Three of them — 8bf0a0b, 053d6d5, 6bbfb4b — touch nothing capture_input_files() hashes; each changes exactly one file under tests/, and all three compute the identical aa676dc2… that b4a5aeb did. They are red for a staleness they inherited from #161's merge. Only d755e18 moved the digest on its own, to a5fbd867…, against a manifest that still reads ae6f4b2d… on all five. So the gate no longer says "your commit staled the gallery"; it says "someone staled it before you, and every push from here is red until a recapture lands."

    That narrows the options this issue carries. #134's first option — assert the digest half in the everyday suite, where it is cheap and browserless — is a real gate only when main's manifest is current. While it is stale the assertion reddens every pull request, including the three test-only ones above, and nothing on a PR can clear it: the fix has to land on main first. It is also not something I can clear from CI, for the reason this issue already records and I re-measured on this runner — fc-match still answers DejaVu Sans for Charter, Bitstream Charter and Iowan Old Style, and DejaVu Serif for Georgia, so a capture taken here re-sets the public gallery in substituted faces. So the ordering is fixed whichever option wins: a recapture on the tip first, the structural change after it.

    No PR from this run. A second CI recapture is the shape #156 already was, and the reason it closed — folded into #161 — is still the right one.

    How this was measured

    inputs_sha256 computed with capture_input_files()/digest() out of scripts/example-previews.py, in a worktree checked out at each commit:

    commit manifest computed
    b4a5aeb ae6f4b2d… aa676dc2… stale — the run's own two values
    8bf0a0b ae6f4b2d… aa676dc2… stale, inputs unchanged
    053d6d5 ae6f4b2d… aa676dc2… stale, inputs unchanged
    6bbfb4b ae6f4b2d… aa676dc2… stale, inputs unchanged
    d755e18 ae6f4b2d… a5fbd867… stale, inputs moved

    git diff --name-only across the three middle commits: tests/render_harness.py, tests/test_render_widgets.py, tests/test_render_controls.py — one file each. d755e18 edits skills/leaf/CLAUDE.md, runtime/chrome-style.js, runtime/composing/surface.js, runtime/geometry.js, runtime/living-margin.js and tests/test_render_aim.py; the four runtime files are hashed.

    The four newer runs were still in progress when this was written, so their conclusions are the computed digests above rather than a read of their logs. The single-failure count is read off run 33358653065's own summary line.

    ci.yaml still asks the nightly suite only on push, which is why each of these first speaks on main.

  11. leaf-agent commented on Aug 31, 2026

    @leaf-agent
    CollaboratorAuthor

    Dispatched for ci run 33359068004 (053d6d5). No new failure and no PR from this run — #164 now carries the refresh and is correct at main's tip. What is new is a measurement that narrows this issue's blocking rationale.

    The "CI is the wrong machine" claim holds for the stills, but not for the digest. A recapture here does re-set the gallery in substituted faces — I reproduced that independently, all nine stills change at a tree whose manifest matched its own inputs. But an A/B capture taken on one runner cancels that: the substituted faces are the same constant on both sides, so byte-equality across two trees says the input delta is preview-neutral and only inputs_sha256 has to move. That is a claim CI can settle, even though the bytes it produces are not shippable.

    Measured across the current gap. Capturing at 03bfc0d (the last tree whose manifest equalled its own computed digest) and at 7f58225 (tip) on this runner gives all nine stills byte-identical — example-release-notes.jpg included, even though 7f58225 edits examples/release-notes.html, because that paragraph sits at L107 of a 124-line document, below the captured 1120×700 first viewport. So the refresh at the tip is hash-only, and the checked-in gallery was never visually stale — only its hash was.

    #164 corroborates it from the other side. Its regeneration was run on the authoring machine and came back a one-line diff with no image bytes, which is exactly what the A/B predicted from here. That is the method being checked against a real capture rather than against itself.

    What this buys a future run: when the A/B comes back identical, the digest bump is verifiable from CI rather than blocked on the authoring machine. When it comes back different, the stills genuinely moved and the authoring machine is still the only place to take them — the case this issue's rationale was written for. Worth stating plainly: byte-equality under substituted faces is strong evidence, not proof. A layout change could in principle interact with font metrics and move a still only under Charter, so the A/B licenses "no recapture needed" with high confidence rather than certainty.

    None of this touches the scheduling problem this issue also records — the digest still re-stales on every input-touching commit, and is still only checked after main moves.

    How it was measured

    digest(capture_input_files()) from scripts/example-previews.py, 145 hashed files, computed in a worktree per commit:

    tree manifest computed
    03bfc0d (inside #161, pre-merge) ae6f4b2d… ae6f4b2d… matched — the tree the stills came from
    5efdaf9 (#161's recapture) ae6f4b2d… ae6f4b2d… matched
    5eacc9a (#161 head, after merging main) ae6f4b2d… aa676dc2… stale before it ever landed
    b4a5aeb (#161's squash onto main) ae6f4b2d… aa676dc2… stale
    053d6d5 (this run's commit) ae6f4b2d… aa676dc2… reproduces the run's two hashes exactly
    d755e18 ae6f4b2d… a5fbd867… stale
    7f58225 (tip) ae6f4b2d… 3e837757… stale

    The 053d6d5 row reproducing the run's assertion is what says the method matches the gate's.

    The captures: scripts/example-previews.py run unmodified in a worktree at 03bfc0d and again at 7f58225, same runner, same Chrome, comparing sha256 of the nine docs/example-*.jpg between the two output sets. All nine equal. Against the checked-in stills at 03bfc0d, all nine differ — which is the font substitution this issue documents, still true and still the reason these bytes are not shippable.

    With inputs_sha256 set to 3e83775774fd235aea33e549841d6481e734543dc22a54d44b5eee8f2185c3ea and no image touched, uv run pytest tests/test_site.py --run-nightly -n0 — 20 passed, including the assertion at L206.

  12. leaf-agent commented on Aug 31, 2026

    @leaf-agent
    CollaboratorAuthor

    Nightly sweep, 2026-08-31. The digest re-staled again on main, and this run has a measurement that sharpens the scheduling half of this issue rather than repeating the recapture argument.

    It recurred at bba885a, and the run confirms it. ci run 33364553456 came back 14 failed, 1558 passed, 6 skipped, and test_site.py::test_the_public_catalog_is_a_visual_index_of_full_page_routes is one of the fourteen. It is the only one of the fourteen with this cause — the other thirteen cluster on decisions, widgets and the chrome coordinate plane, which is #166 and the in-flight tend-ci-fix run, not this issue.

    The contrast inside the last four commits is the useful part. 25e8a27 changed a hashed input and moved the manifest in the same commit, so it landed green. bba885a changed nine hashed inputs and did not, so it reddened main. Nothing in the repo can tell those two apart before the merge: the assertion lives in a module marked pytest.mark.nightly at tests/test_site.py#L60, and ci.yaml asks for --run-nightly only on push. So the check first speaks on main, after the merge, on the machine that cannot regenerate.

    The assertion itself does not need that machine. test_site.py#L203-L219 is pure filesystem and hashing — the manifest's preview set, inputs_sha256, the example-*.jpg names, and each record's sha256/width/height. Only from L221 on does it take browser/hosted. The browser fixture and the nightly mark are what hold it back, not the work it does.

    So the proposal is to move where it runs, not what it proves. Split L203–L219 into a test that takes no browser fixture and carries no nightly mark. It would then run in the everyday suite — which is the PR gate and what wt merge runs locally, on the authoring machine, the one place a regeneration is possible. bba885a would have failed there, in front of the person who could have fixed it in the same commit, instead of on main afterwards.

    The trade-off is real and is why I have not opened a PR for it: every PR touching a hashed input would then have to carry a manifest refresh to be green. That is the intended discipline — it is what 25e8a27 already did — but it is a change to how this repo lands runtime work, so it is yours to want rather than mine to assume.

    One thing this run deliberately did not do: a hash-only bump for the current gap. bba885a and d755e18 edit theme.css, chrome-style.js, living-margin.js and lf-suggestion.js, so the A/B method from the previous comment would very likely come back different — the case where the stills genuinely moved and the authoring machine is the only place to take them. Capturing from a tree with fourteen failing render tests would be wrong regardless.

    Measurement

    digest(capture_input_files()) from scripts/example-previews.py#L47-L79, 145 hashed files, computed in a detached worktree per commit:

    commit manifest computed
    77a8681 (#164, the refresh) 3e837757… 3e837757… matched
    25e8a27 ff92edc6… ff92edc6… matched — moved its own manifest
    b932acb ff92edc6… ff92edc6… matched — touched no hashed input
    bba885a (tip) ff92edc6… 012f7429… stale

    The nine hashed inputs bba885a changed: examples/release-notes.html, skills/leaf/assets/leaf.js, runtime/chrome-style.js, runtime/living-margin.js, runtime/reactions.js, assets/theme.css, assets/widgets/lf-suggestion.js, packages/default/theme.css, packages/default/widgets/lf-draft.js. (examples/corpus.html is also in the commit but capture_input_files() excludes it by name.)

    The other thirteen failures in run 33364553456, for the record that this issue is not the one to read them under: test_render_aim (design-mode press), test_render_controls (margin-action neighbours, ring corpus), test_render_export (release-notes standalone), test_render_navigation (key register), test_render_outbox (second-tab decision), test_render_projection ×2, test_render_widgets ×5.

  13. added a commit that references this issue on Aug 31, 2026
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