Skip to content

Rename asks to On me items under page protocol 9 - #3158

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

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

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Third and last stage of taking "ask" out of Leaf's core ontology. What waits on the user is an item on their On me list, and lf-ask is just another widget that registers one. This change renames everything Leaf still called an ask, in served state, events, findings, modules and prose, and bumps the page protocol from 8 to 9, since earlier pages read the old names.

Served state and events (protocol 9)

  • document.asks / thread.asks → items. Each record keeps its id (widget:<id>, approval:v<n>), status and next_actor.
  • Queue entries: kind: "ask" with ask: {…} → kind: "widget" or kind: "approval", by the record's source, with the record under item. The banner counts them as "Waiting on me: 2 items".
  • Thread attention reason "ask" → "widget". Margin entry kind ask → on-me.
  • x-ask-context is gone. Its meaning, "this widget frames the item of the widget it holds", is now x-awaits.encloses, which also replaces x-awaits.yields. lf-ask declares x-awaits: {reply: true, encloses: true}.
  • The reply event's unused ask field is dropped from the schema.

Names

  • Modules: asks.py → items.py, runtime/asks/ → runtime/items/, references/authoring-asks.md → authoring-decisions.md ("Decisions and sign-off").
  • Finding codes: empty-ask-context → empty-question, ask-context-title → untitled-question, ask-context-id / ask-context-prose → enclosing-id / enclosing-prose, users-prose-ask → users-question, failed-prose-ask → failed-question, and the *-ask codes → *-item.
  • Runtime and widget API: readAsks / asksIn / askedInWords → readItems / itemsIn / answeredInWords, and askWords → answerWords. Item-view arrival is arriveAtRecord, because the On me walk already has arriveAtItem.
  • Unchanged: lf-ask, its fixed word "question", and every verb-sense "ask" (for example the state feed asking the server, or a status that asks the user to act).

How it was made

Most identifier renames come from a token-level codemod (Python tokenize, an acorn parse for JS, and a scanner for build/*.ts), followed by hand commits for the protocol, queue kinds and encloses, and a prose pass over references, AGENTS files, the glossary, the registry and comments. The kernel, browser vendor bundles, corpus and regtest outputs are regenerated.

Behavior a user sees: the banner and On panel say "items" where they said "asks". A page vendored at protocol 8 is refused until its session re-vendors it.

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

max-sixty and others added 16 commits October 17, 2026 22:57
The codemod renamed every `ask` token, including ones that mean asking:
the state feed's `ask()` for fresh state, the `asks` attribute test
widgets declare, and two rendering-test messages. Those are restored, and
comments naming `asks.*` now name `items.*`.

The selected-item margin paint passed the old reading kind, so the item
the user stood in never got its marker selected; it now passes `on-me`.
A margin test covers arriving at an item with `m`.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
leaf-agent previously approved these changes Oct 19, 2026
leaf-agent
leaf-agent previously approved these changes Oct 19, 2026
The rename changed Python-side names that JavaScript or markup in the
same test still spelled the old way: element ids `ask` measured by
getElementById, a geometry key, queue-row kinds (now `widget`), the
gallery's "Read current item" button, and the render gate's
`px-item-N.png` screens. A face name is capitalised so the sorted error
messages keep their order.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit e0ea6fe into main Oct 19, 2026
3 checks passed
@max-sixty
max-sixty deleted the ask-vs-on-me-vocabulary branch October 19, 2026 18:39
max-sixty added a commit that referenced this pull request Oct 19, 2026
Runs #3158's codemod over the floating-panel tree before merging main, so
the rename's lines meet main's identically and only real overlaps conflict.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty added a commit that referenced this pull request Oct 19, 2026
Brings in #3158's protocol-9 rename of asks to On me items. The branch's
own code took the same codemod first; this merge used a renamed merge base
so only real overlaps conflicted, and took main's hand-made prose and
verb-sense restorations wherever the branch had not edited the line.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty added a commit that referenced this pull request Oct 19, 2026
main's #3158 renamed what Leaf called an ask (protocol 9). The views code and
docs take the new names: `itemsIn` and `answerWords` in the list of views'
outcome marks, "items" in its comments, and "On me list" where the views
share the page's state. how-it-works and the feature gallery take main's
prose edits on top of their conversion to pages of views; the words each now
differs from main by are exactly the conversion's.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty added a commit that referenced this pull request Oct 19, 2026
…3171)

An audit after #3158 found names and prose that still used "ask" for an
On me item, and a few places that described the model before #3114.
Almost all of it is wording; the parts an agent or reader sees are
below.

**What an agent or reader sees**

- The `empty-question` and `untitled-question` findings said "an
enclosing lf-ask", but they fire for any widget declaring
`x-awaits.encloses`. They now say "this enclosing widget"; the element
is already named before the colon.
- `docs/how-it-works.html` said questions answered in words don't block
approval. Since #3114 such a question is an `lf-ask` item, and
`items.approval_blocking` counts it. The page now says so, lists resends
on On me, and no longer treats a thread's question as separate from
items. The feature gallery's On me paragraph says the same.
- Shipped references:
  - "an `lf-ask`" instead of "an Ask" (`module-scroll-and-motion.md`);
- "update or to-do" where "item" meant what `leaf task start` takes
(`event-batches.md`, `harness-codex-app-server.md`, `leaf task start
--help`);
  - `resend` added to `module-reading.md`'s row kinds;
  - "My turn to answer" in `threads.md`.
- Eval prompts and grader criteria say `lf-ask`, item or decision where
they said Ask; the `detail_names_ask` metric is `detail_names_item`.
These cases weren't re-scored.

**Names and comments**

- #3158's codemod renamed `thread_titles.ASK`, the line that asks for a
thread title, to `ITEM`. It is `ASK` again.
- `x-ask-context`'s "context" survived as `item_context_errors` /
`context_of` and in prose in `items.py`, `events.md` and `instances.py`.
Those now name the enclosing widget.
- Renamed or reworded:
  - `lf-tabs`' item watcher;
  - `version.js`'s item standing;
  - `application.ts`'s inventory order;
  - `events.md`'s plan steps;
- the `queues.py` header, which now says rows, since a to-do is never an
item;
  - test names, docstrings and JS variables that held an item.
- Notes now cite `readItems`, `itemActions`, `items.py` and
`authoring-decisions.md` instead of the removed names.
- A test line checking that `--ask` is refused is gone; the option no
longer exists.

**Checks run:** runtime (496 passed), browser framework (115), `pnpm run
check`, `tests/model` + `tests/smoke` (1602), and the six browser tests
whose strings changed.

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

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