Repository navigation
Conversation
The thread snapshot gate compared images on macOS only, because a Linux image could only come from CI's own runner. This change lets anyone render CI's Linux profile on their own machine, and records in `TODO.md` ("Guard thread appearance on CI again") the measurements behind that approach and the steps to adopt it. The gate stays paused: `tests/journeys/test_render_thread_snapshots.py` still skips unless a capture runs it, so CI does nothing new.
## What changed
- `leaf-dev thread-snapshots capture --linux` streams the working tree (tracked and untracked files, minus ignored ones) into `mcr.microsoft.com/playwright/python:v<locked Playwright>-noble` on `linux/amd64`. There it installs fonts-dejavu, Node, pnpm and uv, fetches the pinned assets, and runs the capture into the host's capture folder. `accept` then publishes it as before.
- Linux has a profile of its own: `render_profile` names `linux-<VERSION_ID>-<machine>-chromium-<version>` (from the container, `linux-24.04-x86_64-chromium-153.0.8010.12`), and `COMPARED` now includes Linux. While the gate is paused the only effect is that the dark cases are collected, and skipped, on Linux too. Once it resumes, Linux CI will compare against that profile, which has to be captured and accepted first.
- In `TODO.md`, the candidates in "Guard thread appearance on CI again" are replaced with the recommendation, the evidence and the adoption steps.
## Evidence
CI's `test` job runs on `ubuntu-24.04` (x86_64). It installs Playwright's browsers and `fonts-dejavu`, and the suite pins fontconfig to DejaVu (`tests/fonts.conf`). The last scheduled run before the pause, [38239628776](https://github.com/max-sixty/leaf/actions/runs/38239628776) at e7ebb02, uploaded the 30 light journey images, and every case passed. I rendered the same commit's journey in the Playwright 1.63.0 noble image, which ships the same headless-shell build CI uses (Playwright 1.63.0 in both locks), and compared each image with CI's:
| Local render | Byte-identical | Worst image | Counted by the gate (Pixelmatch 0.01) | Geometry |
|---|---|---|---|---|
| x86_64 under Rosetta (Colima vz) | 23 of 30 | 10 pixels, channel step ≤ 11/255 at antialiased edges | 0 of 30 | all equal |
| arm64 native | 2 of 30 | 12,391 pixels (~6%), step 1–2 | 0 of 30 | all equal |
arm64 passes only because a one- or two-level step falls just under the 0.01 threshold, and a three-level grey step would already be counted. That is why the command fixes `linux/amd64`. Under Docker Desktop's default QEMU emulation (its Rosetta setting is off on this Mac), Chromium's GPU process crashes on launch (`qemu: uncaught target signal 5`), so on Apple Silicon the x86_64 image needs a Rosetta-backed runtime. Five cases took 250 s under Rosetta and 136 s natively on arm64, against 114 s on CI's runner.
The hosted services fit worse. Percy and Chromatic re-render a DOM snapshot, and every composer is a `leaf-text` inside a closed shadow root (`browser/runtime/composing/text-field.js`) that page script can't serialize. Chromatic's Playwright SDK is JavaScript only, and Lost Pixel is shutting down. Argos compares the screenshots CI uploads (free up to 5,000 a month), but it needs a project token, and its approval screen would replace the leaf-assets pin as the home of the accepted images.
## What I ran
- The journey at e7ebb02 in both containers, and the comparison above.
- `DOCKER_CONTEXT=colima-colloquy uv run leaf-dev thread-snapshots capture --linux` on this branch. The bootstrap, asset fetch and pytest ran, and the profile directory came out named as above. The capture itself failed, because the paused journey is broken on current main. Run natively on macOS, the `general` and `margin` cases fail the same way: `refusal feedback at its mutation was None`, and a `.lf-margin-marker` click times out with the marker outside the viewport. Fixing the journey belongs to "Resume the thread appearance gate", so this PR has no accepted Linux images.
- `uv run pre-commit run --files TODO.md dev/leaf_dev/commands/thread_snapshots.py`.
## Not verified
- A successful `capture --linux` followed by `accept`. That needs the journey fixed first.
- Linux CI comparing against an accepted Linux profile.
## Calls Max may reverse
- `COMPARED` now includes Linux and the macOS profile stays, so each appearance change costs two captures and two reviews. The other option is to make CI's Linux profile the only one and drop `darwin`.
- The command requires x86_64 rather than accepting a native arm64 render, given how little margin arm64 leaves.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The container bootstrap now installs only the host tools CI's setup action supplies (uv, Node, pnpm) and runs `leaf-dev setup`, so fonts-dejavu, the browsers, the assets and the Node modules keep one home. Infrastructure failures stop being reported as failed assertions: a missing docker CLI, Docker's exit codes 125-127, a failed setup (100) and a Chromium that cannot start (101, as under QEMU) each get their own message, and the empty capture folder is removed. Checked under Docker Desktop's QEMU: leaf-dev setup ran every step, then the Chromium check failed and the command printed the Rosetta message. Without docker on PATH, and with an unreachable DOCKER_HOST (exit 125), each printed its own message. TODO.md folds "Guard thread appearance on CI again" into "Resume the thread appearance gate" as one sequence (fix the journey, capture on macOS and with --linux, accept both, remove the skips), so an agent following it can't accept only the macOS profile. The entry waits on the user for whether the macOS profile stays. The dev test's skip reason names both platforms. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Oct 25, 2026
The backlog is now GitHub issues labelled `backlog`. Every item under Now, Next and Etc in `TODO.md` became one issue, so a pull request that says `Closes #N` links itself to its item, and a session finds untaken work with a query instead of reading a file that has no claim signal. #4000 landed first, so none of the new issues started a triage run (all 82 `tend-triage` runs were skipped). **Query.** ```bash gh issue list --search "label:backlog label:now -label:waits-on-user -linked:pr" ``` then `label:next` and `label:etc`. `-linked:pr` leaves out issues a pull request already links with a closing keyword. **What moved where.** - 82 issues from #4007 to #4089 (#4067 is another session's), one per bullet. Each is labelled `backlog` and its priority: 13 `now`, 29 `next`, 40 `etc`. Now and Next items also carry a theme mapped from their `###` heading: `ux` (User experience; User continuity and mobile access), `agent-experience` (Agent and author experience; The agent's text interface), `layout` (Layout; Layout stability; Queues), `review-tools` (Before/after comparison; Recorded interaction review) and `dev-velocity`. Etc's two headings, Product and harness ideas and Implementation candidates, sort kinds rather than subjects, so those items carry no theme. - 14 items also carry `waits-on-user`, the "Waits on the user" marking from #3891 (`todo-review`), and their bodies take that branch's wording, including its rewrite of the held-news item as "Keep a held-news count whole as it grows" (#3459 landed the "+N" route). `TODO.md` says what the label means, and the query above leaves those items out. - After the migration, #3891's author asked for three more edits from the grind PRs that touch these items: #4039 is retitled "Decide whether Pixels should soften redrawn-shadow fringes" (#3838), #4039 and #4048 (#3840) also carry `waits-on-user`, and #4098, "Keep a window preference from cramping a dashboard into a workspace", is the item #3913 puts in place of #4033. - Each title is the bullet's bold outcome. For the bullets whose bold text is a label ("Multiplayer:", "MCP Apps:"), the title adds the bullet's first clause. - Each body is the bullet's text with its hard wraps joined (GitHub renders a single newline as a line break), relative links made absolute, and `notes/` paths linked. A footer gives the bullet's `TODO.md` permalink, its heading, its position within its priority, the old `TODO #N` id for the six that had one, and the theme section's introduction where there was one. #4014's mention of the reply-widgets item now links #4089. - `TODO.md` keeps "Biggest current challenges" unchanged. Its priority explanation now says the items live in issues, what the labels mean, and how to query them. - `/developing-leaf` gains "Take a backlog item": pick an unclaimed issue that isn't waiting on the user, and open the PR early with `Closes #N`. It points at `TODO.md` for the query, so the rule and the query each have one home. - Every reference to a current `TODO.md` item now names its issue: `AGENTS.md`'s repository map, `/developing-leaf`, the thread snapshot skips, `journey.py`, `thread_snapshots.py`, `llm.py`, `test_tabs.py`, the Worker, two eval comments and five notes. - #3891's two note edits come along (`notes/browser-support.md`'s recheck rule, `notes/user-feedback-responsiveness.md`'s retired tone lever), since #3891 will drop its `TODO.md` changes. **Order.** Each issue's footer records its old position ("item 6 of 13 in Now"). I didn't keep an ordered index in `TODO.md`: it would be a second list of the backlog that every new issue has to be added to by hand, and it would drift from the labels. The priority label is the ordering that stays current. **Duplicates.** None of the 15 open issues duplicated an item, so every item is a new issue. **Mapping.** The old-item-to-issue table, with open PRs whose titles match an item, is below; the same table is at `~/.tmp/leaf.agent-afd0a8c0d63089ed9/backlog-mapping.md`. <details><summary>82 items</summary> | Issue | Priority | Old position | Old id | Title | Possible PRs | |---|---|---|---|---|---| | [#4007](#4007) | now › User experience | 1 (TODO.md line 43) | | Make complete reading journeys feel coherent | #3860, #3865 | | [#4008](#4008) | now › User experience | 2 (TODO.md line 47) | | Keep the Thread hierarchy clear | | | [#4009](#4009) | now › User experience | 3 (TODO.md line 49) | | Keep a long Thread's current status visible | | | [#4010](#4010) | now › User experience | 4 (TODO.md line 53) | | Test annotation placement in context (waits-on-user) | | | [#4011](#4011) | now › User experience | 5 (TODO.md line 57) | | Make the next move and its result apparent | #3879 | | [#4012](#4012) | now › User experience | 6 (TODO.md line 62) | TODO #28 | Finish the floating panel (waits-on-user) | | | [#4013](#4013) | now › User experience | 7 (TODO.md line 69) | | Keep a held-news count whole as it grows (waits-on-user) | | | [#4014](#4014) | now › User experience | 8 (TODO.md line 80) | | Stop moving live content between parents | | | [#4015](#4015) | now › Agent and author experience | 9 (TODO.md line 94) | | Wake idle Codex desktop chats without user messages | | | [#4016](#4016) | now › Agent and author experience | 10 (TODO.md line 99) | | Consider a reminder when revising decided content (waits-on-user) | | | [#4017](#4017) | now › Agent and author experience | 11 (TODO.md line 104) | TODO #20 | Act on the plain HTML comparison | | | [#4018](#4018) | now › Agent and author experience | 12 (TODO.md line 118) | | Keep delegated work in the panel's status on Codex and Pi | #3854 | | [#4019](#4019) | now › Agent and author experience | 13 (TODO.md line 123) | TODO #24 | Measure time to an initial reviewable page and the value of review | | | [#4020](#4020) | next | 1 (TODO.md line 149) | | Add a host-owned widget LLM allowance (waits-on-user) | | | [#4021](#4021) | next › User continuity and mobile access | 2 (TODO.md line 159) | | Bring back a rewrite Escape discarded | #3862 | | [#4022](#4022) | next › User continuity and mobile access | 3 (TODO.md line 163) | | Decide when a page merits a separate phone composition (waits-on-user) | | | [#4023](#4023) | next › User continuity and mobile access | 4 (TODO.md line 169) | | Improve maintained examples through a phone-quality queue | #3869, #3899, #3902 | | [#4024](#4024) | next › User continuity and mobile access | 5 (TODO.md line 175) | | Decide whether Back may restore a leaf.page page whole (waits-on-user) | | | [#4025](#4025) | next › User continuity and mobile access | 6 (TODO.md line 182) | | Consider automatic Leaf recovery on resume | | | [#4026](#4026) | next › User continuity and mobile access | 7 (TODO.md line 185) | | Verify the native phone reading journey | | | [#4027](#4027) | next › User continuity and mobile access | 8 (TODO.md line 189) | | Finish what a phone user still cannot reach | #3856, #3868, #3874, #3875 | | [#4028](#4028) | next › User continuity and mobile access | 9 (TODO.md line 199) | | Reconsider thread navigation (waits-on-user) | | | [#4029](#4029) | next › Layout | 10 (TODO.md line 224) | | Show returning threads without moving the current reading | #3883 | | [#4030](#4030) | next › Layout | 11 (TODO.md line 229) | | Let a page restyle Leaf's chrome on purpose (waits-on-user) | | | [#4031](#4031) | next › Layout | 12 (TODO.md line 235) | | Let a block be a workspace | | | [#4032](#4032) | next › Layout | 13 (TODO.md line 245) | | Show each floating surface across the content it can hold | | | [#4033](#4033) | next › Layout | 14 (TODO.md line 275) | | Test the Layouts on agents | #3913 | | [#4098](#4098) | next › Layout | 14, added by #3913 in #4033's place | | Keep a window preference from cramping a dashboard into a workspace | | | [#4034](#4034) | next › Layout | 15 (TODO.md line 285) | | Layout values that wait for a task: list-detail on a phone, canvas regions, slides | | | [#4035](#4035) | next › Layout | 16 (TODO.md line 288) | | Decide whether a too-narrow table fails a page at the fixed widths (waits-on-user) | | | [#4036](#4036) | next › Layout stability | 17 (TODO.md line 298) | | Keep what a live revision adds above the reader from moving it | | | [#4037](#4037) | next › Layout stability | 18 (TODO.md line 304) | | Keep the merge film's controls still as it steps | | | [#4038](#4038) | next › Queues | 19 (TODO.md line 314) | | Keep the open item's group named on a phone | #3853 | | [#4039](#4039) | next › Before/after comparison | 20 (TODO.md line 323) | TODO #29 | Decide whether Pixels should soften redrawn-shadow fringes (waits-on-user; was "Explain the faint amber halo in Pixels") | #3838 | | [#4040](#4040) | next › Recorded interaction review | 21 (TODO.md line 333) | | Explore DOM selection in the imported timeline | | | [#4041](#4041) | next › The agent's text interface | 22 (TODO.md line 343) | | Decide the Leaf-owned defects the bad-pages eval left open (waits-on-user) | | | [#4042](#4042) | next › The agent's text interface | 23 (TODO.md line 350) | | Read the full render gate after handover | #3888 | | [#4043](#4043) | next › The agent's text interface | 24 (TODO.md line 366) | | Consider loading a page once per render check (waits-on-user) | | | [#4044](#4044) | next › The agent's text interface | 25 (TODO.md line 372) | | Derive the waiting status from the page's open obligation | | | [#4045](#4045) | next › Development velocity | 26 (TODO.md line 380) | | Require `test` on `main` again (waits-on-user) | | | [#4046](#4046) | next › Development velocity | 27 (TODO.md line 386) | | Resume the thread appearance gate (waits-on-user) | | | [#4047](#4047) | next › Development velocity | 28 (TODO.md line 394) | | Guard thread appearance on CI again | #3896 | | [#4048](#4048) | next › Development velocity | 29 (TODO.md line 404) | | Keep the agent journey's samples (waits-on-user) | #3840 | | [#4049](#4049) | etc › Product and harness ideas | 1 (TODO.md line 420) | | Consider Redo and a Changes panel | | | [#4050](#4050) | etc › Product and harness ideas | 2 (TODO.md line 433) | | Link filenames to their repository context | | | [#4051](#4051) | etc › Product and harness ideas | 3 (TODO.md line 438) | | Revisit the Claude desktop app opening a page's file over the live page | | | [#4052](#4052) | etc › Product and harness ideas | 4 (TODO.md line 448) | | Decide the site's structure before release | | | [#4053](#4053) | etc › Product and harness ideas | 5 (TODO.md line 451) | | Assess whether automatic measurement freshness is useful | | | [#4054](#4054) | etc › Product and harness ideas | 6 (TODO.md line 457) | | Revisit where an abandoned comment's words come back | | | [#4055](#4055) | etc › Product and harness ideas | 7 (TODO.md line 462) | | Revisit a pin's icons if they read unclearly | | | [#4056](#4056) | etc › Product and harness ideas | 8 (TODO.md line 466) | | Revisit the reaction tokens' meanings or glyphs if they confuse | | | [#4057](#4057) | etc › Product and harness ideas | 9 (TODO.md line 471) | TODO #30 | Try a feed of ready-to-approve actions | | | [#4058](#4058) | etc › Product and harness ideas | 10 (TODO.md line 477) | | Explore independent jobs | | | [#4059](#4059) | etc › Product and harness ideas | 11 (TODO.md line 480) | | Tell the agent when to ask before ending its own to-do | | | [#4060](#4060) | etc › Product and harness ideas | 12 (TODO.md line 485) | | Let the user edit items in the On view | | | [#4061](#4061) | etc › Product and harness ideas | 13 (TODO.md line 489) | | Multiplayer: let several users share a page, each recorded as themselves | | | [#4062](#4062) | etc › Product and harness ideas | 14 (TODO.md line 495) | | Show which pane has focus, and move between panes by key | | | [#4063](#4063) | etc › Product and harness ideas | 15 (TODO.md line 508) | | Expand everything waiting with a keypress | | | [#4064](#4064) | etc › Product and harness ideas | 16 (TODO.md line 514) | | Let a user add, remove and edit table rows | | | [#4065](#4065) | etc › Product and harness ideas | 17 (TODO.md line 519) | TODO #16 | Named widget interfaces: let a typed reference name the interface its target implements | | | [#4066](#4066) | etc › Product and harness ideas | 18 (TODO.md line 523) | | Visual review beside Leaf: coordinate a real browser target through the harness | | | [#4068](#4068) | etc › Product and harness ideas | 19 (TODO.md line 526) | | Other harnesses: add a blocking `leaf wait` route when another harness needs it | | | [#4069](#4069) | etc › Product and harness ideas | 20 (TODO.md line 528) | | Consider Leaf running the agent session | | | [#4070](#4070) | etc › Product and harness ideas | 21 (TODO.md line 533) | | Decide whether an exported page carries its threads | | | [#4071](#4071) | etc › Product and harness ideas | 22 (TODO.md line 540) | | Character bindings: let users disable them | | | [#4072](#4072) | etc › Product and harness ideas | 23 (TODO.md line 541) | | Replacement diffs and visual masks for repeated reviews | | | [#4073](#4073) | etc › Product and harness ideas | 24 (TODO.md line 543) | | Motion evidence: define video, caption and transcript handling | | | [#4074](#4074) | etc › Product and harness ideas | 25 (TODO.md line 545) | | Revisit long-thread folding after using summaries | | | [#4075](#4075) | etc › Implementation candidates | 26 (TODO.md line 551) | | Remove the early-key hold once startup is fast on slower machines too | | | [#4076](#4076) | etc › Implementation candidates | 27 (TODO.md line 578) | | Draw the margin's annotations once per thread pass | #3864 | | [#4077](#4077) | etc › Implementation candidates | 28 (TODO.md line 587) | | Read moves exactly where the before/after pair is a browser's capture | | | [#4078](#4078) | etc › Implementation candidates | 29 (TODO.md line 597) | | Reduce plugin-update downloads by cleaning Git history | | | [#4079](#4079) | etc › Implementation candidates | 30 (TODO.md line 605) | | Set interaction-trace privacy before sharing pages | | | [#4080](#4080) | etc › Implementation candidates | 31 (TODO.md line 610) | | Make a leaf.page dispatch survive its container | | | [#4081](#4081) | etc › Implementation candidates | 32 (TODO.md line 616) | | Start each release's containers on its own image | | | [#4082](#4082) | etc › Implementation candidates | 33 (TODO.md line 629) | | Push page updates instead of polling | | | [#4083](#4083) | etc › Implementation candidates | 34 (TODO.md line 670) | | Claude Code tool observation: a cheap hook for sessions holding pages | | | [#4084](#4084) | etc › Implementation candidates | 35 (TODO.md line 672) | | Measure Leaf's hook cost for sessions holding pages | #3876 | | [#4085](#4085) | etc › Implementation candidates | 36 (TODO.md line 677) | | Invoker commands: test `command` and `commandfor` once Leaf's Chromium floor allows | | | [#4086](#4086) | etc › Implementation candidates | 37 (TODO.md line 681) | | MCP Apps: rebuild inline hosting as a direct resource | | | [#4087](#4087) | etc › Implementation candidates | 38 (TODO.md line 692) | | Release labels: prefer an exact tag when Leaf adopts named releases | | | [#4088](#4088) | etc › Implementation candidates | 39 (TODO.md line 693) | | Diff controls: author-configurable wrapping and per-file review tracking | | | [#4089](#4089) | etc › Implementation candidates | 40 (TODO.md line 695) | | Show a reply's widgets in every view of it | | </details> **Not migrated cleanly.** - Each section introduction (Layout, Layout stability, Queues, Recorded interaction review) is copied into every issue of its section, since a label can't carry it. - Eval fixtures that quote a past session mentioning `TODO.md` (`assessment-surfaces-pending-decisions`, `record-asks-hold-their-premise`, `options-*`) are recorded inputs and stay as they were. Two eval provenance comments and one line of `notes/agent-usability-evals.md` name items that left `TODO.md` before this change, so they have no issue to point at. - The fold-button entry #3891 corrected is in neither `TODO.md`, and #3928 fixed it, so it has no issue. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Takes main's TODO.md, whose backlog moved to GitHub issues in #4090. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Max declined the local Linux capture through Docker: developer machines shouldn't need it. The approved images now come from the runner that compares them. The new `thread-snapshots` workflow, dispatched on a branch (and run by a pull request that changes the capture itself), runs `leaf-dev thread-snapshots capture` on ubuntu-24.04 and uploads `.tmp/thread-snapshots/` as the `thread-snapshots` artifact. `leaf-dev thread-snapshots accept RUN` downloads that artifact with `gh run download`, refuses a run without a complete capture, and publishes the run's profile as the whole pinned collection. `capture --linux`, its bootstrap, tarball streaming and Docker failure messages are gone. The gate compares only on CI's Linux runner (`GITHUB_ACTIONS` on Linux), so macOS no longer has a profile; a Linux developer machine isn't held to a profile it can't reproduce. Elsewhere the journey still runs its delivery assertions on the light cases. With one profile, accept no longer carries other profiles forward, and the per-file hashes in capture.json, which guarded a local folder edited between capture and accept, buy nothing for an immutable artifact. The accept test needed a real macOS profile and a browser, and never ran outside a Mac; it now builds a synthetic capture and fakes the download, in dev/tests/model. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
capture --linux`accept` moved the thread-expectations pin for whatever run it was given, so a run of another branch or an older commit could pin images that the next compared run fails against, blamed on the wrong change. It now reads the run's event and head with `gh run view` and refuses anything but a `workflow_dispatch` run of HEAD; the publish message names both the run and the commit. Against this PR's own pull_request run, 40230544305, it refuses: "run 40230544305 is a pull_request run of ca340ea...". The workflow drops its pull_request trigger. It existed only so the workflow could run before it reached main, which run 40230544305 did. Kept, it would turn every pull request touching the journey red while the journey fails on main. A dispatch runs the branch's own copy of the workflow, so a branch that changes the capture still tests itself. Smaller fixes: a missing checkpoint is named `{profile}/{name}` rather than a temporary path deleted on exit; the profile is computed only where images are compared; the group help adds `gh run list` for finding the run id; and the header says an Ubuntu release or Chromium upgrade needs a new capture, while a font package update within a release shows as a mismatch. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Owner
Author
|
Closing: Max decided to keep the thread appearance gate as main has it, comparing macOS images with the test paused, rather than add a CI capture workflow, for its complexity and runner cost. The branch
|
This was referenced Oct 25, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 27, 2026
…ir reviews pass (#4511) Renames `/grinding-backlog` to `/fan-out-backlog` and revises it with what the first campaign's later stages showed: its drafts going stale while they waited, the user's reversals, and Tend's review findings. - **When to run one.** The maintainer isn't sure a backlog campaign beats doing work as it comes up, and prefers that by default. So the skill says to run one only when there are many spare tokens, not on a schedule or from Tend. - **Land as you go.** Once a PR's review and the reviews of its fixes pass, the campaign marks it ready, and Tend reviews and lands it under `running-tend`'s **Landing**. In the first campaign, drafts held for the user waited 50 hours at the median while main took 297 commits. Other sessions fixed 6 of the 47 first, and the user then landed the rest with one choice. - **Additions wait for the user.** A PR stays a draft, with its decision on the user's page, when it leaves the user a call or adds something beyond the repair and its test: a new mechanism, gate, public option, dependency or protocol bump. The author's report lists these under a new `adds` field, and the reviewer checks the list. Each PR the user rejected or cut was an addition of this kind (#3876, #3896, #3854, #3962). - **Review weighs additions and every fix.** Reviewers weigh what a change adds (`/developing-leaf`, "Weigh what a change adds") and review every fix again. One unreviewed fix in the first campaign moved #3904's check into the build and broke the eval comparison arms, until #4486 moved it back. - **Counts come from GitHub**, since an orchestrating session that compacts several times loses its counts. Ready PRs go a few at a time, since six parallel landing agents once used up Tend's GitHub API quota. > _This was written by Claude Code on behalf of max-sixty_
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The thread snapshot gate compared images on macOS only, because a Linux image could only come from CI's own runner. This change makes that runner the source of the approved images. A dispatched workflow captures them and uploads an artifact, and
leaf-dev thread-snapshots accept RUNpublishes that run's images. No developer machine needs Docker or has to reproduce CI's rendering. The gate stays paused:tests/journeys/test_render_thread_snapshots.pystill skips unless a capture runs it, and the remaining steps are #4046, "Resume the thread appearance gate".#4047 asked for a way for the author of an appearance change to render the compared images themselves. An earlier revision of this PR did that with
capture --linux, which ran the journey in Playwright's Docker image. Max declined it, since developer machines shouldn't need Docker, so it is gone, with its bootstrap and tests. This revision resolves #4047 by automating the old push-then-download route instead: the author dispatches a capture on their pushed branch and accepts the run.What changed
.github/workflows/thread-snapshots.yamlrunsleaf-dev thread-snapshots captureonubuntu-24.04, the runnerci'stestjob uses, after the same.github/actions/setup. It uploads.tmp/thread-snapshots/(the capture and each run's evidence) as thethread-snapshotsartifact, also when the capture fails. It runs only on dispatch (gh workflow run thread-snapshots.yaml --ref <branch>). A dispatch runs the branch's own copy of the workflow, so a branch that changes the capture tests it the same way.accept RUNreads the run withgh run viewand refuses anything but aworkflow_dispatchrun of the checkout's HEAD, so the pin moves with the code whose appearance it holds. It then downloads the artifact withgh run download. It refuses a run withoutcapture.json(a failed capture) or with a missing checkpoint, and otherwise publishes the run's profile as the whole pinned collection, with the run and commit in the publish message.leaf-dev thread-snapshots --helplists the dispatch,gh run list, download and accept commands.COMPAREDis Linux withGITHUB_ACTIONS), andcapturerefuses elsewhere with the dispatch command. A profile is namedlinux-<VERSION_ID>-<machine>-chromium-<version>, so an Ubuntu release or Chromium upgrade needs a reviewed capture. A font package update within a release shows as an appearance mismatch. Elsewhere, macOS included, the journey runs its delivery assertions on the light cases and keeps its images as evidence.acceptno longer carries other profiles forward.capture.jsonkeeps only the profile: its per-file hashes guarded a local folder edited between capture and accept, and an artifact can't be edited.dev/tests/model, and covers the refusal of a run of another commit or another event.What I ran
COMPAREDheld on the runner and the profile came out aslinux-24.04-x86_64-chromium-153.0.8010.12. The capture failed as expected, on the journey's known failures on main:refusal feedback at its mutation was Nonein 6 cases and the margin-marker click timeout in 2. The artifact uploaded and extracts as<dir>/capture/<profile>/…and<dir>/runs/<uid>/…, the layoutacceptreads.accept 40230544305refuses it as apull_requestrun.uv run pytest dev/tests/model/test_render_thread_snapshots.py -q -n0: 3 passed. Makingacceptignore the run's commit fails the accept test.accepton a run without the artifact, which reports gh's message and fails, andcaptureon macOS, which refuses with the dispatch command.tests/*/test_render_thread_snapshots.pyon macOS: the five light cases, no dark ones.uv run pre-commit run --fileson the changed files, actionlint included.Not verified
accept. The journey fails on main before the capture writescapture.json; fixing it is Resume the thread appearance gate #4046's first step.gh workflow runworks once this lands.Calls Max may reverse
test-macosrunner doesn't share. A local macOS run still exercises the journey's delivery assertions. The existingdarwin-…images leave the pinned collection at the next accept.Closes #4047; its remaining steps are #4046.
On landing, update #4046: CI's Linux runner is the only profile, captured by dispatching the
thread-snapshotsworkflow and accepted withleaf-dev thread-snapshots accept RUN. Fix the journey first (it fails on main at the refusal stage and at the margin-marker click), dispatch a capture, review and accept it, then remove the skips so CI compares on each run that reaches the journey tier. The "wt merge's macOS pre-merge" suggestion no longer applies.