Repository navigation
Name the form, not the bundled widget, in the shipped instructions - #6549
Merged
Merged
Conversation
The shipped workflow references sent authors to bundled widgets by tag: lf-shot for a visual change, lf-chart for numbers, lf-trace for a recorded journey, lf-options for a pick, lf-group for an On Me question, and so on. A package whose widget had another name competed with an instruction that named the bundled one, so a team's own widgets were harder to reach than Leaf's. The references now name the form an author reaches for (a before-and-after pair, a chart, a choice, a draft, a set of parts) or the declared fact the behavior turns on (`awaits`, `reading-role: group`), and name a bundled widget only as an example or in a markup example. The page's vocabulary says which widget provides the form; a form the page lacks sends the author to "Package reach" in packages.md. The kernel's delivery text and `leaf thread comment --help` say "a widget that asks, such as lf-options" in the same way. Root AGENTS.md, "Keep the layer open", extends its code rule to the shipped instructions, and developing-leaf's instruction-changes.md says a fix for an author who passed over a widget names the form and sharpens the entry's description rather than adding the tag to the workflow. A same-named replacement already worked, since a later package can redeclare a bundled tag. What this changes is a widget under a name of its own. New eval variant numeric-grid-shows-shape/team-package selects a fixture package whose author instructions give the page's charts to its own `lf-trend`, against the bundled `lf-chart` the vocabulary also offers. Scored with `leaf-dev eval run --harness claude-code --base`: - Guard cases, each passing on both arms: diagram-parts-complete (3/3, first draft), long-document-has-contents, numeric-grid-shows-shape, playwright-recording-shows-its-trace and report-navigation-uses-vocabulary (3/3 on the first draft, 2/2 on this text), source-code-readable/markdown-excerpt and source-code-readable/text-edit (2/2). - thread-choice-takes-a-press: 0/2 on both arms. Every run sent the choice as lf-options and failed on listing the options again in the text, which #6545 rewords. - team-package: base 4/4, head 4/4. A package's author instructions already outweigh a bundled tag named in Leaf's text, so the variant guards that rather than showing a gain. Snapshots regenerated for the reworded delivery and help text.
# Conflicts: # skills/leaf/references/threads.md
leaf-agent
approved these changes
Nov 19, 2026
max-sixty
added a commit
that referenced
this pull request
Nov 27, 2026
…6577) Four shipped sentences still told an author to use a named default-package widget, which root `AGENTS.md`, "Keep the layer open", rules out: an instruction names the form, and a package's widget only as an example or in markup. They are the kernel registry's `table` entry (`lf-options` for alternatives the user picks between), its code-block entry (`lf-code` for a walkthrough with numbered lines), `live-samples.md` (`lf-sample` for an isolated live page) and `module-state.md` (`lf-code` for a snapshot that travels with the page). Each now names the form, and the page's vocabulary says which widget provides it. A Codex review of #6576 found the two references, and a sweep of the kernel registry found the other two. Bundled packages' own guidance still names other packages' widgets in about a dozen places, such as timeline's "use `lf-trace` for a recorded browser journey", and stays as it is: a package's guidance is one author's advice, not the central authority the rule is about. Not scored: #6549 scored this same rewording across 12 cases with no regression, and these four sentences are the last clauses of their entries. Tests: pre-commit, and the model tests that read the vocabulary and page instructions (186 passed). > _This was written by Claude Code on behalf of max-sixty_
leaf-agent
added a commit
that referenced
this pull request
Nov 28, 2026
…es (#7490) Three sentences in `skills/leaf/references/authoring-on-me.md` still sent the author to particular bundled widgets: the `lf-options`/`lf-option` instructions, the `lf-board` instructions, and a link to the playground package's author guide. Root `AGENTS.md`, "Keep the layer open", has Leaf's own instructions name the form and leave the widget to the page's vocabulary, so a page whose packages provide another choice, board or playground widget isn't pointed at the bundled one. Each sentence now names the form instead. This finishes the sweep that #6549 and #6577 did. Not scored, for the same reason #6577 gives: #6549 scored this rewording with no regression. The model tests in `tests/model/test_interact_layer.py` that read the shipped references pass. Found in the nightly survey. Co-authored-by: leaf-agent <[email protected]>
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 shipped workflow references sent authors to bundled widgets by tag:
lf-shotfor a visual change,lf-chartfor numbers,lf-tracefor a recorded journey,lf-optionsfor a pick,lf-groupfor an On Me question. A widget a team ships under its own name had to compete with those instructions. Now the references name the form an author needs (a before-and-after pair, a chart, a choice) or the declared fact the behavior depends on (awaits,reading-role: group). A bundled tag appears only as an example or in markup. The page's vocabulary says which widget provides the form, and a form the page lacks sends the author to "Package reach". The kernel's delivery text andleaf thread comment --helpfollow the same rule.To weigh:
AGENTS.md, "Keep the layer open", gains a paragraph that applies the code rule to the shipped instructions. That section is your direction, so revert it if you'd rather keep the rule only indeveloping-leaf'sinstruction-changes.md, which now points to it.leaf packagehas no list command.packages.md(24 KB) in 5 of 6 authoring runs, against 0 of 6 on base, because the new pointers lead there. Their prompt tokens were no higher overall: 9.1M on head, 12.3M on base.Evals show no regression and no measured gain. Twelve cases scored base against head, 2 to 5 runs per arm, and every case passed every run on both arms with two exceptions.
visual-change-uses-capturespassed 1/2 on base and 2/2 on head.thread-choice-takes-a-pressfailed every run on both arms, because the text listed the options again beside the choice, which is #6545's rule. That case still sentlf-optionsin every run. The new variantnumeric-grid-shows-shape/team-packagegives the page's charts to a fixture package's ownlf-trend. It passed 4/4 on both arms, so a package's author instructions already outweighed a bundled tag in Leaf's text. It stays as a guard. The runs cost about $60.Snapshots were regenerated for the reworded delivery and help text. The affected snapshot tests pass, as does
pnpm run check:browser.