Skip to content

Store meaning.scope, name deferred payloads once, and resolve each verb's writer once - #1101

Merged
max-sixty merged 7 commits into
mainfrom
finish-cutovers
Sep 24, 2026
Merged

max-sixty merged 7 commits into
mainfrom
finish-cutovers

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

This finishes cut-overs that #1076, #1082 and #1091 left half done, as found in a review of those PRs.

meaning.scope replaces meaning.document.

  • Before, "document" named two shapes: the stored "page" | "thread" and the {kind, revision} identity that requests, lifecycle seats and the runtime use.
  • Admission now stores meaning.scope.
  • One helper, 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 of meaning["document"] now go through it too.
  • Contract: the $events meaning schemas and handling when clauses, events.md, the seed logs, three snapshots and the delivery sample in how-it-works.html are 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;
  • the error strings;
  • packages.md and page-storage.md.

The writer is resolved once.

  • In Python, state_specs(entry, writer=…) filters by writer, and verb_writer(spec) answers for one verb. The five call sites that restated "absent means user" use them.
  • In the browser, registry.adoptRegistry() sets writer on every x-state verb when the vocabulary arrives, so stateSpecs, widgets and the command hub read one value.

Created children.

  • gesture_words and the version gate take a created child's tag from meaning.creates rather than re-deriving it.
  • passages.shown_words is now the one reading of a created child's x-text-format, used by passage capture, the gate and gesture wording.

example_data.captured_value refuses a lines range on a unified-diff capture instead of silently ignoring it.

The event-log page. Its captured records are regenerated for scope, the note anchors follow them, and the note on meaning names scope.

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:browser clean; test:browser 64. A nightly subset over diff, data, deferred, request, receipt, create, writer and report passed 303.

🤖 Generated with Claude Code

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

max-sixty and others added 7 commits September 23, 2026 23:49
`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]>
@max-sixty
max-sixty merged commit 195eb6a into main Sep 24, 2026
5 checks passed
@max-sixty
max-sixty deleted the finish-cutovers branch September 24, 2026 07:49
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