Skip to content

P5 O7 M2: lane B's conversation over the RL2 link, the step-up sheet and the carrier hover - #410

Merged
SSFSKIM merged 50 commits into
masterfrom
p5-o7-m2
Oct 31, 2026
Merged

SSFSKIM merged 50 commits into
masterfrom
p5-o7-m2

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 31, 2026 •

Copy link
Copy Markdown
Owner

P5 O7 M2 (docs/doperpowers/plans/2026-10-28-p5-o7-remote-lane-b.md): a lane B session on another machine opens from its listed row and works as a conversation over the app's RL2 link. Its transcript streams with token deltas. Send, steer and interrupt work, cards answer, and images go inline. Two apps on one session both see an answer settle. M2 also adds the step-up sheet before Touch ID and the machine row's carrier hover.

M2 takes no WIRE_MINOR (the remote.* names are main-owned). RL2 moves to 1.1, with rl2.executor.machine behind both capability lists. The full account is in docs/doperpowers/plans/2026-10-31-p5-o7-report.md. Each decision is a dated entry in the document's Decision Log.

What changed

  • Machine side.
    • org-protocol's machine executor.
    • ENDPOINT_CAPABILITIES and DEVICE_CAPABILITIES.
    • Lane B placement reads the spine's record first and is bound to the live engine session (src/endpoint/targets.ts; for the desk track's ledger).
    • A ClientRef per channel, whose end is relayed to the hosts (clientGone through host-supervisor.ts's forward).
    • M2's offer rows, each tested both admitted and refused.
  • The link.
    • peerCapabilities().
    • An act for an executor the peer didn't list, or one too large for the channel, is refused locally.
    • ActRequest.sendBy: one 60 s bound per send, kept across a resume.
  • Main's adapter (src/main/lane-b/, composed in src/main/app.ts).
    • Subscriptions follow the tabs.
    • The pane runs over a session.get record.
    • Engine-host and machine acts.
    • A resume runs through session.acquire, and only a ready launch takes acts.
    • session.events is read in pages the channel can carry.
    • remote.session, remote.gap (with at) and remote.historyTooLarge.
  • The step-up sheet (src/main/device/step-up-sheet.ts): macOS's own sheet, then Touch ID, for acts and for O8's state signing. MAWS_E2E_STEP_UP=accept is a harness confirmation; it only works unpackaged and under MAWS_E2E.
  • Renderer.
    • The lane B opener, and the pane over a record.
    • The controls overlay, including the composer's chips.
    • The gap bar, from remote.gap and historyUnavailable.
    • The hover reads "direct (tailnet)" or "via the hub"; a removed device greys its rows; "Hub unreachable" shows.
    • The composer's remote send shows A4's and the pending bound's words, checks the image bound, and keeps drafts and read marks in memory.
  • e2e:remote (joins CLASS1_E2E).
    • Profile B is a real private mawsd, enrolled in a local org. The harness's fake sminos on RL10 gives B its records and listings.
    • Profile A signs in through MAWS_DEV_ORG and is launched once over the hub and once directly.
    • The spec covers: B's listed row opens; a streamed prefix draws before the whole reply; a send reaches B; a permission is answered; an image reaches B; the hover per carrier.

Validation Evidence

Unresolved Review Findings

  • [P2, reviewer-high] Remote history windows the channel can't carry (src/main/lane-b/remote-history.ts, its fromDisk and unpageable branches).
    • Main pages a live launch's session.events. But a window the command's inputs can't page can exceed the channel's 4 MiB: a parked session's disk window (a soft budget of 2 MiB of string length, which keeps the whole newest turn up to a 16 MiB hard budget) or an older before page. For now such a window answers with only a gap bar.
    • That bar now says the history is too large to show here yet (remote.historyTooLarge).
    • The fix is a byte budget and continuation cursor on session.events. That is a wire change, so it moved to M4, which takes a WIRE_MINOR anyway, as acceptance 12 with its own tests. See the Decision Log entry "M2's milestone review" (3f577a0) and M4's "History in pages the channel carries". The architect agreed.

Residue

  • e2e:remote in HOSTED_MAC_E2E. It joined CLASS1_E2E and runs hosted when asked. Joining the hosted default list takes three green hosted runs on one tree under gate-offload's rule, which is CI-opt's call. Four green hosted runs so far, on three trees.

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

…d link, adapter, renderer, e2e scene); the wave 2 ledger binds

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…a query admits it; the handshake vectors announce the version they were recorded at (HandshakeOptions.protocol), so a minor's move leaves them as they are

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…IES in h2 (rl2.executor.machine); lane B placement by the spine's record first, the engine host's status otherwise; a ClientRef per channel carried by every dispatch its requests make and ended at its close; a machine call row dispatched as an engine-host one; M2's offer rows, each proved admitted and refused; a fake spine in the endpoint harness

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…essions; peerCapabilities(); an act or query for an executor the peer did not list refused not-offered, and an act over the channel's message limit refused too-large, before anything is sent; the dev session's directMap, honoured unpackaged; MachinesDeps.linkDeps passed to the remote source

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… the full text on the window before Touch ID, Cancel never prompts; harnessConfirmation for an unpackaged MAWS_E2E run that asks for it

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

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ecuted engine session and its fallback stated

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…e request runs on; a failing spine is unavailable, logged

Where the engine host holds a live row for a session, a read (the engine host's or the spine's), a subscription's
opening and a machine act are placed only when its engine session is the one the index names; an engine host act's
check rides on the status actions.ts reads for its context. Either way a lagging index answers `unavailable`, so a
member's rank on one engine session never reaches another. The host fallback stays for no record and for a null
engineSessionId; a spine that errors or throws answers `unavailable` with a log line. The row tests assert each
admitted read's dispatch by owner and name, and each refused one reaching nothing past placement.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ef to the host it forwarded to

hosts.forward takes the asker as a ref as well as an id; a forwarded ref is carried into the link's clientGone relay
once the request carried it (never to a protocol-2 peer, which gets no client), so a remote channel's close ends the
engine host's clone of its ref. The daemon's endpoint seam forwards the ref.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…e by default, the calls' owner, the device's capabilities)

FakeEngineHost now has a spine from construction, its index empty until a test records a session, so the suites that
build one without startEndpoint (desk-web's cards endpoint, the remote link's and sign-in's local suites, the staging
world) place lane B through the engine host rather than reading a missing spine as a fault. desk-web's local endpoint
records each call with its owner, as the harness's calls now carry it; sign-in expects the identity's capabilities to
be DEVICE_CAPABILITIES, as the org session now fills them.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…aneB), its session fold, outcomes and tab interest; main-owned remote.session and remote.gap (the remote namespace, outside the wire manifest; the fingerprint holds at dfe0943eb9060b43)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…test.ts, node-timing): opening and live stream at the host's cursors, a released session resumed by a send, run-once across a drop, A4's hold, the pending bound with a late outcome, the digest the host checks, an interrupt past held sends, the image bound, not-offered acquire, one gap each for a relaunch and a lost range, two devices on one request, removed; the harness serves further host.op handlers

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

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…to app.ts)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…nd routeLaneA, its shutdown before lane A's, the layout store made before the router (lane B reads main.tabs), one step-up confirm (the harness's, else the sheet then Touch ID) for both createStepUp calls and createStateSigner, the dev session's directMap read at each dial

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ow takes (electron's systemPreferences for the step-up sheet's Touch ID, the layout store's onChange for remote lane B); address-paths.json gains remote.gap's appSessionId and remote.session's address (rewritten by MAWS_ADDRESS_PATHS_WRITE=1)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ends the link's unsent window at the adapter's deadline, and no act is made past it, so a resume's time is not given back); a tab of a session the org rows list as lane A is never placed by lane B (laneOf, refreshed at each rows change); a session-only removed closes every control in the session's words; a page's session.get of a held remote session replays its record, last parts and remote.session (a reload, a second window)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…awsd with its direct listener behind a fake tailnet preload, enrolled in a local org, its lane B session started over machine.sock on a replay journal and listed by the harness's fake sminos on RL10; profile A signed in through MAWS_DEV_ORG from its own device keys, launched once through the hub (B's address mapped to a closed port) and once directly; the link up on each carrier in machines.list and B's row in A's org rows; e2e:remote joins CLASS1_E2E and the default-specs pin moves to 102

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…dmin's device (a device new to a member who has devices carries one, org-state.ts's endorsed); local-org's bundle exports org-protocol's endorseDevice beside the local hub

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…t's rows must not forward a main-only internal name)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
A listed lane B row opens its tab and the pane takes main's record once read; until then
"Opening on <machine>…", main's reason when it can't place the session, and Try again (a
main.tabs write, which re-opens every held address). The pane announces itself with
session.get only after connectShell subscribed session, attention and remote.session,
so a reload or a second window gets main's replay.

Controls take the remote overlay from remote.session; the remote send says "Sending to
<machine>…", keeps the text with Send again on error, and pre-checks the channel's inline
bound with the words main uses (now shared from schema/remote.ts). The transcript draws
a gap bar from remote.gap and from a historyUnavailable page. The hover names the
carrier, a removed device's rows grey, and "Hub unreachable" shows while the hub is down
and RL2 links are up. A record at a listed address whose project is unknown here files
where its listing is (row and tab set), so one row per address and no jump. Remote
drafts stay in renderer memory; read marks and record menus skip what main refuses.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…B's machine row, its hover naming the carrier ("via the hub", then "direct (tailnet)"), a click opening it in A's pane over B's history; a send B's transcript records and whose reply streams to A as its deltas; a permission card answered in A's pane; a pasted image B's engine is written; SideJournal's reply streams its text first when given deltas

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ches for the session, the sessions they named, B's events)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… a bare id beside the machine it came from

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
One deadline per send: a remote session is sent to with one invocation (a steer while
the status held here says a turn runs); main resumes a released session under the send's
own bound, so the renderer no longer acquires first. The chips change with no acquisition
either, and close with the overlay's reason for model and mode; Add directory is not
offered over the link.

The overlay is main's verdict from the record: a status this page doesn't hold gates
nothing, and a lane B session main still holds keeps its last status through its
machine's link going down (forgotten when main says the stream is idle or ended), so
Interrupt, Stop and Esc reach a running turn under A4's hold.

A remote.gap told while the history is read is placed before the first event of its
launch when the read holds it. Read marks for a remote session live in this app's
memory: on screen reads it, a turn ending off screen unreads it, and the toggle and Mark
all read set it, the owner's record never written.

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

remote.gap gains an optional `at {seq, idx?}`: where in the launch the gap ends. A lane B
`missing` stream goes on from what the machine still has of the launch, so main tells its
gap just before the first event it delivers, with that event's place (or with none when the
stream ends or answers another subbed first); an omitted event names its own place; a
relaunch's snapshot is told at its subbed as before, before the launch's first event.

The renderer places a gap told while the history is read before the first event of its
launch at or after `at` (the launch's first without one), and does so before the pager is
started from the history, so an older page's rebuild keeps the bar.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…p; remote.gap's at)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…'s engine holds at a get_context_usage after a strict prefix streams, the pane draws that prefix and not the whole, the test's own read lets the engine go on); the fake sminos waits for the welcome under Playwright's expect.poll, not the harness's own deadline

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…5 Decision Logs 168–170)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…row the host kept (a crash, a stop, a budget or idle release) is resumed by session.acquire under the send's one bound, and a starting or initializing launch is waited for; the harness's spine relaunches an exited row as the spine does

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…in pages the channel carries when one answer would be too large (afterSeq/limit from the read's start, a refused page halved, a row that alone can't cross left out with remote.gap at its place); a window the inputs can't page (before, agentId, seek, a transcript read from disk) answers history unavailable

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
O4 M1 moved backup-exclusion.ts to src/shared/fs/ and keys.ts now imports it as
@shared/fs/backup-exclusion; esbuild does not read tsconfig.base.json's paths
through the root's project references, so the device-key bundle failed to
build (run 41214594744). The three bundles the scene builds (device keys,
local hub, fake sminos) take the alias the way scripts/catalog-summary.mjs does.

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

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…4 with its decision, touches and tests; M2's gap bar for such a session says the history opens once it resumes

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…nce the session resumes

Until M4's byte budget (acceptance 12), a remote session's history window main's read
can't page across the channel (a parked session's disk window; an older page, a seek, a
subagent's slice) is answered historyUnavailable. Main now says why first, as the
main-owned event remote.historyTooLarge {appSessionId, window: 'newest' | 'older'}, and
the transcript source gives that answer's bar its own words: "This session's history on
<machine> is too large to show here; it opens once the session resumes", or for an older
page "Earlier history on <machine> is too large to show here yet". A lost range
(remote.gap, a local historyUnavailable) keeps "Earlier history isn't available". No change
to session.events or the wire manifest.

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

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…tore the earlier window)

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

A resumed session's stream brings the new launch's events, not the earlier window the
pane hydrated without, so the newest-window bar now says what is true: "This session's
earlier history on <machine> is too large to show here yet; new messages appear below as
the session goes on". The older-page words are unchanged.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…-o7-report.md)

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

chatgpt-codex-connector Bot commented Oct 31, 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-10-31T16:51:30.800364Z 65e6f56 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.

…st reads retried after an mawsd restart), #408

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

# Conflicts:
#	src/renderer/src/ipc/events.test.ts

@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: 65e6f56e36

ℹ️ 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".

Comment on lines +75 to +81
const seq = (cursor ?? 0) + 1;
const launch = deps.launch();
deps.log(`${said}: row ${seq} alone is too large for the channel; left out${launch === null ? '' : ', a gap at its place'}`);
if (launch === null) lost = true;
else deps.gap(launch, { seq });
cursor = lastSeq = seq;
continue;

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 Bound retries when an oversized disk row cannot be skipped

For a released session whose first disk-history event alone exceeds the channel limit, reducing size to 1 still returns too-large. This branch then increments afterSeq indefinitely, but the disk-backed session.events handler in src/engine-host/ipc.ts ignores afterSeq, so every subsequent call reads the same oversized event. The successful-response fromDisk check is never reached, leaving hydration unresolved and continuously issuing remote calls instead of displaying the intended history-too-large bar. Detect this unpageable case or otherwise bound retries before advancing an unverified sequence cursor.

Useful? React with 👍 / 👎.

Comment on lines +51 to +52
const whole = await dispatchOverLink(link, 'session.events', input);
if (!tooLarge(whole)) return whole;

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 Retry incomplete disk backfills without relying on live events

When opening a released remote session whose disk backfill takes longer than SNAPSHOT_WAIT_MS (2 seconds), the initial call returns an empty, incomplete page and is passed straight through here. The renderer then waits for session.eventBatch or fs.followState to retry, but the remote subscription ends as unavailable because the engine host has no session-status row, and neither backfill notification reaches the renderer through that ended stream. Consequently, even after backfill finishes, the pane remains empty after its 60-second wait until another action triggers hydration. Poll incomplete disk-history reads, or provide a notification path that works without a live launch.

Useful? React with 👍 / 👎.

Comment thread src/endpoint/offers.ts
'session.getSessionCost': laneB('call'),
'session.get': laneBMachine('call'),
'session.appEvents': laneBMachine('call'),
'session.history.list': laneBMachine('call'),

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 Scope remote prompt history to authorized sessions

A member with only view access to one shared session can now retrieve prompts and pasted text from other, private sessions in the same directory. This offer authorizes against the supplied appSessionId, but its executor in src/services/spine-root.ts calls PromptHistory.list, whose implementation in src/services/history/prompt-history.ts filters history only by the session's directory, not by session identity or the caller's access to each returned session. Thus sharing one session also exposes project-wide prompt history from both MAWS and the terminal. Restrict the remote result to authorized sessions, or require machine-wide authority before exposing this project-wide read.

Useful? React with 👍 / 👎.

Comment thread src/main/lane-b/remote.ts
'session.send', 'session.steer', 'session.interrupt', 'session.answer',
'session.queue.edit', 'session.queue.promote', 'session.queue.setPaused', 'session.queue.hold', 'session.queue.remove',
'session.setModel', 'session.setEffort', 'session.setThinking', 'session.setPermissionMode',
'session.stopTask', 'session.sideQuestion', 'session.mcpToggle', 'session.mcpReconnect',

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 Carry operation completions alongside remote receipts

For a remote session, MCP Toggle and Reconnect return an { opId } receipt, but their completion never reaches the renderer. src/engine-host/ipc.ts emits the eventual result separately as session.operation; neither the endpoint's SessionStreams transport nor RemoteSession forwards that event, and there is no substitute completion path in the remote adapter. Meanwhile, useOperation in src/renderer/src/widgets/operation.ts waits specifically for that event, with no local timeout, so the MCP widget remains on “Working…” with its controls disabled even after the remote operation succeeds or fails. Forward correlated operation completions before enabling these receipt-based commands remotely.

Useful? React with 👍 / 👎.

@SSFSKIM
SSFSKIM merged commit 3adf9c9 into master Oct 31, 2026
SSFSKIM added a commit that referenced this pull request Oct 31, 2026
… conversation over the RL2 link and lane B placement reading the spine's record first, its merge gated onto master after #409 and #411; unit-daemon e2e groups never on the mini's home runner; O5 M4's two departures accepted; the wave 2 ledger gains O5 M4's names and shared files

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM added a commit that referenced this pull request Oct 31, 2026
…for landing 1

O7 M2 (#410), CI-opt's #412 (LAUNCHD_E2E, the sweep before gate-peer.sh stop) and #416 (e2e:remote on the hosted Macs),
#411, #414, #415. Conflicts reconciled side by side: the render and remote namespaces in names, grades, schema and
its test, and the link surface's client rules; the router's host binding keeps daemonRenders under master's routeLaneB;
the default-spec count is 103 (render-host and remote); gate.yml's comment keeps both groups' notes. #410's
host-supervisor forward and StandIn.clients hunks merged to master's text (no duplicate). The wire minor and the
generated snapshots follow in their own commits.

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