Repository navigation
Conversation
Removes `lf-visual-review`, its `visual-run` data contract and `review` verb, its developer gallery and stills state, its tests and the two eval variants that asked an agent to build one. Over the month to 2026-11-14 `lf-visual-review` appears on 0 of 349 real pages, and none of the 72 pages with a current layer record selected the package (they selected `diff` 11 times, `diagram` 7, `timeline` 2, `playground` 1). `x-awaits.records` (one obligation per record of a bound source) has no bundled user left, so its four tests now run on a small registry built in the test; the mechanism itself stays. The offline-export test of data-owned media went with the widget. `lf-shot` and the core `x-visual` picture offers are untouched. A page author can no longer review a run of aligned before-and-after website captures with a verdict per case; `lf-shot` still pairs two captures.
Removes `lf-deck` (cards worked through one at a time), its developer gallery, its browser tests, the glossary row and the docs card. Over the month to 2026-11-14 `lf-deck` appears on 0 of 349 real pages, and none of the 72 pages with a current layer record selected the package (they selected `diff` 11 times, `diagram` 7, `timeline` 2, `playground` 1). The timeline test that put a deck around a timeline, to check the timeline's unavailable arrow reaches no command outside it, went with the deck, which was the outer owner of ArrowRight in that test. A page author can no longer present a pile of decisions as a card-by-card pass; `lf-ask` and `lf-tabs` still carry independent decisions.
Removes `lf-file-tree` (a searchable file navigator built on Pierre Trees), the vendored `pierre-trees` bundle with its build entry and `@pierre/trees` dependency, its developer galleries and its browser tests. Over the month to 2026-11-14 `lf-file-tree` appears on 0 of 349 real pages, and none of the 72 pages with a current layer record selected the package (they selected `diff` 11 times, `diagram` 7, `timeline` 2, `playground` 1). The diff stays. Tests that used the tree to move a diff to a file now travel there with `navigateToDatum` from a small `for` referrer declared in the test, so the diff's one-file reload and the worktree reveal keep their checks. The tests that exercised only the tree (its keyboard walk, search, folder memory, landing at a file's start, the retained-reply tab walk) went with it, as did `diff`'s instruction to select the package beside a large patch. A page author can no longer add a directory navigator beside a patch or a file list; `lf-diff` keeps its own file listing.
Seven deleted tests asserted behavior of features that stay, with a removed package as the fixture. Each is retargeted to something that survives: - diff: datum travel opens a file, reopens it after it is closed, keeps a selection made while newer evidence prepares, and reveals a file's first line after scrolling (document and pane, short and mode-only files), driven by a test `lf-datum-link` referrer; a retained inline reply keeps its draft and caret across a file move. - export: data-owned trace images decode offline, an `lf-shot` slider answers Home and ArrowRight there, and nothing outside the file is requested. - `lf-shot`: a crop outside its captures, or a pair of unequal widths, shows its error and recovers when corrected. - timeline: ArrowRight at the last step reaches no enclosing command. - site: published typed trace media resolves under the page and decodes. - `data set` refuses a `viewerUrl` the browser cannot parse. Also restore `notes/` to main's text, since the notes record what was run, and drop the orphaned per-archetype `source` branch in test_render_controls.py.
The datum referrer reads the diff's published files output, so the tests check the inventory, the current selection and the cleared inventory again; arrival checks that the referrer keeps focus, by pointer and by keyboard; the reply test reaches the referrer by Tab alone; the crop test covers a capture at pixel ratio 2; the trace tests open a later checkpoint; the timeline test reads the enclosing command's counter right after the press.
…the position readout The file-tree galleries held the only lf-diff view="file" example, so the diff gallery gains one. The trace tests read the viewer's two-image transition as one locator, which a slower runner resolved to two elements; they now wait on the position readout and read the drawn image that carries a datum.
Owner
Author
|
Closing: the maintainer chose to keep the
|
max-sixty
added a commit
that referenced
this pull request
Nov 22, 2026
Adds `leaf-dev logs usage`, which reads the page directories under the state home and prints what they used: the pages holding each registered widget, the packages their layer records select, each command a person ran with its sessions and pages, and each `leaf` command with the runs agents made against a page. "Regular maintenance" in the root `AGENTS.md` asks who would notice a mechanism gone; until now the only evidence was whether an example or a test named it, and the record of real use in every page directory went unread. It sits in the `logs` group with the other commands that read real pages' logs, and reads `--since` as they do, refusing a time without its offset. `/developing-leaf`'s `references/removals.md`, which a session opens before proposing a removal, names the command and says what its count is evidence for: a feature nothing here used is a candidate to test, and the count alone decides no removal. The root `AGENTS.md` is unchanged. On 2026-11-21 it read 462 page directories and 506 sessions. No page held `lf-file-editor`, `lf-file-tree`, `lf-deck`, `lf-visual-review`, `lf-dial` or `lf-call-diff`. To weigh: it counts one machine's use. Max kept the three features whose removal first cited it (#5972, #5974, #5976, all closed), on the ground that his own use is not specific enough, and the examples built since for three of those widgets are the test he asked for instead. Two shortcuts are deliberate: a session counts as a person unless its browser calls itself headless, and command ids minted per element (`option.choose-<id>`) fold into one row where ten or more share a stem. It has no tests, and `dev/tests` now runs daily, so a later change to the logs' shape would break it unnoticed. Requested as part of the "crust and big simplifications" run. Checked with `pre-commit` on the changed files and by running it against the state home, with and without a valid `--since`. > _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.
Removes three bundled packages no page has held, one commit each, with three more that restore tests:
visual-review,deckandfile-tree(with its vendoredpierre-treesbundle and the@pierre/treesdependency).lf-visual-review,lf-deckandlf-file-treeare each on 0 of 400 page directories, and none of the 74 pages with a layer record selected any of them, wherediffwas selected 11 times anddiagram7 (uv run leaf-dev usage, #5970). In the tree each lived only in a developer gallery and its tests, and every repo-wide change since has had to visit them:packages/visual-reviewhas 42 commits and no user.70 files, +522 −7,194: product code −2,548 net, tests −1,976 (459 lines ported back), examples and evals −399, the vendored
pierre-treesbundle and the lock −1,585.What goes for a page author: a guided review of a run of before-and-after captures with a verdict per case (
lf-shotstill pairs two captures), a card-by-card pass over a pile of decisions, and a directory navigator beside a patch (lf-diffkeeps its own file list).To weigh: the packages were also fixtures. A Codex review of the three removal commits found seven deleted tests that had held behavior of features that stay, and the fourth commit ports each one to a surviving widget or a test-only fixture: the diff keeping a file selected while newer evidence prepares, and landing on a file's first line (through a test-only referrer); a retained reply across file navigation; offline export of data-owned images with
lf-shot's slider (on a Playwright trace);lf-shotrefusing an out-of-bounds crop and recovering; a timeline's ArrowRight at its last step not reaching a command around it; published typed media resolving under its page; anddata setrefusing a URL the browser can't parse. A second Codex pass compared each port with its original and found six places where the port was weaker (the test referrer bypassing the diff's publishedfilesoutput, a forced focus, a crop test without a pixel ratio, later images not opened, dropped focus checks, a two-frame wait); the fifth commit closes each. CI then caught two things the focused selection had missed, fixed in the sixth:lf-diff view="file"had lost its only example with the file-tree galleries (the diff gallery now holds one), and the ported export test matched two images on Linux while the trace viewer crossfades.Four things the removal leaves without a bundled user, which I left alone because they belong to the package interface:
x-awaits.records(its tests now run on a registry defined in the test, and nothing covers its duplicate-key refusal any more),lf-diff'sfilesoutput withview="file", theplaceOfexport, andlf-shot.inspect().detail(lf-dial) is also on no page, and stays, since #5539 is designing Skim.Requested as part of the "crust and big simplifications" run; removing a package is your call, and each commit reverts alone. Checks:
pre-commit run -aandpnpm run checkafter each commit; the obligations, layer, product and contract model tests; and every restored or rewritten browser and journey test by node id, each under 4 s locally.