Repository navigation
Hold a decision the user put off with the agent until its to-do ends - #3231
Merged
Merged
Conversation
A user who comments on a decision hands it to the agent until the reply, but two gaps sent a deferred decision straight back to On me. A comment anchored on an element holding a decision, such as a review case's section, was about no obligation, since `discussed` looked only at what encloses the anchor. And the documented way to hold a promise, a reply with `--todo`, settled the turn and so returned the decision, while the to-do it opened kept the thread on On <agent>: the two lists disagreed about the same work. An obligation is now the agent's while the agent owes something about it: the reply its thread is owed, or the to-do a reply there promised, through a resolution, until the agent ends the to-do. Element to-dos hold nothing, since agents open them on the element a piece of work concerns, often work that waits on the user's answer. Frozen thread widgets follow the same rule for a to-do opened after the message that asks. A thread anchored on an element now speaks for the obligations inside it before the frame around them, so a note on one part of a frame leaves its siblings with the user. No Waiting category: a deferral needs someone to bring the decision back when the other work lands, and that is the agent's to-do, which On <agent> already shows as owed and not in hand. `conversation-loop.md` says a deferral is such a promise, and `deferral-holds-a-todo` scores it. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
previously approved these changes
Oct 20, 2026
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # .claude/skills/developing-leaf/references/glossary.md # skills/leaf/scripts/leaf/events.md
leaf-agent
previously approved these changes
Oct 20, 2026
leaf-agent
approved these changes
Oct 20, 2026
leaf-agent
added a commit
that referenced
this pull request
Oct 20, 2026
The On me walk test now expects a decision inside a task to leave the user's queue while the agent owes a reply to a thread on that task. [#3231](#3231) deliberately gave a thread on an enclosing section that hold, but the older browser assertion still expected `m` to land on the nested decision. The test now checks that the walk cycles from the other open decision back to its first stop; the earlier assertions still cover the obligation and thread as one standing target. This fixes `test_an_obligation_and_its_thread_are_one_standing_target` in [main CI run 39368894288](https://github.com/max-sixty/leaf/actions/runs/39368894288). It failed on that run and on current main before this change, then passed locally after the assertion changed (`uv run pytest tests/browser/navigation/test_obligation_walk.py::test_an_obligation_and_its_thread_are_one_standing_target -q -n0`). The run's separate full-quote failure is being handled independently. Co-authored-by: leaf-agent <[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.
A user who comments on a decision hands it to the agent until the reply, but two gaps sent a decision the user had put off straight back to On me. On a review page the user commented on a case's section, "push this off until that's done", and the case's
lf-optionsstayed on On me throughout.<section>, was about no obligation:discussedlooked only at what encloses the anchor.--todo, settled the turn and so returned the decision to On me, while the to-do it opened kept the thread on On . The two lists disagreed about the same work.An obligation is now the agent's while the agent owes something about it: the reply its thread is owed, or the to-do a reply there promised, through a resolution, until the agent ends the to-do (
obligations.sections_with_agent). To-dos opened on an element hold nothing, since agents open them on the element a piece of work concerns, often work that waits on the user's answer. Frozen thread widgets follow the same rule for a to-do opened after the message that asks. A thread anchored on an element now speaks for the obligations inside it before the frame around them, so a note on one part of a frame leaves its siblings with the user. The obligation readings take the page'sTodoReadingin place of itsends.No Waiting category: a deferral needs someone to bring the decision back when the other work lands, and that is the agent's to-do, which On already shows as owed and not in hand.
conversation-loop.mdnames a deferral as such a promise. The newdeferral-holds-a-todoeval passed 3/3 on both arms under its first rubric; read by hand, every base run also withdrew the decision in a revision to clear On me, and no candidate run did, which the final rubric now fails.Known limit: a to-do's hold covers whatever obligations the anchored element holds now, so a decision the agent adds to that section while the to-do is open is held too.