docs(adr): correct what the writer and the tree already do

The signed chat command already refuses an unknown field, and a text
participant outside a browser already joins, reads and writes as an
ordinary member. A search keeps its matches because the reader holds a
bounded window.
This commit is contained in:
AAA committed 2026-11-27 03:51:41 -05:00
1 parent 0bc6ddcf59
commit 874bafcb58
3 files changed
+13 -7

No files matched your search

+7 -3
View File
@@ -66,15 +66,19 @@ is now three rules and their test, with no record type or envelope:
structures reject one (`wire.rs:1040`, `history.rs:23-48`), so one unknown
field inside a reply fails the decoding of the record that carries it.
- A writer refuses a draft that carries anything it does not know, with an
outcome a client can tell from a failed send. Today `MessageDraft` has no
such refusal (`history.rs:158`). `RoomCapabilities` stays the one place a
room says what it accepts.
outcome a client can tell from a failed send. The signed `chat` command
already refuses one as `invalid_conversation` (`conversation.rs:301-307`);
the internal `MessageDraft` ignores one (`history.rs:158`). Is there a path
on which a writer stores or drops an addition without saying so?
`RoomCapabilities` stays the one place a room says what it accepts.
- Each reader is tested with records and a capability list that carry unknown
additions, each writer with a draft that does.
Before any change: trace the three against the real decoders on both sides
(Rust and the TypeScript validators), the page's signature, both stores and
the archive, and tell me what a tolerant reader breaks. Archives stay strict.
The third rule already holds: `channel-browser/node/text-participant.ts`
joins, reads and writes as an ordinary member with no browser.
[ADR-0019](../../docs/adr/0019-the-life-of-a-message.md): search, if it is
built, runs on the reader over the pages it reads. Nothing for you now.
+4 -3
View File
@@ -36,9 +36,10 @@ signed, so a change to a row breaks no signature.
with a change of reactions is set when editing is built; a later change of
reactions must never hide an earlier change of text.
5. **Search runs on the reader**, over the pages it reads. A reader holds
only the pages it has fetched, so a search walks back through the history
with the read that already exists, matches each page as it arrives, shows
how far back it has looked and stops when the person stops it. It is a
a bounded window of the pages it has fetched, so a search walks back
through the history with the read that already exists, matches each page
as it arrives and keeps the matches, shows how far back it has looked and
stops when the person stops it. It is a
literal match of the query within the text, with its treatment of case and
of equivalent characters stated; it does not claim to understand the words
of any language. The writer gains no operation, the wire and the stores no
@@ -63,7 +63,8 @@ holds what survived both.
- *A program is a participant* (decision 5). It joins and acts through
the wire a person's client uses, so no second interface has to keep
step with the first, and joining never comes to depend on something only
a browser has.
a browser has. The tree's own text participant already reads and writes
this way from Node.
An extension point that is not exercised stops working. Each reader is
tested with records and capability lists that carry unknown additions,