merge(review): assess extension proposal against current owners
Keep ADR-0020 proposed and return nine scoped outcomes from architecture, client-lifetime, authority and wire/storage reviews. Require a paired experiment against the same plain-owner extraction before adding a generic part interface or record envelope. Runtime layouts, shared leases, deletion and copy semantics remain the accepted contracts. Record matching Windows and Linux package acceptance, Android static compatibility, original-page readiness controls and the later output-recovery repair. No plugin framework or new public wire contract is introduced.
This commit is contained in:
commit
a16f647e04
4 files changed
+248
-4
No files matched your search
@@ -68,7 +68,7 @@ cover explicit Stop, inactive widgets, persistence status and narrow controls.
|
||||
consumed under the Domain lock. Ready/navigation links no longer contain
|
||||
the durable seed; personal credentials reconnect normally. Manual standalone
|
||||
Server bootstrap is unchanged. Native session integration and the full
|
||||
check pass; matching WebView package acceptance remains. Previously exposed
|
||||
check and matching WebView package acceptance pass. Previously exposed
|
||||
seeds are not revoked by this change.
|
||||
4. **Defer unconfirmed ingress/resource concerns** to public Demo acceptance;
|
||||
first trace existing admission and resource bounds. **Decline a timing-defense
|
||||
@@ -118,12 +118,56 @@ ignored dtx. Both offers/answers omitted usedtx. Stable silence still sent
|
||||
Opus DTX reduces synthetic silence bytes, but does not prove a Browser room-
|
||||
voice toggle. See local round13/browser-dtx and round11/native-dtx.
|
||||
|
||||
## ADR-0020 through 19ef5726
|
||||
|
||||
The proposal is now in the tree as proposed, not as a replacement for the
|
||||
accepted engineering or compatibility rules. Four independent reviews traced
|
||||
the actual consumers, authority, layouts and record formats. Keep the goal of
|
||||
composable parts; use a paired implementation to choose the mechanism.
|
||||
|
||||
| Item | Outcome |
|
||||
| --- | --- |
|
||||
| 1 · Vocabulary and locations | Defer universal Point/Contribution types until the owning operation and its second consumer are concrete. The four execution locations are useful distinctions. |
|
||||
| 2 · Universal kind envelope | Defer the cross-machine contract. Watch has commands, requester-only results, projections and independent byte delivery; three record classes do not remove those rules. Keep compiled validators at their authority. |
|
||||
| 3 · Fallback and retention | Defer a universal retention rule to a concrete content consumer. Same-room lossless restore and cross-room copy have different identity semantics. Unknown opaque references cannot be generically remapped. |
|
||||
| 4 · Scope tree | Decline mandatory parent teardown of activities and shared resources. A local cleanup stack may release its own listeners and borrowed leases. Closing a tool, browsing another room and leaving one shared connection user do not end their parents' or siblings' work. |
|
||||
| 5 · Compositions | Decline separate full/simple builds as a required proof. Both are runtime views of one session; simple sharing still supports chat, voice and multiple pictures. Direct typed imports already check required constructor dependencies. |
|
||||
| 6 · Program identity | Defer enrollment fields to an authenticated program-enrollment action. Mark registered programs; ordinary credentials cannot prove whether software or a human drives them. Current authorized history reads also do not require Browse, so the proposed universal visible-reading guarantee is not implemented. |
|
||||
| 7 · Providers | Take internal, owner-specific provider contracts where real interchangeable implementations use them. Do not force synchronous SQLite and asynchronous Browser transactions behind an unused common facade, or publish planner/transport interfaces without a consumer. |
|
||||
| 8 · Publication stages | Take internal/proposed/stable review for extension points. Keep public wire and storage compatibility with their existing owner; it cannot depend on first recruiting outside consumers. |
|
||||
| 9 · Pilot | Take a paired private experiment. Apply identical ADR-0015 extraction to both arms first. Attribute only additional removed mappings/dependencies to the part interface. Check preserved sibling use and lease retirement; absolute connection counts include legitimate standby reuse. Retain no failed experimental abstraction by default. |
|
||||
|
||||
The initial watch commit 74035b62 gives a reproducible eleven-touchpoint list,
|
||||
but several implement genuine room semantics or the player. WatchMedia already
|
||||
has concrete providers. Start the comparison there or at the owned Stage handoff;
|
||||
do not count two media providers as two independent activities.
|
||||
|
||||
One synthetic five-field encoding changed a short message's existing WASM
|
||||
signed packet from 727 to 789 bytes. A 1,000-short-message SQLite fixture grew
|
||||
315,392→385,024 bytes; this is a candidate-format measurement, not a product
|
||||
storage forecast. More consequential: append-only retraction conflicts with
|
||||
current body/thumbnail/quote deletion and file withdrawal, and one revision
|
||||
requires a coherent full-message merge. These costs need explicit decisions.
|
||||
Local reports and reproducible scripts: round15/extensions. No framework,
|
||||
envelope, reserved field or new permission mechanism was implemented.
|
||||
|
||||
## Validation
|
||||
|
||||
Full Rust, Native session, real Browser/WASM and protocol checks passed, then
|
||||
2,342 Web tests. The subsequent voice-only change passed TypeScript and 30
|
||||
related tests. Installed Domain-47 Node SDK signed exchange passed at 1db2a858.
|
||||
OBS/WHIP High-10 rejection and compatible 8-bit playback passed at 79c94549.
|
||||
Physical devices, difficult NATs, matching Native same-page replacement and the
|
||||
next immutable App package remain separate acceptance. The 2.x branch received
|
||||
the touch-cancel docking repair in 3b009edc. No public release or deployment.
|
||||
Matching review-7f52281b Windows and Linux packages now pass automatic runtime
|
||||
acceptance. Windows covers WebView/Browser owner tickets, storage failure,
|
||||
reconnect, window controls and room creation. Linux checks real restart and
|
||||
restore lineage with signed history. Android ARM64/x64 APK compilation, signing,
|
||||
16 KiB alignment and shared Web hashes pass; no device installation was attempted.
|
||||
Original-page Windows and Browser delayed/403/retry/reconnect controls also pass.
|
||||
The native original page currently reports joined membership after becoming
|
||||
playable; it does not expose presented-frame proof to the Piik tile.
|
||||
|
||||
842bb206 adds the later output-recovery UI repair: an existing video frame must
|
||||
not hide a failed audio-device selector. TypeScript and 33 targeted tests pass;
|
||||
the frozen 7f package predates it. Physical devices, difficult NATs and broader
|
||||
website coverage remain in TODO. The 2.x branch received the touch-cancel docking
|
||||
repair in 3b009edc. No public release or deployment.
|
||||
@@ -139,6 +139,42 @@ promise.
|
||||
changed meaning, host and relay, in the naming standard. ADR-0008 and 0011
|
||||
need your statement of what applies to 3.0; I could not tell.
|
||||
|
||||
## ADR-0020: one vocabulary for extension
|
||||
|
||||
The owner wants bots, API clients, plugins, new activities and providers to
|
||||
be the same kind of thing underneath, with built-ins on the same points, and
|
||||
the scaffolding designed now, after the harness whose every part is a plugin.
|
||||
That reverses two things you and I had agreed: the standard's refusal of a
|
||||
generic plugin framework, and the deferral of the activity envelope in
|
||||
ADR-0017. [ADR-0020](../../docs/adr/0020-one-vocabulary-for-extension.md) is
|
||||
proposed. Three designers worked from the requirements and from the primary
|
||||
documents of that harness and of seven older designs; the one asked to find
|
||||
where a plugin boundary costs more than it gives reached the same shape.
|
||||
|
||||
What I expect you to test, and where the proposal already agrees with you:
|
||||
|
||||
- **No loader and no solver.** Compositions are static lists resolved at
|
||||
build, and a missing need is a build error. Nothing is loaded at run time.
|
||||
- **The writer runs the compiled core only** and never reads a payload's
|
||||
meaning. A kind is ordered and stored under one of three classes: history,
|
||||
state with a revision to match, and signal.
|
||||
- **A point with one role is not declared.** It needs a definition, a
|
||||
provider and a consumer in the tree. Reachability and forwarding get no
|
||||
published interface; storage gets an internal one because three
|
||||
implementations exist.
|
||||
- **Proof before promise, with a stop.** Watch-together moves first. A second
|
||||
activity must then land without a kernel change, and the session hub must
|
||||
shrink by more than the framework adds. If a built-in needs a side door,
|
||||
the part interface is dropped and only scopes and kinds stay.
|
||||
- **Scopes are the ADR-0015 owners.** Not a layer above them.
|
||||
|
||||
What changes for the contract, if you take it: the record envelope (kind,
|
||||
major version, class, opaque payload, fallback), unknown kinds stored and
|
||||
unknown classes refused, capability names in the handshake, a program marker
|
||||
with who added it in the membership record, and one reserved field. Please
|
||||
give its nine decisions an outcome, and say what the envelope would cost in
|
||||
the present wire.
|
||||
|
||||
## ADR-0019: the life of a message
|
||||
|
||||
The owner wants sending, editing, deleting and searching decided for 3.0, and
|
||||
|
||||
@@ -0,0 +1,159 @@
|
||||
# ADR-0020: One Vocabulary For Extension
|
||||
|
||||
- Status: proposed
|
||||
- Date: 2026-11-25
|
||||
|
||||
## Context
|
||||
|
||||
The [canon](../canon.md#how-it-is-built) asks for a small core that is open to
|
||||
extension. The owner's direction goes further: a bot, an API client, a plugin,
|
||||
a new activity and a provider are the same kind of thing underneath, the
|
||||
built-in features should attach through the points the community would use,
|
||||
and the scaffolding should be designed now.
|
||||
|
||||
The model is an agent harness built wholly from plugins on a small kernel: a
|
||||
plugin declares what it needs and provides, every registration can be undone,
|
||||
a seam has a definition, a provider and a consumer, and the product itself is
|
||||
composed from plugins only. One thing does not carry over. That harness serves
|
||||
one trusted person on one machine. In a room, other people are affected by
|
||||
code they never approved, stored history cannot be undone, and each
|
||||
participant may run different extensions, so the shared rules have to stay
|
||||
fixed.
|
||||
|
||||
Today a new activity touches about eleven files outside the interface, a
|
||||
headless text participant already joins like a person, and the standards
|
||||
refuse a generic plugin framework. Three designers worked from the
|
||||
requirements and this evidence without reading the repository, one of them
|
||||
asked to find where a plugin boundary costs more than it gives. They agree on
|
||||
what follows.
|
||||
|
||||
## Decision
|
||||
|
||||
1. **One vocabulary, four places.** A *point* is a typed place of attachment
|
||||
declared by its owner. A *contribution* is data attached to a point, with
|
||||
code loaded when needed. A *scope* is a lifetime that undoes everything
|
||||
registered in it. A *kind* names shared room data. A *composition* is a
|
||||
named list of parts. Authority never comes from being an extension: it
|
||||
comes from admission, or from operating a machine.
|
||||
|
||||
| Place | What runs there | What it can never do |
|
||||
| --- | --- | --- |
|
||||
| The room's writer | The compiled core only | Run community code, or let one record alter or block another |
|
||||
| A person's client | Parts compiled into the build | Start capture, the microphone or control except through that person's act |
|
||||
| A participant process | A bot or API client | More than a person can do on the wire, or be present without a marker |
|
||||
| The operator's machine | Providers | Decide admission or order |
|
||||
|
||||
2. **A kind is the only thing that crosses machines.** It is namespaced and
|
||||
carries a major version, an opaque payload and a short fallback text. The
|
||||
writer orders and stores it under one of three classes: *history*,
|
||||
appended; *state*, the latest value per key with a revision that a write
|
||||
must match; and *signal*, relayed and not stored. The writer checks the
|
||||
sender, the class rule, size and rate, and never the meaning. Built-in
|
||||
kinds are declared in the same registry. They may have validators compiled
|
||||
into the core, and that privilege is stated openly.
|
||||
3. **Without the extension, a person sees the fallback.** Records stay with
|
||||
the room, are exported as they are, and are never migrated by the core.
|
||||
Removing an extension stops rendering and nothing else.
|
||||
4. **The client is a tree of scopes**: application, channel, room, activity,
|
||||
capture. Every registration returns the means to undo it, and a scope that
|
||||
ends undoes them in reverse. This is the split of the session hub that
|
||||
[ADR-0015](./0015-browser-session-lifetime-owners.md) decided, not a layer
|
||||
above it. Events notify; nothing intercepts. The consent to capture, the
|
||||
indicators of who sees and hears, the join flow, the pools and the planner
|
||||
belong to the kernel and are not points.
|
||||
5. **Compositions are static.** The full place and plain screen sharing are
|
||||
two lists of the same parts, resolved when the client is built. A missing
|
||||
need is a build error that names it. There is no loader, dependency solver
|
||||
or reload at run time.
|
||||
6. **A program is a participant.** The writer records at admission that it is
|
||||
a program and who added it, and the kernel draws that marker. It has a
|
||||
person's actions and limits. Nothing reads a room without appearing in it.
|
||||
7. **Providers stay on the operator's side, compiled in.** Storage has an
|
||||
internal interface, because three implementations exist. Reachability and
|
||||
forwarding get a published interface when a second independent implementer
|
||||
appears.
|
||||
8. **Internal, proposed, stable.** A point starts internal and free to change.
|
||||
It becomes a promise when two independent consumers use it, one of them
|
||||
outside the tree, a conformance test exists, and its absence has a defined
|
||||
result. After that it only grows, and a break is a new name. The first
|
||||
release publishes the wire and storage contract and nothing of the client's
|
||||
part interface.
|
||||
9. **Proof before promise.** Watch-together moves onto the framework first.
|
||||
Then a second activity must land without a change to the kernel, a hundred
|
||||
joins and leaves must return every connection, listener and timer to its
|
||||
baseline, a build without the part must show the fallback without error,
|
||||
the plain-sharing build must contain no conversation code, and the session
|
||||
hub must shrink by more than the framework adds. If a built-in needs a side
|
||||
door, or the code has grown after two features, the scopes and kinds stay
|
||||
and the part interface is dropped.
|
||||
|
||||
## Settled Before The First Release
|
||||
|
||||
These go into [ADR-0017](./0017-contracts-fixed-before-release.md)'s contract,
|
||||
which deferred the activity envelope until a consumer needed it.
|
||||
|
||||
- The envelope on every room record: kind, major version, class, opaque
|
||||
payload and fallback text.
|
||||
- A record of an unknown kind in a known class is ordered and stored. An
|
||||
unknown field is kept. An unknown class is refused with a stated reason.
|
||||
- The handshake carries a version and an open set of capability names in both
|
||||
directions, and the writer states its limits.
|
||||
- The membership record says whether a participant is a program and who added
|
||||
it.
|
||||
- Refusals carry reasons from an open set, and an unknown reason is a plain
|
||||
failure.
|
||||
- Stored records keep their payload as committed, under a format version.
|
||||
- One reserved field for rules that a kind might later bring to the writer.
|
||||
|
||||
## Later, Under Conditions
|
||||
|
||||
- **Community interface code** runs in a sandboxed frame with no network,
|
||||
served by the person's own channel and pinned by its hash. It waits for the
|
||||
first activity that someone outside the tree wants to write.
|
||||
- **Community rules at the writer**, as a pure function that accepts or
|
||||
refuses a record, wait for two real activities that the three classes and a
|
||||
referee participant cannot express, and for a measured bound on what it
|
||||
costs a Browser that hosts a room.
|
||||
|
||||
## Not Built
|
||||
|
||||
Community code in the writer or in a client's own realm. Hooks that intercept
|
||||
or rewrite another person's record. Permissions or roles for extensions.
|
||||
A registry run by the project, or code loaded from an address. Undoing a
|
||||
shared effect: a retraction is another ordered record. A point with a
|
||||
definition and no second provider or consumer.
|
||||
|
||||
## Where The Designs Differed
|
||||
|
||||
| Topic | Positions | Taken here |
|
||||
| --- | --- | --- |
|
||||
| Provider interfaces | Three published seams (two); storage only, internal (one) | Storage only, until a second implementer exists |
|
||||
| Classes of shared state | Three (two); two, without signals (one) | Three, since signaling already exists |
|
||||
| Rules of a community activity | A referee participant (two); the same reducer in every client (one) | Left to the first real activity |
|
||||
|
||||
## Consequences
|
||||
|
||||
- The sentence in the engineering standard that refuses a generic plugin
|
||||
framework gives way to this record for the points it defines.
|
||||
- The activity envelope moves from deferred to settled before release.
|
||||
- Each owner taken out of the session hub is written as a scope.
|
||||
|
||||
## References
|
||||
|
||||
- [Reference harness](https://github.com/deepseek-ai/deepseek-harness) and its
|
||||
[framework primer](https://deepseek-harness.github.io/deepseek-harness/en/reference/cordis-primer):
|
||||
services, typed events, reversible effects, seams and profiles. Its plugin
|
||||
code is not sandboxed.
|
||||
- [Extension host](https://code.visualstudio.com/api/advanced-topics/extension-host)
|
||||
and [proposed API](https://code.visualstudio.com/api/advanced-topics/using-proposed-api):
|
||||
extensions outside the page, and proposed apart from stable.
|
||||
- [Extension points](https://backstage.io/docs/backend-system/architecture/extension-points):
|
||||
declared by their owner, additions only, a new name to break.
|
||||
- [Extensible events](https://github.com/matrix-org/matrix-spec-proposals/blob/main/proposals/1767-extensible-events.md):
|
||||
a text fallback for a type a client does not know.
|
||||
- [How plugins run](https://developers.figma.com/docs/plugins/how-plugins-run/):
|
||||
a sandbox with a narrow interface.
|
||||
- [The future of developing add-ons](https://blog.mozilla.org/addons/2015/08/21/the-future-of-developing-firefox-add-ons/):
|
||||
what complete access to internals cost.
|
||||
- [Extending Caddy](https://caddyserver.com/docs/extending-caddy): modules
|
||||
compiled in, with provision, validation and cleanup.
|
||||
@@ -246,6 +246,11 @@ the feedback period; they do not delay that delivery.
|
||||
search, quote behavior and the merge rule for text and reaction changes.
|
||||
Set stored fields and capabilities with their consumers. Before publication,
|
||||
verify that supported archive round trips preserve meaningful row data.
|
||||
- [ ] **One vocabulary for extension.** Decide
|
||||
[ADR-0020](./adr/0020-one-vocabulary-for-extension.md) through a bounded
|
||||
comparison with plain lifecycle-owner extraction. Identify concrete providers
|
||||
and consumers, preserve both runtime layouts and shared-resource lifetimes,
|
||||
and settle deletion, copying and authority before changing the wire or stores.
|
||||
- [ ] **Shared participant boundaries and decoding.** Measure avoidable WASM
|
||||
projection crossings and unused return data before changing their boundaries.
|
||||
Keep image restoration owned by each physical connection. Any generated types
|
||||
|
||||
Reference in new issue
Block a user