Repository navigation
channel reach: a member reads any project's channel, each entry still cut at view (M7b's live check) - #524
Merged
Conversation
…h entry still cut at `view`; the org head's `projects`, which no production code writes, refused every cross-machine read (M7b's live check, 2026-11-08). The endpoint's channel tests run on a head with no project, as production's Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…; the M7b cases failed on the unfixed endpoint and pass with the reach Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ject with nothing the reader views are the same, their timing is not (whether the machine holds entries of the id, roughly how many): org-internal metadata, not content, as M7b scanned hidden entries for every org project; closing it is design work, tracked as tech debt (the desk track's review) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Codex Review Summary: ✅ CompletedThis 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. |
…import block takes M6b's `RecordMembers` without the removed `orgProject` Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Nov 8, 2026
…items 3 and 4 Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The defect
At O8 M7b's live check (2026-11-08), the owner's MacBook opened the Channel tab of
m7b-live-checkand saw "Nothing in this channel yet.", although a session on the mini had sent it a to-human message and a session ondc-linux171-1e68had asked a question in it.The endpoint allowed both channel reads only when the project was in the signed org head's
projects(orgProject, channel-view.ts). No production code writes that list: genesis writesprojects: [](apps/desk-hub/deploy/admin.ts:616) and nothing adds to it. The desk track confirmed this on live data: production heads v1 to v22 and all 315 staging versions carry no project. So every cross-machine read was refused for every project:channelfeed was refusedno-target(authorize.ts#sub);channel.historyanswered an empty page (calls.ts).In the tab, main treats a
no-targetend as final for the channel and marks the machineoffline. The tab only namesunavailablemachines (an older MAWS), so the refused machines showed nothing. The tests passed because their fixtures built heads with projects:projectsoption, on all 12 endpoint-backed cases ofchannel-feed.test.ts;amendintest/org/channel.local.test.ts.The e2e
channel.spec.tsseeds main'sorg.channel.openfrom a fixture, so it never reaches an endpoint.The fix
A member can read any project's channel on a machine. The feed is admitted, and
channel.historyanswered, for every project id. Each entry is still filtered by the member'sviewright on its session, and that is the only gate. A session's rank never depends on its project (grades.tssessionRank). An id the machine holds nothing of gets the same answer as a project with no session the member can view: an empty page, or an empty snapshot followed by only the entries they can view. Theno-targetandremovedends of the feed are gone.Timing. The answers are the same, but the time they take is not. For a project with entries, the endpoint reads the whole journal and places each lane B session before it returns an empty page. An unknown id costs one empty journal read. Also, when a placement read fails, a known project answers
unavailablewhere an unknown id answers an empty page. So a reader can tell whether a machine holds entries of an id, and roughly how many.Rejected, with the reasons in the comment at the top of
src/endpoint/channel-view.ts:head.projects, or a project this machine knows (from its index or its journal). Its refusal withholds no entry, because a project the machine knows nothing of has no entries to send. All it adds is a signal: whether the machine knows the id, which entries of sessions the member can't view also feed. The refusal is decided once, when the feed opens, and main treats it as final. So it would keep out a project the machine first learns of after the tab opened, such as a session's first question there.Tests
test/endpoint/channel-feed.test.ts: every case now runs on a head with no project, the production shape; 11 of its 15 cases failed on the unfixed code. Two new cases:viewfilter still applied.test/org/channel.local.test.ts: the scene no longer adds the project to the head. It asserts that the head lists none.reacheshook removed from these files:channel-feed-queue.test.ts(itsremovedcase dropped),reader-state.test.ts,feeds.test.tsand the harness.Commits and review
channel-view.ts. Comment only.The desk track's verdict on
489b40a77..52784bd82is READY, from its own read and an independent reviewer-high. Its one correction was the timing note, made in 29447ad. A reviewer-medium review with a confidentiality lens found nothing material.Other readers of
head.projects(not changed here)src/endpoint/rl10/org-directory.ts:53: RL10'sorgframe to sminos lists the head's projects as its hub projects, so sminos's org directory carries none (doperpowers gate: drop the plan job's pool-ensure step (Hetzner retired) #181).apps/org-protocol/src/org-state.ts:188(duplicate ids) andshapes.ts:169(shape): structural checks only.Live check
An endpoint without this fix still refuses the feed. The owner redoes M7b's live check once all three machines run a build that carries it: the MacBook, the mini and
dc-linux171-1e68.Gates
--gates all --lane hostedon 18f26e8: 42442702948, green, attempt 1.unit:darwin, packaged 1/2 and 2/2, and 44 e2e groups.flaky:line, noN flakysummary, no retried test, no failure.channel-feed.test.ts(15),channel-feed-queue.test.ts(22) andchannel.local.test.ts(7).authorize.ts, which keeps M6b'sRecordMembersand dropsorgProject):--gates all --lane hosted: 42451193705, green, attempt 1. 56 jobs: 54 succeeded, 2 matrix placeholders skipped.e2e:supervisor-daemon,flaky: e2e/supervisor.spec.ts:847, case (f), red at:859("no unexpected exit"), passed on its retry.docs/tech-debt-tracker.md, O16's handover race (bug engine host handover: an exit with a call in flight is counted as a crash #473): main has ahost.interestcall in flight when the old engine host exits on its handover, and counts that exit as a crash.host.interest.test/endpoint/channel-feed.test.ts: 15/15;test/endpoint/channel-feed-queue.test.ts: 22/22;test/endpoint/reader-state.test.ts: 22/22;test/endpoint/feeds.test.ts: 38/38;test/org/channel.local.test.ts: 7/7.Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)