Repository navigation
Offer a step's outcomes as options, and say why a choice helps - #6258
Conversation
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.
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.
# Conflicts: # evals/step-on-the-user-takes-a-thread/case.yaml
leaf-agent
left a comment
There was a problem hiding this comment.
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.
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.mdsaid "ask for a reply", andstep-on-the-user-takes-a-threadrequired--obligationand 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.mdsays 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-threadnow requires the outcomes as options and goes from 0/3 on main to 3/3. The fork'sask-stepnow expects a choice and passes 3/3.closeout-asks-take-their-routepasses 3/3, its/reload-pluginsstep 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.