Repository navigation
Remove the visual-review package - #6832
Conversation
Removes the optional `visual-review` package: the `lf-visual-review` widget, which showed a `visual-run` data source one case at a time with a Looks right approval, Capture details, a progress count and its own n, Shift+n, a, i and c keys, and owed the user one On Me obligation per case. Its `visual-run` contract, developer gallery, package card, `stills` state and the two `visual-change-uses-captures` variants that asked an author for the package go with it. Guidance that named the widget as an example now names another one, and the playground's instructions point a visible change to before/after captures with a question beside each. Tests that used the widget to hold a core guarantee move to other widgets: - lf-shot's behaviour when a script replaces its captures or facts (reserved focused frames, a refused peer image, superseded loads, alt changes, mismatched pairs and refused focuses) to plain shots; - a comment box seated in a widget's outlet to lf-diff, and, where the datum keeps its identity across new values, to `lf-test-review`; - obligations owed per record of a bound source (`awaits.records`), which no bundled widget declares now, to `lf-test-review`, in a new fixture package, tests/fixtures/packages/records, which `model_layer` reaches by a checkout path; - the offline export and the published site's data-owned media to lf-trace; - key-chip previews to a test widget, data-set refusals to lf-file-tree and lf-trace, the passage sweep to review-parts, and the library copy test to a plain page. No longer tested: the widget's own dashboard, keys, approvals and journeys, and the height-only resize step of the seated-editor test, which held only because the review declared its panes as reading regions.
leaf-agent
left a comment
There was a problem hiding this comment.
notes/agent-usability-evals.md still cites the two eval variants this PR deletes. The commands under "Widgets plain page check doesn't run" dropped visual-change-uses-captures/review and /review-scaled, but the prose around them still says "visual-change-uses-captures/review does the same for a visual review, since that case holds the captures", still introduces visual-change-uses-captures/review-scaled as one of "two harder contexts", and still reports "All 40 drew (10 per context and harness)" and "all 20 reviews set a focus rectangle". The #3901 paragraph also points at "visual-change-uses-captures/review does". Now a reader who runs the listed command gets only the playground half of those 40 samples, and the text points at a case that no longer exists. AGENTS.md says a note keeps "the finding and the command that reproduces it". So either cut the visual-review sentences and scope the counts to the cases that remain, or say plainly that those results came from the removed case and can no longer be reproduced.
`notes/agent-usability-evals.md` still described results of `visual-change-uses-captures/review` and `/review-scaled`, which this branch deletes. Each count now covers the cases that remain, from the note's own table: 60 Claude Code and 36 Codex pages, 0 of 48 playground and text-document pages failing to draw (Wilson 0–7%), and the fine-steps context's 20 drawn pages (0 of 68 with the plain contexts, 0–5%). #3901's counts drop its visual-review case. Dropped because the tree holds nothing to split them by: the per-context cost range ($0.41–1.77 a page), the Codex author whose page script misused `generatedElement` (the note doesn't say which harder context it came from), the "41 on Claude Code and 28 on Codex" sample counts in #3901, the timing row over 70 final eval pages and the by-context 6.5–11.1 s range that named visual reviews as the slowest. Also dropped, recorded here: asked for "a Leaf visual review", 3 of 3 Claude Code authors in #3901 paired the captures in `lf-shot` rather than `lf-visual-review`, so the package was named in the prompt from then on.
A comment in test_render_anchors.py named the package as its example of a closed box laid out unseen, and the root-guidance eval's removal-evidence situation listed it among the packages a month of pages never used.
This removes per-record obligations: a widget's `awaits.records`, which owed the user one On Me item per record of its bound data. Nothing Leaf ships has declared it since #6832 removed visual-review. Gone: the schema key, two registry refusals, the server's per-record inventory (which made every work reading, admission's included, read and validate page data), and the browser's per-record placement, arrival, card and answer paths. 746 lines out, 115 in; 296 of those out are deleted tests. A package author can no longer make one widget whose `leaf data set` rows each get their own On Me item, answered, reached with `m` and discussed separately. Instead they write one asking widget per item, such as an `lf-options` per case in a labelled group, which ties items to revisions rather than data, or give the widget one obligation for the set. Max chose the removal after a trial gave the mechanism a bundled use, a "Reviewed" answer for each file of an `lf-diff`. On a 30-file patch On Me repeated the file list, each check reached the agent as its own update, and a file the agent revised stayed reviewed. One question for the whole diff served better. Not in the diff: `answered.detail` now has no bundled user either; the page protocol doesn't move. Tests: 1,170 focused model and process tests, eight browser tests by node id, `pnpm run check` and pre-commit pass. > _This was written by Claude Code on behalf of max-sixty_
Removes the bundled
visual-reviewpackage: thelf-visual-reviewwidget, itsvisual-runcontract, gallery, package card, the two eval variants that asked for it, and every reference. Nothing in Leaf writes avisual-run, and since #6772 a visible change goes to the user as before/afterlf-shotpairs with a question beside each, asexamples/review-parts.htmlshows.A user loses the one-case-at-a-time queue with its progress count and keys (n, Shift+n, a, i, c); the Capture details popover with capture conditions, revisions and links to the before and after pages; a typed run an agent refreshes with
leaf data setwhile approvals and threads stay on stable case ids; and a two-key reopen of an answer, which takes nine on the page of parts.Not visible in the diff: tests that proved core guarantees through the widget are ported, not deleted, to plain
lf-shots,lf-diff,lf-trace, test widgets and the page of parts. Per-record obligations (awaits.records) now have no bundled user; they stay, covered by a fixture package, as a separate removal candidate.Tests: the ported and touched tests pass locally, as does
pnpm run check; CI runs the broad suite.