Skip to content

Rename On me items to obligations under page protocol 11 - #3196

Merged
max-sixty merged 8 commits into
mainfrom
items-served-once
Oct 20, 2026
Merged

max-sixty merged 8 commits into
mainfrom
items-served-once

Conversation

@max-sixty

@max-sixty max-sixty commented Oct 20, 2026 •

Copy link
Copy Markdown
Owner

What a widget or a version's sign-off waits on the user for is now an obligation, not an item. The record, its readers and the prose that describes it say so throughout.

Renamed:

  • Wire keys: each /api/state view and leaf page state serve obligations where they served items; a thread reading carries thread.obligations; an On me row's joined record is row.obligation; the On me walk's stop kind and a plan step's reading say kind: "obligation". The served-state schema's Item and ItemRow definitions are Obligation and ObligationRow, so the generated type is ServedObligation.
  • APIs: readObligations(), obligationsIn, obligationActions, obligationPlace, obligationHolding, ObligationRecord and the other item-sense helpers; ANSWER_ITEM_INSTRUCTION is ANSWER_INSTRUCTION, since it tells the agent how to answer updates.
  • Modules: items.py is obligations.py and runtime/items/ is runtime/obligations/, with their tests.
  • Finding codes: unanswered-obligations, duplicate-obligation, approval-obligation, widget-obligation, ended-obligation, and their messages.
  • CSS and attributes: data-lf-obligation, data-lf-obligations, --lf-obligation-ring, and the render gate's px-obligation-N.png captures.
  • Prose: the shipped skill and references, AGENTS files, the developing-leaf glossary (which now defines Obligation), the site docs, examples, evals' rubric text and notes. module-reading.md's section is "Reading obligations and the On lists".

Still "item":

  • On me and On rows (QueueItem, queueItemKey, itemNoun, .lf-fp-on-item) and the row-sense words the UI shows, such as "Next item waiting on me", since a row can be a to-do or a resend.
  • A start event's item and a plan step's item field, which name a to-do, an update or an obligation, and unknown-plan-item.
  • Codex App Server turn items, list items, margin and command rows, and local variables named item that hold a record.

activity.obligations keeps its meaning, the updates the agent owes an answer, until a user's message publishes its own obligation record.

The page protocol moves from 10 to 11, since a page vendored at 10 reads the old names.

The shipped instructions now say obligation; the eval cases were not re-scored.

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

What a widget or a version's sign-off waits on the user for is now an
obligation, not an item. The record, its readers and the prose that
describes it say so throughout.

Renamed:

- Wire keys: each `/api/state` view and `leaf page state` serve
  `obligations` where they served `items`; a thread reading carries
  `thread.obligations`; an On me row's joined record is `row.obligation`;
  the On me walk's stop kind and a plan step's reading say
  `kind: "obligation"`.
- APIs: `readObligations()`, `obligationsIn`, `obligationActions`,
  `obligationPlace`, `obligationHolding`, `ObligationRecord` and the
  other item-sense helpers; `ANSWER_ITEM_INSTRUCTION` is
  `ANSWER_INSTRUCTION`, since it tells the agent how to answer updates.
- Modules: `items.py` is `obligations.py` and `runtime/items/` is
  `runtime/obligations/`, with their tests.
- Finding codes: `unanswered-obligations`, `duplicate-obligation`,
  `approval-obligation`, `widget-obligation`, `ended-obligation`, and
  their messages.
- CSS and attributes: `data-lf-obligation`, `data-lf-obligations`,
  `--lf-obligation-ring`, and the render gate's `px-obligation-N.png`
  captures.
- Prose: the shipped skill and references, AGENTS files, the
  developing-leaf glossary (which now defines Obligation), the site
  docs, examples, evals' rubric text and notes. module-reading.md's
  section is "Reading obligations and the On lists".

Still "item":

- On me and On <agent> rows (`QueueItem`, `queueItemKey`, `itemNoun`,
  `.lf-fp-on-item`) and the row-sense words the UI shows, such as "Next
  item waiting on me", since a row can be a to-do or a resend.
- A `start` event's `item` and a plan step's `item` field, which name a
  to-do, an update or an obligation, and `unknown-plan-item`.
- Codex App Server turn items, list items, margin and command rows, and
  local variables named `item` that hold a record.

`activity.obligations` keeps its meaning, the updates the agent owes an
answer, until a user's message publishes its own obligation record.

The page protocol moves from 10 to 11, since a page vendored at 10
reads the old names.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
leaf-agent previously approved these changes Oct 20, 2026
# Conflicts:
#	build/browser/application.ts
#	build/browser/protocol-contract.d.ts
#	skills/leaf/assets/vendor/browser-runtime/application.js
#	skills/leaf/kernel/kernel.json
#	skills/leaf/scripts/leaf/served_state/browser.py
#	tests/browser/test_render_pages.py
leaf-agent
leaf-agent previously approved these changes Oct 20, 2026
# Conflicts:
#	skills/leaf/assets/registry.json
#	tests/model/test_interact_document.py
# Conflicts:
#	notes/browser-reactivity.md
#	skills/leaf/kernel/kernel.json
#	skills/leaf/packages/default/widgets/lf-draft.js
#	tests/browser/navigation/test_key_scopes.py
#	tests/model/test_stop_guard.py
leaf-agent
leaf-agent previously approved these changes Oct 20, 2026
# Conflicts:
#	TODO.md
#	build/browser/application.ts
#	build/browser/protocol-contract.d.ts
#	skills/leaf/assets/registry.json
#	skills/leaf/assets/vendor/browser-runtime/application.js
#	skills/leaf/kernel/kernel.json
#	skills/leaf/kernel/runtime/bundle-queued-work.js
#	skills/leaf/scripts/leaf/events.md
#	skills/leaf/scripts/leaf/schema.py
#	skills/leaf/scripts/leaf/session.py

@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 QueueRow description still directs readers to the removed items field. The inline suggestion points it at the served obligations inventory.

max-sixty and others added 3 commits October 19, 2026 18:37
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts:
#	skills/leaf/packages/default/widgets/lf-tabs.js
# Conflicts:
#	skills/leaf/kernel/kernel.json
@max-sixty
max-sixty merged commit b734b68 into main Oct 20, 2026
2 of 3 checks passed
@max-sixty
max-sixty deleted the items-served-once branch October 20, 2026 02:07
max-sixty added a commit that referenced this pull request Oct 20, 2026
A to-do still reached `page state` and the browser three ways: its
record in `todos`, a copy of its title, start and voice in its On me or
On <agent> row, and a copy of its title and start line in its thread's
`attention.todo`. #3101 kept the row and attention copies because the
banner's side panel read them. The banner is gone (#3100), so this
change shrinks both to ids, as #3184 did for item rows (now obligation
rows, #3196).

**Served state.** A to-do row now carries what an obligation row does
(`kind`, `id`, `owner`, `subject`, `thread`, `live`), and a thread
waiting on a to-do names it by id in `attention.todo`
(`served_state/queues.py`, `served_state/browser.py`,
`state.schema.json`).

**Browser.** The publisher (`localQueues` in `application.ts`) joins
each to-do row to its current record as `todo`, as it joins an
obligation row as `obligation`. `queueTitle`, the panel's On card and
the status explanation read the title and start line from that record.
`module-reading.md` says a `readQueues()` to-do row carries `todo`.

**Agent instruction.** `conversation-loop.md` now says a row names its
obligation or to-do by `id`, and that a to-do's record in `todos` holds
its `title` and the start `running` on it. The new eval case
`on-lists-read-todo-records` gives the agent a shrunk reading whose
`todos` are listed in a different order from the rows, then asks what
waits on each side. On Claude Code the merge base passed 2 of 2 and the
change 2 of 2, both before and after merging #3196's rename. Agents
already joined the rows to their records; the new line keeps the
reference accurate.

**Protocol 11 → 12**, since a page vendored at 11 reads a to-do row's
title from the row. The delivery-format snapshots move with it.

Tests: `pnpm run check:framework`, `pnpm run test:runtime`, the model
todo, workflow, obligation, activity and fold tests, the
interact-contract snapshots, the served-state schema test, and two
browser tests (a to-do on the user ending from the panel, and the Plan
tab's place line).

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