Skip to content

P5 O8 M6b: visibility and shares (the Share sheet, record acts, the local door) - #522

Merged
SSFSKIM merged 71 commits into
masterfrom
p5-o8-m6b
Nov 8, 2026
Merged

SSFSKIM merged 71 commits into
masterfrom
p5-o8-m6b

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 8, 2026

Copy link
Copy Markdown
Owner

P5 O8 M6b: visibility and shares (O18's M5). It's built to docs/doperpowers/plans/2026-10-28-p5-o8-org-interface.md §M6b and §Q, under the architect's rulings recorded in that spec's Decision Log. Next in O8's plan is M4b, machines and their rights.

M6b lands whole. The endpoint's RL10 welcome carries record exactly when this build serves the three record.* offers. sminos 1.39+ keys its CLI cutover on that word: once a machine's endpoint says record, widening at the terminal reads "use MAWS", and narrowing stays. So the welcome's record and the Share sheet ship together. A build with the welcome but no sheet would leave a member no way to widen.

A precondition of a second member joining production. This milestone and sminos's CLI cutover are both preconditions, beside P5 Decision Log 235's rule that every enrolled machine carries M6a's endpoint rule. The shared staging run checks the cutover (item m6b-cutover). That run starts during this PR's final gate, on the branch head. The landing waits on it only if it finds a defect, by the architect's ruling ("M6b lands before the shared run", amended).

What changes:

  • The Share sheet.
    • It opens from the session's header and from its row's menu, on a session you own in a hub project.
    • It sets General access (Private, Listed, Org can view, Org can talk), and each person's grade (Can message, View, Converse, Approve), with the spec's help text word for word.
    • It lists the changes in the order Save sends them. A removed person stays struck through, with Undo, until Save.
    • Save asks Touch ID once for every line. Each line shows its own outcome: a refusal in words naming the machine, never blank, and an unknown outcome with Reload.
    • If the revision moved before or after Touch ID, nothing is sent, and the sheet reads "Changed elsewhere: reload".
    • A machine whose sminos can't keep a reach reads so, and offers only Close.
  • Marks on rows. A lock for Private, and a people mark for shares, with the access in the hover card.
    • Your own sessions' marks come from record.policy.
    • The mark on another member's private session shared with you comes from its listing's audience.
  • Private sessions reach their people over the channel. Their listings come from each machine's link. They merge into the rows by two memberships per key, so a session going private never blinks.
  • This Mac's own sessions change through the local door, by the same acts and rule.

Underneath:

  • The endpoint (desk-track reviewed):
    • record.access, record.shares and record.owners, each manage-graded, step-up required, and executed by sminos.
    • The record target for either lane, with lane B placed through the members join.
    • The record rpc, carrying the signed act as proof.
    • record.policy, answering only for sessions the caller owns at manage.
    • Everything is offered only while sminos's hello carries record.
  • The local door, EndpointModule.local. mawsd serves it as endpoint.local.act and endpoint.local.call, at WIRE_MINOR 32.
    • It verifies the step-up signature on every act.
    • It derives the member from the device's single entry in the head.
    • It then authorizes as a channel does.
    • call answers record.policy alone.
  • Main:
    • org.policy.get/.set and org.owners.add.
    • actMany and signActions: one confirmation, many signatures.
    • Policy reads and saves are fenced to the sign-in they started under. A read that outlives its sign-in publishes nothing, a save stops at its next line, and the sheet closes when its reader changes.
    • A private listing re-signed with nothing new is drawn at its first-shown revision and time. This changes what is drawn, not what is accepted.
  • The staging harness (apps/desk-hub/deploy, desk-track reviewed):
    • The reach scenes widen through A's record acts, and add the items m6b-cutover, m6b-visibility and m6b-reader.
    • real-member add | pair | remove carry the real-member sitting: a 0600 email file, a 0600 code file removed on every catchable exit, staging only, everything scrubbed, and the device listed unendorsed.

What changed

  • Endpoint: offers.ts, targets.ts, record-policy.ts (new), local-door.ts (new), rl10/ (the record path and the welcome), calls.ts, actions.ts, authorize.ts, queries.ts, lane-a.ts, endpoint.ts, services.ts. Tests: test/endpoint/record-acts.test.ts (new); the conversation.json fixture's welcome lines.
  • mawsd: endpoint-seam.ts, front.ts, daemon.ts (endpoint.local.act and .call), and their seam tests.
  • Shared: the org schema (RemoteRow's audience and policyRev, OrgPolicy, org.policy.*, org.policies.changed), the machine schema, routes, names, and the wire manifest at 32.
  • Main: src/main/org/policy.ts (new), rows.ts (channel listings, two memberships per key, the churn fix), machines/remote/acts.ts (actMany), device/step-up.ts (signActions), app.ts (wiring), and share-fixture.ts (harness-only).
  • Renderer: sessions/share/ (ShareSheet.tsx, copy.ts and target.ts, new), stores/policies.ts (new), the marks in ListedRow.tsx and SessionRow.tsx, HoverCard.tsx, sidebar/menus.tsx, Toolbar.tsx's session actions, and Sheet.tsx (an optional scrim).
  • Tests:
    • policy.test.ts, step-up.test.ts, rows.test.ts (with the enumerating test), policies.test.ts, ShareSheet.test.tsx.
    • test/org/policy.local.test.ts (new, node-timing).
    • e2e/share.spec.ts (new, in e2e:settings).
    • e2e/support/actions-whole.ts, which covers every control, with probes.
  • Deploy: reach-acts.ts (new), reach-items.ts, reach-acceptance.ts, real-member.ts (new), run-lock.ts (withExitCleanup extracted), staging-run.sh, vm/setup.sh, bin.ts, README, and their tests.
  • Docs:
    • The spec's Progress, Surprises, Decision Log (the refresh, each task and wave, the desk verdicts, and the architect's rulings), Concrete Steps (the shared staging run in two layers, with the owner's six steps), and Outcomes & Retrospective.
    • The execution report's M6b section.

Commits the desk track reviewed:

Commits that don't build alone. By the architect's ruling these are not squashed. Each fails on its own, and the merge builds green:

Validation Evidence

The product tree was gated at 1691085: 0db815f, which merged master 5b1f738 into the branch, plus docs-only commits. Every commit after it touches only the spec and the execution report.

  • The whole gate on the final head: scripts/ci-gate.sh <wt> --gates all --evidence --lane hosted --runner macos --label m6b-final, run 42438203920, green on attempt 1.

    • 55 jobs passed and 2 matrix placeholders were skipped. No e2e or packaged job's log has a flaky or retried line.
    • The run covers static, probes, unit 1–4/4, unit:darwin, packaged 1/2 (98 passed) and 2/2 (120), e2e:settings (18, including share.spec.ts), e2e:remote (8), e2e:desk-web (198), e2e:discover (9, on the mini's home runner), e2e:cross-build (5, beside the 3.31 peer), and every other group.
  • Static after every product commit: green on every product head. Unit has been in every task's gate set since bc22ad7; it was red at 89d616e, unseen until Task 3.

  • The task finals, all on the hosted lane and all green on their first attempt, unless noted:

    Run What it covers
    42417175074 Task 3
    42420500958 Task 3's fixes, with e2e:cross-build
    42425644208 Task 4
    42430515249 Task 4's first wave
    42432343440 Task 4's second wave
    42435464666 the branch review's fixes; all 18 e2e:settings tests passed on their first attempt
  • Reds, each explained:

  • Focused suites, one file at a time. Every regression was shown red before its fix.

    Suite Cases
    test/endpoint/record-acts 23
    policy 25
    rows 36, with the enumerating test: 5,040 permutations and 16,807 five-event sequences
    policies 8
    ShareSheet 15
    test/org/policy.local 6
    deploy reach-acceptance 37
    deploy real-member 24
    deploy staging-scripts 33
    wire-fingerprint (after the merge) 5
    • policy.local runs on desk-hub's Worker in Miniflare, with a real endpoint and a sminos stand-in that holds each rpc to sminos's proof binding and ACT_KEYS field set, with five tampering probes.
    • real-member includes SIGINT, SIGHUP and SIGTERM sent to a child pair, and the real CLI composition run in a Node child.
  • The e2e case's screenshots are the sheet, a pending change, saved, unknown, unsupported, the marks and the hover card. The architect read them, and their taste fixes are in.

  • Reviews:

    • Our task reviewer at each frontier. Task 1 took two rounds, Task 2 one (plus its Minors), Task 3 two, and Task 4 three.
    • The desk track, as above.
    • reviewer-high on the whole branch with a security lens: 3 P2s (a save not fenced to its sign-in, a sheet outliving its reader, and real-member's unbound print), all fixed, then correct.

Unresolved Review Findings

None. Every task review, desk-track round and reviewer-high pass converged, and every finding was fixed.

The gate prints 58 advisory spec-import coverage warnings ("missing e2e:transcript/terminal/panel/…; specs reach src/shared/ipc/names*.ts"). They're advisory only, not Electron build dependencies, and come from files Tasks 1–3 touched. They are copied verbatim in the Task 4 report, and left for whoever owns ci-gate's coverage map.

Residue

These are the execution report's items 52–55, which the architect files at landing.

  1. (m6b-r1) record.policy's lane B placements run serially, so a save's result waits on a whole-machine re-read (policy.ts). The sheet's opening never waits. Exit: place in parallel, or re-read only the saved session.
  2. (m6b-r2) Each 60 s period still verifies a private listing and writes listings.json, and after a relaunch a private row's age restarts from its last re-sign. Exit: skip the verify and the write when nothing changed, and persist the first-shown time.
  3. (m6b-r3) staging-run.sh real-member's zsh TERM trap ends the wrapper but not node, so a pair stopped through the wrapper polls on until --wait runs out. The sitting signals node's process or its process group instead. Exit: forward the signal to the child.
  4. (m6b-r4) apps/desk-hub/deploy/** typechecks under tsconfig.test.json, whose lib includes DOM, so tsc accepts DOM-only globals (print, name, status) in Node code. Exit: typecheck deploy against ES2023 and @types/node alone.

The Share sheet's UX items go to a new board ticket, filed at landing:

  • the shared bg-bg/60 scrim is nearly invisible on light theme;
  • the unsupported state should name its remedy;
  • a long machine name truncates in the sheet's subtitle.

Still owed: the shared staging run's result (Concrete Steps). It runs on the branch head, and goes into the spec's Outcomes in the architect's records commit.

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

… at DL 248, and the four-task plan

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…channel; the real member for B's app on top)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
….shares and record.owners, and record.policy, offered behind sminos's record; the record rule for either lane; the rpc carrying the act as its proof; the welcome's record

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…hree record acts only, their step-up verified unconditionally, the member and class from the device's one head entry, then a channel's route; record.policy as the machine's owners' member

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… (the field the record rows and authorization read)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…door's machine-socket commands (main-only, internal; WIRE_MINOR 32)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…he seam, endpoint.local.act and endpoint.local.call on machine.sock (a client's own, refused to the endpoint's dispatch)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…placement, the door, WIRE_MINOR 32, the welcome's record)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… acts change (placeRecord, one placement for both), answers under the head the door's owners were read under (re-read up to 3 times, then unavailable), and as sminos stands when the answer goes

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…holds' lane-split placement (the type the fix wave's first commit lost)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… signActions and renderActions, the act table's actMany (each act built and judged first, all signed at once, each sent when its caller says, stale past its window), RemoteLink.actMany, SignedIn.stepUp as StepUpSigner

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…t.listings at link up, each head, on asking, every 60 s while up) and keep two memberships per key, the hub's and the channel's, each holding at the newest accepted revision; RemoteRow's audience and policyRev; the enumerating test over their events

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…t and M5b's org.owners.add (policy.ts), another machine's over its link and this Mac's over its own endpoint's local door, one Touch ID per save, sent in order and stopped at a failure, the best-effort revision check before and after Touch ID, a skipped revision marked; org.policies.changed; the schema, names, routes and main's wiring

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… asks that channel at once, so a session whose hub withdrawal lands before its private listing comes back within a round trip, not at the next period

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…esk track's verdict on Task 1's fix wave

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…he Org page fixture refuses a save and leaves the policy read to main, the policy read's ref cast at the boundary

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…; the real-member sitting (desk 634)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…hen the person was asked, never one the caller set while they decided (sign and signActions)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…nknown (malformed) and stops the save, never an invented change; a done line's policyRev is always the revision it left

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… (org, member): another member signed in drops them, an answer asked for the last one is ignored, nothing it showed is drawn before the change is judged, and the cache names its reader, restoring the channel's only for them

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…2 malformed done unknown, N3 rows bound to the reader)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…, saying nothing new, is drawn as it was first shown (its revision and issue time), so it sends no rows every period and its age and recency stay its last change's; the marks still follow the newest record

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…lines, the people at Can message, View, Converse or Approve, Add person, the foot, one Save; each line's outcome, a skipped revision marked, every refusal in its own words and an unknown one as one line naming the machine, an unknown outcome stopping the save), from a row's menu (a listed row's included) and the Toolbar's session actions, for a session you own in a hub project; stores/policies.ts and the rows' reach marks with the hover card's line

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…:settings over a harness-only fixture (org/share-fixture.ts: org.status, org.view, org.rows, machines.list, org.policy.get and each save from a file; the production rows' org.rows.changed held): the marks across three machines, a hover card, the private session's sheet and its save with a skipped revision, an unknown reason and a line not sent, an unknown outcome stopping a save, and a machine whose sminos can't keep a reach, each photographed

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ction, a record keyed by an RL4 action's field names (Task 1's door, 79dc872, left the unit gate red on it)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…sized by their row (a field's full width pushed each person's row past the sheet), the session line truncated in a span, the new person's grade named plainly; the share spec in tsconfig.e2e's copy list and the bare set's count at 107

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ute, so the sheet's locator names the sheet alone

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… spec checks the default row is drawn, settles the sidebar before its photograph, and photographs a save's results from the body's head

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ord rpc to its proof as sminos does, on its own: the proof an act in its exact shape (isAction) with no session or context, this machine's and this op's (opId, opCreated, a device of the run's), a record act of the rpc's name, naming one target (session the rpc's; lane B's appSessionId the app session the rpc's session is) and past it exactly the rpc's change; probes of another change, a malformed proof and another machine's each refused bad-shape, A's save showing it and the record unmoved

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… back through A's record.policy after A's act, so an act answered done that set nothing fails at Org can view and Org can talk, where the listing alone can't tell

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ck whole, B's own lastSeen beside pinned and unread, from the reader update's answer and from session.get

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ds a revoked key's holder as a device's by its own field, as the holder union types it (the typecheck's TS2339)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…e profile's session and locks after TERM

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ves no code file itself: absent at the start is no proof the run made it, and its trap could delete another run's file made in the gap; the command's own cleanup covers every end but SIGKILL, whose leftover a retry refuses (EEXIST)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ord act's own fields on top of isAction, every one, a step-up among them, and no session, context or requestDigest (sminos's ACT_KEYS); probes of a step-up stripped in transit and a requestDigest added, each refused bad-shape, A's save showing it

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…the email file" alone, no path, directory or checkout, since a directory above it may be named after the address and they are printed before the scrubber knows it

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…val, the record act's field set, refusals say 'the email file')

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…t the wrapper (desk 643)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…an under: once that ends, during Touch ID or between acts, its next line reads refused signed-out and the rest not sent, for good, a new sign-in (the same member's included) sending none, and no policy read back for it

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…n who is signed in changes (a sign-out here or elsewhere, a lost registration, another member) it closes at once, drawing none of their audience, and its reads and save land nowhere after

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ens the admin with its own scrubbing printer (io.print), not a bare print that is only a DOM global, which threw a ReferenceError under Node for every add, pair and remove; a test runs main itself in a Node child against a hub faked at fetch, and no other deploy file names print out of scope

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)
…esidue 52-55

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…rom a fresh master worktree

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ting launches from the architect's prepared master worktree

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

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…e (the architect's amendment, the owner's answer)

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 Nov 8, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-08T03:34:22.092108Z 32681c9 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: 32681c976c

ℹ️ 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 +90 to +93
for (const machine of stores.machines.getState().machines.values()) {
if (machine.state !== 'up' || readAt.get(machine.ref) === machine.generation) continue;
readAt.set(machine.ref, machine.generation);
read(machine.ref);

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 local policies when new sessions become available

If a local hub-project session is created after the initial policy read, it never gets a Share action: useCanShare requires that session to appear in the cached local policy, but this subscription reads only once per machine generation, and src/main/machines/manager.ts fixes the local machine's generation at zero. Session creation and RL10 member arrival trigger no policy refresh; org.policies.changed is emitted only by another whole policy read. Consequently, newly created sessions remain unshareable until another session's save refreshes the cache or the user signs in again. Refresh the local policy when sessions become available, or fetch the session's policy without requiring it to already exist in this cache.

Useful? React with 👍 / 👎.

@SSFSKIM
SSFSKIM merged commit ec2eaf9 into master Nov 8, 2026
SSFSKIM added a commit that referenced this pull request Nov 8, 2026
…acts and the local door, O18's M5 with it; the M7b live check's channel-reach defect and its fix in flight; residue m6b-r1 to r4 filed, UX points on #523; #520 noted

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
@SSFSKIM
SSFSKIM deleted the p5-o8-m6b branch November 8, 2026 03:39
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