Skip to content

Open On me when m reaches a to-do; the clerk asks in threads and to-dos - #4866

Merged
max-sixty merged 9 commits into
mainfrom
on-me-paved-road
Oct 31, 2026
Merged

max-sixty merged 9 commits into
mainfrom
on-me-paved-road

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Asks that no widget holds now reach On me whole. Before this change, Leaf's clerk wrote every ask it found in a chat closeout as a to-do on the user on the page as a whole. When m reached one, the panel's field showed half its title, and a bare "?" sat beside the page's heading. Agents wrote the same to-dos themselves. Across 238 real pages there were 15 to-dos on the user on the page as a whole, and 12 of them were a decision or a permission.

m opens On me on a to-do (browser/runtime/queue-walk.js, floating-panel.js showOnMe). A thread opens and a widget's controls are already where m lands, but a to-do's place holds nothing that answers it. So the walk now also opens On me with the to-do's card ringed, showing its whole title and its Done. The user stays on the to-do's place, where x still ends it.

The clerk writes what the agent would write (src/leaf/clerk.py). Its fork marks each ask a question or a step.

  • A question opens a thread with the agent's message and an obligation.
  • A step the user confirms with Done, such as running /reload-plugins, goes On me as the agent's to-do on the user, titled as the action.
  • Each goes on the passage the fork names (a to-do on the element holding it), or on the page as a whole when the fork names no passage or the page doesn't show those words once.

thread.open_thread and todos.open_todo are now the only places those events are built, called by leaf thread create, leaf task create and the clerk.

Instructions (conversation-loop.md, "The On lists"). A to-do on the user is titled as the action rather than "a direct question", and stands on its thread, its element or the page. The clerk paragraph and docs/how-it-works.html describe the new writes.

Evidence

  • I replayed the fork on four recorded turn ends. It named all 13 labelled asks, called the one /reload-plugins step a step in 3 of 3 runs, and called every permission a question. It named 6 passages. The 5 whose pages still exist each appear once in their page's text as it stood that turn.
  • The new eval closeout-asks-take-their-route passes 3/3 on both main and the branch, so it stands as a guard rather than a measured gain.
  • The m-on-a-to-do browser tests now expect On me open on the walked card.
  • The user made each product call on 2026-10-31: open On me rather than cut a title, mandate no one placement, keep the page as a to-do's subject, and let the fork choose a to-do for a step.

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

max-sixty and others added 7 commits October 31, 2026 14:00
Leaf's clerk wrote each ask it found in the agent's chat as a to-do on the
user on the page as a whole. A to-do carries only a title, so the user got a
bare "?" beside the page's heading and a panel line that cut the ask in half,
and its Done could not say yes or no to "Land it?". The user asked for the
routes a question asked well takes: a widget that asks, or a thread.

The clerk now opens one thread per ask on the page as a whole, the agent's
message carrying an obligation, with a title and a self-contained message the
fork writes from the conversation in three or four sentences. It opens the
thread through `thread.open_thread`, the function `leaf thread create` now
uses too, so the clerk activates a saved source as the command does. It skips
an ask whose title a thread the agent opened to ask already has, and shows the
fork answered and withdrawn questions as settled. The agent's next step quotes
the message and names `leaf task end <page> message:<id> dropped`.

conversation-loop.md's table no longer tells agents to title a to-do on the
user as a question or offers `page` as its subject: an action goes on the
thread that explains it or the element it concerns. A new eval case,
closeout-asks-take-their-route, scores asks left at a closeout.

Replayed on 12 recorded turn ends: the fork named all 21 labelled asks in the
8 that left some and nothing in the 4 that left none.
#4850 described the clerk's to-do on the page, which this branch replaced
with a thread per ask.
`m` reaching a to-do on the user now also opens On me, its card ringed with the
whole title and Done, leaving the user on the to-do's place, where `x` still
ends it. A thread opens and a widget answers where it stands, but a to-do's
place held nothing that answers it, so a long title read as half a line in the
panel's field. The user chose this on 2026-10-31 and kept the page as a to-do's
subject, so the On lists table offers it again.

Leaf's clerk now names, per ask, the page's words the ask concerns; Leaf opens
the thread there, and on the page as a whole when the fork names none or the
words don't resolve, since the fork has no next attempt. The user declined to
mandate one placement. Replayed on four recorded turn ends: 12 asks, 5 with a
passage, each found once in its page.

Behavior changes in tests: the m-on-a-to-do browser tests expect On me open on
the walked card; closeout-asks-take-their-route no longer fails a page to-do
titled as the action (main and the branch both pass 3/3).

Co-Authored-By: Claude <[email protected]>
# Conflicts:
#	dist/kernel/kernel.json
The clerk's fork now marks each ask a question or a step. A question still
opens a thread with the agent's message and an obligation; a step the user
takes and confirms with Done, such as running /reload-plugins, goes On me as the
agent's to-do on the user, titled as the action, on the element holding the
passage it names or else on the page. The user chose this on 2026-10-31 once
`m` opened On me on a to-do: a step asked as a thread question is answered by a
clarifying reply, so the agent had to ask again. Asks are deduplicated against
the agent's to-dos on the user as well as its question threads.

`todos.open_todo` is now the one place a to-do event is built, called by
`leaf task create` and the clerk. Replayed on four recorded turn ends: P2's
/reload-plugins came back as a step in 3 of 3 runs and every permission as a
question; all 13 labelled asks were named.

Co-Authored-By: Claude <[email protected]>
# Conflicts:
#	dist/kernel/kernel.json
leaf-agent
leaf-agent previously approved these changes Oct 31, 2026
# Conflicts:
#	dist/kernel/kernel.json
# Conflicts:
#	dist/kernel/kernel.json
@max-sixty
max-sixty merged commit 8059984 into main Oct 31, 2026
4 checks passed
@max-sixty
max-sixty deleted the on-me-paved-road branch October 31, 2026 23:19
max-sixty added a commit that referenced this pull request Nov 3, 2026
… `m` (#5113)

Since #4786, an On me marker whose target the user stood on showed its
label as though hovered. After `m` reached an `lf-ask`, a tooltip
repeating the ask's heading sat beside it, over the first option's `1`
badge, with no pointer or focus on the marker. It reproduced in Firefox
and Chromium on main, every time `m` arrived at an ask or a to-do.

| Before | After |
| --- | --- |
| ![After m on main: a dark label repeating the ask's heading sits under
the ? marker, over option 1's
badge](https://github.com/user-attachments/assets/bc9880fb-55a1-4864-b8e9-a5be9b0e0d4e)
| ![After m on this branch: no
label](https://github.com/user-attachments/assets/8d9887b8-944e-41e6-a419-e7a30fab074e)
|

#4786 was written for a to-do on the user, whose subject doesn't say its
title (#4785). #4866 had already covered that case a day earlier: `m` on
a to-do opens On me on its card, which shows the whole title over its
Done. So this removes the selected-marker reveal entirely: its CSS, its
term in `revealsLabel`, and the label placement that selection
scheduled. A margin label again shows only on hover, keyboard focus on
the entry, or a held press. The user chose to keep a to-do's title in On
me only, and to leave the browser's own hover alone when a scroll brings
a marker under a resting pointer.

Tests: the `m`-arrival test on two asks now asserts the label stays
hidden after the walk paints its selection, and that hovering the marker
still shows it; it fails on main. The to-do tests no longer expect the
label after `m` or Show. The `on-me-todo-dark` still goes, since it
existed for the label in dark; `on-me-todo` stays for On me opened on a
to-do's card. The focused browser tests, `pnpm run test:runtime` and
`pnpm run check:browser` pass.

> _This was written by Claude Code on behalf of max-sixty_
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