Repository navigation
Rename On me items to obligations under page protocol 11 - #3196
Merged
Merged
Conversation
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
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
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
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
reviewed
Oct 20, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
The QueueRow description still directs readers to the removed items field. The inline suggestion points it at the served obligations inventory.
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
leaf-agent
approved these changes
Oct 20, 2026
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]>
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.
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:
/api/stateview andleaf page stateserveobligationswhere they serveditems; a thread reading carriesthread.obligations; an On me row's joined record isrow.obligation; the On me walk's stop kind and a plan step's reading saykind: "obligation". The served-state schema'sItemandItemRowdefinitions areObligationandObligationRow, so the generated type isServedObligation.readObligations(),obligationsIn,obligationActions,obligationPlace,obligationHolding,ObligationRecordand the other item-sense helpers;ANSWER_ITEM_INSTRUCTIONisANSWER_INSTRUCTION, since it tells the agent how to answer updates.items.pyisobligations.pyandruntime/items/isruntime/obligations/, with their tests.unanswered-obligations,duplicate-obligation,approval-obligation,widget-obligation,ended-obligation, and their messages.data-lf-obligation,data-lf-obligations,--lf-obligation-ring, and the render gate'spx-obligation-N.pngcaptures.Still "item":
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.startevent'sitemand a plan step'sitemfield, which name a to-do, an update or an obligation, andunknown-plan-item.itemthat hold a record.activity.obligationskeeps 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.