Skip to content

P5 O8 M7a: the project channel, its log reader, the Channel tab and people's words - #504

Merged
SSFSKIM merged 65 commits into
masterfrom
p5-o8-m7a
Nov 6, 2026
Merged

SSFSKIM merged 65 commits into
masterfrom
p5-o8-m7a

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 6, 2026

Copy link
Copy Markdown
Owner

P5 O8 M7a: the project channel. This milestone covers the log reader, the Channel tab and people's words. It is built to docs/doperpowers/plans/2026-10-28-p5-o8-org-interface.md §M7a, re-planned in #494. To-human messages across machines (M7b) come next. The owner's week starts when M7b lands.

What the app can now do:

  • A project's Channel tab. It opens from the project's menu and shows only for a project with a smnsId. The tab draws the project's signed log as main verified it against the held head:
    • exchanges between two sessions, folded ("40 messages between maws-45 and …"), opening in place;
    • broadcasts, and people's words;
    • earlier to-human entries;
    • DX1 history marked "attested at migration by ", and unattested history marked legacy;
    • an unverified count for what failed verification, none of which draws.
  • Offline. The tab draws from the cache, "as of" the last catch-up, with the reason (signed out, sign-in ended, no longer admitted, hub unreachable). The composer is withdrawn.
  • Words. The composer signs a human with the device's channel key and addresses @alias by sminos's grammar. A word reads sending, then sent, refused, or Not sent. "Not sent" covers a word the channel dropped unacknowledged, and holds within the app's life; the architect accepted that a relaunch keeps no copy.
  • Waiting on you. The project's waiting permissions and questions appear as cards. A MAWS ask is answered in place.

Underneath:

  • Main is the trust boundary. src/main/org/channel/ holds:

    • the Project socket client: resume, more, caught-up, close codes;
    • verification against the held head: device humans by their member, v2 says with owners attested, and DX1 checkpoints bound to event hashes and extended along historyDigest's chain;
    • a bounded cache (8 MiB, UTF-8 bytes), one reader's (org and member), with its resume cursor;
    • lifecycle with provenance: only authenticated lifecycle names or addresses a verified entry;
    • per-project channels that send the renderer verified events with rev-ordered deltas.

    mac and sig are stripped before the renderer, and the channel key never leaves main.

  • The words' state belongs to main, bound to the org, member and device that signed each word. Another context's words are neither shown, resent nor refused. At release, acked words drop and unacked ones go to a bounded in-memory not-sent list.

  • close()'s join follows M4a's rule: a channel's last snapshot enters the commit queue finished, and only a project's newest channel writes its file.

  • The renderer's pure channel/project.ts folds events into entries. Untrusted log text renders as plain text.

What changed

  • Main. New src/main/org/channel/ files:

    • project-socket.ts, verify.ts, cache.ts, words.ts, address.ts, channel.ts, holds.ts;
    • src/main/org/channel-fixture.ts, harness-only (__MAWS_HARNESS_BUILD__, MAWS_E2E=1, unpackaged, as page-fixture.ts).

    Changed: org-session.ts (the commands, shut()'s join, the channelSocket seam), register.ts, app.ts.

  • Shared. src/shared/ipc/schema/org.ts (org.channel.*, ChannelEvent, ChannelSession.authenticated, rev), and layout.ts's channel tab kind. src/shared/machine/coverage.test.ts reviews ChannelEvent.event.

  • Renderer.

    • src/renderer/src/channel/ (new): project.ts, state.ts, use-channel.ts, ChannelView, Entries, Exchange, Composer, parts.
    • Channel in the project's menu; the tab in Tab, Pane and the toolbar.
    • RequestCard's askInPlace, which reuses AskBody's inPlace mode; HoverAsk gains the sheet's older-peer gate.
    • hub-access.ts's member.
  • Tests and gate.

    • test/org/channel.local.test.ts (new, in TIMING_NODE_TESTS), on desk-hub's Worker in Miniflare. test/org/channel-world.ts (new).
    • e2e/channel.spec.ts (new, in e2e:settings).
    • e2e/support/actions-whole.ts, shared with org-page.spec.ts.
    • The default-spec pins moved for the new spec; tsconfig.node.json and tsconfig.e2e.json list the files they need.
  • Docs. The spec's Progress, Decision Log (the pre-flight; Tasks 1–3; the branch review's two rounds; the Words revision) and Outcomes & Retrospective. The execution report's M7a section.

No src/endpoint or apps/org-protocol hunk, so the desk track has nothing to review on this branch.

Validation Evidence

The product tree was gated at 9ebbacb, which has master 18d73c7 merged in. The commits after it touch only docs (the spec and the execution report).

  • The whole gate, packaged included: scripts/ci-gate.sh <wt> --gates all --evidence --runner macos --label m7a-all3, run 42259619702, 55 jobs green: static, probes, unit 1–4/4, unit:darwin, packaged 1/2 and 2/2, and every e2e group (2 matrix placeholders skipped). One flaky line, browser-cua.spec.ts:1028 (O17 scene 4), passed on retry. It is explained from the code: the scene is headless (mawsd, the engine and cua, no Electron app), so no M7a code runs in it. Its error is cua's first windows.query answering "not connected" at 0 ms, before its bridge joined. The same signature hit scene 3 on the previous head's run (42232918929), and it is now tracked.

  • The previous head 5d6357e, before Remote lane B: a subagent's own rows in the drill-in (the subagent-rows gap lifted) #501–New chat: the machine first, the place following it (a session on another machine with no project, in any folder) #503: run 42232918929, 54 jobs green. Static's only red was the tracked session-host Go flake (host_test.go:581, TestASignalAfterTheReapIsRefused); the branch touches no native/ file.

  • The tab's look: e2e/channel.spec.ts in e2e:settings, hosted with --evidence, green with no flaky line in 42208872828 and 42214481766, and again in the final set. Its screenshots are attached to those runs' e2e-settings artifacts:

    • the window: long names, a refused and a not-sent word, "as of … Hub unreachable", and a Waiting on you permission and question;
    • the stream's head and foot;
    • the 40-message exchange opened, at its head and foot.

    The case asserts nothing wider than its box, and every action whole on all four edges.

  • Local suites, one file at a time:

    • main: verify 15, cache 22, channel 23, words 14, address 7, project-socket 9, holds 3, channel-fixture 4;
    • renderer: project 15, state 5, ChannelView 24;
    • node-timing: test/org/channel.local.test.ts 4, five runs in a row green.

    What the local suite on the Miniflare hub proves:

    • a v2 exchange folded with its owners;
    • a DX1 writer attested at migration;
    • a revoked key's event, and a forgery played on A's transport, both counted and not drawn (shown RED by disabling the signature check);
    • A's words received on B's socket with sig and no mac, then drawn back as A's;
    • "as of" across a relaunch with the hub down.
  • Reviews: a task reviewer at each of the three frontiers, then reviewer-medium on 10328b26b...1675f282d with a confidentiality lens. Its round 1 found 3 P1s and 1 P2, round 2 found 1 P1 and 1 P2, and round 3 found nothing. Every finding was fixed; see the execution report's M7a section.

Unresolved Review Findings

None. Every task review and the branch review (reviewer-medium, three rounds, the last with no findings) converged. No Minor finding was deferred.

Residue

UX tickets for the architect to register at landing (execution report items 35–37):

  • The Channel footer's scrollbar gutter. Under classic scrollbars the offline footer sits about 7 px right of the stream's column, because it reserves no gutter. It is a shell-wide call; the session pane is believed to share the geometry (unverified). See src/renderer/src/channel/ChannelView.tsx.
  • The 24-character alias cap. A long alias is cut even where there is room. The architect kept the cap for now; it is a taste point for the UX return. See channel/parts.tsx's Party.
  • Narrow columns. Below about a 500 px column, a long-named exchange row's fixed parts can't fit. The e2e case photographs only the default window. See channel/Exchange.tsx and parts.tsx.

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

…rer folds

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

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…as of, live) and the channel tab kind

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… the held log with its migration checkpoints, words, the per-project channel

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ng the channels' last writes, main's wiring

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ned capabilities (the desk track)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…, until the tab's next open or another hub

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…, the protocol's Sig on a device's human

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ds (sminos's ids, no MAWS address)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…byteLength), not the text's characters

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…et, the rest whole), reset only for a judgment that changed verdicts, another org's log or after a closed answer; open stays whole; a direct org swap reopens the socket

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… channels it held open

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ify spares its writer's events from the bound, and only up to its upTo

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…he commit queue and enters a finished snapshot; close() stops the channels with its fence and lets their final snapshots in through their own door

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…tab holds exactly main's bounded set and every judgment covers all it holds

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… device that signed it: refused context-changed when another signs in, resent only under its signer, and a sign that outlives a change sends nothing

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…, retired, renamed, titled) is kept past the bound, in the cache, judged again at each head; addressing and org.channel.*'s sessions read it

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…cts bind target and change (the desk track)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…r open's answer included) that main no longer draws

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ter and seq (replays are bounded); a lifecycle event verifying at a later head enters the sessions

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)
…inos 1.39.0's cutover keys on it (the architect and the desk track)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…e stream (exchanges, broadcasts, people's words, earlier to-human entries, provenance), the composer and its words' states, Not sent, As of offline, Waiting on you with the MAWS ask answered in place, Channel in the project's menu

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ttention state that exists (retired)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ces; a word with no member reads Someone

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

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…esk-hub's LogEvent, and tsconfig.node.json lists the Channel tab's pure projection and the renderer graph it imports

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…only fixture answers org.status and the project's org.channel.open (long names, a 40-message exchange, migrated and legacy history, a refused and a not-sent word, offline as of), C5's stub scenario files a permission and a question under the project, and the tab is photographed under classic scrollbars with no overflow and every action whole

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…et's 106 specs, e2e/channel.spec.ts among them

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…the channel spec reads

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…s way before its alias (the 40-message exchange's row drew maws-45 as nothing, and its chips overran their parties), the exchange's hover pill stays inside its section (8px past it), and the opened exchange is photographed at its head and foot

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… to 24 characters and recipients keep 12, so the 40-message exchange's row read maws-45 as maw… no more; the title and then the machine chip give way first; the overflow check reads each party too

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… text altered, its signer listed) counted unverified and never drawn, beside the revoked key's event

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…pport/actions-whole.ts), parameterized by the containing entry; the Org page and Channel specs share it

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)
…rsor are one reader's (org and member); another member of the org draws none of it and reads from its own cursor

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… certificates its load and each rejudge read, so a head adopted during the load is judged again

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…igrated) is its identity and its address; a legacy record names only a session with none and never makes it addressable

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ckpoint over its newer events alone, from the digest chain the checkpoint's record fixes, so an evicted prefix is never needed; the bound spares only events past the checkpoint

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… authenticated, and the renderer names only legacy entries by a legacy lifecycle; a verified or migrated entry of such a session draws by its own event's alias and writer's machine

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ile, so a released channel whose judgment outlives the next open never replaces its successor's file

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)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 6, 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-11-06T18:44:07.277260Z 2e61f56 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: 2e61f561d0

ℹ️ 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 +440 to +441
held = await loadLog(raw, { reader: current === null ? null : readerOf(current), project, limits, ground, log });
judged = snapshot;

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 Persist the cache verdicts recomputed during load

When a cached signer's key was revoked before this channel opens, loadLog correctly rejudges its events as failed, but this path never marks the cache dirty. Assigning judged = snapshot also causes the following reconcile() to skip rejudgment, so if the hub is unavailable or the session has no hub, even closing the channel leaves the old verified verdicts on disk (enterWrite() requires dirty). A subsequent signed-out launch trusts those stored verdicts and displays the revoked events as verified again. Mark the rejudged cache for persistence so offline reopening preserves the latest verification result.

Useful? React with 👍 / 👎.

export function channelStore(files: OrgFiles, log: (line: string) => void): ChannelStore {
const dir = privateFiles({ dir: join(files.dir, 'channel'), log });
return {
read: async (project) => ((await dir.check()) === null ? null : dir.read(`${project}.json`)),

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 Reject cache reads when the directory fails its checks

If org/channel is a symlink or has unsafe ownership or permissions, dir.check() returns { ok: false }, but this condition still calls dir.read(). In particular, readPrivateFile() applies O_NOFOLLOW only to the final file, so it follows a rejected directory symlink and reads the cache anyway; I reproduced this with a symlinked channel directory. Signed-out loading then trusts that cache's stored verification verdicts despite the directory having failed the privacy checks. Require a successful directory check before reading, and validate the parent org directory as the write path does.

Useful? React with 👍 / 👎.

@SSFSKIM
SSFSKIM merged commit 10b8400 into master Nov 6, 2026
SSFSKIM added a commit that referenced this pull request Nov 6, 2026
… three layout points to board #505

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