Skip to content

Remove per-record obligations (awaits.records) - #6886

Merged
max-sixty merged 4 commits into
mainfrom
agent-a0038ad17862dcdcc
Nov 23, 2026
Merged

max-sixty merged 4 commits into
mainfrom
agent-a0038ad17862dcdcc

Conversation

@max-sixty

@max-sixty max-sixty commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

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 set rows each get their own On Me item, answered, reached with m and discussed separately. Instead they write one asking widget per item, such as an lf-options per 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.detail now 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 check and pre-commit pass.

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

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
max-sixty marked this pull request as ready for review November 23, 2026 19:23
leaf-agent
leaf-agent previously approved these changes Nov 23, 2026
# Conflicts:
#	tests/fixtures/packages/records/registry.json
@max-sixty
max-sixty merged commit 5962c45 into main Nov 23, 2026
6 checks passed
@max-sixty
max-sixty deleted the agent-a0038ad17862dcdcc branch November 23, 2026 19:47
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_
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