Skip to content

Name each item on me by its widget, and drop "ask" from the interface's words - #3112

Merged
max-sixty merged 2 commits into
mainfrom
ask-vs-on-me-vocabulary
Oct 17, 2026
Merged

max-sixty merged 2 commits into
mainfrom
ask-vs-on-me-vocabulary

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

First stage of taking "ask" out of Leaf's ontology: the words the interface shows. A widget names the kind of item it puts on On me, so the m walk reads "1 of 2 waiting on me · Options" rather than "· Ask", and the On panel's rows, the Page Map's group, keyboard scopes, lf-options' controls, lf-tally's title, the approval refusal and the margin toolbar's label name the list or the widget instead of "ask". No protocol change; the served state and the agent-facing contract move in the next stage.

One askWord (asks/answer.js) now names an item for both the walk and the panel. A widget with no x-word module, such as lf-playground, is named by its tag where it used to fall back to "Ask". addressableWord drops its x-ask-context special case, so lf-ask is named by its tag like any widget.

Not changed here: the classic banner's queue counts ("2 asks"), since the banner is being removed (#3100), and developer-facing error text.

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

…'s words

The user's direction is that "ask" leaves Leaf's ontology: a widget registers
an item on On me, and the widget names its kind. This is the first stage,
the words the interface shows, with no protocol change.

- The m walk and the On panel's rows call a widget's item by the widget's
  own word through one `askWord` (asks/answer.js): "1 of 2 waiting on me ·
  Options" rather than "· Ask". A widget with no x-word module, such as
  lf-playground, is named by its tag, where it used to fall back to Ask.
- The Page Map's group for those rows is On me.
- Words that named the item "ask" now name the list or the widget: "Next
  item waiting on me", "Go to the next item on me here", "Answer every
  open item before approving this work", "Changes, threads, items on me,
  delivery status, and activity"; lf-options' scopes and controls say
  "In the options", "In settled options", "reopen these options" and
  "back to the options"; the scope a frame lends a widget's keys is
  "While answering".
- addressableWord no longer special-cases x-ask-context frames; lf-ask is
  named by its tag like any widget, which reads "ask" as before.

Tests that pinned the old words follow, and the shortcut-bar walk test
matches each stop's word by pattern, since its stops are different widgets.

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

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The approval refusal now points at every open item, but the gate checks only open widget asks (approvalBlockingAsks). An open to-do or resend can remain in On me while approval is available, so this wording sends the reader to clear work that does not block approval. The suggested wording names the requests the gate actually checks.

Comment thread skills/leaf/assets/runtime/banner.js Resolved
The refusal said every open item, but approval checks only open widget asks
(asks.approval_blocking); a to-do or resend on On me doesn't block it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit 3083c16 into main Oct 17, 2026
5 checks passed
@max-sixty
max-sixty deleted the ask-vs-on-me-vocabulary branch October 17, 2026 07:29
leaf-agent added a commit that referenced this pull request Oct 17, 2026
Update the open-asks keyboard test to expect “Next item waiting on me,”
the command-reference description introduced by #3112. The [main CI
run](https://github.com/max-sixty/leaf/actions/runs/39014261523) failed
because this one assertion still expected the old description; the
keyboard walk itself completed. This preserves the intended wording and
the test's coverage of the command reference.

Verification: `uv run pytest
tests/browser/widgets/test_asks.py::test_a_key_walks_the_page_s_open_asks
-q -n0` failed on current `main` at the old assertion, then passed with
this change (1 passed).

Co-authored-by: leaf-agent <[email protected]>
max-sixty added a commit that referenced this pull request Oct 17, 2026
The banner, chrome-layout.js, queue-panel.js, test_banner.py and
test_shortcut_bar.py stay deleted; main's changes to them move to where
that code now lives. The approval refusal ("Answer every open widget
before approving this work", #3112) is in page-status.js, and the
Layout-box wording of #3110 in page-layout.js's header. queue-panel.js's
row word has no successor, since the On view's cards name no kind, so
askWord serves the walk and the ask view only. test_banner's agent
question and test_shortcut_bar's walk words ("· Options", "Next item
waiting on me") are carried into test_key_surfaces.py.

In conflicted tests the branch's panel selectors stand and main's
fixtures and words apply: lf-ask questions in place of `ask: true`
replies, and walk positions naming the widget ("Options", "Question").
The registry and events.md keep the branch's panel wording with #3114's
x-awaits `reply`/`yields` and question-in-words rows. The status
explanation the leaf's menu shows counts what waits on the user as
"N to answer" rather than "N asks", which #3112 left only because the
banner was going. The kernel and the layer-contract snapshot are
regenerated.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty added a commit that referenced this pull request Oct 17, 2026
Since #3114 an agent's opening comment waits on the user only when its
markup holds an lf-ask, so the On view's message card and the `m` walk to
a thread the page draws nowhere had nothing to show. Their fixtures now
carry the question. The ask walk's command-reference line reads "Next
item waiting on me" since #3112.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty added a commit that referenced this pull request Oct 17, 2026
#3112 dropped "ask" from the interface's words, so the composer `c`
opens on a decision names it as the question it asks ("§ question ·
Which material?"); the test still looked for "ask".

Co-Authored-By: Claude Opus 5.5 (1M context) <[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