Repository navigation
Remove per-record obligations (awaits.records) - #6886
Merged
Merged
Conversation
A widget's `awaits` can no longer declare `records`, which owed the user one On Me obligation for each record of the widget's bound data. Each widget that asks now owes one obligation, `widget:<id>`, and served obligations no longer carry `source.unit`. Its only bundled user was the visual-review package, which #6832 removed; since then only a test fixture declared it. Removed with it: the registry schema key and its two refusals (`awaits-records`, `answering-record`); the `data set` check that each record carries a non-empty obligation label; the server's per-record inventory, which made every reading of the page's work, admission's included, read and validate the page's bound data; the narrowing of which obligations a comment on one record is about; and the browser's placement, current-target naming, arrival reveal, On Me card and answer value for a record's obligation. Kept: a data contract's own `records` (`items`, `key`), which `lf-diff`, the `files` contract and an example still declare, so `data set` still refuses missing or repeated keys; `data-lf-datum` marks and the anchor reveal they feed; and `answered.detail` conditions, whose refusal of an undeclared value now runs on `lf-suggestion`. Tests: the six tests of per-record obligations go (four model, two browser), with the three shared obligation-value cases that read one unit. The fixture package `tests/fixtures/packages/records` stays without `awaits` or a verb: its widget now only shows a run's cases with a thread seat on each, for the two seated-thread tests that prove a comment box keeps its seat, words, focus and undo history while the data under it reorders or changes. Their helpers move from the walk tests to `test_seated_threads.py`. The comparison-transaction test drops the data-read check #3537 added for the per-record inventory, since nothing on that path reads data now. The page protocol does not move: no logged event's schema changes.
# Conflicts: # browser/types/contract.d.ts # src/leaf/registry/state.py
max-sixty
marked this pull request as ready for review
November 23, 2026 19:23
leaf-agent
previously approved these changes
Nov 23, 2026
# Conflicts: # tests/fixtures/packages/records/registry.json
leaf-agent
approved these changes
Nov 23, 2026
max-sixty
added a commit
that referenced
this pull request
Nov 23, 2026
Two files conflicted with #6886, which removed per-record obligations (`awaits.records`): - browser/runtime/obligations/view.js: `arriveAtRecordNow` keeps this branch's `prepareNavigationStep()` before the thread's source is drawn, with main's comment on that drawing; main's removal of the record owner's reveal merged cleanly. - tests/browser/navigation/test_obligation_walk.py: keeps this branch's `m`-walk Back-step test and its `IN_THREAD` reader, and drops the records tests and imports main removed with the feature. > _This was written by Claude Code on behalf of max-sixty_
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.
This removes per-record obligations: a widget's
awaits.records, which owed the user one On Me item per record of its bound data. Nothing Leaf ships has declared it since #6832 removed visual-review. Gone: the schema key, two registry refusals, the server's per-record inventory (which made every work reading, admission's included, read and validate page data), and the browser's per-record placement, arrival, card and answer paths. 746 lines out, 115 in; 296 of those out are deleted tests.A package author can no longer make one widget whose
leaf data setrows each get their own On Me item, answered, reached withmand discussed separately. Instead they write one asking widget per item, such as anlf-optionsper case in a labelled group, which ties items to revisions rather than data, or give the widget one obligation for the set.Max chose the removal after a trial gave the mechanism a bundled use, a "Reviewed" answer for each file of an
lf-diff. On a 30-file patch On Me repeated the file list, each check reached the agent as its own update, and a file the agent revised stayed reviewed. One question for the whole diff served better.Not in the diff:
answered.detailnow has no bundled user either; the page protocol doesn't move.Tests: 1,170 focused model and process tests, eight browser tests by node id,
pnpm run checkand pre-commit pass.