Repository navigation
P5-O18: message reach, design and execution (board #477) - #483
Conversation
The child document for O18: the owner's ruling (DL 223) built as audience streams filtered per writer at the hub, a reach? ask at the receiving endpoint, signed refused events, and operator-only widening setters. Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
Audiences intersect every named session; an org-wide policy registry at the hub refuses out-of-reach uploads with a withheld tombstone; device ingress, audit, archive, every send path, record rebuilds and an endpoint policy cache are covered; M2b added; setters move into M4; M5 becomes an external contract on O8 M6. Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
One reader check (mayRead) for every hub read surface, starting from an inventory; the archive copies only the hub-admitted public projection; a session's machine is bound at its first exposure (listing or snapshot); unlisted becomes a validated transition notice; sessionRefs lists every session reference and narrower provenance is redacted; ReachGate sits in the push primitives; an unreadable established record fails closed; state-unavailable is retried at its position; snapshots? gets its sminos responder, paging and completion. Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
The archive's own-writer frontier is the hub's have, an old sminos or endpoint never receives an audience stream, a split say carries only its own recipients' leading tags, and a valid unlisted notice is admitted by its own rule. Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
A refusal lost to a disconnect never comes back, so the archive could copy a withheld body. The hello's have now lists the machine's own withheld positions, and the archive tombstones them whatever the local file holds. Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9dd7ee6be8
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| - `isHubPosition` (`names.ts:73-81`) accepting `hub/<member>~<digest>` when the digest is the event's audience's, and the device signing and verification rules covering `audience`; | ||
| - `capabilities` on `Rl1Welcome` and on `EndpointHello`; | ||
| - vectors in `apps/org-protocol/test/vectors.test.ts`. | ||
| - **The registry:** `apps/desk-hub/src/objects/policies.ts` (new), kept by the Registry like `OrgRecords`, with `Registry.policies({snapshots, sessions})` (Interfaces §A): one bounded call per upload batch that records the batch's snapshots and answers the rows of the sessions it names. The binding at first exposure: `Registry.storeListing` (`registry.ts:1451`) binds an unbound session id to the listing's machine, as a first snapshot does. The one-time backfill from every project's newest plain snapshots. |
There was a problem hiding this comment.
Preserve pre-transition policy when admitting unlisted notices
When an upload batch contains an unlisted notice followed by its new snapshot, this call records the snapshot before returning the policy rows used for admission. D5 then rejects the notice: its policyRev equals the updated row rather than being newer, and its withdrawn audience is outside the new audience. The refused notice becomes a permanent tombstone, so withdrawn members retain the session in their projections. Preserve the previous policy for notice validation, or process policy transitions in event order within the registry call; include a test with the notice and snapshot in the same batch.
Useful? React with 👍 / 👎.
| - **An old sminos never receives an audience stream.** It copies every log file into the shared git archive (`copy_log`, `sminos_archive.py:109-140`), so a stream it imported would reach the org-readable remote whenever its machine is the project's archiver. Two hellos close this: | ||
| - sminos's RL10 hello (`hello_frame`, `sminos_rl10.py:290-296`, today `capabilities: []`) advertises `audience` only in a release whose archive copies the admitted public projection (D6, M3). The endpoint passes down no frame naming a stream writer (`events`, `have` entries, `spent`, `refused`) to an sminos without it; | ||
| - the endpoint's RL1 hello (`EndpointHello`, `apps/org-protocol/src/relay.ts:99`) advertises `audience` once it applies that rule. `mayRead` (D6) serves a stream to a machine only on an RL1 connection that advertised it, so an old endpoint, and a machine on a direct DX2 stream, gets no stream either. |
There was a problem hiding this comment.
Gate old archivers as well as private-stream readers
If an old sminos is the project's archiver and sends from a stale listed view of a now-private recipient, it still writes the message into its own plain writer. The hub refuses that upload, but withholding audience streams does not remove the local body: the old copy_log copies the entire plain writer into the org-readable archive. This is the stale-view leak D6 fixes for upgraded sminos, and it remains possible under the mixed-version deployment permitted here. Require archive-capable sminos before a machine may remain the archiver when privacy is enabled, or otherwise disable old archive writers; test an old archiver originating a refused plain-writer message, not just receiving a private stream.
Useful? React with 👍 / 👎.
|
|
||
| **Release.** The setters (D10) ship in the same sminos release as these guards: they are built in M4, with the guards. M3 can release alone because without a setter no session can become private. | ||
|
|
||
| **Devices.** Desk-web's `say` (`apps/desk-web/src/project/connection.ts:296-306`), and any device that signs a `hub/` human, compute the event's audience from the listings they hold (D7) and seal it into the event. The hub positions it under `hub/<member>~<digest>` when it carries an audience, and `isHubPosition` (`apps/org-protocol/src/names.ts:73-81`) accepts that writer exactly when the digest is the event's own audience's. `takeHuman` applies D5's checks with the member as the sender. A browser that sends no audience (an old one) is refused `not-reachable` toward any session with an audience. |
There was a problem hiding this comment.
Update device identity decoding for audience-stream writers
For a device message to a private session, accepting the new writer in isHubPosition is insufficient: decideWords still extracts the member with event.writer.slice('hub/'.length) (src/endpoint/rl10/words.ts:82–83), so it looks up <member>~<digest> and downgrades even the owner's valid message to peer. signerOf in src/endpoint/rl10/log-relay.ts:499–507 uses the same extraction and cannot identify that device either. Neither consumer is included in the endpoint changes. Add base-writer member decoding to these paths and test that an owner's device message to a private session is delivered as words, rather than merely asserting that its event reaches the audience.
Useful? React with 👍 / 👎.
| **Scope.** Desk-web, and any device that signs a `hub/` human, seal the right audience into a message to a private session, taken from the private listing it holds. | ||
|
|
||
| **Work.** | ||
| - **Desk-web:** the listings store keeps a private session's `audience` and `policyRev` from its machine-signed listing; `say` (`apps/desk-web/src/project/connection.ts:296-306`) computes D4's audience for its recipients and seals it into the draft, refuses locally a recipient with no listing it can see, and shows the hub's `not-reachable` refusal on the outbox entry as it shows other refusals. |
There was a problem hiding this comment.
Define the lane B mapping between listing and log session IDs
For lane B, the listing used for this lookup is keyed by appSessionId, while sminos members and log writers use the engine session ID: Members.listingId explicitly converts between them (src/endpoint/rl10/members.ts:196–201), and endpoint.listings signs the listing under that converted ID (src/endpoint/calls.ts:513–515). The proposed listing fields and registry interface carry no mapping between these IDs. Consequently, a browser addressing a log-projected engine session cannot find its private listing and is refused locally; using the listing's app ID instead does not find the policy registered by the engine-session snapshot. Define an authenticated alias or canonical-ID mapping across listings, audience lookup and registry checks, and exercise a private lane B session with distinct app and engine IDs.
Useful? React with 👍 / 👎.
…ded (Repos line, the refusal at the hub's upload, audience streams, acceptance 3, items 7 and 8) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…Progress says so Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
O18's document for MAWS board #477 (message reach), the child P5 Decision Log 223 opened. It holds the design and the execution plan. Only
docs/doperpowers/plans/2026-11-05-p5-o18-message-reach.mdchanges.What it builds. Decision Log 223's ruling: an agent may message a session when its person's rank on it is at least
list. Alistshare is shown as "Can message", andlistedstays the default. The pieces:<machine>/<session>~<digest>.mayReadcheck covers every read surface: fan-out,have/backlog, browser resume, the HTTP history route, the audit log and the session plane.policyRev, and binds each session to the machine that first exposed it.not-reachable, the sender is notified, and a content-free placeholder fills the refused position. The receiving endpoint'sreach?stays as defense in depth.Milestones:
listgrade,reach?, audiences, signing and policy cache.staging-ssfskimwith a second member.For the architect, at landing:
unlistedtransition notice;sessionRefsprovenance;haveplus the machine's own withheld positions;audiencecapability gates.Review.
Validation: documentation only. The
staticgate ran on the head.Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)