Skip to content

channel reach: a member reads any project's channel, each entry still cut at view (M7b's live check) - #524

Merged
SSFSKIM merged 4 commits into
masterfrom
fix/channel-reach
Nov 8, 2026
Merged

SSFSKIM merged 4 commits into
masterfrom
fix/channel-reach

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

The defect

At O8 M7b's live check (2026-11-08), the owner's MacBook opened the Channel tab of m7b-live-check and saw "Nothing in this channel yet.", although a session on the mini had sent it a to-human message and a session on dc-linux171-1e68 had 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 writes projects: [] (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:

  • the channel feed was refused no-target (authorize.ts #sub);
  • channel.history answered an empty page (calls.ts).

In the tab, main treats a no-target end as final for the channel and marks the machine offline. The tab only names unavailable machines (an older MAWS), so the refused machines showed nothing. The tests passed because their fixtures built heads with projects:

  • the endpoint harness's projects option, on all 12 endpoint-backed cases of channel-feed.test.ts;
  • an amend in test/org/channel.local.test.ts.

The e2e channel.spec.ts seeds main's org.channel.open from 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.history answered, for every project id. Each entry is still filtered by the member's view right on its session, and that is the only gate. A session's rank never depends on its project (grades.ts sessionRank). 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. The no-target and removed ends 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 unavailable where an unknown id answers an empty page. So a reader can tell whether a machine holds entries of an id, and roughly how many.

  • This is org-internal metadata, not content, and seeing it takes an org member with a channel to the machine.
  • M7b as landed scanned hidden entries the same way for every org project.
  • Closing it needs a per-viewer index or constant-work paging, which is design work. It is tracked as tech debt in the architect's records.

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.
  • The hub's registry. That would take a hub read on the machine's path, and where the org's project list comes from is still an open question (Org projects without a local checkout are invisible: RL10's org directory lists no hub projects, and the sidebar has no row or Channel tab for them #521).

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:
    • history answers each project's own entries, and an empty page for an unknown id;
    • the feed is admitted for a project not in the head, and for an unknown id it carries the machine's first entry of that project once it arrives, with the view filter 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.
    • Unfixed endpoint: all three M7b cases fail.
    • With the fix: 7/7 pass.
  • The reaches hook removed from these files: channel-feed-queue.test.ts (its removed case dropped), reader-state.test.ts, feeds.test.ts and the harness.

Commits and review

  • 52784bd: the endpoint and its tests.
  • 18f26e8: the integration scene.
  • 29447ad: the timing correction to the comment in channel-view.ts. Comment only.

The desk track's verdict on 489b40a77..52784bd82 is 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's org frame 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) and shapes.ts:169 (shape): structural checks only.
  • Nothing in main, the renderer, desk-web or the hub reads it. The hub has its own registry of projects.

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

  • static on 29447ad: 42446530736, green. It covers the comment-only commit.
  • static on 18f26e8: 42442247522, green.
  • --gates all --lane hosted on 18f26e8: 42442702948, green, attempt 1.
    • 56 jobs: 54 succeeded; the other 2 are matrix placeholders, skipped. The 54 cover static, probes, unit 1–4, unit:darwin, packaged 1/2 and 2/2, and 44 e2e groups.
    • Every job log was read: no flaky: line, no N flaky summary, no retried test, no failure.
    • In CI the changed suites passed: channel-feed.test.ts (15), channel-feed-queue.test.ts (22) and channel.local.test.ts (7).
  • On the merge head aada7b3 (master bd2b59b, O8 M6b, merged in; the only conflict was the import block of authorize.ts, which keeps M6b's RecordMembers and drops orgProject):
    • class 1a: 42450767676, green.
    • --gates all --lane hosted: 42451193705, green, attempt 1. 56 jobs: 54 succeeded, 2 matrix placeholders skipped.
    • Every job log was read. One flaky line: e2e:supervisor-daemon, flaky: e2e/supervisor.spec.ts:847, case (f), red at :859 ("no unexpected exit"), passed on its retry.
      • This is signature (29) in 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 a host.interest call in flight when the old engine host exits on its handover, and counts that exit as a crash.
      • Neither this change nor M6b reaches the host supervisor, the handover or host.interest.
      • No other flaky, failed or retried test.
  • Locally, each file run alone:
    • 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)

…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)
@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-08T04:27:57.457646Z 29447ad 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.

…import block takes M6b's `RecordMembers` without the removed `orgProject`

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
@SSFSKIM
SSFSKIM merged commit 2600f37 into master Nov 8, 2026
@SSFSKIM
SSFSKIM deleted the fix/channel-reach branch November 8, 2026 09:37
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)
SSFSKIM added a commit that referenced this pull request Nov 8, 2026
), #535, #536 and #524's channel reach

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM added a commit that referenced this pull request Nov 8, 2026
…6b, #524, #527 and #530 live, every welcome carries record, the second-member precondition's machine item met; the render series closed and its row closed; the pressure rule's row; the four-kept note

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