Repository navigation
Conversation
A v2 machine holds one WebSocket, /machine/socket, held by a Machine object addressed by its ref (<org>:ref:<ref>); DX2's name-addressed object stays the one generation counter, fence and project mailbox for both transports. RL1 carries DX2's log plane through Project.fromMachine, hb/hb-ack with the lease, listings, endpoint records and notify (Registry.storeListing, storeEndpoint, notify), the state notice, and the channel multiplex. Apps open channels through /api/machines/<ref or name>/socket; frames are relayed unread. Both socket kinds hibernate; the channel map is rebuilt from attachments. Session-plane frames on RL1 are refused 422 not-on-rl1; a message over 1 MiB closes its socket 1009. RL1 uploads push nothing through the log plane (notify is RL1's push). RL1's frame shapes and the binary codec live in org-protocol (relay.ts). The fake endpoint, a fake app and their CLI (enroll-v2, endpoint, relay-check) are in fake-machine/. Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
M4 now carries M3's chain, members and devices, the persisted project announcements, and Registry.enrolled. The conflicts were in registry.ts (M4's persisted announcements kept; M6's relay lookups and machine announcement re-added after them) and worker.ts (M4's machineRetiresCert and lacksMethod import kept beside M6's RL1 routes). The O11 document is p5-o11-m4's. Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
… delivered revocations, relay state announcements - Routing: /machine/socket and app sockets reach a ref's object only through the head's live `machines` entry or a kept certificate; a key posting a ref the state or a certificate gives another name is refused 409 ref-taken, and a machine whose ref only its key posted is 409 not-listed. - Fences: the ref's object numbers its own connections (`conn`) and keeps a per-name generation fence, raised by an install, a replacement, a DX2 supersession and a revocation; a claim granted before a fence and arriving after it is refused, and a fenced connection carries nothing more. - The name's object keeps supersessions and revocations owed to the ref's object and retries them by its alarm until taken. - The Registry announces every state to each relay's object (the announcements table, `ref:<ref>`), from its first socket on, so a removed member's app sockets close whether or not an endpoint ever connected. - A part continuing a set lost to an eviction closes the endpoint 4412 parts-lost. - A session-plane frame for an RL1 connection answers `not-on-rl1`: the RPC fails `unsupported`, the subscription ends `error`, and the log fan-out stays. Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…tries, exact-name fences - The name's object keeps each credential's newest RL1 claim and fences a revoked credential's connections up to it, even while another credential holds the newest claim, which stays above the fence. - A retried RPC the hub cannot deliver stays uncertain whatever the transport answers; `unsupported` is a first forward's alone. - A ref's object keys each name's fence by the exact name its generation counter is addressed by, so a name enrolled again in another case is not fenced by the old one's counter. Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
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. |
SSFSKIM
added a commit
that referenced
this pull request
Oct 27, 2026
…ne list doesn't learn RL1 machines; tracker row for unbounded relay fence retries Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Oct 27, 2026
Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
P5 O11 M6: RL1 and the Machine DO relay (
docs/doperpowers/plans/2026-10-27-p5-o11-hub-v2.md, M6).What this lands
apps/org-protocol(src/relay.ts):[u8 type][u32 channel][payload]and its u16 close reasons;RL1_MESSAGE_LIMIT(1 MiB) and 64 channels per socket;hello,welcome,hb/hb-ack,listing,endpoint,notify,state,refusal,presence.MachineDO class, addressed by ref (<org>:ref:<ref>), with no new class and no migration.GET /machine/socket) and the members' app sockets (GET /api/machines/<ref or name>/socket).1009.notifyto the listed owners only.opensupersedes it.machinesentry or a kept certificate. A ref that another name's binding holds is refused409 ref-taken, and an unbound machine is refused409 not-listed.4403 removedwhether or not an endpoint ever connected.rpcto an RL1 machine failsunsupportedand asubscribeends witherror, while the log fan-out stays. A retry of an RPC that was already sent staysuncertain.apps/desk-hub/fake-machine/), its CLI (enroll-v2,endpoint,relay-check) andRelayApp. M8 uses them on staging.These RPCs are new in this milestone, and no deployed hub has any of them (production
hub@3486527c, master, staginghub@e3694c0b):Machine:claimGeneration,rl1Check,relaySend,relayClose,relaySupersede,relayRevokeandrelayState;Registry:machineRefOf,machineRefNamedandstateVersion.During a rollout, a side that lacks one takes the existing
lacksMethodpath and answers503 hub-updating.Validation Evidence
test/relay-fences.test.tsholds the reviewers' scenarios.written.a91914e68(static, unit, probes, e2e:desk-web), with master and M5 merged in: https://github.com/SSFSKIM/MAWS/actions/runs/40451695968For O13
machinesframe doesn't show RL1 machines. Their presence reaches the grid (machines_online) and the relay'spresenceframe, but not the per-projectmachineslist that a browser draws. O13's app owns that view.For the architect's tech-debt tracker
Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)