Skip to content

P5 O6: the machine dimension (addresses, the sidebar's machines and projects, the machine chip and offline state) - #268

Merged
SSFSKIM merged 75 commits into
masterfrom
p5-o6
Oct 28, 2026
Merged

SSFSKIM merged 75 commits into
masterfrom
p5-o6

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 28, 2026

Copy link
Copy Markdown
Owner

P5 child O6, the machine dimension. It covers machine refs and addresses (<ref>/<bare>) across the renderer boundary, one connection manager, a same-uid second-profile stand-in, per-machine stores, a sidebar grouped by org project with machine rows, the machine chip and the offline state. Execution document: docs/doperpowers/plans/2026-10-27-p5-o6-machine-dimension.md. Report: docs/doperpowers/plans/2026-10-27-p5-o6-report.md.

  • Code head: 1941e8632. Commits after it are docs only.
  • Acceptance tree: 38e04607f, tree a52a8c8dcf37.
  • WIRE_MINOR: 3, after O10's 2. If master's minor has moved by the time this lands, re-bump to master's minor plus one: wire.ts, pnpm wire:manifest, and any test or doc naming the number. Then re-run e2e:cross-build on the merge tree against the new master peer. In that case the --gates all below is not the cross-build landing gate.
  • No settings bump: this branch uses master's v19.

Validation Evidence

Status

DONE_WITH_CONCERNS. M1 to M6 hold, and acceptance 1 to 10 hold at the reviewed code head. The concerns are listed under "Concerns". None of them blocks landing.

Acceptance (at 38e04607f, tree a52a8c8dcf37)

# Item Evidence
1 One machine, nothing changed but the ids Class 1a 40631062709. --gates all --runner macos --lane hosted 40631062270, every Mac e2e group green (e2e:code green on a --failed rerun, a hosted flake below). Fingerprint ff99b1c0711cd795 at base and head. OX7 bench 40632939812: delta to frame 25.0 / 38.1 ms, round trip 1.0 / 1.3 ms, within +2 / +5 ms of 24.45 / 37.56
2 Machine identity identity.test.ts 5/5, identity-file.test.ts 23/23 (class 1a); the scene's two profiles get different refs, each stable across relaunch
3 Addresses address.test.ts 41/41, coverage.test.ts 8/8, the client's two-machine refusal; e2e/shell.spec.ts:78 asserts addressed tab ids and main.tabs
4 Migration e2e/shell.spec.ts:78: a v2 layout, a bare panel.<id> and a bare-id draft come back addressed, main.tabs v3, a third launch rewrites nothing
5 Two machines, one sidebar e2e/machines.spec.ts phase 2: one shared org row (remote:github.com/example/shared) holding both machines' sessions, B's chipped @standin-b, A's unchipped (T1)
6 One machine leaves Phase 4: B's rows grey within 2 s ("machine offline"), A unchanged; B back live within 5 s (in LIVENESS_BOUNDS), no duplicate, the session seeded while it was down listed
7 Layout and drafts follow the machine Phase 5: tab and draft restored, the draft read from B; with B down the tab is kept, greyed, titled with its session's last-known title
8 A session on B is B's Phase 3: transcript read through B, panel branch standin-b (A's is main)
9 The stand-in's boundaries serve-gate.test.ts 2/2, serve-standin.test.ts 6/6 (class 1a)
10 Org projects follow sminos's rule org-project.test.ts 16/16 (sminos 1.15.0 vectors, each derivation case on real repositories, retries, the shared limiter, the git-cause log)

Concrete Steps 9: all six mutations fail as the spec says. Five are coverage or name-rule failures naming the field; the sixth, git.watch without { machine }, is one TS2554.

e2e:machines' hosted admission (gate-offload's rule), tree a52a8c8dcf37

Run Lane e2e:machines Count
40631062922 hosted (maws-app 40631151521) success 1 passed (55.4s)
40631063249 hosted (maws-app 40631149506) success 1 passed (45.0s)
40631063380 hosted (maws-app 40631130369) success 1 passed (29.1s)
40631062270 hosted, inside --gates all (maws-app 40631200554) success 1 passed (23.7s)
40632939975 no-hosted baseline (mini), --peer none success 1 passed (12.4s)

The run conclusions of 40631063249 and 40631063380 read "cancelled". At the coordinator's request, I cancelled each while it was queued only on its duplicate e2e:cross-build, under the rule of one peer check per tree. Their e2e:machines jobs had already succeeded.

Earlier tree 7478dc87e94c (038a66dbc) had a full green admission set too: hosted 40621589171, 40621862296, 40621861834, and no-hosted 40621861836, each 1 passed.

The merged head (final code head 1941e8632)

  • edc0792a7, master through 0940a57da:
    • 22 conflicted files. In 20 of them, master's only change in the hunk was settings v19, so O6's side was kept with SETTINGS_DEFAULTS_V19. e2e/to-human.spec.ts took master's import plus O6's addressed. tools/browser/settings.ts took master's V19 plus O6's { machine }.
    • Outside the conflicts, O6's two snapshots gained O10's three commands: session.pendingItems is addressed, host.opQuery is machine-wide, and host.op is in PATH_COMMANDS (main-only, never bridged).
    • WIRE_MINOR is 3 and the manifest was regenerated. The fingerprint is master's, 9592541cad88d7df, so O6 still moves no engine-host shape.
    • Class 1a with cross-build: 40640099058.
    • --gates all 40640923005 was red on two hosted jobs:
  • 04a56ab2d, e2e:panel (test-only): dragBy now waits for a stable centre and for elementFromPoint to land inside the handle before pressing. The assertion is unchanged.
    • Cause, from 12 instrumented hosted runs (40647343005, never on p5-o6): the just-floated card's top settles about 29 px once, after its request text shows. A press read before that fell on the Files tool behind the card, and the card stayed at its default 420×437.
  • 1941e8632, master through 488a0978d (e2e maws-tools: drop P4-R7's message tool from the round trip's list (P4-R7z follow-up) #265): one conflict, gate.yml's HOSTED_MAC_E2E. It keeps O6's machines group beside master's new HOSTED_MAC_JOBS. Typecheck is clean, and gate-plan.test.mjs passes 78/78.
    • Hosted e2e:panel and e2e:tools with --peer none, two runs: 40649295543 and 40649295506. Each passed 27 for panel and 14 for tools, the target tests included.
    • The landing --gates all at the final head is 40650537683, green (47 jobs). Its e2e:to-human was a hosted flake, green on a --failed rerun: attempt 2, job 122712528295, maws-app 40657766939, 2 passed. It includes class 1a, and it is the tree's one peer check.

Reds called flake, or fixed

Each row gives the run id, the failing assertion's text and the green rerun.

Group Run, failing assertion Green rerun Verdict
e2e:desk-web 40621861961 (038a66dbc), job 122597598930: acceptance.spec.ts:82 expect(pageErrors).toEqual([]), page error [ipc] browser.agent.activities.list: lower: .appSessionId holds a bare id where an address belongs, "desk:…" (about 70 tests) 40631062270, job 122627330886, 196 passed O6 regression, fixed in 38e04607f
e2e:discover (mini) 40621861961: discover-connectors.spec.ts:216, Linear card [data-trust] expected "Partner", element(s) not found after 5 s 40631062270, job 122627330937, 9 passed Flake. Committed catalog fixtures, so not live drift; O6 only added {machine: local} to Discover's reads
e2e:panel (hosted) 40621861961 (maws-app 40622012108) and 40640923005 (maws-app 40641052664): panel.spec.ts:1199 "the card at its minimum", Expected [360, 240], Received [420, 437] 40649295543 and 40649295506 after 04a56ab2d, 27 passed each A race in the test, fixed test-only in 04a56ab2d. The press was read before the just-floated card settled
e2e:browser-comment (hosted) 40621861961 (maws-app 40621953502): browser-comment.spec.ts:979/312, the screenshot thumbnail not visible 40631062270, job 122627331652, 16 passed Hosted flake (screenshot capture)
e2e:widgets (hosted) 40621861961 (maws-app 40621950541): widgets.spec.ts:1105/135, process.kill(-pgid, 0) threw kill EPERM 40631062270, job 122627331585, 29 passed Hosted flake (process group)
e2e:design (hosted) 40621861961 (maws-app 40621992676): design-export.spec.ts:193/14, artifacts.export failed: internal UnknownVizError 40631062270, job 122627331586, 19 passed Hosted flake (Chromium viz)
e2e:to-human (hosted) 40650537683 attempt 1 (maws-app 40650641339): to-human.spec.ts:66, toContainText "The migration drops the legacy_users table. Back it up before you run it.", element(s) not found after 20 s 40650537683 attempt 2, job 122712528295 (maws-app 40657766939), 2 passed Hosted flake. Green at edc0792a7, and edc0792a7..1941e8632 changes nothing under src/renderer, src/main, src/shared or src/engine-host
e2e:code (hosted) 40631062270 attempt 1 (maws-app 40631170048): code-editor.spec.ts:133 expect.poll "an external change draws Updated", Expected 1, Received 0, 30 s 40631062270 attempt 2, job 122639639818 (maws-app 40635031192), 37 passed Hosted flake (fs events); green at 038a66dbc, and 038a66dbc..38e04607f touches neither the editor nor the watch path

Earlier, hosted e2e:layout's shell.spec.ts:367 and :50 were a race in the test's own pointer and hover card. They were fixed test-only in 18c452b74 and 5260d0060, as CI-opt asked.

The hosted git timeout

Its cause is unconfirmed: main's stderr isn't kept in hosted jobs. B's org derivation sometimes got no answer from git on hosted Macs (40615155676, 40619437297 / maws-app 40619534895).

  • The hypothesis is a cold /usr/bin/git xcrun shim outlasting the 2 s first try.
  • The fix: in-run retries at 1, 4 and 15 s, with the git runner's 10 s timeout, inside the shared four-slot limiter. git() now logs why it got no answer.
  • All eight hosted e2e:machines runs since then passed.

Unresolved Review Findings

M5's task review deferred two Minor findings at convergence, recorded in the execution document's M5 decision:

  • Numeric .smns values (src/main/index/org-project.ts). Python's str() keeps some JSON number spellings that JavaScript's does not (42.0, 1e3, 0.000001, integers above 2^53), so those derive a different key from sminos's. They were left because sminos writes string ids, and an integer or a string id matches.
  • A context-only tab-set merge with no open set to supply a base keeps insertion order. It was left because it affects ordering only.

The branch review at the high rung (72041439b..15f17ef1f, re-reviewed through 038a66dbc) found 1 P1 and 4 P2. All five are fixed and were re-reviewed clean. The desk-web fix 38e04607f follows the architect's ruling.

Residue

  • store-diagnostics.ts mixes session.projects.changed revisions across machines. It is a diagnostics harness.
  • TerminalView's hostReady reads the local pty host, even for another machine's terminal.
  • fs.tasksChanged keys by listId only. It has no consumer.
  • Test-builder tidy-ups from M2. These are the fakeClient PreloadBridge casts.
  • FloatingCard's release handler saves the size from the last render. In src/renderer/src/shell/FloatingCard.tsx, if the pointer is released before React renders the moves, nothing is saved and the card snaps back. A happy-dom test with the move and the release in one act reproduces it. The fix is to keep the drag's latest size in its ref. People are unlikely to hit it. Found by the panel flake's diagnosis.
  • A just-floated card shrinks its height once, by about 29 px, after its content shows. This may read as a one-frame jump of its top edge.
  • panel.<address> keys of a machine dropped from the roster are not swept (M4). settleMachine sweeps them only for a machine that reports.
  • Surfaces left local by design until O7. session.deletions.list, pty.list and session.search stay local. The artifact registry keys by id only. A non-local session's artifact list is never read. O7 owns the remote surfaces.
  • e2e:desk-web is the only gate that runs renderer modules under the desk's ids, and it runs only in --gates all. A renderer change that adds an ipc call keyed by a transcript's source.key reaches the desk unseen by class 1a.

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

…nciled, the seam PR's shape)

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

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)
… fixture typed

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…d its temporary file goes on any failure

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…d a lifted id is built by addressOf

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… the tuple-rest fixture typed

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…into M1's Decision Log entry

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…t, the client and the route classes

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…the e2e specs and harness pages address their ids; the upgrade scene

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…key, takeOver's pane and the mark ids follow the page's ids

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

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…id, as main builds their ids

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…; the standalone document scenes address the card's session

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)
…he spawn main receives

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…it trusts the anchor's box

A reloaded frame's page could answer a locate before it was given the frame's size, so its heading measured as its padding alone (48 x 140) and the card stayed pinned under that box: side case 11 in the mini's e2e:default. The bridge now counts a box only once the viewport has size, and measures again on the window's resize as well as the anchor's.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…on, the cross-build check, gate-plan changes)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…r machines through RouterOptions.remote and gains dispatchLocal; the socket server's admit

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…achines, the link surface, and the second-profile stand-in behind its gate

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ssions through the link, and B's departure turns it down

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…e's pool demand counts e2e:machines; the partition test's names typed as strings

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…y its session's machine's engine host and reads that machine's table

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…chine's engine host; another machine's leaving drops no local document port

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…s machine's binary, and the notice compares that machine's installed version

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…achine's engine host; another machine's leaving no longer blanks it

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… re-reads that machine's question sheets only

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… again in the run, three times, rather than left ungrouped until the next start

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…a project's org project does not arrive

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…our slots as the start's queue, so many unanswered projects never ask git all at once

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… A cannot name while B has not loaded

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…pt tab of a machine not loaded in this run is named by it, not "New chat"

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

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…it as long as the git runner does, so a cold /usr/bin/git shim that outlasts the first try's 2 s answers on a retry

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… gets no answer logs why: its timeout, its signal or the error that kept it from running

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…s browser activity, so a desk:<project>:<session> key never reaches the client's addressing; MAWS's own mounts still refuse a bare id there

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…'s addressing; WIRE_MINOR 3 (O10's 1-2, O6's machine.identity); host.op in the path class and session.pendingItems' addressed paths

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…-blind lifecycle events, the hosted git no-answer, the kept tab's title, desk-web's ids, the merge to WIRE_MINOR 3)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…d to settle and for the press point to reach the handle; a press read before the card's one height settle fell on the tool behind it

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…s message row); gate.yml keeps master's HOSTED_MAC_JOBS beside O6's hosted machines group

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…e at 38e0460; the landing --gates all green at 1941e86)

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 28, 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-28T08:44:03.312804Z 11634c4 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: 11634c431b

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

@@ -200,15 +203,15 @@ export class TerminalRegistry {
const { ipc: bridge } = this.deps;
bridge.on('pty.data', (event) => this.receive(event));
bridge.on('pty.exit', (event) => this.receiveExit(event));
bridge.on('pty.hostState', (state) => this.applyHost(state));
bridge.on('pty.hostState', (state, from) => this.applyHost(state, from.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 Invalidate remote terminal handles when their machine link is lost

If a remote profile and its PTY host terminate while this window stays open, neither pty.exit nor pty.hostState can arrive over the lost socket. The registry does not subscribe to machines.changed, so its terminal handles remain running even after that machine reconnects with a new generation. ensureTerminal then keeps returning the existing handle, while respawn refuses running handles, leaving the terminal unusable without closing and recreating it. Handle link loss/new generations by invalidating the affected machine's handles and resetting its cached host revision.

Useful? React with 👍 / 👎.

if (row !== undefined) {
const index = orgIndex(projects.values(), local);
const listed = new Set([row]); // the row it opened on is listed, as the sidebar showed it
inScope = (record) => rowOfSession(index, projects, record, listed) === row;

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 hidden-checkout results when Archived is enabled

When an org-project row groups a visible checkout and a hidden checkout, opening Resume… on that row and enabling Archived still excludes every session belonging to the hidden checkout. The new scope predicate calls rowOfSession, which unconditionally returns null for hidden projects, so the later Archived toggle cannot restore those candidates. Previously, enabling Archived bypassed the hidden-project exclusion. Compute the chooser's org-key membership independently of sidebar visibility when Archived is enabled.

Useful? React with 👍 / 👎.

@SSFSKIM
SSFSKIM merged commit d7ea2f6 into master Oct 28, 2026
SSFSKIM added a commit that referenced this pull request Oct 28, 2026
…ker rows

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM added a commit that referenced this pull request Oct 28, 2026
…-bumped to 4

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)

# Conflicts:
#	src/shared/ipc/wire.ts
SSFSKIM added a commit that referenced this pull request Oct 28, 2026
)

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
SSFSKIM added a commit that referenced this pull request Oct 28, 2026
…(O6 #268 snapshots)

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers 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