Skip to content

P5 O7 M3: remote terminals and port forwarding - #433

Merged
SSFSKIM merged 50 commits into
masterfrom
p5-o7-m3
Nov 1, 2026
Merged

SSFSKIM merged 50 commits into
masterfrom
p5-o7-m3

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 1, 2026

Copy link
Copy Markdown
Owner

P5 O7 M3: remote terminals and port forwarding. A remote session's Terminal tool opens a shell in its worktree on its machine. A loopback link in a remote session opens in the in-app browser, through a port forwarded over the link and marked "forwarded from ".

Execution document: docs/doperpowers/plans/2026-10-28-p5-o7-remote-lane-b.md (M3; every departure is a dated Decision Log entry). Report: docs/doperpowers/plans/2026-10-31-p5-o7-report.md, section M3.

What changes

The pty host (src/pty-host)

  • pty.op and pty.opQuery run over an op ledger, pty-ops.jsonl. With orphanAtOpen, a claim left by an earlier process answers expired.
  • pty.listFor and pty.replay (offset-based, non-crediting).
  • mawsd's seam guard reads pty.op's inner name, and mawsd relays its pty host's state to the endpoint. That relay is one line in src/mawsd/daemon.ts.

The protocol and the endpoint

  • RL2 1.3 adds the stream kinds behind rl2.streams and the pty-host executor behind rl2.executor.pty-host. streamRefused gains unavailable.
  • The endpoint's stream table:
    • The pty plane replays from the device's own offset.
    • Input is at most once per (device, ptyId, inputEpoch). That holds across an endpoint restart: the open's inputSent covers it.
    • The tcp plane runs on the machine's loopback. It tries ::1 once after 127.0.0.1 refuses.
  • forward.open opens forwards kept per device for 120 s across a channel loss.
  • Every stream is decided and published in one synchronous step, and re-authorized at each caps refresh and on a read-only change.
  • A pty host's death, or a host crashed for good, ends its terminals as lost.

Main

  • The link's openStream.
  • The terminal adapter:
    • acts run under the pty host's ledger;
    • a stream is reopened from its offsets with no new prompt;
    • geometry is resent;
    • checkpoints are kept in memory;
    • pty.hostState comes from the link.
  • Forwards:
    • a listener is bound only after the grant;
    • waiting connections are bounded (32, 15 s);
    • a link's permanent end closes its forwards;
    • a closed connection is drained, then destroyed.
  • The loopback rule: a remote session's loopback link never opens this Mac's loopback. localhost, 127.0.0.1, 0.0.0.0, [::] and [::1] over http(s) are forwardable.
  • The in-app browser holds a remote session's tabs here:
    • Explicit allow-list: the router answers browser.tabs.list, .open and .select for another machine. Agent control is never answered.
    • Session keys: sessions are keyed by address, and the internal key is translated at every exit.
    • The forward on the tab: BrowserTab.forward is kept current by main, and the forward is opened again on a restored tab's first load.
  • The main-side 60 s listing wait is gone: since P5 O12 M11: the spawner as owner (MAWS's half: the launch's MAWS_LAUNCHED_BY and proof file, the endpoint's bridge and handed-off mark, the endpoint ledger's orphanAtOpen) #431, the endpoint ranks the spawner as owner.

The renderer

  • Re-adoption through pty.listFor, bounded above main's whole budget. The bounds are shared in src/shared/machine/remote-pending.ts.
  • hostReady reads the terminal's own machine.
  • "[output lost]" is drawn where output was skipped.
  • Forwarded links, the mark (from tab.forward), and the refused-forward page with Try again.
  • A remote terminal whose session goes is released, not killed. Closing a Terminal tab still kills, as locally.

e2e:remote

  • M3's scenes: a shell in B's checkout prints pwd, and a reload re-attaches the same pty with its output.
  • Python's plain http.server is opened from its [::] link in the in-app browser, marked; it shows B's listing, and ^C stops it.

WIRE_MINOR is 18 (master's 17 plus one) and RL2_PROTOCOL is 1.3.

For the desk track (p5-desk-track-owner)

apps/desk-hub/deploy/endpoint-items.ts, acceptance item 8: the not-offered probe moves from pty.spawn, which M3 now offers, to pty.write. pty.write crosses only as a stream, so it is never an offered act. The item's other probes and its pass condition are unchanged, so what the deploy acceptance checks doesn't change.

Validation Evidence

Gates ran through scripts/ci-gate.sh on GitHub Actions. Each run's commit tree was checked against the head's (git show -s --format=%T).

PR head, the code

Docs head

  • 48159eee3 (the report's gate rows): static run 41328171554, success (tree 526ecc61e).

Claims of done, and what backs each

  • Acceptance 2's terminal item: e2e:remote on the hosted Macs. It passed three times on one tree with no retry: runs 41322448263, 41322448337 and 41322448327 on 98e896c5e (tree 45472995). test/lane-b/remote.test.ts, run against a real endpoint and a fake pty host, covers:
    • typing across a forced drop with nothing repeated and no second prompt;
    • a new adapter under the same keys;
    • a reload re-attaching from the ring.
  • §5's port forwarding: the same e2e:remote runs, the forward's main-side suites (real sockets on 127.0.0.1), and test/endpoint/streams.test.ts. The streams suite covers an HTTP round trip, a closed port answering unreachable, a forward kept within its window and refused unknown past it, and a server on ::1 alone.
  • Revocation and races: test/endpoint/streams.test.ts, with a real channel and ledger, covers:
    • a grant withdrawn during a held replay, during a forward's creation, and at microtask depths after the final decision;
    • overlapping re-checks;
    • at-most-once input for an unknown outcome and across an endpoint restart.
  • Compatibility: e2e:cross-build against the peer one minor back, in each class 1a run and in the landing gate.
  • Reviews:
    • Five task reviews, each converged; the rounds are in the report.
    • reviewer-high on the milestone over two rounds. Its last two findings were verified by the controller.
    • Every adjudication is in the execution document's Decision Log.

Unresolved Review Findings

  • The held-decision tests sleep instead of waiting for a signal (test/endpoint/streams.test.ts, about lines 745 to 819). They sleep a fixed time before the withdrawal or reset, instead of waiting on an "entered the hold" signal. The implementation is correct by inspection, and the reviewer's independent probe waited for entry. Left because under load a fixed sleep can only weaken coverage, never fail falsely. (M3a2 re-review, Minor.)
  • src/endpoint/streams.ts is about 910 lines doing one job. A split into the pty and tcp planes, with admission and re-check kept in the table, would make transitions easier to isolate. Deferred so the milestone's review fixes stayed in the reviewed file. (M3a2 review, Minor.)
  • No test that a cancelled tcp opening skips the ::1 attempt. The harness can't reach the connect seam. The guard is one line and mirrors the existing cancel check. (c1a0887b5.)
  • Input credit is refunded per keystroke when no write is waiting. That is one small message each way per key. M7's numbers decide whether to drop the idle flush. (M3a2's report.)
  • A pty host's death before the endpoint has heard any state from it is caught only at the host's next ready, after the supervisor's restart backoff of 0.5 to 5 s. The milestone reviewer rated this a bounded delay, not Important.
  • e2e:remote pays about 70 s a run for Python's socket.getfqdn('::') before http.server prints its line on a hosted runner. The scene keeps the plain command on purpose (the architect's ruling). A one-line swap that skips only the lookup is in M3d's report if the cost matters.
  • npm's "Unknown project config" warnings from .npmrc show in every focused vitest run. This is environment debt, not this change's.

Residue

  • The pty host's park rule doesn't count remote work in flight. A new mawsd can park an adopted, idle pty host whose only work is a remote spawn still waiting for its first login-shell capture. The architect routes this to a tracker row. Exit: the next change to mawsd's pty-host park rule counts the pty host's in-progress ledger claims as need, across processes.
  • A deleted remote session leaves its browser tabs. The spine never reports another machine's session deleted, so its tabs and its machines entry in tabs.json stay until the person closes them. The fix needs a deletion signal for remote sessions.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)

…3, its execution in five tasks

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…und read open, the reserved browser.screencast kind, the browser.inventory feed)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… dir>/pty-ops.jsonl, orphanAtOpen), pty.listFor, pty.replay, mawsd's seam guard reading pty.op's inner name; WIRE_MINOR 16

pty.op runs exactly pty.spawn, pty.attach, pty.kill and pty.listFor (else unavailable); an attach takes no credit
whatever its args and is kept and answered as {info, ringStart, nextOffset}; pty.replay reads the ring from an offset,
independent of any checkpoint, touching no credit. A claim left unfinished at open answers expired: the table is the
process's memory, so the last process's act ended with it; a mawsd restart adopts the host, ledger intact.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… whole) and the pty-host executor, behind rl2.streams and rl2.executor.pty-host in both capability lists

A stream's id and input epoch are 16 bytes' canonical base64url, a chunk 1 to 64 KiB of unpadded base64url, credit within 4 MiB, a pty open's start and a tcp open's forward each present for its kind only; streamRefused's reasons are §N's and `unavailable`. The handshake vectors stay at VECTOR_PROTOCOL 1.0, so the minor's move leaves them unchanged.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ts: M3's offer rows, the pty-host executor, forward.open, the stream table with its pty and tcp planes, streams re-authorized at each caps refresh

pty.spawn, .attach, .kill and .listFor are shell acts under the pty host's ledger (pty.op, queried by pty.opQuery, a pty op's standing always the machine's); forward.open {port} is the endpoint's own shell act, its forward kept per (device, forward) for RESUME_MS past its channels. A stream opens under its act's ledger answer (this channel's member and device, a name its kind allows, the pty or forward its result names) after the caller's own floor, read as of now without a tombstone; a pty stream reads the ring by pty.replay from the device's offset, then onFrame frames, under the device's credit, closing behind past 512 KiB held; input is deduplicated per (device, ptyId, inputEpoch); a tcp stream connects to 127.0.0.1:<port>. Every caps refresh, and a read-only policy, authorizes open streams and kept forwards again and ends a refused one removed.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… keeps none of (M3a1's ledger)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…formed; a pty host older than pty.op answers a pty act refused unavailable

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…t completes in the adopted pty host (in-progress, then done with the original binding, run once, no host replaced)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ty.spawn is offered now)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ded after the opening's reads and before a forward is made, a failed write unacknowledged and resent, the opening's frames bounded, a device's tcp close resetting the socket

Overlapping re-checks hold a stream once and the latest grant releases it. A stream's binding is decided after the ring's read or the connect and before streamOpened, again when a re-check began meanwhile (Streams.decide), and forward.open's effect decides it before the forward is made, so a grant ended during either opens nothing. A pty.write that failed, threw or timed out closes the stream unavailable with its chunk unrefunded and the input offset where the last landed write left it (a UTF-8 carry replaces the streaming decoder), so the reopen's resend is written. Frames buffered while the ring is read count against the backlog: past it the stream opens and closes behind at once. The fake pty host refuses a write or resize to an exited pty, records a resize's size, fails writes on demand and holds a replay. The stream comment no longer claims an unknown kind closes a channel.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…s, credit both ways, 64 KiB chunks in unpadded base64url from the stream's own offset, waiting for a channel, dying with its channel (carrier)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… and their stream across channels (reopened from offsets under the same act, behind, unavailable, unknown, removed), input under an epoch per app run, the adapter's checkpoints, pty.hostState from the link; remote.forward.open and .close over loopback listeners, tcp streams, the forward's window

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… the shared rule (loopbackPort, forwardedUrl), main's link handlers refusing to open it here, the router answering pty.hostState through the link and pty.openLink and layout.openExternal here for any machine

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…pen closed behind at once keeps doubling); a forward whose fresh act made no forward ends; a member without shell refused a forward

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…onous step (decide runs a publish callback in the continuation where the check passed) on the pty plane, the tcp plane and forward creation; a forwarded connection lost while its stream is decided refused unreachable; a write whose outcome is unknown (thrown, timeout, host_unavailable) at most once, the record and its decoder moved past the chunk

Regressions: a withdrawal queued 0 to 4 microtasks behind the final decision's grant leaves no pty stream, tcp stream or forward live; a re-check started while the final decision is pending refuses all three grade; a server reset during the decision answers unreachable with the channel kept; a write that lands with its reply lost (throw, timeout, host_unavailable) is not written again on the reopen's resend, a split character finished by the next chunk. An explicit refusal is still resent.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…, the protocol import in order

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…mote.forward.* in the client grade's pinned list

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… the loopback rule split (isLoopbackLink never opens here, loopbackPort forwards with the scheme's default port); a forward's waiting connections bounded (32, forwardWaitMs) and a machine-ended one drained then destroyed (forwardDrainMs); a link's end (RemoteLink.ended) closes its forwards; the latest geometry sent on every pty stream; regressions for each and for forward.open's failed grade

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…red tab re-adopts its shell through pty.listFor (kept per session until a spawn or an exit there, bounded above main's 60 s pending bound, its own label only), each machine's pty host state asked through its link and hostReady read from the terminal's own machine, "[output lost]" where the stream skipped bytes, a remote terminal lost to this app named by its machine, terminal links through the page's forwarder first

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…other machine's session (transcript or terminal) opens in the in-app browser with its forward, without asking; the Browser tool runs remote.forward.open and loads the page on the local port, a tab on that port marked "forwarded from <machine>", a refused open drawn in place of the pane with Try again; other links of a remote session go to main told its machine

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…s store reads each machine's pty host state)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…e forwarded ([::1], the rest of 127/8, another scheme; M3b fix wave 1's isLoopbackLink) opens nowhere, its line saying why in the machine's name; a link with no port written forwards at its scheme's default

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…dded IPv4 (::ffff:0.0.0.0 and ::ffff:127/8 in every spelling are loopback, never forwardable); a non-special scheme's host lowered; FORWARDED_ELSEWHERE's words true of both kinds of loopback link

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…17 (M3's entry after M11's 16, the manifest regenerated from master's); QueryBinding's launchedBy beside StreamBinding; a pty-host query's binding placed nowhere (M3) with M11's spawner read for the others; the endpoint ledger's orphanAtOpen note naming forward.open

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ndpoint ranks the spawner as owner): LIST_WAIT_MS, listWaitMs, spawnedAt, spawnWaitOver, the session state's listing and its "Waiting for <machine> to list the new session…" words gone; a session spawned here follows the ordinary record retries, then "can't place", as any session

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… refused, so a dev server bound to localhost on ::1 alone (Vite, Node 17+) is reachable; loopback only, no lookup, the last attempt's answer, a cancelled opening starting no further attempt

Test: an HTTP round trip through a forward to a listener on ::1 alone, skipped where the host has no IPv6 loopback; the closed-port case still answers unreachable with both attempts refused.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… fallback, the #431 merge at WIRE 17 with the listing wait removed, the in-app browser's tabs for a remote session as an allow-list)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…outer answers the Browser tool's browser.tabs.list, .open and .select for any machine (an explicit list; every other browser command, the agent's above all, stays refused there); main keeps such a session's machine (tabs.json's machines) and says its tabs' events from it, its tabs kept at boot, the boot's list this machine's sessions only; a tab opened at a forward's listener keeps BrowserTab.forward {machine, port, localPort}, persisted, and past a relaunch opens its forward again at its first load (a failure: the tab failed with main's words)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… whole budget (the list above the act bound, the attach above the act and the replay together; REMOTE_ACT_PENDING_MS and REMOTE_ATTACH_PENDING_MS in src/shared/machine/remote-pending.ts for main to read too), so a slow confirmation with a delayed replay adopts the same shell; a dispose nobody asked for releases another machine's shell rather than killing it there

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…he app-boot suites mock ./ipc/events without it)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…chine said from that machine (SessionMachines.elsewhere through comment mode to sendPicked), as the browser's other events are

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… while the page is on its listener (the session-storage inference retired); a restored forwarded tab main could not re-forward says so with the port and machine, its Retry main's reopen; another machine's main browser tab not called closed before its session's own list is in; the app-wide list's answer leaves another machine's session alone (a guard)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…address (this Mac's by its bare id, as before), said by its bare id for its machine at every answer and event, a list never moving it; a re-forward's answer stale once the tab moved (the latest page asked on the forward loaded, a stale success or failure touching nothing); a tab's forward read from the listeners at each committed navigation and a window.open child's creation, cleared once its page leaves every forward

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… B in the session's checkout (one pty on B, there), pwd prints it, and a reload of A's window re-attaches the same shell showing what it printed; a dev server started in it (python3 -m http.server) opens from B's localhost link in A's in-app browser, its tab marked "forwarded from B" on a listener of A's own, its page B's directory listing, and stops at ⌃C; the owner's launch with no harness confirmation

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… screen again (the browser's tab may have taken its place, and a hidden terminal has no emulator to read)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ion key in a browser event (any value or record key, at any depth: extensions.reveal's show.tab among them) said by its bare id from that machine, an event naming two machines' sessions not sent, every session-naming browser event enumerated against the registry in a test; a window.open child made after its opener's listener went takes its opener's forward while on that port

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…_MS, and a pty attach's replay wait named as that bound again, so a whole attach answers within REMOTE_ATTACH_PENDING_MS (a test ties them)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…INOR 18 (M3's entry after O5's 17, the manifest regenerated from master's); the browser view's header and imports carry both O5 M5's agent notice and M3's forward-failed page

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…tp.server <port>` (dual-stack on ::), its line pinned to the link it prints, `http://[::]:<port>/`, which B's reply names; the port chosen free on every address

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ck reaches a server on either loopback; python's http.server prints http://[::]:8000/), written or implied port, forwardedUrl replacing the bracketed host whole; IPv4-mapped forms still loopback and not forwardable; the refusal words, main's and the renderer's, naming the five hosts

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… an open meeting a pending one shares its outcome (both answered after the grant, both refused on a cancel) and no connection is accepted before the grant

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… an endpoint restart, and a pty host's death ends its remote terminals

The pty streamOpen gains an optional inputSent (RL2 1.3, read whole: a count at least inputFrom), the end of the input the device already sent in the epoch; an endpoint holding no record of the epoch (restarted, or past RESUME_MS) starts it there, so the resend of what it can't vouch for is dropped, and main's remote terminal names it on every stream (what was handed to a stream, never what was only held). mawsd relays the pty host's HostState to the endpoint as pty.hostState at each transition; the endpoint closes every pty stream exit at once on a transition that counts a restart (the process gone, the device reading no status as lost), and at each ready lists the host's ptys and closes the streams of one it no longer runs, keeping the rest (a reconnect).

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…he offsets of input dropped unsent, so its next open never names inputFrom past inputSent; a pty host crashed for good ends its remote terminals

Main's end() sets inputNext back to inputSent (the machine wrote nothing past it), and an open is built so that inputSent >= inputFrom, a break of it said and clamped rather than sent malformed. The endpoint closes every pty stream exit at the host's crashed, and refuses a pty open unknown until the host is ready again, which main's reopen for the exit's status takes as final: the terminal ends as lost at once; a host back ready revives no settled stream.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… remaining entries (the browser for a remote session and M3c as built, the #428 merge at WIRE 18 with [::] and [::1] forwardable, the milestone review's fixes), and M3's Outcomes

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… gates, names, environment)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ws (its screen's foot may be blank) and, for the dev server's, main's and B's lines

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…, its failure naming the http.server processes and the port's sockets on the runner (B's dual-stack server printed nothing on three hosted runs)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… reverse lookup of :: (http.server's getfqdn before its line: 72 s on a hosted runner), the time logged

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…reverse lookup of :: stalling 71 to 72 s on hosted runners)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…th green) and its residue

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
@chatgpt-codex-connector

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 ⚠️ Failed 2026-11-01T16:52:34.163403Z
We couldn’t complete this review. Comment @codex review to try again.
48159ee 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

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@SSFSKIM
SSFSKIM merged commit 7ab7b96 into master Nov 1, 2026
SSFSKIM added a commit that referenced this pull request Nov 1, 2026
…nd RL2 1.3; the browser's allow-list for another machine; hostReady's row closed, three tracker rows; the wave 2 ledger gains O7 M3's and O17 M4's names

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM added a commit that referenced this pull request Nov 1, 2026
…432, O12 M11 #431, O7 M3 #433, O17's document #430, O7 M5 re-plan #434 and #436, #437, #438) into p5-o16

The WIRE retake: master is at WIRE_MINOR 19, so O16 takes 20. The comment keeps master's entries through (19); O16's
additions (M2, M5, M3b, M3c fix wave 2), named under (16) on the branch, now follow under (20). WIRE_CAPABILITIES is
master's list plus host.holder. The manifest is master's (minor 19) regenerated with pnpm wire:manifest at 20: against
master it adds commands.daemon.restartEngineHost, commands.host.handover and events.daemon.engineHandover, changes
O16's additive status and supervisor fields, and lists host.holder. routes.json auto-merged and its pin holds.

Conflicts, each resolved keeping both sides:
- src/shared/ipc/wire.ts: WIRE_MINOR 20 as above.
- src/shared/ipc/wire-manifest.json: master's, regenerated (above).
- src/shared/host/detached-transport.ts: O16's report() (the status ask before the link is reported) keeps its shape;
  O5 M5's socketFd joins the port it reports.
- src/shared/host/op-ledger.ts: the orphanAtOpen comment names the services', the endpoint's (O12 M11) and the engine
  host's (O16 M3c) ledgers; none opens without it now.
- src/mawsd/daemon.ts: O5 M5's session.removed listener and O16's tellEngineHandover side by side; at the stop, O5's
  cua socket close and cache watch end, then engineHandover.stop().
- src/mawsd/front.ts: FRONT_COMMANDS holds daemon.restartEngineHost and session.capabilities.
- src/mawsd/cli.ts: O16's sessionHostsLine and O5 M6's renderText.
- src/engine-host/launch.ts: O12 M11's MAWS_LAUNCHED_BY and O16's MAWS_HOLDER_SOCKET.
- src/services/spine-root.test.ts: FRONT_EVENTS holds session.capabilitiesChanged and daemon.engineHandover.
- test/support/mawsd-scene.ts: the stand-in's events hold O5 M5's session.status and O16's maws.pane.show and
  host.supervisorStatus.
- scripts/mawsd-pack.test.mjs: O16's two session host pack tests and O5 M6's two --render tests.
- devenv/validate.sh: the header names the session host check and the render runtime check; both run.

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