Skip to content

Hand an ask the user has commented on to the agent until it replies - #2677

Merged
max-sixty merged 3 commits into
mainfrom
answered-question-is-agents
Oct 12, 2026
Merged

max-sixty merged 3 commits into
mainfrom
answered-question-is-agents

Conversation

@max-sixty

@max-sixty max-sixty commented Oct 12, 2026 •

Copy link
Copy Markdown
Owner

A comment on an open ask left the ask on Questions while the comment's reply stood on Tasks, so one item showed as owed by both sides. An open ask now has the agent as its next actor while the agent owes a reply about it: it leaves Questions until the agent answers, still open and unanswered, its controls live.

  • Page asks go to the agent while an open thread awaits the agent and is anchored inside the ask's widget, or inside its framing x-question-context and no other ask (questions.sections_with_agent, questions.discussed). A note on one option leaves a framed sibling with the user; a note on the frame's heading covers all of them.
  • Widgets frozen into a thread go to the agent once the user writes after the message that asked, until the agent answers that turn.

This generalizes the seat-only rule (seat_with_agent and seats_with_agent, both deleted), which stopped reaching any shipped widget when 292de9c took x-thread-seat off lf-options. It reverses the decision events.md recorded, that an open widget ask keeps its thread awaiting the user after later prose. That paragraph, the x-awaits contract and the glossary now state the new rule.

The browser takes the change from the server's reading, as #2663 has it take every derived fact, so Questions moves when the reading of the comment or reply arrives.

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

max-sixty and others added 3 commits October 12, 2026 10:47
A comment on an open ask left the ask on Questions while the comment's reply
stood on Tasks, so the item showed as owed by both sides. An open ask now has
the agent as its next actor while the agent owes a reply about it, so it leaves
Questions (into `held`) until the agent answers, still open and unanswered,
its controls live:

- a page ask, while a thread anchored inside its widget, or inside its framing
  x-question-context and no other ask, awaits the agent
  (`questions.sections_with_agent`, `questions.discussed`);
- a widget frozen into a thread, while the user has written after the message
  that asked and the agent has not answered.

This generalizes the seat-only rule (`seat_with_agent`, `seats_with_agent`,
both deleted), which stopped reaching any shipped widget when 292de9c took
x-thread-seat off lf-options. It reverses the recorded decision in events.md
that an open structural ask keeps its thread awaiting the user after later
prose; that paragraph, the x-awaits contract and the glossary now say the
new rule. The browser reads the change from the server: a pending reply in a
thread holding the ask moves both through `after`, which a publisher test now
reads from a served reading rather than a hand-written one.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…agents

# Conflicts:
#	build/browser/application.test.mjs
#	docs/registry.html
#	skills/leaf/scripts/leaf/questions.py
main's #2663 drops the served `after` readings, so the publisher test this
branch rewrote to read a supposed reply goes with the others #2663 deleted,
and so does the served reading it consumed. The model tests read the open
asks whose next move is the agent's from the ask inventory, since `held` is
no longer served.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit 8d6898f into main Oct 12, 2026
3 checks passed
@max-sixty
max-sixty deleted the answered-question-is-agents branch October 12, 2026 22:17
max-sixty added a commit that referenced this pull request Oct 12, 2026
…mented ask to the agent (#2695)

Seven browser and journey tests have failed on main since #2677
(bisected: 927abcf passes, 8d6898f fails). Main's push runs were
each superseded and cancelled, so nothing reported it; a pull request
that edits these test files selects them and fails its required `test`
job (#2658).

#2677 hands an open ask to the agent while a thread anchored on it
awaits the agent's reply, so the ask leaves Questions and the `q` walk
passes over it. These tests seeded a bare user comment on an ask only to
give it a thread or a margin note, then walked to it with `q` or a Page
Map hint, and timed out waiting for focus. Their subject is how an ask
and its thread are held and navigated, so their fixtures now seed a
comment the agent has answered (`answered_comment`), which leaves the
ask on the user. What they assert is unchanged.

`test_a_live_revision_reapplies_the_authored_thread_seat_predicate` is
deleted: it held that a seat's thread stops taking the ask off the
user's list once a revision removes the seat, and #2677 deliberately
made any thread inside the ask do so, which
`tests/model/test_questions.py` covers. The seated test widget's
`seatAttribute` option existed only for it.

> _This was written by Claude Code on behalf of max-sixty_

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent added a commit that referenced this pull request Oct 13, 2026
The [main CI
run](https://github.com/max-sixty/leaf/actions/runs/38317918344) found
two annotation tests expecting an authored Ask marker to remain after
its user comments. #2677 deliberately hands a commented Ask to the agent
until it replies, so that marker leaves while the comment's thread
remains. The pointed-row test now checks the handoff and keeps its check
that an existing thread target stays put; the turn-colour test expects a
thread-only marker while the Ask is with the agent.

Both failing cases reproduced on current `main` before these changes.
The pointed Ask and thread cases, plus both colour cases, pass afterward
with focused `uv run pytest -q -n0` selections. No product code changes.

---------

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