Skip to content

P5-O18: message reach, design and execution (board #477) - #483

Merged
SSFSKIM merged 7 commits into
masterfrom
p5-o18-doc
Nov 5, 2026
Merged

SSFSKIM merged 7 commits into
masterfrom
p5-o18-doc

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 5, 2026

Copy link
Copy Markdown
Owner

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.md changes.

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. A list share is shown as "Can message", and listed stays the default. The pieces:

  • Audience streams. A private session's events carry a signed audience, the intersection over every session the event names. They're written to their own writer streams, <machine>/<session>~<digest>.
  • The hub filters whole streams. One mayRead check covers every read surface: fan-out, have/backlog, browser resume, the HTTP history route, the audit log and the session plane.
  • An org-wide policy registry sits behind the upload check. It holds each session's audience and policyRev, and binds each session to the machine that first exposed it.
  • Refusals happen at the hub's upload. A hidden session and a nonexistent one both get not-reachable, the sender is notified, and a content-free placeholder fills the refused position. The receiving endpoint's reach? stays as defense in depth.
  • Agents can't widen access. The setters let anyone narrow, and only the owner, at a terminal, widen.
  • Old versions get nothing private. Capability flags on RL1 and RL10 keep any private stream away from an old hub, endpoint or sminos, and the git archive copies only what the hub admitted as public.

Milestones:

  • M1: the hub's registry, filter and backstop.
  • M2: the endpoint's list grade, reach?, audiences, signing and policy cache.
  • M2b: device and browser clients.
  • M3: sminos visibility, streams, the archive and record preservation.
  • M4: the reach gate at the push primitive, the setters and unlisting.
  • M5: O8's share picker, an external contract handed to the architect.
  • M6: live acceptance on staging-ssfskim with a second member.

For the architect, at landing:

  • The repo line in P5's O18 section. The header assigns repos correctly: doperpowers holds sminos, and MAWS holds the hub, the endpoint, the grade and the UI. P5's O18 "Repos" line needs the same correction (chat 1130).
  • The refusal wording in P5. P5's binding refusal bullet and acceptance 3 move to "refused before delivery: at the hub's upload, with the recipient's endpoint as defense in depth" (chat 1132, approved).
  • Changes beyond what you approved in chat 1131 and 1132. The reviews also added these refinements, and each has a Decision Log entry:
    • binding a session at its first exposure;
    • the validated unlisted transition notice;
    • redacting sessionRefs provenance;
    • rewriting the leading routing tags when a message is split;
    • the archive's frontier: the hub's have plus the machine's own withheld positions;
    • the RL1 and RL10 audience capability gates.

Review.

  • Round 1: two independent adversarial reviews, security (8 P1, 1 P2) and buildability (6 P1, 2 P2).
  • Then three revise-and-review rounds:
    • 7 P1 and 2 P2;
    • 3 P1 and 1 P2;
    • one P1, a refusal lost to a disconnect.
  • Final narrow check: approve, no material findings. Its two notes, about former machine names and the frame-size limit, are written into M3.
  • Earlier fixes confirmed closed by each later round.

Validation: documentation only. The static gate ran on the head.

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)

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)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-05T21:11:37.893615Z 9dd7ee6 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Comment on lines +232 to +234
- **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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

@SSFSKIM
SSFSKIM merged commit 95000f8 into master Nov 5, 2026
SSFSKIM added a commit that referenced this pull request Nov 5, 2026
…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)
SSFSKIM added a commit that referenced this pull request Nov 10, 2026
…Progress says so

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
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.

1 participant