Repository navigation
Rename asks to On me items under page protocol 9 - #3158
Merged
Merged
Conversation
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
previously approved these changes
Oct 19, 2026
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]>
leaf-agent
approved these changes
Oct 19, 2026
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-askis 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 andnext_actor.kind: "ask"withask: {…}→kind: "widget"orkind: "approval", by the record's source, with the record underitem. The banner counts them as "Waiting on me: 2 items"."ask"→"widget". Margin entry kindask→on-me.x-ask-contextis gone. Its meaning, "this widget frames the item of the widget it holds", is nowx-awaits.encloses, which also replacesx-awaits.yields.lf-askdeclaresx-awaits: {reply: true, encloses: true}.askfield is dropped from the schema.Names
asks.py→items.py,runtime/asks/→runtime/items/,references/authoring-asks.md→authoring-decisions.md("Decisions and sign-off").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*-askcodes →*-item.readAsks/asksIn/askedInWords→readItems/itemsIn/answeredInWords, andaskWords→answerWords. Item-view arrival isarriveAtRecord, because the On me walk already hasarriveAtItem.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 forbuild/*.ts), followed by hand commits for the protocol, queue kinds andencloses, 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.