Skip to content

Hold a decision the user put off with the agent until its to-do ends - #3231

Merged
max-sixty merged 4 commits into
mainfrom
deferred-obligations
Oct 20, 2026
Merged

max-sixty merged 4 commits into
mainfrom
deferred-obligations

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

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-options stayed on On me throughout.

  • A comment anchored on an element holding a decision, such as a case's <section>, was about no obligation: discussed looked only at what encloses the anchor.
  • The documented way to hold a promise, a reply with --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's TodoReading in place of its ends.

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.md names a deferral as such a promise. The new deferral-holds-a-todo eval 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.

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

max-sixty and others added 2 commits October 19, 2026 20:24
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
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
leaf-agent previously approved these changes Oct 20, 2026
@max-sixty
max-sixty merged commit f96b376 into main Oct 20, 2026
3 checks passed
@max-sixty
max-sixty deleted the deferred-obligations branch October 20, 2026 03:58
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]>
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