Skip to content

Call the user's list On me and the agent's On <agent>, in one cutover - #2783

Merged
max-sixty merged 12 commits into
mainfrom
first-person-voice
Oct 13, 2026
Merged

max-sixty merged 12 commits into
mainfrom
first-person-voice

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

The list of what waits on the user was "Questions", though it also holds to-dos and resends, and the agent's was "Tasks", though it holds replies the agent owes. They are now named by whose move it is, in the user's voice: On me and On Claude (the agent's name, through agentName()). The panel holding both is titled On for now; TODO.md records the next step, a Done under each list so the panel can be titled by its open tab. The rename is a single cutover: served keys, identifiers and docs move with the interface.

Interface

  • Banner: "On me: 3" and "On Claude: 2"; the On panel's sections "On me · 3" and "On Claude · 2", empty as "Nothing waiting on me." / "Nothing waiting on Claude."; the Next control, More's urgent words, and the opt-in floating panel's view, marks and empty states follow. The banner count cuts an agent name past 12 characters.
  • Keys: m / M walk the user's list (was q / Q), g M opens the On panel (was g Q), and the Page Map moves from g M to g P. m, M and g P were unbound.
  • A drawer's close button names what it closes ("Close the On panel").

Served state and protocol 5

  • served_state.queues serves on_user / on_agent (was questions / tasks); done is unchanged. leaf page state, the browser application, runtime, floating panel, tests and eval fixtures read the new keys; workflows.obligation_reading's questions is on_user.
  • Each page vendors its runtime, which would break on the new shape, so $events.protocol goes from 4 to 5. A page vendored before this needs leaf page init, which the refusal names.

Agent-facing instructions

  • SKILL.md, the references, registry instructions and CLI help name the lists from the user's side: "the user's On me list", and "your list, which the user sees as On ". conversation-loop.md's "Questions and Tasks" is now "The On lists". The website, glossary, gallery, notes and evals follow; grouped-title-address's scenario now uses the new names.

First person
Copy stops narrating what the user saw, decided or is doing ("New since I last looked", "rewritten since I decided", "the item I'm standing on", "Submit what I've typed"), which presumes what Leaf can't know. Those state the fact ("New messages", "rewritten since the decision", "the focused item", "Submit the text"), and possessives that told nothing apart drop to the article. Labels that tell the user's side from the agent's keep the first person; the glossary states the narrower rule.

Checks

  • pnpm run check: browser 107, runtime 427, evals 8; committed bundles match a rebuild.
  • Model tests for served state, asks, to-dos, activity and the interact layer/contract: 611 passed.
  • The browser and journey cases whose code or assertions changed, by id.
  • A paired eval of assessment-surfaces-pending-decisions and todo-on-the-user on Claude Code passed 4/4 on both the merge base and the candidate instructions.

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

max-sixty and others added 7 commits October 12, 2026 21:09
…irst person to labels

The list of what waits on the user was "Questions", though it also holds to-dos and
resends, and the agent's was "Tasks", though it holds replies the agent owes. They are
now named by whose move it is, in the user's voice: "On me" and "On Claude" (the
agent's name, through agentName()). The panel holding both is titled "On" for now;
TODO.md records the next step, a Done under each list so the panel can be titled by
its open tab.

- Banner: "On me: 3" and "On Claude: 2"; the panel's sections, empty and loading
  states, Next control, More's urgent words and the floating panel follow.
- Keys: `m` / `M` walk the user's list (was `q` / `Q`), `g M` opens the On panel (was
  `g Q`), and the Page Map moves from `g M` to `g P`. `m`, `M` and `g P` were unbound.
- A drawer's close button now names what it closes ("Close the On panel"), rather
  than lowercasing the panel's title.
- Agent-facing instructions (SKILL.md, references, registry instructions, CLI help)
  name the lists from the user's side: "the user's On me list", and "your list, which
  the user sees as On <your name>". conversation-loop.md's "Questions and Tasks" is now
  "The On lists". The website, glossary, gallery and evals' rubric text follow.
- Served keys (`queues.questions`, `queues.tasks`) and code identifiers are unchanged.

The first person also stops narrating what the user saw, decided or is doing ("New
since I last looked", "rewritten since I decided", "the item I'm standing on", "Submit
what I've typed"), which presumes what Leaf can't know. Those state the fact
plainly ("New messages", "rewritten since the decision", "the focused item", "Submit
the text"), and possessives that told nothing apart drop to the article. Labels that
tell the user's side from the agent's keep the first person; the glossary states the
narrower rule.

Tests move to the new names and keys. A paired eval of
assessment-surfaces-pending-decisions and todo-on-the-user on Claude Code passed 4/4 on
both the merge base and this tree.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…gent name in the banner count

Review found "In On" in the command reference, "Nothing on the agent." in the
empty agent list, and that an agent name of any length widened the banner's On count
past the room theme.css states. The scope reads "In the On panel", the empty lists
"Nothing waiting on me." and "Nothing waiting on <agent>.", and the banner count cuts
a name past 12 characters while its explanation keeps the whole name.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts:
#	.claude/skills/developing-leaf/references/glossary.md
#	TODO.md
#	examples/corpus.page/widgets/lf-conversation-workspace.js
#	examples/developer/feature-gallery.page/widgets/lf-conversation-workspace.js
#	skills/leaf/assets/runtime/banner-status-view.js
#	skills/leaf/assets/runtime/keyboard/go-to-sequence.js
#	skills/leaf/assets/runtime/queue-walk.js
#	skills/leaf/packages/default/registry.json
#	skills/leaf/packages/default/widgets/lf-draft.js
#	skills/leaf/packages/default/widgets/lf-options.js
#	skills/leaf/scripts/leaf/agent_state.py
#	tests/browser/test_render_navigation.py
#	tests/browser/test_render_projection.py
…, and every straggler

The interface already said On me and On <agent>, but the served state, the floating
panel main brought in, and the code and docs around them still said Questions and
Tasks, and some still named the old `q` walk and `g Shift+Q`. This finishes the
rename in one cut, so nothing in the tree calls the two lists by their old names.

**Served keys and protocol.** `served_state.queues` serves `on_user` and `on_agent`
(was `questions` and `tasks`; `done` stays), and `leaf page state` prints them under
`queues`. `workflows.obligation_reading`'s `questions` reading is `on_user`, since it
holds the user's to-dos beside their asks. A page vendored before this runs a runtime
that reads the old keys, so the page protocol moves to 5 and `leaf page init` rebuilds
such a page; `build/browser/protocol-contract.d.ts` restarts at 5. The browser
publication, `readQueues()`, SKILL.md, conversation-loop.md, module-authoring.md, the
glossary, the eval fixtures that embed page state, and the conversation-workspace
example read the new keys. The example's reading regions turn the key's underscore
into a hyphen, since a region's local name takes none.

**The floating panel** (`?lf-chrome=floating`). Its view is `on` (was `questions`),
its chip `.lf-fp-on-user`, its cards `.lf-fp-on-item` with `.lf-fp-on-title`, and its
empty lists read "Nothing waiting on me." and "Nothing waiting on <agent>.", as the
On panel's do. Its tests press `m`, not `q`.

**Keys left behind.** The margin's keyboard-arrival test pressed `q`, which no longer
walks anything; it presses `m`. queue-panel.js's header named `g Shift+Q`.

**Identifiers, comments and docs.** Test names, docstrings, comments, the layout
fixture (`ON_PANEL`), the Page Map toolbar's label ("Changes, threads, asks, delivery
status, and activity"), notes/what-needs-you (now recording the rename beside the
earlier names), notes/floating-panel/GOAL.md, notes/comparisons.md's "Queue panel",
the eval scenarios in grouped-title-address and proposals-get-individual-decisions,
and TODO.md use On me, On <agent> and the On panel. "Question" and "task" stay where
they mean an ask's content, a to-do or `leaf task`, a harness or event-loop task, or
`lf-tally`'s Next question, and in records of what earlier runs used.

Checks: `pnpm run check` (browser 107, runtime 406, worker 82, evals 8, bundles
match a rebuild); the model suites for to-dos, asks, contracts, layer, activity,
document, hooks and evals (1013 passed); and 31 browser and journey cases: those whose code or assertions
changed, and those that open the conversation-workspace example.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts:
#	TODO.md
#	notes/floating-panel/GOAL.md
#	tests/browser/test_render_navigation.py
leaf-agent
leaf-agent previously approved these changes Oct 13, 2026
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
leaf-agent previously approved these changes Oct 13, 2026
# Conflicts:
#	skills/leaf/assets/runtime/floating-panel.js
leaf-agent
leaf-agent previously approved these changes Oct 13, 2026
# Conflicts:
#	skills/leaf/assets/runtime/floating-panel.js
leaf-agent
leaf-agent previously approved these changes Oct 13, 2026
@max-sixty
max-sixty merged commit b38b82b into main Oct 13, 2026
3 checks passed
@max-sixty
max-sixty deleted the first-person-voice branch October 13, 2026 23:51
max-sixty added a commit that referenced this pull request Oct 14, 2026
Strict `tsc` covered only `build/browser/*.ts` and the seven runtime
modules marked `// @ts-check`; the other ~240 files under
`skills/leaf/assets/runtime/` were unchecked. `pnpm run check:browser`
(and so `pnpm run check`, the PR `test` job and `wt merge`'s pre-merge
`node-checks`) now runs a second, non-strict `checkJs` program over
every runtime module and the render checks pages import from `/checks/`.
It found about 400 errors on main, and this PR clears them, mostly with
JSDoc types, casts and narrowing.

## How the gate is wired

- `build/browser/tsconfig.runtime.json` is the non-strict program.
`paths` resolves the runtime's rooted imports (`/vendor/…`,
`/runtime/…`, `/checks/…`). Its `include` also pulls in Web Awesome's
`copy-button` and `input` declarations, which add those tags to the tag
map.
- `build/browser/tsconfig.json` now includes every runtime module
(unchecked unless it carries `// @ts-check`), so any module that opts
into strict mode is checked strictly, whether or not the framework
imports it.
- `build/browser/build.mjs` (`typecheck`) runs both programs. tsc checks
a JS file wherever an import reaches it, under the options of the
program it's in, and has no per-file opt-out. So from the runtime
program the build drops diagnostics in vendored third-party bundles and
in files the strict program owns (`.ts` and `// @ts-check`). Every other
diagnostic fails the build. The runtime program takes about 1.2 s.
- The framework's types reach the runtime through a generated
`skills/leaf/assets/vendor/browser-runtime.d.ts` (`export * from
"…/build/browser/index.ts"`). Before, tsc inferred them from the
compiled facade (types blanked) and the minified Lit bundle, which
produced bogus errors such as `render(): symbol` on `LitElement`
subclasses. This file ships in the layer like the `.LICENSES.txt` files
beside it; nothing loads it at runtime.
- `build/browser/runtime-globals.d.ts` declares, in one place:
- what `prepaint.js` and `bootstrap.js` hang on `<html>` (`lfInitial`,
`lfStorage`, `lfKeyboard`, `lfChrome`, `lfViews`, `lfInputs`,
`lfDocumentLifetime`, `lfStartupException`, `lfSample`) and on `window`
(`lfSampleBridge`);
  - the entry script's `lfDocumentPort` and `lfRenderingState`;
- the events dispatched with a detail (`lf-startup-failed`,
`lf-command-invoked`, `lf-held-keys`, `lf-reveal`, …);
- the runtime's custom elements by tag, through a `@typedef` beside each
class.

  The scripts' assignments are checked against these declarations.

## Declarations corrected at their owner

`application.ts` didn't declare served-state fields the runtime already
reads: `files` (each binding's stamp), `browser.version_notes`,
`browser.history`, the undo entries' `newest`, the report feed's fields,
and a to-do subject of kind `element`. `thread/model.js` now accepts the
readonly thread snapshots its callers pass. `askValue` takes an
`Immutable` widget. `retainUserIntent`, `watchArrivals`, `rowWalk`,
`closeLayer` and similar functions get parameter types where defaults
had inferred narrower ones.

## Behavior the types exposed

- **Bug, fixed:** `queue-walk.js` subscribed to
`effective.queues.questions`, a field #2783 renamed to `on_user`. The
selection was always `undefined`, so the walk never asked for a key
repaint when On me emptied or filled. It now selects `on_user`.
`tests/runtime/queue-walk.test.mjs` covers it: it fails on the old line
and passes on the new one.
- **Dead code, removed:** `comment.create` declared `description: () =>
commentDestination().description`. `commentDestination` stopped
returning `description` in #1654, so the field always answered
`undefined`; every consumer resolves it through
`word()`/`descriptionOf`, so removing it changes nothing.
- Two edits change code shape without changing behavior: a boolean
subtraction in a sort comparator now goes through `Number()`, and two
Lit directives' `render()` now declare the values `update()` already
received.

## Checks

`pnpm run check`, including `test:runtime` (423 tests), passes. Focused
pytest `tests/model/test_unused_exports.py`, `test_interact_layer.py`,
`test_distribution.py` and `test_module_url_delivery.py` (238 tests)
pass. Pre-commit passes on every changed file. An injected property
error in a runtime module fails `check:browser` with the diagnostic.

Not covered yet: `skills/leaf/assets/leaf.js` and the packages' widget
modules sit outside `runtime/` and aren't in the runtime program.

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

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty added a commit that referenced this pull request Oct 14, 2026
The interface called the thing waiting on the user a question in some
places and an ask in others. Following the rename to On me (#2783), the
user chose to name it by the list it sits in rather than pick either
noun.

- `lf-tally`'s control is now "Next on me", matching the On panel's,
titled "Go to the next ask on me here".
- Where a label has to name one item's kind beside Thread, To-do and
Update, it says ask: an `lf-ask`'s word (so the shortcut bar reads
"comment on the ask" and the margin heading "ask · …"), and the command
reference's scopes "In this ask", "In an ask's options" and "In a
settled ask".
- The glossary's Ask entry records the rule; the TODO entry asking for
one word goes. The feature gallery's prose and the corpus follow.

Checks: `pnpm run check` (browser 109, runtime 422, evals 8); the tally,
comment-target and margin-naming browser tests that assert the changed
words.

> _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