Skip to content

Name the form, not the bundled widget, in the shipped instructions - #6549

Merged
max-sixty merged 2 commits into
mainfrom
widget-neutral-instructions
Nov 20, 2026
Merged

max-sixty merged 2 commits into
mainfrom
widget-neutral-instructions

Conversation

@max-sixty

@max-sixty max-sixty commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

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. 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 and leaf thread comment --help follow the same rule.

To weigh:

  • Root 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 in developing-leaf's instruction-changes.md, which now points to it.
  • A replacement under the bundled widget's own tag already worked, because a later package can redeclare that tag. This change helps widgets with a new name. An agent still can't find an installed package that the user doesn't name, since leaf package has no list command.
  • Head authors read 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-captures passed 1/2 on base and 2/2 on head. thread-choice-takes-a-press failed every run on both arms, because the text listed the options again beside the choice, which is #6545's rule. That case still sent lf-options in every run. The new variant numeric-grid-shows-shape/team-package gives the page's charts to a fixture package's own lf-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.

This was written by Claude Code on behalf of max-sixty

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
@max-sixty
max-sixty merged commit 1440c2b into main Nov 20, 2026
5 checks passed
@max-sixty
max-sixty deleted the widget-neutral-instructions branch November 20, 2026 02:35
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants