Repository navigation
Store meaning.scope, name deferred payloads once, and resolve each verb's writer once - #1101
Merged
Merged
Conversation
`meaning.document` held "page" or "thread" while every reader, from request
seats to the runtime's descriptors, called the `{kind, revision}` identity a
document. Admission now stamps `meaning.scope`, and `events.document_identity`
turns a scope and revision into that identity for admission's request
lifecycle check, `event_document`, and the served thread and page request
readings, which each built the dict inline.
Contract moves: the $events meaning schemas, the `handling` `when` clauses,
events.md, the seeded logs, the event-log page's captured records, and the
delivery sample now name `scope`.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The contract declares `records.deferred`, but the door that serves one row's deferred field called it a fragment: `/api/data`, `data.data_fragment`, the widget API's `loadDataFragment`, and their refusals. One word now runs from the contract to the widget. Contract moves: the route is `/api/deferred`, the widget API exports `loadDeferred(snapshot, key)` (lf-diff and packages.md follow), Python's reader is `data.deferred_value`, and its refusals name an "unknown record key" and a record with "no deferred value". Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
"Absent means user" was restated wherever a caller filtered verbs by who writes them. Python's `registry.contract.state_specs(entry, writer=...)` now narrows to one side through `verb_writer` (renamed from `writer`, which the new keyword shadows), and the registry, state, and event-contract checks call it rather than filtering by hand. The browser resolves it where the vocabulary arrives: `registry.adoptRegistry` stamps `writer` as `user` or `agent` on every x-state verb, so `stateSpecs`, widget descriptors' captured declarations, the application publisher, and the command hub read one value. The publisher now offers controls for verbs whose writer is `user` rather than for those that are not `agent`. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
… rule Two readers re-derived facts they already had. `gesture_words` and the version gate's transition check looked a created child's tag up in the creator's declaration though admission stores it as `meaning.creates`; they now read it there, and only the name of the detail field carrying the words still comes from the declaration. The `x-text-format` rule for a child's words lived twice: `created_words` for a created child, and inline in the passage reader's `handle_data` with the added flag. `passages.shown_words(words, entry, added=...)` now owns it, and both readers call it. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
`captured_value` returned the whole patch's manifest and silently ignored a `lines` range beside `"format": "unified-diff"`. It now refuses that combination, and examples/AGENTS.md says so. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…e scope Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Sep 24, 2026
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 finishes cut-overs that #1076, #1082 and #1091 left half done, as found in a review of those PRs.
meaning.scopereplacesmeaning.document."page" | "thread"and the{kind, revision}identity that requests, lifecycle seats and the runtime use.meaning.scope.events.document_identity(scope, revision), builds the identity.event_document, admission's request check and the served request readings all use it. The two direct reads ofmeaning["document"]now go through it too.$eventsmeaning schemas andhandlingwhenclauses,events.md, the seed logs, three snapshots and the delivery sample inhow-it-works.htmlare updated. Each snapshot diff is only the rename.One word for deferred payloads. The contract already said
records.deferred. The door and the API now say it too:data_fragment→deferred_value;/api/data→/api/deferred;loadDataFragment→loadDeferred;packages.mdandpage-storage.md.The writer is resolved once.
state_specs(entry, writer=…)filters by writer, andverb_writer(spec)answers for one verb. The five call sites that restated "absent means user" use them.registry.adoptRegistry()setswriteron everyx-stateverb when the vocabulary arrives, sostateSpecs, widgets and the command hub read one value.Created children.
gesture_wordsand the version gate take a created child's tag frommeaning.createsrather than re-deriving it.passages.shown_wordsis now the one reading of a created child'sx-text-format, used by passage capture, the gate and gesture wording.example_data.captured_valuerefuses alinesrange on aunified-diffcapture instead of silently ignoring it.The event-log page. Its captured records are regenerated for
scope, the note anchors follow them, and the note onmeaningnamesscope.Tests. Everyday suite on the merge with main: 1364 passed, and one failure under parallel load that passed alone.
npm run test:runtime: 91.check:browserclean;test:browser64. A nightly subset over diff, data, deferred, request, receipt, create, writer and report passed 303.🤖 Generated with Claude Code