Repository navigation
Have decision options label the facts they differ on - #3441
Merged
Merged
Conversation
An agent rewriting a decision in a long session ended each option's prose
with its effort ("Small.", "Medium.") instead of labelling it. The rule to
label the facts that tell options apart lived only in the lf-option
registry entry, while authoring-decisions.md, which owns how options are
worded and is what agents re-read when revising one, said only to add
words for a tradeoff.
authoring-decisions.md now says to label each fact whose value differs
across options with a small.tag before every title, in the same order, and
to leave values every option shares in the decision's context. The
registry entry points there and keeps the markup order.
The new case options-label-what-sets-them-apart reproduces the session's
script-driven rewrite: base labelled every differing fact in 0 of 10
Claude Code runs, the shipped wording in 3 of 3. A sibling (a model choice
differing in latency, refusals and cost) went from 0 of 3 to 3 of 3. A
binary keep-or-delete guardrail showed the first wording labelling values
both options share in 3 of 3 runs; the shipped wording's last sentence cut
that to 1 of 3. options-stay-words-for-wording,
options-draw-their-arrangement and proposals-get-individual-decisions
scored the same on base and candidate.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The section on wording and showing options had grown into a list of prescriptions, and the lf-option entry repeated its per-kind picture rules. It now states what each paragraph is for: an option names the result the user picks; the user compares options down the group, so facts whose values differ are labels; each option shows its result rather than describing it; independent proposals get their own decisions; an approach page asks its question without answering it. The lf-option entry keeps only markup order and points to the reference for wording, labels and pictures. The reference drops from 1,200 to 1,004 words. Against the previous commit (405f700), Claude Code, two runs each, the eleven cases tagged `asks` scored the same within a run except options-label-what-sets-them-apart, whose two candidate runs read no reference; rerun five times each, both arms labelled every differing fact in 5 of 5. Throwaway cases scored the same on both arms: a model choice differing in latency, refusals and cost (3 of 3) and a keep-or-delete pair that should carry no shared-value labels (3 of 3). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Oct 21, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 22, 2026
… rules live (#3532) This PR does two things. It sets out in `/developing-leaf` where Leaf's instruction rules should live and how to score a rewrite of them. It then applies that to the rest of `authoring-decisions.md`. **Maintainer guidance.** #3441 found that the rule to label options' differing facts sat only in the `lf-option` registry entry, which agents revising a decision never read. It also found that the first fix had added one more clause to a passage already grown into a list. `/developing-leaf` now points to where each rule is already stated: - `packages.md` says guidance a workflow shares across elements goes in the instructions that own the workflow, not in an entry's `x-instructions`; - `/improving-instructions` says to rewrite a drifted passage around its goals and to count only runs that opened the changed file. "Score an instruction change" also says to score every case whose tags cover the passage, and not to name the rule's file in an eval prompt. **`authoring-decisions.md`.** Three paragraphs that were lists of instructions now lead with their goals: - the user answers in the form the answer takes; - On me lists only what still needs the user; - the question, evidence and options stay on screen together. The width paragraph now points to `page-layout.md`, "Bounds and widths", for the `data-width` mechanics. The answers paragraph drops the obligation details the `lf-ask` entry already gives. The file is 75 words shorter. `record-asks-hold-their-premise` no longer tells the agent to read the registry entries. Without that line, agents on `main` opened the Ask with a paragraph rather than a heading, because the heading rule also lived only in the `lf-ask` entry. The reference now says a decision opens with a heading that asks its question. Claude Code results: - **Heading sentence:** `record-asks-hold-their-premise` 0 of 3 on `main`, 3 of 3 here. `record-asks-hold-their-table` 0 of 3 against 2 of 3; the remaining failure put the table after the Ask. `assessment-surfaces-pending-decisions` 3 of 3 on both. - **Eleven `asks` cases, two runs per arm, before the heading sentence:** each check scored the same on both arms or differed by one run, in both directions. Every run read the reference except those of `proposals-show-what-they-change`, which read it on neither arm and so can't tell the two apart. - **`sidebar-page-ask-grants-its-evidence-room`, with the width pointer:** 1 of 7 on `main`, 2 of 7 here. It fails on both arms: agents rarely widen the timing table. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 (1M context) <[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.
An agent rewriting a decision late in a long session ended each option's prose with its effort ("Small.", "Medium.") instead of labelling it. The rule to label the facts that tell options apart lived only in the
lf-optionregistry entry, whileauthoring-decisions.md, which owns how options are worded and is what agents re-read when revising one, said only to add words for a tradeoff. Eval children rewriting the options read that reference alone.authoring-decisions.mdnow holds the rule, and its option guidance is rewritten around what each paragraph is for: an option names the result the user picks; the user compares options down the group, so each fact whose value differs between options is asmall.taglabel before every title, and a value they all share goes in the decision's context; each option shows its result rather than describing it; independent proposals get their own decisions; an approach page asks its question without answering it. Thelf-optionentry keeps only the markup order and points to the reference. The reference drops from 1,200 to 1,004 words.The new case
options-label-what-sets-them-apartreproduces the session's rewrite of a script-generated decision. Claude Code results:asks, two runs per arm against the rule-only commit: the same on seven apart from the new case; one run apart in each direction onassessment-surfaces-pending-decisions(better),record-asks-hold-their-premiseandproposals-show-what-they-change's draws-the-change check (worse), which two runs can't separate from noise.