Skip to content

P5 O8 M2: the remote rows (verified org listings as sidebar rows) - #295

Merged
SSFSKIM merged 17 commits into
masterfrom
p5-o8-m2
Oct 28, 2026
Merged

SSFSKIM merged 17 commits into
masterfrom
p5-o8-m2

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

P5 O8 M2: the remote rows, from docs/doperpowers/plans/2026-10-28-p5-o8-org-interface.md (child O8 of docs/doperpowers/plans/2026-10-27-p5-org.md; P5 Decision Log 92's first milestone, second half). M1 (#287) and O2 have landed, and master was merged in after both, so the diff is M2's own. The landing gate on that merge is green (below).

What it does

  • Main keeps the org's session listings as rows (src/main/org/rows.ts).
    • Every listing the hub serves over the Registry feed (?app=1: the snapshot's pages and live listing frames) is verified against the held org head and its certificates.
    • Each key is judged against a persisted mark (revision, hash, signing key, delegation, gone). A lower revision is ignored, a conflicting record at the same revision is refused, and a withdrawal is kept as a barrier.
    • A mark is dropped only when a signed head retires or revokes its key or revokes its delegation. The delegation comes only from a certificate that verifies.
    • Listings and marks are cached in <userData>/org/listings.json and verified again at load and at each new head.
  • org.rows / org.rows.changed (client-graded) give the renderer the RL2 roster's machines, their rows (joined to org projects by smnsId, computed with the signed-in org), complete and pending.
    • complete means this run's hub snapshot has applied with the announced head adopted.
    • pending lists the machines with records still awaiting verification.
  • The renderer draws the member's own listed sessions under their org projects in the sidebar:
    • a listed partition of the sessions store (not SessionRecords);
    • ListedRow, with its machine chip, greying, the existing glyphs and a listed hover card.
    • A record at the same address wins.
    • A click goes to the opener its lane registers (registerRemoteOpener). With none, the click only selects the row in the sidebar.
    • An RL2 machine takes no record reads. It is loaded and settled only once it is covered (complete, and not pending), so a restored tab is never pruned early.
  • No new controls, menus or owner labels. No WIRE_MINOR, no settings version, no IpcError code, no new dependency and no new e2e group.

Validation Evidence

  • Unit suites (each run alone):
    • npx vitest run --project node src/main/org/rows.test.ts: 22 passed.
    • Renderer: ipc/events.test.ts 42, sidebar/derive.test.ts 38, sidebar/Sidebar.test.tsx 91 (also under renderer-compiled), stores/org-projects.test.ts 6, sessions/remote-openers.test.ts 2.
    • App.test.tsx under renderer-timing: 11.
    • Main's wiring suites: lifecycle 5, main-wiring 5, root-wiring 2.
  • Against the real hub: npx vitest run --project node-timing test/org/rows.local.test.ts gives 4 passed. It runs on desk-hub's Worker in Miniflare, with a real endpoint's lane A and lane B listings, and covers:
    • rows joined to a remote: checkout;
    • a new revision;
    • a private withdrawal;
    • the machine dropped from the roster.
  • Typecheck: npx tsc --noEmit -p tsconfig.node.json and -p tsconfig.web.json are clean.
  • Class 1a (scripts/ci-gate.sh <W> --gates static,unit,probes --class1a pool --peer none):
  • Final tree bcb8959, run 40691164424: class 1a on the pool, the 32 hosted Electron groups, and e2e:default, unit:darwin and packaged on the mini, all with --peer none. 41 of 42 jobs are green, e2e:machines, e2e:settings, e2e:default and unit:darwin among them.
  • After the gate: origin/master was merged in at the PR head (P5 O8 M1: the app's org session (sign-in from a pairing code, the held org chain, production's OrgSession) #287's landing, desk-hub stand-in: a client's reset mid-upgrade no longer ends the local hub (provision.test flake) #291's provision-flake fix, transcript.ts's optional lastPrompt). npx tsc --noEmit -p tsconfig.node.json and -p tsconfig.web.json are clean on the merge.
  • Landing gate on the post-O2 merge fd1d65c (origin/master 7a5893b merged in, all --peer none):
    • The merge had two import-line conflicts, in Sidebar.test.tsx and test/support/builders.ts, and both sides were kept. The regenerated routes.json matched the auto-merge.
    • Both typechecks are clean, and Sidebar 92, App 11, lifecycle 5, main-wiring 5, root-wiring 2 and rows 22 pass.
    • Run 40716613510 is green: class 1a on the pool, hosted e2e:machines, e2e:settings and e2e:available, and e2e:default on the mini. e2e:default holds the sidebar specs ux1-sidebar, sessions and layout-transfer.
    • Run 40716660100 is green: hosted e2e:delivery and e2e:desk-web-hub, the groups ci-gate's coverage note named as reaching schema/org.ts.
    • No flaky lines. The note's other groups reach only the names/org.ts registry entry, and all of them were green in the final gate above.
    • The PR head adds only the report's commit on top.
  • Review: doperpowers:reviewer-high ran two rounds.
    • Round 1, at 11846ed, raised 2 P1 and 1 P3. The fix wave fixed them test-first in f8764a1, cf1e445 and 529ae15:
      • a mark's delegation was taken from an unverified certificate;
      • a retry emptied the waiting set before its awaits, so coverage could be claimed early;
      • a stale sidebar selection came back.
    • Round 2, on the fixes, found nothing material.
  • Still owed: M2's live check at the first cut-over machine (the document's Acceptance).

Residue

None needs a ticket of its own. M2's residue decisions are in the document's Decision Log for P5's writer; the report (docs/doperpowers/plans/2026-10-28-p5-o8-report.md, items 11 to 17) lists them with the alternatives each rejected.

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

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…the held head, per-key marks, the cache, complete and pending, the join by the signed-in org), org.rows, and main's wiring to the feed, O7's roster and the local projects

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…dpoint's lane A and lane B listings as rows joined to a remote: checkout, a new revision, a private withdrawal, the machine dropped)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…d partition, the snapshot rule for RL2 machines (no record reads, loaded only at complete rows outside pending, listed tabs kept), rowOfListed, ListedRow with its chip, greying, glyph and listed hover card, rollups, and registerRemoteOpener

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…read; class 1a run 40686478287's unhandled rejections)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…fies under the same head (verifyMachineCert); two verified ones that disagree give null, keeping the barrier until the key ends

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…d again, so a read meanwhile keeps its machine pending instead of complete with nothing pending

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…hanges, so returning to the tab it was picked over does not select it again

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…, round 2 clean)

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)
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)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
@SSFSKIM
SSFSKIM merged commit cfa0f0e into master Oct 28, 2026
SSFSKIM added a commit that referenced this pull request Oct 28, 2026
…e; O8 M2's landing (#295), the remote rows, residue 11 to 17

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