Repository navigation
Conversation
…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)
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 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".
| held = await loadLog(raw, { reader: current === null ? null : readerOf(current), project, limits, ground, log }); | ||
| judged = snapshot; |
There was a problem hiding this comment.
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`)), |
There was a problem hiding this comment.
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 👍 / 👎.
… three layout points to board #505 Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
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:
smnsId. The tab draws the project's signed log as main verified it against the held head:humanwith the device's channel key and addresses@aliasby 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.Underneath:
Main is the trust boundary.
src/main/org/channel/holds:more,caught-up, close codes;historyDigest's chain;rev-ordered deltas.macandsigare 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.tsfolds 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, aspage-fixture.ts).Changed:
org-session.ts(the commands,shut()'s join, thechannelSocketseam),register.ts,app.ts.Shared.
src/shared/ipc/schema/org.ts(org.channel.*,ChannelEvent,ChannelSession.authenticated,rev), andlayout.ts'schanneltab kind.src/shared/machine/coverage.test.tsreviewsChannelEvent.event.Renderer.
src/renderer/src/channel/(new):project.ts,state.ts,use-channel.ts,ChannelView,Entries,Exchange,Composer,parts.Tab,Paneand the toolbar.RequestCard'saskInPlace, which reusesAskBody'sinPlacemode;HoverAskgains the sheet's older-peer gate.hub-access.ts'smember.Tests and gate.
test/org/channel.local.test.ts(new, inTIMING_NODE_TESTS), on desk-hub's Worker in Miniflare.test/org/channel-world.ts(new).e2e/channel.spec.ts(new, ine2e:settings).e2e/support/actions-whole.ts, shared withorg-page.spec.ts.tsconfig.node.jsonandtsconfig.e2e.jsonlist 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/endpointorapps/org-protocolhunk, 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 firstwindows.queryanswering "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 nonative/file.The tab's look:
e2e/channel.spec.tsine2e: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-settingsartifacts:The case asserts nothing wider than its box, and every action whole on all four edges.
Local suites, one file at a time:
verify15,cache22,channel23,words14,address7,project-socket9,holds3,channel-fixture4;project15,state5,ChannelView24;test/org/channel.local.test.ts4, five runs in a row green.What the local suite on the Miniflare hub proves:
sigand nomac, then drawn back as A's;Reviews: a task reviewer at each of the three frontiers, then reviewer-medium on
10328b26b...1675f282dwith 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):
src/renderer/src/channel/ChannelView.tsx.channel/parts.tsx'sParty.channel/Exchange.tsxandparts.tsx.Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)