Skip to content

P5 O13 M6b: the push's landing, the freeze's one seam, desk-web's freeze record - #270

Merged
SSFSKIM merged 4 commits into
masterfrom
p5-o13-m6b
Oct 28, 2026
Merged

SSFSKIM merged 4 commits into
masterfrom
p5-o13-m6b

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 28, 2026

Copy link
Copy Markdown
Owner

P5 O13 M6b: the push's landing, the freeze's one seam, and desk-web's freeze record.

The landing

A tap on a v2 push opens that session's cards. A cold tap uses the notice's URL /cards/<ref>/<session>. An already-open window gets OPEN_MESSAGE and navigates in place.

  • The routing was already done by M5 and M6a. M5's parseRoute and land() meet M6a's percent-encoded URLs, so M6b adds proof cases and no routing code.
  • What M6b adds is a re-read of the org state for a machine that state does not name yet. An example is a VM certified since the last read: that moves no version and raises no notice, so nothing else would re-read it.
    • ChannelCards calls refreshOrg(<ref>) when it opens the view and on every landing. land() counts landings in useCardsLanding, so a second tap on the same view checks again.
    • refreshOrg is the org store's refresh, at most one read a minute, keyed by the ref as the listings store keys an unresolved signer.
    • The re-read sits in the view rather than in land() because land() runs in the entry chunk, before sign-in. Importing the device code there would pull its chunk into the entry.

The seam

A session on a machine that has moved to MAWS can no longer be acted on from the frozen DX6 views.

  • The rule: capabilities.ts gains the input movedToMaws. When it is set, every verb returns can: false with one reason, moved to MAWS: its cards are on this phone's channel, before any other rule.
  • Where it is set: shell/sessions.ts sets it for each session from the cards board's machine names, compared by machineNameKey. Every frozen per-session control already reads capabilities, so this one input covers all of them:
    • Send, Steer, Interrupt, Model and Compact;
    • Resume and Retire;
    • Stop;
    • answer and decide.
  • The composer shows the reason under it when Send is not offered and disables the textarea. Send was never refused before, so no existing case moves.
  • The send-boundary guard in src/hub/project-client.ts, from review round 1: the DX6 client sends nothing to a moved machine, whether a new RPC, a Retry, or an RPC kept from before the move and resent after a reconnect. project/connection.ts passes the same moved set that the capabilities read. A withheld Retry leaves the card uncertain rather than "Sending…".

The freeze record

apps/desk-web/CLAUDE.md is new. It lists:

  • what is maintained: the cards, the device, push and its landing, and the seam;
  • what is frozen: the grid; the project, session and depth views; the org, key, machines and notifications dialogs; the DX6 client; and the org key.

It also says that a frozen view is fixed only when a moved machine's loop depends on the fix, and that the fix is reported first.

The branch also carries the spec's living sections.

Validation Evidence

  • e2e-hub/cards-landing.spec.ts (new): 3/3 in Chromium against M4's real-endpoint harness, with the phone paired:
    • Lane A push. A notice typed as desk-hub's OwnerNotice and built as Registry.notify builds it is delivered to the service worker through the DevTools protocol. A cold tap opens the card view, which draws the pending question over the channel. OPEN_MESSAGE lands on the same view in place.
    • The re-read. A delegated VM is certified with no version change, after the view's own read. A tap on its cards URL makes the header read on vm-one within 5 s.
    • The seam. A DX6 fake machine is enrolled, and the org state then lists it. In the frozen session view, the composer note shows the reason exactly, and the textarea, Send, Model and Compact are disabled. The DX6 permission card shows the reason with no Allow or Deny, and fm.rpcs is [].
  • e2e/phone.spec.ts: 22/22, the 20 existing cases unchanged and 2 added:
    • a v2 waiting push: its tag, no actions, no badge, and a cold tap that lands on channel-cards;
    • a v2 wrote push: its own tag, opening the cards list in place.
  • Failing first:
    • The certificate case failed with Received: "on 83427b27…" before the re-read existed.
    • In review round 1, project-client.test.ts and RequestCard.test.tsx failed while a retained decide still reached the moved machine.
    • ChannelCards.test.tsx failed (expected 1 to be 2) before a second landing checked again.
  • Unit tests, one file at a time:
    • project-client 36/36, RequestCard 6/6, ChannelCards 2/2, capabilities 21/21, board 3/3, Composer 25/25;
    • plus the related files conversation, connection-latency, layout, handlers, sw-imports and ChannelView, all passing.
  • After merging master (M5, P5 O13 M5: the cards on the phone #266) at 2189bd0:
    • the only conflict was a comment in ChannelCards.tsx;
    • pnpm --filter desk-web typecheck passes;
    • vitest run src/views/cards src/cards src/pwa gives 160/160.
  • Existing browser suites, unchanged: e2e-hub/cards.spec.ts 8/8, cards-device 9/9, session-plane 11/11 (the frozen session view, since sessions.ts and Composer.tsx changed), phone-load 5/5, chunk-recovery 2/2. The entry chunk is 37.04 kB gzipped.
  • Review: doperpowers:reviewer-medium, 2 rounds.
    • Round 1 found two P2s:
      • retained or retried DX6 RPCs still reached a moved machine (fixed by the send-boundary guard);
      • a repeated landing on an open view did not check again (fixed by the landing count).
    • Round 2: correct.
  • ci-gate on 2189bd0 (the PR head, master merged): --gates static,unit,probes,e2e:desk-web,e2e:desk-web-hub --class1a pool --runner macos --lane hosted --label o13-m6b-1, run 40658142801.
    • Every job was green except unit 1/4. It failed in src/engine-host/connectors/direct-calls.test.ts:694, outside this branch: its not.toMatch(/107|structuredContent|content/) matched "107" inside a random artifact UUID (…-107841a95312).
    • e2e:desk-web ran on the pool, and e2e:desk-web-hub on GitHub's hosted Macs. Nothing under src/endpoint changed, so e2e:supervisor was not required.
    • The unit gate re-run alone on the same head (--gates unit --class1a pool --label o13-m6b-2) is GREEN, run 40659218117.

Residue

  • The flaky assertion in direct-calls.test.ts:694. It fails whenever the random UUID contains "107" (about 0.7% of runs), because the regex looks for the row count as a bare substring of the serialized result. Anchoring the count to its field, or using a fixed artifact id in that case, would fix it.

Unresolved Review Findings

These are not review findings. They are edges accepted in the spec's Decision Log (2026-10-28) and listed here so the branch reviewer sees them already reasoned about.

  • The seam applies only on a listed device (shell/sessions.ts). The moved set comes from the device's verified org state. A desktop browser that was never paired draws an old session of a moved machine with a live-looking composer.
    • It was left because reading /api/org/state unpinned on every browser would be unverified, and would put the protocol package into every first load.
    • The harm is bounded: the moved machine sends no DX2 lane, so the session reads offline or unknown, and a send reaches only the log.
  • An @alias post in the frozen group composer can still address a moved session. It writes a log human that the moved machine never reads.
    • It was left because the group composer is frozen and not gated per session. Gating it is a frozen-view fix that no moved machine's loop depends on.
    • The remote layer bounds it: nothing is delivered.

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

…hine's landing re-reads the org state), the freeze's one seam (moved to MAWS) and desk-web's freeze record

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…, retried or resent at a welcome), and each landing on a session's cards re-checks its machine

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers 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:52:01.778059Z 2189bd0 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.

@SSFSKIM
SSFSKIM merged commit aff5b34 into master Oct 28, 2026
SSFSKIM added a commit that referenced this pull request Oct 28, 2026
… the moved-to-MAWS seam; tracker row for a unit flake

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
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
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