Skip to content

Show the question's lf-group in the board, detail and On Me instructions that still showed a section - #6365

Merged
leaf-agent merged 1 commit into
mainfrom
nightly/question-group-leftovers
Nov 18, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
nightly/question-group-leftovers

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

#6256 retired lf-ask and #6315 made a question's group an lf-group named by its label, so page check refuses a bare lf-options outside a group as ungrouped-question. Some shipped text still showed the old shape, and an agent copying it got refused. This PR corrects that text.
lf-board's "One answer in its question and on a board" instructions (packages/default/registry.json) now wrap the snippet's lf-options in an lf-group whose label asks the question, and the prose says "its question's lf-options" rather than its section's. The matching heading in authoring-on-me.md follows.
packages/detail/instructions/author.md, authoring-on-me.md (the finding-then-question paragraph and the permission example's "not to the section round it") and package-data.md's "Views of an answer" now name the question's lf-group where they named a section.
Eval comments that named lf-ask now name the question's lf-group or a page widget (words-question-takes-a-thread, option-cards-take-their-width, options-draw-their-arrangement, options-stay-words-for-wording, workflows/usability_eval.yaml). Fixture data that records past state is left as it was. view-reveal-arrival's prompt no longer claims layoutChanged returns a promise, since browser/runtime/widget-upgrade.js returns nothing from it.
Verification: I wrote the board snippet into a scratch page and ran bin/leaf page check on it. Before the change it failed with ungrouped-question on <lf-options id=rail-choice>. After the change it passes. Across every package registry's instructions there are only two HTML snippets, lf-text-document's and lf-board's, and both pass page check now. I added no regression test: two snippets don't make it cheap enough to pay for, a registry-only test would leave the package instructions/*.md snippets uncovered, and an agent that copies a bad snippet already gets the refusal from its own page check. A grep of skills/, packages/*/instructions, packages/*/registry.json and docs/ finds no other lf-ask or section-as-group wording. Focused tests on registry instructions pass, as do dev/tests/test_evals.py cases apart from one that needs pnpm install in this environment.

…ons that still showed a section

The lf-board instructions' composition snippet held a bare lf-options, which page check
now refuses as ungrouped-question; it now wraps the question in an lf-group whose label
asks it, and the prose names the question's lf-options rather than its section's.
detail's author instructions, authoring-on-me.md and package-data.md name the question's
lf-group where they named a section. Eval comments that named the retired lf-ask now name
the question's lf-group or a page widget, and view-reveal-arrival's prompt no longer
claims layoutChanged returns a promise, since it returns nothing.

Every HTML snippet in a registry's instructions (two: lf-text-document's and lf-board's)
passes page check; lf-board's failed it before.
@leaf-agent
leaf-agent merged commit 25d82de into main Nov 18, 2026
6 checks passed
@leaf-agent
leaf-agent deleted the nightly/question-group-leftovers branch November 18, 2026 08:01
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.

1 participant