Skip to content

P5 O9 M9: remote lane A, a terminal session on another machine driven from MAWS - #348

Merged
SSFSKIM merged 33 commits into
masterfrom
p5-o9-remote
Oct 29, 2026
Merged

SSFSKIM merged 33 commits into
masterfrom
p5-o9-remote

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 29, 2026 •

Copy link
Copy Markdown
Owner

P5 O9 M9: remote lane A. MAWS on one Mac shows and drives a terminal Claude Code session on another machine through O7's RemoteLink, that machine's endpoint and its sminos bridge.

Spec: docs/doperpowers/plans/2026-10-28-p5-o9-lane-a.md (M9; Decision Log entries of 2026-10-29). Report: docs/doperpowers/plans/2026-10-29-p5-o9-remote-report.md. Parent: docs/doperpowers/plans/2026-10-27-p5-org.md, child O9.

This lands after O3-C: the branch was cut from p5-o3-c and merged its post-series head 8544c48. M10, the live sitting from the MacBook against the mini, waits on O14 B2 (the mini runs no mawsd and its sminos still runs its DX2 uplink); the report has its steps.

What changes

  • Main (src/main/lane-a/remote.ts, remote-state.ts, remote-outcomes.ts; src/main/index.ts): the router's remote option is wrapped, so a laneA.* command for a machine that Machines.remote answers goes to the adapter. Every other command, and laneA.* for the socket stand-in, takes O7's path as before.
    • Controls go as RL4 acts built from typed fields, with lane A context and the launch from presence; answers and decisions carry the request digest; step-up is O7's 'if-asked'.
    • One send is in flight per session, through sminos.send, and its lane outlives its watches.
    • Each watch is its own subscription, resumed by cursor. A pause or a replay is never a reset; a fresh snapshot, omitted or a re-subscription after ended is.
    • Each session's state carries link (the link's state and the device's caps, with a reason when no control can act) and acts (each control's act in flight, with its progress).
  • Shared (src/shared/lane-a/): the answer mapping, the step-end fields (P5: DX4 StepEnd gains optional t, model and effort (sminos 1.27.12) #339's typed t, model, effort), the bridge words and the attention entry, read by the local and remote halves alike.
  • Renderer:
    • A listed lane A row opens through registerRemoteOpener('A').
    • remote-source.ts serves PlaneTranscript over the watch, with lane A's own streaming overlay, in a lazy chunk.
    • The lane A port draws every control from capabilities.
    • The remote gaps are disabled in place with their reasons, in the toolbar menu, Session info and the agents drill-in.
    • Cards sit in the pane under ids addressed to the machine (OX2).
    • The remote subagent tree and its statuses reach the agents tool.
    • A failed page is asked again when the link resumes, or through a Retry.
  • Tests: test/lane-a/remote.test.ts (18 cases) drives a real RemoteLink against the real endpoint and a fake sminos, through desk-hub's fake machine. It covers:
    • each control's frame;
    • an answer's digest, and step-up on the endpoint's ask;
    • two sends in order, with the first's outcome held;
    • model changes carrying only what changed;
    • a lost ack with one effect;
    • a stale launch;
    • paging and an MCP read across a reconnect;
    • a channel drop and a carrier switch, each message delivered once;
    • a replay resume with no reset, and a quiet one;
    • a fresh snapshot's reset;
    • each gap;
    • step-ends with and without the new fields;
    • a grade refusal end to end;
    • a non-laneA command still taking O7's path.

No WIRE_MINOR bump (laneA.* is main-owned) and no settings version. Nothing under src/endpoint changes. O7's link, dispatch, carriers and org session are untouched.

Validation Evidence

  • On the current head, 008700a (master 35b37d3 merged: O3-C P5 O3-C: the spine as a library with two roots #349, O8 M4a P5 O8 M4a: the Org page, its shape, people and devices #344, CI: keep flaky-pass reports and measured e2e samples #346). There was one import-block conflict in src/main/index.ts, and both imports are kept.

    • --class1a pool --gates static,unit,probes,e2e:lane-a,e2e:c7,e2e:c7-utility,e2e:widgets,e2e:agents,e2e:transcript,e2e:side,e2e:desk-web,e2e:desk-web-hub,e2e:settings,e2e:machines --runner macos printed ci-gate: run 40877522699 success. Groups passed: lane-a 11, c7 35, c7-utility 35, widgets 29, agents 23, transcript 37, side 12, desk-web 198, desk-web-hub 39, settings 14, machines 1. Flaky: 0. The run's commit 59ce1f6 has tree c20a63904, the same as 008700a's.
    • --gates e2e:default --lane no-hosted --runner macos printed ci-gate: run 40877522775 success: 211 passed, 239 skipped (collected by other groups), 0 flaky. The run's tree is c20a63904, the same as the head's.
  • The landing set, on 20202dd (M9 merged with O3-C's post-series head 8544c48, which carries master 5b7f510). cd /tmp && scripts/ci-gate.sh <worktree> --gates static,unit,probes,e2e:lane-a,e2e:c7,e2e:c7-utility,e2e:widgets,e2e:agents,e2e:transcript,e2e:side,e2e:desk-web,e2e:desk-web-hub --runner macos --class1a pool --label o9r-land-1 gave ci-gate: run 40866323525 success (https://github.com/SSFSKIM/MAWS/actions/runs/40866323525). The groups ran unlaned and passed: static, probes, unit 1-4/4, e2e:lane-a 11, c7 35, c7-utility 35, widgets 29, agents 23, transcript 37, side 12, desk-web 198 and desk-web-hub 39. The job logs show 0 flaky lines. The run's commit 0a95d64 is ci-gate's empty commit on 20202dd, with the same tree, e4a8bd0f1. The head past 20202dd (0aba552) changes only docs.

  • The integration suite, test/lane-a/remote.test.ts (node-timing), 18/18. It runs in class 1a's unit shards above and was run alone on the landing fix head.

  • Class 1a on each half's reviewed head: 40838051168 (main, 6dc421a), 40854320233 (renderer, bb31c19) and 40858548379 (landing fixes, ae8bad8), all green. Hosted e2e:lane-a 40854302887 on bb31c19, green.

  • wireFingerprint() is unchanged: src/shared/ipc/wire-fingerprint.test.ts passed, 5/5. No WIRE_MINOR bump.

Reviews: task reviews on each half (main: 4 Important, one fix wave; renderer: 5 Important and 1 Minor, two fix waves), each re-reviewed clean. doperpowers:reviewer-high over the whole of M9 (4c3fcbe..7da8b11): 3 P2 seam defects, fixed in 45fe5b7, dce27e5 and ae8bad8, re-reviewed correct with no material findings.

Unresolved Review Findings

None. Every finding was fixed or is a residue item below.

Residue

  • A member's rank on a session is unknown before the endpoint refuses. RL2's caps carry machine rights only, and sessionRank is the endpoint's, so main can't tell that a member only views a session. Such a member sees its controls available until the endpoint refuses grade, which is worded from its code; the control then clears, and a send keeps its text. Closure: the endpoint tells the device its rank on a session (an RL7 or caps addition), with O10 and O8's sharing work. The architect writes the tracker row.
  • A remote session's composer drafts and session.status don't reach the other machine. They go down O7's path and fail quietly; sends work. Unsent text doesn't survive a remount. This is O7's C2 (the moved namespaces and remote drafts).
  • Paused and resumed are not shown inline in a remote pane. The link's reason closes the controls while it is down, and the spec's "the pane may show" leaves the indicator optional. It is a small UX follow-up.
  • Remote lane A requests show in the pane only. Needs you, the sidebar glyph and the badge read records, so attention across machines stays O7 M6's.
  • M10's sitting waits on O14 B2. Its steps are in the report.

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

… shared logic in src/shared, the opener, custody, step-end time, model and effort, delivered words); M10 waits on O14 B2

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

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…n src/shared/lane-a, read by both halves

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ts state fold, the router's remote option wrapped, and the integration suite against the real endpoint

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… tests; two test types the typecheck refused

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… each control's act in flight in a remote session's state, model and effort folded each on its own

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…h the review's corrections; two discoveries)

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)
…s the default observed; the fake plane steps through the fake machine

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…only member's control and send refused, nothing left pending)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… for the remote pane's cards (local behaviour unchanged)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…w, draws from its machine's plane and is driven through the lane A port

Lane A's opener in O8's registry; remote-source.ts, a SessionPlane over the page's watch under plane-transcript.ts, older rows paged through laneA.read; the port's remote gaps, link reason and act progress; the pane started with no record, its requests docked as cards; the lane A store listing each listed machine into its own partition.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ote state's link, the notice row is an error row of severity notice, interrupt's flags whole

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… transcript stays out of the chunk every local transcript loads

Its static imports had grown the transcript chunk's first load past the comment card's one-second wait on CI (CardThread's first case, red twice at 1.10 s against 0.24 to 0.36 s before).

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…rry clears with its reason and is asked again when the plane delivers again

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…e toolbar menu and in session info, ahead of the local words; its tab is titled by its listed row

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ree and statuses from its plane; its cards' attention ids are addressed to its machine (OX2)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…itle as text; the paging test's next delivery is a subagents message

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… with the review's corrections)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…sks a failed page again; an underfilled pane says why with a Retry

The watch passes main's {resumed: true} on as its own event, never a reset; the pause stays the link's reason. A page the link could not carry is asked again at the resume, at the next delivery, or from the Retry beside its reason.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…fix wave in the Decision Log

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…pe e2e, #343) into p5-o9-remote

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… the page resumed, never a reset, so an ask a quiet drop lost is asked again

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…he records change the session's transport, so a remote session restored with the tool open reads its plane

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…gap with its reason in place of the child transcript, building no child source; Stop and Tell stay

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… remote half's report (M10's sitting steps)

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

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

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

chatgpt-codex-connector Bot commented Oct 29, 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-29T12:05:55.867302Z 0aba552 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 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: 0aba552f1f

ℹ️ 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 thread src/main/lane-a/remote.ts
emitPlane(s, { watch: w.id, resumed: true });
}
if (primary(s) === w) changed(s);
if (first) void hydrate(s);

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 Refresh status after a replacement subscription snapshot

When a remote session restarts or reconnects with a fresh snapshot while its tab stays open, w.started remains true, so this guard skips status hydration. The snapshot updates the launch and presence but carries no model override, leaving s.status from the previous connection or process in place. An idle session can therefore display an obsolete model/effort override indefinitely, and the model selector uses that stale override when deciding which changes to send. A focused reproduction with snapshots for launches L1 and L2 performed only one status read and retained L1's override under L2. Refresh status on replacement snapshots as well as the first snapshot.

Useful? React with 👍 / 👎.

for (const { item, request } of entries) requests.set(item.id as AttentionId, request as SessionEvent);
return { requests };
});
useAttention.getState().applyChanged({ appSessionId, items: entries.map((e) => e.item) }, machine);

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 Preserve question drafts while pending requests are restated

If a fresh subscription snapshot arrives while someone is answering a remote question, RemoteFold.message('snapshot') temporarily empties pending before the subsequent raised messages restate requests. Mirroring that intermediate empty list through applyChanged invokes forgetClosedDrafts in the attention store, permanently deleting the question's selected answers, free-text input, and current step even when the identical request immediately returns. A focused reproduction using the fold, mirror, and attention store confirmed that the request returns but its draft is gone. Preserve drafts across snapshot reconciliation, rather than treating the temporary absence as a settled request.

Useful? React with 👍 / 👎.

…9-remote

One conflict, in src/main/index.ts's import block: O8 M4a's page-fixture import beside remote lane A's; both kept.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
@SSFSKIM
SSFSKIM merged commit e29972d into master Oct 29, 2026
SSFSKIM added a commit that referenced this pull request Oct 29, 2026
…rank row; UX ticket #352; the admin.test row's second sighting

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