Skip to content

Name the form, not a bundled widget, in four sentences #6549 missed - #6577

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

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

Conversation

@max-sixty

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

Copy link
Copy Markdown
Owner

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

Root AGENTS.md, "Keep the layer open", says a shipped instruction that
tells an author what to use names the form, and a package's widget only
as an example or in markup. Four sentences still told the author to use
a named default-package widget: the kernel registry's `table` entry
(`lf-options` for alternatives) and code block entry (`lf-code` for a
walkthrough), `live-samples.md` (`lf-sample` for an isolated page) and
`module-state.md` (`lf-code` for a snapshot). Each now names the form,
and the page's vocabulary says which widget provides it.

Bundled packages' own guidance still names other packages' widgets as
directions, such as timeline's "use `lf-trace` for a recorded browser
journey". That is left for a separate decision.
leaf-agent
leaf-agent previously approved these changes Nov 20, 2026
…ctions

# Conflicts:
#	browser/registry.json
#	skills/leaf/references/module-state.md

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description says the table and code-block entries are in the kernel registry, but they're in browser/registry.json. Root AGENTS.md treats that file and browser/runtime/kernel-registry.json as two separate registries, and the description becomes main's commit message, so it should name the right file.

@max-sixty
max-sixty merged commit feeaebc into main Nov 27, 2026
7 checks passed
@max-sixty
max-sixty deleted the widget-neutral-instructions branch November 27, 2026 20:56
max-sixty added a commit that referenced this pull request Nov 27, 2026
The `lf-timeline` description told authors to use `lf-trace` for a
recorded browser journey and `lf-motion` for continuous playback. Both
live in other packages (playwright, motion), so a page that selects
timeline without them read a pointer to a widget its vocabulary doesn't
offer. The sentence now names each form, and the page's vocabulary says
which widget, if any, provides it.

Root AGENTS.md, "Keep the layer open", lets a package's own guidance
name any widget, so this is a choice for this entry rather than a rule
it now meets. Follows #6577, which made the same change in four kernel
sentences. Max asked for it. Pre-commit and the registry and vocabulary
model tests pass.

> _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