Skip to content

Offer a step's outcomes as options, and say why a choice helps - #6258

Merged
max-sixty merged 7 commits into
mainfrom
turn-end-asks-as-presses
Nov 17, 2026
Merged

max-sixty merged 7 commits into
mainfrom
turn-end-asks-as-presses

Conversation

@max-sixty

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

Copy link
Copy Markdown
Owner

A step only the user can take, such as trying an install on their phone or running a command that needs their login, now offers its outcomes as a choice ("It installed" / "It failed") instead of asking for a typed reply. Max asked why a normal choice couldn't ask it after #6220 made permissions presses. Nothing in Leaf stopped it. The step rule in conversation-loop.md said "ask for a reply", and step-on-the-user-takes-a-thread required --obligation and words, even telling the agent "there is nothing for them to choose between".

The guidance states this softly, as Max asked: "Ask for a pick" in threads.md says picking an option is generally quicker and easier than typing a reply, so a choice usually serves the user better, and the step paragraph says options usually spare the user typing while words suit what only they can describe, such as what an error said. Nothing says a choice is required.

Evidence (Claude Code, 3 runs each): step-on-the-user-takes-a-thread now requires the outcomes as options and goes from 0/3 on main to 3/3. The fork's ask-step now expects a choice and passes 3/3. closeout-asks-take-their-route passes 3/3, its /reload-plugins step accepting options or --obligation. The soft wording kept every result: ask-permission, ask-step, the step case and the closeout case passed 12 of 12. Runs cost about $9 in all.

To weigh: "It failed" carries no detail, so the agent usually asks what the user saw; the user can type the detail instead of pressing.

Requested by Max. Tests: tests/model/test_clerk.py, dev/tests/test_evals.py, tests/model/test_product_page.py.

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

A step only the user can take, such as trying an install on their phone or running a command that needs their login, asked them to reply in words, and the step eval required `--obligation` and words. The user asked why a choice couldn't ask it: whether the install worked has answers the agent can list. `conversation-loop.md` now has the agent offer a step's outcomes as options ("installed" / "failed") and ask with `--obligation` only where words alone can give the answer, such as what an error said. The turn-end check reads the same paragraph, so its step asks follow.

A first draft kept a step whose only report is "done" in words; every agent and fork run read such a step as having two outcomes ("it worked" / "it failed") and asked with options anyway, so the rule now drops that exception.

Evals (Claude Code, 3 runs each): `step-on-the-user-takes-a-thread`, now requiring the outcomes as options, fails 0/3 on main, where agents wrote "Reply here with whether it installed", and passes 3/3 here. The fork's `ask-step` now expects a choice and passes 3/3. `closeout-asks-take-their-route`, whose `/reload-plugins` step may take options or `--obligation`, passes 3/3. `ask-follow-up` no longer checks the form.
leaf-agent
leaf-agent previously approved these changes Nov 17, 2026
The user asked that the guidance on choices be soft: picking a listed option is generally easier than typing, but it shouldn't read as a rule. "Ask for a pick" in `threads.md` now gives that reason and says a choice usually serves the user better; its pointers there and in `conversation-loop.md`, the step paragraph the turn-end check reads, the `clerk.py` header and `how-it-works.html` say "usually" where they said a choice is how such a question asks.
@max-sixty max-sixty changed the title Offer a step's outcomes as a choice the user presses Offer a step's outcomes as options, and say why a choice helps Nov 17, 2026
# Conflicts:
#	evals/step-on-the-user-takes-a-thread/case.yaml

@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.

One copy of the old step rule is still in place. In docs/how-it-works.html, the <li id="updates-written-question"> entry for leaf thread reply … --obligation still says: "A step the user is to take, such as trying a build, is asked the same way." After this change, the guidance usually asks a step whose outcomes can be listed with options, so this page now tells readers the opposite of what conversation-loop.md and the page's own #harness-connections paragraph say. The sentence is outside the diff, so I can't attach a suggestion to it. One possible wording: "A step the user is to take, such as trying a build, is asked this way where only their words can answer it, such as what an error said; where its outcomes can be listed, its message usually offers them as options instead." I can push that as a commit if you'd like.

The leaf-agent review found the entry still said every step the user takes is asked with --obligation, which the guidance no longer says.
leaf-agent
leaf-agent previously approved these changes Nov 17, 2026
@max-sixty
max-sixty merged commit 36c61be into main Nov 17, 2026
5 checks passed
@max-sixty
max-sixty deleted the turn-end-asks-as-presses branch November 17, 2026 07:57
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