Repository navigation
Conversation
…ion plan, five tasks Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… without op for the kinds http and document, streamOpened.http, the refusal read-only; browser.screencast reserved, admitted by no validator Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…artifacts.fetch (view) and documents.open (view, edit by effect manage) on the artifact rule, authorized through the eight steps; the request fetched then published in the step its decision stands; the body pulled within credit; read streams re-authorized at a record change and a relink Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… an endpoint document channel as the human in the step its decision stands (artifacts.get first, which wakes a parked host), answers streamOpened with its credit, and relays the document frames both ways u32be length-prefixed under each side's credit; a view open forwards only step 1 and awareness (the rest dropped, counted, logged; past 64 KiB read-only); the channel's end closes the stream with its word, the stream's end closes the channel; the decision asked before each forward either way (ReadOpening.recheck); a provisional frame's session withheld; the fake documents service over a fake host port Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…requests.ts' hold, held by daemon.ts' documents.open until the channel ends): counted with the engine host's requests in flight so no park is asked under it, and a need again at its close; a document edited from another machine never parks under its editor Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ttp and document fields, sent with no op only to an endpoint whose h2 lists rl2.read-open (judged on the channel it goes out on), else closed not-offered with nothing sent; streamOpened's http reaches the consumer Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ArtifactMachines places on an RL2 machine, or embedded by such a page (its referrer), is one http read open over the link, at most 8 open a link and the rest queued; the Response is the endpoint's status and headers with the stream as its body, credit given as the frame reads it, the body held to Content-Length; 503 offline, 504 past 30 s, a refusal as a status the frame shows; main's chain is the presenter's embeds, then the remote responder, then the local path; artifacts.downloadAsset answered here for any machine, a remote asset fetched through the responder's path and saved here Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… decision that stands, asked in the step they go (stream-base.ts' stands, in the shared release path; the document plane's forwards to the host too); one that moved is held and authorized again through the re-check path, never dropped; a certificate change under the same head holds and re-checks every stream at once, as a caps refresh does, the artifact placements dropped first Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…d for the device a piece at a time, each at most what the credit allows and a chunk, the rest held in the plane: the stream's queue never holds more than the credit (a bridged html page is one buffer) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ver the credit, so a body that spends the device's credit exactly closes closed without more credit, the close queued behind its data Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… is queued once the window's turn that sent the last is over; queued from inside it, a nested turn sent it ahead (a page larger than a chunk arrived out of order under ample credit) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…he literal its type names Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…k: a narrowed method widened in an untyped object literal) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…on confirmed) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…its for one of a link's 8 http slots, a body its frame hasn't read for IDLE_MS (2 s; not one waiting on the machine for bytes) gives way, the oldest first, its body ended normally with what came and its stream closed, so the media element asks again with a Range when it plays on; an idle stream keeps its slot while nothing waits Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…n never reused (a superseded check's late answer can't pass as the latest, release the stream, and leave a newer refusal unheard), and a grant whose decision moved before it was heard is decided again rather than trusted, act streams included Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… the need before the zero count, so the count's evaluation reads the clock started at the close and asks no park on the one from the open; proved on the real DaemonClocks, and at the daemon (an open endpoint channel keeps the engine host from its idle park, the idle time running from its close) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…t it granted: each stream counts what is outstanding (the open's credit plus each refund sent, less each chunk), and a chunk past it closes the stream malformed with none of it delivered, for every stream kind Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…unts the length prefix, so a host frame of exactly the largest size goes whole under ample credit rather than closing behind at once Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…r never writes ArtifactMachines, and the referrer is asked only after this Mac's store answered 404 (the chain: the embeds, the remote responder by placement, the local path, the remote responder by referrer), so a remote page's referrer can't take a local id to another machine Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…n RL2 machine preflights artifacts.get over the link, then bridges a MessageChannelMain to a `document` read open, `edit` first and `view` (answered readOnly) on a `grade` or `read-only` refusal, its window end posted on maws:doc-port once a stream stands behind it; frames length-prefixed both ways (the shared frame-stream module), the machine's refunded as taken in, a view port forwarding only step 1 and awareness; any end of the stream closes the window's port, so the renderer's one reopen path reopens and the provider's step 2 carries what was never acked; every open ends (offline at once while the link is down, timeout at 30 s, a refusal for good as notFound or invalid), and every bridge with its port, its window and the app Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…t marks a replica read-only while main answers its open readOnly (the editors and the header follow DocumentState.readOnly, presence still synced), and writable again at an open that isn't; another machine's document lives by its link as remote.session says it, never this Mac's engine.hostState: a link leaving up drops the port and the backoff waits for its up, and while the link isn't known down the backoff keeps its last step; a refusal for good after a sync is said as DocumentState.refused, which the document and deck tabs show in place of the editor, and nothing is asked again Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…'s artifacts.holdAssets, as main's Download does) from before the request until its bytes are read or the stream ends, released once on every path; a sweep between the machine's lookup and its open no longer turns the read into a 404; a hold the host can't give is logged and the read goes on; no other path is held Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…s it out or lets it go, not only while its stream is open, so the bytes a link's bodies hold here stay within 8 x the stream credit (plus Electron's read-ahead per body); a finished, unread body gives way as an idle stream does, what it held let go Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…rame-stream module (lengthPrefixed, LengthPrefixed), the one framing main's document bridge speaks too; behaviour unchanged Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ecision 3 reversed: the responder never writes ArtifactMachines) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…s (RemoteResponder, its two stages), after b3's review fix 91f9cd4 Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…/lane-b/port-pair.ts, shared by remote-open.test.ts and the lane-b harness's document bridges; behaviour unchanged Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…es: a remote session's page fetched through the real endpoint from a scratch store and served to a Request through main's real chain (bridged, its asset by range), a paused media body giving its slot to a later load after 2 s and resumed by range, a document edited from two devices converging, an edit across a forced drop landing once, a view member's read-only open never writing and closed removed at the share's withdrawal; the fake pty host's onFrame chains the other hosts' frames as its onEvent does Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…facts frame with what B's store holds, and a document B's session starts at A's ask, typed in A's editor, reads back from B's store (B's own md export) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…pen behind: the bridge posts no port for a stream that opened and already ended (a `host` close in its opening's turn), answering it as the transient refusal it is; the window's route refuses a port whose close came while it waited to be taken; and a replica whose port gives no first frame within FIRST_FRAME_MS (10 s) drops it into the reopen path, so a close said before anyone listened can't hold the provider in its handshake Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… waiting on its preflight too: a stopped state answers it host_unavailable at once (the preflight raced against the stop), and every open after it, so no bridge is made or port posted once the app stops Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…its start: the preflight and both stream attempts run under the same deadline, so a slow preflight with an unanswered stream is answered timeout at DOCUMENT_OPEN_MS, and a preflight that outlasts it opens nothing when it comes Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ArtifactHost.open takes the owner's signal (ArtifactOpenOptions), and an abort before the first sync closes the replica, ending its attempts and rejecting the open; the document and deck tabs abort on dispose, and the suggestion doc, the presenter's route and the layouts menu at their effects' end, so a tab closed during a failing open (the machine answering unavailable every 3 s) leaves nothing retrying Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… says the refusal in the page's place, as the document and deck tabs do: OpenedSystem follows its handle's `refused` into its failed opening, so no token field stays editable over a closed replica; the showing also owns its open's signal (review fix 2), aborted on dispose Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…elf (step 1 at the open, step 2 for a step 1, content acked by the channel's count and sent to the others, awareness relayed) instead of the editor's in-memory host, which the node project's typecheck doesn't list (a DOM MessagePort) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ds the open its effect owns, with the owner's signal beside the doc (class 1a's unit 4/4) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…way; a body read through fetch (an asset's download, whose reader resumes nothing by Range) is never cut, so it is never saved short Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…against the Content-Length the machine said before any dialog; a short one is refused and nothing is saved Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…what the window's frames hold in main: a frame that comes while more than DOCUMENT_OUTBOUND_MAX (the host's own high water, DOC_HIGH_WATER) waits for the machine's credit ends the bridge `behind`, and one that comes below it is taken whole, the engine host socket's queue rule; a machine that keeps its channel but takes nothing can't grow main's memory, and the provider's reopen carries what never landed in its step 2 Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…the engine host's own payload cap (DOCUMENT_FRAME_MAX in frame-stream.ts, socket-protocol's DOC_FRAME_CAP, 64 MiB) on both ends, not its 8 MiB high-water mark; the endpoint's queue threshold is separate and follows the host's rule: a host frame is admitted while what waits behind the frame being sent is within 8 MiB, so a big document's first sync and the frames after it go, and only a queue behind it past 8 MiB closes behind Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…hine's store status beside the artifact (artifacts.status, as the local editor does) and is refused read-only while the store is read-only (a newer build wrote it), so the device reopens view and its editor shows read-only instead of taking edits the host refuses Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…me into one buffer as its bytes come, grown by doubling up to its declared length, instead of keeping every chunk and shifting them off at the end: a frame sent a byte at a time holds one buffer and assembles in linear time (256 KiB of 1-byte chunks: 36 s before, well under a second now) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…4 MiB budget of retained document bytes (frames queued for the device, prefixes counted, and frames being assembled from it), checked as the host checks its socket's queue: before a stream's next frame or chunk is admitted, against the rest of the link without the stream's own frames in flight; one that finds more closes behind and gives its bytes back, so a single frame up to 64 MiB always goes on a stream holding nothing else, however busy the link Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…frames up to frame-stream's DOCUMENT_FRAME_MAX (the host's 64 MiB, b2's item 2) rather than a limit of its own; its outbound bound stays the host's high water Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…te is portable as src/artifacts/ requires (no node:crypto, no Buffer): its bytes made and compared with Uint8Array (class 1a's lint) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…rom the outbound bound, which counts only the window's bytes waiting behind it; a reopen whose step 2 is past 8 MiB drains with the presence and typing behind it rather than closing into the same reopen again, and more than 8 MiB behind a draining frame still closes Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ole until its last byte goes; a device that takes a large frame but its tail on several streams no longer holds the frames uncounted (A) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… its stream's own checks wherever it sits in the queue, not only at the head; a step 1 still queued, then a 60 MiB step 2, then an ack no longer close `behind` (B) The stream's own backlog now counts every small frame it holds, whole, the head included; the link's others count the oversized frame whole too. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…its and residue, three Surprises, Progress, Outcomes & Retrospective for M5b, the report's M5b section Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
SSFSKIM
added a commit
that referenced
this pull request
Nov 2, 2026
… open's pages and documents, the rulings, the memory rules, M5a's residue settled: the input-direction rule in OX1, board #446); three tracker rows; the wave 2 ledger gains M5b's names Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS 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 O7 M5b: pages and documents on the read open. An
html, PDF, image or media artifact of a remote session now renders in this Mac's pane, ranges included, from the machine's artifact endpoint over the link. A document (text, deck, board or design system) opens in this Mac's editor; an edit here reaches the machine's store and every other replica, and the host's acks, restores and provisional edits flow back. Aview-only member gets the editor read-only. A carrier drop reopens the page or the document with nothing typed lost.Execution document:
docs/doperpowers/plans/2026-10-28-p5-o7-remote-lane-b.md(M5, M5b; every departure is a dated Decision Log entry). Report:docs/doperpowers/plans/2026-10-31-p5-o7-report.md, section M5b.What changes
RL2: the read open (
rl2.read-open, RL2 1.5)streamOpenwith noop, for the kindshttpanddocument, is authorized the way a call is: through stream rows on theartifactrule.artifacts.fetchatview.documents.openatview, ormanageby effect for aneditopen.read-only.opkeeps M3's act path.browser.screencastandrl2.browser-screencastare reserved for O17 M9; no validator admits them yet.rl2.read-open.The endpoint (
src/endpoint)httpplane. It reads the body only within the device's credit. Anhttpread of a dataset snapshot holds that snapshot with E3'sartifacts.holdAssetsuntil the stream ends, so a retention sweep can't turn the load into a 404.documentplane. It relays u32be-prefixed document frames in both directions.viewopen forwards only step 1 and awareness from the device.editopen on a store that is read-only (a newer build wrote it) is refusedread-only.Main
ArtifactMachines, so a remote machine can't claim a local artifact's id.Range.artifacts.downloadAssetworks for any machine. It is never cut, and the file is checked againstContent-Lengthbefore the save dialog.remote-open.ts). It openseditfirst, thenviewafter agradeorread-onlyrefusal.The renderer
readOnly.remote.session.Proof
test/lane-b/remote.test.tsgains five cases. Each runs through the real link, endpoint,routeLaneB, document bridge and scheme chain.e2e:remotegains M5b's scene:library.readanswers;WIRE_MINORis unchanged.RL2_PROTOCOLis 1.5, master's 1.4 plus one, forrl2.read-open.Known limits
Content-Lengthcan't be proven whole by the length check. The transport still fails a stream that ends abnormally.MessagePortqueue is unbounded, as the local port model's is.viewrights on many documents, each over 8 MiB. The architect accepted this for this landing; a tracker row's exit is a link-wide cap of one oversized frame in flight per link.src/shared/host/doc-channels.ts'writeposts each frame the document service produces. Its only flow control is the socket's queued bytes: past the high water it resets the channel (end(channel, 'reset')).EndpointServices.documentsoffersopen,close,frameandonClosed, and no pause or resume.Validation Evidence
Gates ran through
scripts/ci-gate.shon GitHub Actions. Each run's commit tree was checked against its head's.PR head
77bf8ef29with master6354cffd1(O16 landed) merged in. The gate commit's tree is1f26a9ea0, the same as the head's.--gates all --class1a pool --runner macos --lane hosted. It ran on the hosted lane because it was launched at 10:31Z, while CI-opt's mini hold stood; the hold was released at 10:43Z, and the architect counted this run.6354cffd, at wire 3.21, the same as this tree's 3.21 (M5b changes noWIRE_MINOR). So the plan added noe2e:cross-build.apps/org-protocol's messages tests: a read open refused by an endpoint withoutrl2.read-open) and by the handshake vectors, which stay pinned at 1.0.e2e:remoteande2e:documentamong them. The run's logs carry noflaky:line.942ddb8a6, which the gate's static job covered.address-paths.json, routes, the wire manifest), so the merged tree carries master's verbatim.Claims of done, and what backs each
b2e85c72f(treef2aef9f9) was green with no flaky lines:test/lane-b/remote.test.tscovers:viewmember's typing never reaching the store;removed.Each case was shown to rest on the product by a mutation.
test/endpoint/read-open.test.tscovers:read-open.test.tscovers:src/main/artifacts/remote-open.test.tscovers a 12 MiB reopen draining while edits arrive.remote-scheme.test.tscovers unread bodies holding their slots and hostile excess credit closingmalformed.frame-stream.test.tscovers one-byte fragments.remote-open.test.tscovers the dead port,stop()during a preflight and the one deadline. The renderer's host and tab suites cover cancellation by the owner and refusals for good.remote-scheme.test.ts: a stalled download behind paused media isn't cut.download.ts's test: a short body is refused.e2e:cross-buildagainst the default peer in every class 1a run and in the landing gate. The handshake vectors are pinned at 1.0.Residue
artifacts,attentionandcheckoutfeeds' memberships wait for the next record change or new head. This matches those feeds' existing triggers (M6's known limit); it is worth one shared trigger.Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)