Repository navigation
Merged
Conversation
…ion plan, five tasks Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ent codes read from files, never printed; the B4 soak untouched Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… the artifact, the relayed callback, delivery.send on the machine)
- RL2 1.6: `client {id, kind, request}` (endpoint to device) and `clientAnswer {id, answer}` (device to endpoint),
behind `rl2.client-port`, listed by both sides; the recorded handshake vectors stay pinned.
- The registry's grades (A13, A14): the eight lease commands `{floor: 'view', byEffect: true}`, `connectors.call` and
`connectors.refresh` `converse` by effect and the rest `view` (BY_EFFECT); `delivery.status` and `delivery.receipts`
`view`, `delivery.send` and `delivery.cancel` `manage`; the owner's connector commands keep `machine-admin`.
- `callback?: {port}` on `connectors.connect`, `reconnect` and `signIn`; `connectors.callback {port, method, url}` ->
`{status, headers?, body}` (machine, main-only, `list`); `delivery.send` retagged `machine`; `machine.delivery` in the
wire's capabilities (mawsd's welcome lists it once its spine serves the command); `connectors.reset {machine?}`
(main-owned, off the manifest).
- WIRE_MINOR 22 (master's 21 plus one); the manifest and routes regenerated, the callback answer's headers reviewed as a
plain-string record.
- Main keeps answering `delivery.send` itself (an interceptor) until it reads `machine.delivery`.
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ever at rest on the machine; names as inputs; the bench's app paired and revoked as O9 M10's Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…aces graded on the artifact, leases re-authorized and closed by the endpoint, the artifacts feed's connector and delivery events) The port's target for a channel's ref is the channel (`clientPort.serve`, consulted by mawsd's front after its own connections): `openExternal` and `reveal` reach a device listing `rl2.client-port` as `client`, its `clientAnswer` settles them under the channel's own handle; anything else, or a device without the capability, is `noClient` at once. A page's lease is placed by the channel's own table (an unknown lease is `grade`), decided again at every drop of its placement and closed by the endpoint (`connectors.close` under the channel's ref) once its member can't view the artifact, its mapping dropped in the same step. Send to's reads at `view`, its send and cancel at `manage`; connector management at `machine-admin`; `client.windowShown` the endpoint's own call. The feed carries a lease's updates to its channel, the sheet's events to machine-admin, a receipt to its artifact's viewers; a call's `via.sessionId` never leaves. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…d by the asking client and its port, sign-ins that can't be relayed, delivery.send on the machine)
- The relayed receiver (src/services/connectors/relayed-callback.ts): a ListenLoopback that binds nothing and answers the
device's port; armed per flow, keyed by the asking ClientRef and the port, in the command's own synchronous step (a port
this client has armed is busy); each flow's cleanup releases its own arming alone; an asker's end releases it and ends a
flow not yet past its callback. connectors.callback runs the flow's own handler over the relayed request and answers
{status, headers, body}, {status: 404, body: ''} for a (client, port) no flow armed.
- Connect and Reconnect (owner, provider, flow) take the relayed receiver when callback is present ({accepted: false,
why: 'busy'} for an armed port); the engine's sign-in too (the receipt, then a failure), and an engine that keeps its
own listener ends a remote asker's sign-in at once, 'sign in on <machine>'. One registry, the spine root's.
- delivery.send on the machine: the run begun and its target read, the library's Export through the root's bus (the
render seam on mawsd, main's export service embedded) under the e2e's hold (now @shared/delivery/export-hold), then the
same admission and send; a cancel during the export honoured by the run table, the export removed on every path; its
command budget; machine.delivery in the daemon's welcome.
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…e main-only commands the endpoint grades by effect (`list`) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…vertook it, asked again on the retry delays; a run's id reserved for one channel and artifact while it runs; the callback body bound in UTF-8 bytes - leases.ts: every change the artifact cache drops on counts on each lease (its generation); a decision keeps or closes the lease only in the step no change has overtaken it, else it is asked again after the retry delay, as `unavailable` is, closed after the last. A lease has one decision or wait out at a time. A machine owner's lease rests on its own decision, not on a placement (the unbounded re-check on a refused placement is gone). - actions.ts / leases.ts: `delivery.send`'s run id is reserved endpoint-wide for its channel and artifact in the step it is handed on; another send of a reserved id is `busy`; a cancel is placed only by its own channel's reservation, on its run's artifact; the id freed when the send's op ended or never ran, or at the channel's end once no send is out. - connectors.ts: `connectors.callback`'s body at most 64 KiB of UTF-8. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…it carries; no export begins for a cancel accepted before it
- The relayed receiver hands a flow only a request carrying the state that flow armed (ListenOptions.state, given by the
OAuth flow and the engine sign-in); another state, none, or one before the flow armed answers as an unarmed pair
({status: 404, body: ''}) and leaves the flow pending, so a predecessor's late redirect on a port the device's OS
reused never ends its successor. Routing by (client, port) stays the isolation between clients; local flows unchanged.
- delivery.send reads the run's signal again after the target's preparation, and its last read before the export and the
export's start are one synchronous step: a cancel accepted in that gap starts no export and ends the run at once.
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…nt port's answers and a consent's callback listener; the lease reads as calls and the M5c acts; each lease bound to its channel, the gate opened with the machine's connectors.reset as main's own word; the window report per machine; delivery.send's shim behind machine.delivery) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…the connectors client, the connector owner, Send to's run and its receipts on the artifact's machine; a reset rebuilds the named machine's leases alone; the Connectors sheet and Send to greyed by the device's rights there and the machine's offer, in words; a sign-in heard from its machine alone) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… (the connectors client reads it for a surface the table doesn't place) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…sts); a lease's id read off the open's answer as unknown, narrowed Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…and goes to the lease found current in the continuation that sends it; a remote dashboard whose machine doesn't offer connectors says "Connectors on <machine> need its app" (a notOffered live pause); a sign-in is its machine's server's; another machine's Connectors rows are read on the owner's action, not at the sheet's opening; a grant refused there says its words Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…-scope sign-in keeps its credential on the machine it runs on; another machine's connectors are configured from its Connectors sheet) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…nel it waited on; a sent lease act fails its caller at the loss, unknown whether it ran; a page's end closes its leases; the client port behind rl2.client-port; a Connect's listener ends on its action's end (serversChanged's ended); relays counted until answered; a bad header answered 502
- A lease command captures its channel before windows.before and dispatches only on the same one (else host_unavailable);
the window's bookkeeping is a ticket of that channel and page: a report or lease from an older channel is dropped.
- acts: a oneChannel act sent on a lost channel settles {unknown, channel-lost} at the loss; the remote outcome says
host_unavailable, "unknown whether it ran" (link.test's delayed case replaced).
- remote-windows: a page's end sends connectors.close for each lease it holds, on its owning channel; an open completing
after its page ended is closed at once.
- link: `client` requests are taken, and clientAnswer sent, only from a peer listing rl2.client-port; onChannel says
each channel's current and lost (the listener ends at the channel's actual end, not the grace-suppressed state).
- connectors.serversChanged gains ended?: {sourceHandle} (additive within WIRE 22, manifest regenerated): the owner says
each Connect or Reconnect's end once for its own artifact, read or not (actionEnded), beside the rows' broadcast; the
endpoint's artifacts feed carries it whole to machine-admin holders. The device ends that action's listener on it,
heard any time after the act went out; `called` and settle-by-relay are gone; an older machine falls back to the time
bound.
- remote-port: relays count until the machine answers (a browser's disconnect frees nothing), ending a listener lets go
of its relays; header names and values are validated as Node writes them (a bad one is 502); every relay and write
failure is answered 502 at the boundary.
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ertion on a name declared only in the next test (class 1a's typecheck and unit 4/4, run 41486969417) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…dashboard's lease refreshing while shown and held while hidden; a forced drop rebuilding that machine's watch under new ids after its reset, this Mac's leases untouched; the local machine host's reconnect naming the local machine, the remote lease as it was; a lease command in flight at a drop answering host_unavailable, nothing of it on the next channel; a Connect through the device's loopback listener sealing the grant on the machine; Send to on the machine's delivery The machine's connectors are composed on the endpoint's spine as the spine's root composes them (route E over the connector suite's scripted host, a fake route D and MAWS's own OAuth beside it), the client port mawsd's front's. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…A from B's rows server; Connect on B's OAuth server completing through A's loopback listener, the grant sealed on B; Send to Notion from A making one notion-create-pages call on B), B's servers observed once from a recorded report of a short-lived observer session; e2e:delivery reads the export-phase cancel line from the log of the shape that ran the send The OAuth fixture advertises its authorization endpoint at an https origin no resolver answers, which the fake browser routes to the fixture's own /authorize: a consent another machine asks this Mac to open is never a loopback URL, and openForMachine's rule stays as it is. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…: every status read asks each live session of B, and its replay answers an unrecorded mcp_status empty, which fails the schema and the cache fails the checkout's launch context closed (hosted run 41498258631) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…hole and what the observer's launch journalled past its turn (each control, its answer, an unrecorded read's meta row) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… row, its report read directly and B's logs' connector lines Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…r the dashboard (a refusal's why) and what B's config home holds Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ervation directly and reads the servers again Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…e the direct report read consumes the recording Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…lled engine in its turn, behind the seam's own gate, MAWS_E2E), so one scene can put a real engine among its replays; the owner's delivery says each live session whose report was not observed rather than passing it over Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…st's `live` entry, the installed engine under a scratch HOME, started with no message), its report of B's servers observed by Send to's status read on B, the OAuth server demanding sign-in only once it is dead; the dashboard is the dashboard-live-data fixture's Dashboard written on B through the host's agent seam; Connect from an HTML page of B's that declares the OAuth server; the OAuth fixture's recorded-report phase option retired Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…nt and revision, what B's rows server was asked and B's connector lines Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ith no MAWS sign-in saved (observed open; no read refused yet) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…oes (`none`) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…4's steps after it reach A's sidebar Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…holds per channel (`rl2.asset-holds`): `artifacts.holdAssets` at `view` on its artifact and `releaseAssets` at `list`, main's link's calls alone; released at the channel's end, at a lost `view` (decided again as a lease is) and at the endpoint's stop, forgotten when the engine host's link goes, at most 256 a channel (`busy` past it) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…n that machine, over its link on the channel current (`callMainOverLink`, main's own allow-list of main-only names); asks nothing of a channel that ended (its endpoint released them); this Mac's host's going touches none; an endpoint without `rl2.asset-holds` draws unheld, said once per machine Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…esh found no route, not 30 s later (the owner's Start answers ready before the engine's servers connect; e2e/dashboard-live-data.spec.ts:526's flake in run 41529053694) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…atasets` for another machine here (the renderer's client sends it to the artifact's machine, where nothing took it), and main holds it on the router's `ctx.target` Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…r ends as built, the holds' §L rows and §M capability, the not-offered list, Decision Log as built for c1 to c5 with the holds ruling and the broker's wake, Surprises) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ce shown, are marked stale at every change instead of read (each read there is machine-admin, a Touch ID of its own); the owner's Refresh reads them, a failed read offers it too; this Mac's sheet reads as before Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ion (artifacts.holdAssets, connectors.open) at 8 s from the call's arrival at the gate, 2 s under the device's 10 s call deadline; past it the call answers timeout, a hold the host makes after is released and a lease the machine opens after is closed at once under the channel's ref, and one whose bound passed in authorization is never asked Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…nnel from its receipt, so a cancel the device sends while the send is decided is placed on the artifact it names and waits on it: handed on in the step the send is admitted, before the send, or refused no-target with the send; a cancel reaches the machine only for a run its channel holds reserved; pending sends count toward RUNS_KEPT, one cancel each, and every refusal of a received act (the gate's through actRefused) settles them Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…fresh for B's rows once the Connect marked them stale (read again only at the owner's word, each a confirmation on B) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… only on the two rows that acquire (each-session.test.ts' stand-in Calls context has no clock, and no other call needs one) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ry and acquisition rows, the residue's Touch ID line, Progress) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…nt-port and rl2.asset-holds after M7's rl2.pong-clock), the link's client and pong paths side by side, WIRE_MINOR 22 regenerated from master's manifest, the spec's M7 and M5c entries kept Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…e on the clock is late whether or not the overdue timer has run (a stalled loop runs the answer's continuation first); a rejection past it is late(null), as the timer's path; unit test Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… narrow pass, the gates, names, residue) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ck at the answer) and Progress 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. |
This was referenced Nov 3, 2026
This was referenced Nov 3, 2026
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 M5c: O4's surfaces on another machine. A dashboard on a remote session refreshes its connector widgets here under the grade the owner answers, and its snapshots stay held while they are shown. Send to exports and delivers on the machine. Connect and Sign in complete through this Mac's loopback: the consent is relayed over RL2 to the device that asked. Another machine's Connectors sheet asks for Touch ID only on the owner's Show or Refresh.
Execution document:
docs/doperpowers/plans/2026-10-28-p5-o7-remote-lane-b.md(M5, M5c). Every departure from the plan is a dated Decision Log entry. Report:docs/doperpowers/plans/2026-10-31-p5-o7-report.md, section M5c.What changes
RL2 1.7 and wire 3.22
rl2.client-port:client(endpoint to device) andclientAnswer(device to endpoint);rl2.asset-holds: main's link callsartifacts.holdAssetsandreleaseAssets.rl2.pong-clock(1.6).WIRE_MINOR22 adds:delivery.sendretaggedmachine;callbackfield onconnectors.connect,reconnectandsignIn;connectors.callback;machine.delivery;connectors.serversChanged.ended.e2e:cross-buildpairs it with the merge base. O17's P5 O17: the agent's browser with no app (the local stage, M1–M8) #450 also claims 22, so whichever lands second takes 23.The endpoint (
src/endpoint)artifactrule: the lease commands atview(callatconverseby effect),delivery.statusatview,sendandcancelatmanage, and the machine's connector administration atmachine-adminwith step-up.viewis lost.delivery.sendis pending on its channel from the moment it is received. A cancel sent while the send is still being decided waits on it: it is applied before the send is admitted, or dropped when the send is refused.artifacts.holdAssets,connectors.open) is bounded at 8 s from its arrival, under the device's 10 s call deadline. A late answer is let go on the endpoint itself. The bound is judged on the clock when the answer arrives as well as by a timer.rl2.client-port.via.sessionIdis withheld from remote members.The machine's services
busy. A flow whose asker has ended is ended too.delivery.sendruns on the machine: it reads the target once, then exports, then delivers.readybefore the engine's MCP servers connect.Main
content-typeandcache-controlare written back.MACHINE_CALLScarries the lease reads. Lease commands are never resent across channels. From a channel's loss untilconnectors.reset {machine}, lease commands are refusedhost_unavailable. Window reports are kept per machine.artifacts.holdDatasetsfor another machine is answered here: main holds it on the router's target, over the current channel. A peer withoutrl2.asset-holdsdraws unheld, and main says so once per machine.The renderer
Proof
test/endpoint/client-port.test.ts,artifact-rows.test.ts,asset-holds.test.ts,leases.test.ts,acquire.test.ts.src/services/connectors/relayed-connect.test.ts,oauth-flow.test.ts,sign-in.test.ts,broker.test.ts,owner-delivery.test.ts.src/main/lane-b/remote-port.test.ts,remote-connectors.test.ts,src/main/dashboard/holds.test.ts,src/main/ipc/router.test.ts.test/lane-b/remote.test.ts's M5c cases.e2e:remote's M5c scenes: a dashboard of B's draws and refreshes in A; Connect on B completes through A's loopback against the OAuth fixture; a Notion send from A makes one call on B. B's observer is a real engine, through the replay seam's new e2e-onlyliveentry.Known limits
Validation Evidence
Gates ran through
scripts/ci-gate.shon GitHub Actions. Each run's commit tree was checked against its head's.PR head
238fdd7c2. The gate commit545a130c0has tree67d8fdc54, the same as the head's.--gates all --class1a pool --runner macos, with no lane (CI-opt had released the mini) and no peer. The planner paired the cross-build with the merge base01d4488cat wire 3.21, against this tree's 3.22.e2e:cross-buildamong the green. e2e:default and e2e:render-host were refused at Set up runner by a TCC dialog on the mini, and no test ran. ci-kit's desktop-check said: "a system dialog (UserNotificationCenter …) holds focus on the mini". tccd's log names the raiser: claude-code 2.1.317 asking for the Documents folder at 01:41:03Z, unrelated to this change. CI-opt closed the dialog at 02:43:24Z. The in-place rerun (gh run rerun 41560844213 --failed, attempt 2) passed both jobs, and the run concluded success with noflaky:line in attempt 2.Claims of done, and what backs each
e2e:remote,e2e:dashboard-live-data,e2e:connectors,e2e:connectors-oauth,e2e:delivery,e2e:machines --lane hosted --peer none) passed on:c39d940d5: run 41543075306;3d8006045: run 41553653036, after review 1's fixes.In both runs every spec passed on its first attempt, with no
flaky:line. Onc39d940d5the counts were remote 1, dashboard-live-data 3, connectors 6, connectors-oauth 5, delivery 3 and machines 2.dashboard-live-data.spec.ts:526flaky line is explained and fixed.initializeandtools/listbut notools/call; in the retry,tools/callcame 120 ms after the Start.p4-r8-scratch.jsonlshowsmcp_statuspending4 ms afterinitialize.e4633f360. Twobroker.test.tscases were red first. The spec has passed clean since.asset-holds.test.ts: release at close, refusal withoutview, release at a lostview, the 256 bound.leases.test.tsandartifact-rows.test.ts: the lease and run bounds, the pending send and its cancel in both orders.acquire.test.ts: an answer after the timer, and an answer on a stalled loop past the deadline, each let go exactly once.test/lane-b/remote.test.ts: a carrier drop with a live watch and a held snapshot.Each was red before its fix.
acc0d3e9bpassed, withe2e:cross-buildagainst 3.21.1300f2d1d(with the docs commit on top) passed.test/endpoint/acquire.test.tswent red, then 6/6 green.Unresolved Review Findings
src/renderer/src/artifacts/connector-owner.ts:37-40subscribes to no resync. The narrow pass found it, and it predates M5c. A change the sheet's other triggers miss can leave rows stale without the word until the next change or Refresh. Left for its own row, because the fix is a subscription in the owner, not part of M5c's fixes. The architect adds a tracker row at landing.e97ea834a). Where:src/endpoint/leases.ts, the re-decision's bounded retry delays. Left because the retries are bounded and the next channel's reset rebuilds the lease anyway.Residue
src/services/lane-a/deliveries.test.ts:249flake. It was seen once, in class 1a run 41462600212 on3da788c44(a stream-down case under load). It is outside M5c's code and fits the tech-debt tracker's load-flake row. c2's report has row text for it.LiveQuery.tsxshows no sheet detail line for anotOffered:pause. The fix is one line in the sheet's concrete pauses (c4's report). It sits outside M5c's renderer edge.owner-delivery.tsobserve(), theprocess === 'ready'filter and the silent null on a failedengine.sessionsboth skip without a word. Log both before chasing the one skipped read seen in e2e:remote's replay runs, which never recurred afterdb71ca566.artifactsfeedbehindatonUpstream {connected: true}.Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)