Repository navigation
Say the options-once rule in fewer words - #6545
Merged
Merged
Conversation
"Ask for a pick" in `threads.md` drops from 58 words to 42, and the turn-end check's `text` field from 43 to 40, with the same rule: the text holds the question, what is true of every option and the reason, and each card what is true of its option alone. Scored on the turn-end check's ask cases, the final wording passed 12/12 (`ask-permission` 6/6, `ask-choice` 3/3, `ask-question` 3/3) and both no-ask guards. Two shorter drafts failed: dropping "such as what choosing it does" from the field let asks state what merging does beside the Merge card (3 of 9 runs), and "with the facts ... around it" let the question share a paragraph with them (2 of 6 `ask-permission` runs, against 0 of 3 on `main`). The runs cost $4.90.
leaf-agent
approved these changes
Nov 19, 2026
max-sixty
added a commit
that referenced
this pull request
Nov 20, 2026
…6549) 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_
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.
"Ask for a pick" in
threads.mdgoes from 58 words to 42, and the turn-end check'stextfield from 43 to 40, with the same rule as #6536: the text holds the question, what is true of every option and the reason, and each card holds what is true of its option alone.On the turn-end check's ask cases the final wording passed 12/12 (
ask-permission6/6,ask-choice3/3,ask-question3/3), and both no-ask guards passed. Two shorter drafts failed. Without "such as what choosing it does" in the field, 3 of 9 asks said what merging does beside the Merge card. With "with the facts … around it", 2 of 6ask-permissionasks put the question in a paragraph with the facts, against 0 of 3 onmain. The runs cost $4.90.From open item #29 on the fork-messages page, where Max picked scoring and shipping the shorter wording. Tests:
test_clerk.py,test_product_page.py.