Skip to content

MW M1: isChannelId, the shared channel-rule vectors, and the readers of a stopped sminos thread - #765

Merged
SSFSKIM merged 17 commits into
masterfrom
mw-channels
Nov 18, 2026
Merged

SSFSKIM merged 17 commits into
masterfrom
mw-channels

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 18, 2026

Copy link
Copy Markdown
Owner

The first of MW's two pull requests (sminos channels and threads, MAWS's half): milestone M1 of docs/doperpowers/plans/2026-11-18-mw-sminos-channels.md, with that execution document. It lands alone and first (the document's Decision Log 4): sminos's T1 pins apps/org-protocol/vectors/channel-rule.json from the master commit that holds it. Nothing of M2 or M3 is in it.

What it adds:

  • isChannelId (apps/org-protocol/src/channel-id.ts): a sminos declared channel's id, a lowercase UUID of version 8 with RFC 9562's variant. Nothing calls it outside its test yet; M2 and M3 adopt it.
  • apps/org-protocol/vectors/channel-rule.json, version 1: 29 id vectors, and five retired cases for D7's reader rule. Four are the parent's clauses. The fifth (Decision Log 6) catches a reader that keeps one retired per session.
  • D7's reader rule in the app's project chat. A retired with reason ended and no thread is passed by for a session whose latest joined carries one. The rule is applied in projectSessions and also in the kept lifecycle's key (cache.ts), so the cache cannot undo it.
  • The lane change (src/endpoint/rl10/members.ts). A member frame whose lane differs from the held one runs gone first, and that withdraws the listing under the old lane. A restatement now tracks the hub's listings apart from the held engine sessions, so a listing made under the other lane before an endpoint restart is withdrawn too (Decision Log 9).
  • The web desk's two notes for a session with no seat, worded so they are true of a sminos thread: records it retired; it returns only if its human reopens it and recorded: ${machine} wakes it for this, or holds it until its human reopens it.

To an sminos that does not list channels, nothing changes except the lane change, which the document intends (Constraint 4). Round 3 of the review compared master and this head across 256 scenarios with no lane change (restatements, explicit gone, interrupted connections, shared app ids). The listing changes and the held members were the same on both.

Validation Evidence

  • Class 1a and e2e:desk-web are green on the head 9c2f9679f. scripts/ci-gate.sh <worktree> --gates static,unit,probes,e2e:desk-web --label mw-channels gave ci-gate: run 44413845424 success. Every job succeeded: static, static-local, unit 1/4 to 4/4, probes, e2e:desk-web.
  • A3 (isChannelId passes the shared vectors): apps/org-protocol/test/channel-rule.test.ts, 6/6. It shows red before channel-id.ts exists. The file matches the document's §B block byte for byte (cmp).
  • A8 (the reader rule): src/main/org/channel/address.test.ts 17/17 and src/main/org/channel/cache.test.ts 31/31. Both run the five shared cases at every prefix. The cache suite also writes the file and reads it back after each step.
    • Red first in address.test.ts, with master's reader: expected [ true, false ] to deeply equal [ true, true ].
    • The fifth case through master's cache key: expected [ true, false, true ] to deeply equal [ true, false, false ].
  • A7 (a lane change withdraws the old listing): test/endpoint/rl10/members.test.ts, 12/12, which covers held sessions, a cold restart, and both lane directions. With master's members.ts, only the four cases M1 adds fail. The shared-listing cases match master.
    • Nine other Members suites pass one file at a time: targets, held-read, reach, review, uplink-holes, record-acts, calls, grades, records.
    • So do five non-Miniflare suites that send restated: subscriptions-a, lane-b-notify, projects-records, actions, provision.
  • A10 (the two notes): apps/desk-web/src/conversation/capabilities.test.ts 21/21 checks both notes. The Playwright scene in apps/desk-web/e2e/conversation.spec.ts pins the send note, and now also the retire confirmation's text. It ran green in e2e:desk-web (run 44413845424).
  • Mixed fleet, row 7 (the app with M1, an sminos from before threads): the existing cases of address.test.ts and cache.test.ts pass unchanged. The fourth shared case (an unstamped joined, then an unstamped ended: no longer a member) already passed with master's reader.
  • Nothing of M2 or M3 is here: git diff --name-only origin/master...HEAD -- src/endpoint/rl10/link.ts src/services apps/desk-hub test/endpoint/rl10/conversation.json prints nothing.
  • The wire is unchanged: git diff origin/master...HEAD -- src/shared/ipc/wire.ts src/shared/ipc/wire-manifest.json prints nothing.
  • There is one predicate: git grep -n "8\[0-9a-f\]{3}" -- src apps ':!apps/org-protocol/src/channel-id.ts' prints nothing.
  • Review: doperpowers:reviewer-high reviewed the whole range in three rounds.
    • Round 1 found two P1s on the lane change and the shared listing, three P2s and one P3.
    • Round 2 found that the shared-listing fix diverged from master, and that fix was reverted.
    • Round 3: "No material findings. Verdict: correct".
    • Every round was served by the requested model (message.model equals requestedModel on every assistant record), a different model from the executor's.

Unresolved Review Findings

  • The stale shared lane B listing (pre-existing; src/endpoint/rl10/members.ts, gone). Two engine sessions can share one app listing, for example before and after a /clear, with neither superseded. When the one the listing was last reported from leaves, the listing keeps its title and access until the survivor's next frame. Master behaves the same, for a gone and for a lane-change frame. A re-report from the survivor was tried here and reverted, because it sent signed listings that master does not send (Decision Log 9). Logged in docs/tech-debt-tracker.md.
  • A cache file compacted by an app from before M1 (src/main/org/channel/cache.ts, file version 1). While a sminos with threads runs, an older app can let an unstamped ended displace an honoured moved. M1 then reads that session as a member. This needs an older app, a sminos with threads, and a sminos from before threads all writing to one session's lifecycle. Deferred (Decision Log 11 (a); tracker row).
  • A rejudge that loses a displaced retired (cache.ts). The cause is on master. M1 makes one more case of it observable: a stamped joined, then moved from signer A, then moved from signer B, then an unstamped ended, then B removed by a new head. Deferred (Decision Log 11 (b); tracker row).

Residue

None. M2 and M3 follow on mw-channels-2 once this is on master.

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

docs/doperpowers/plans/2026-11-18-mw-sminos-channels.md, for child MW of the
doperpowers composite spec 2026-11-17-sminos-channels-and-threads-design.md at
88e771ba, against master 77af813.

Four milestones and one step that is not an executor's: Step 0, the
pre-adoption check for an id of version 8 (the records half read, the hub's
table left to the owner's one read); M1, the predicate, the shared vectors and
the readers of a stopped thread; M2, the capability pair, member.channels into
known and the two refusals; M3, the hub's retention of a channel's row; M4,
acceptance and the branch review.

It fixes the shared vector file's content (29 ids, the four retired cases),
the conversation fixture's edits, the retention's states and transitions, and
the mixed fleet's proofs, and lists nine places where the parent's statement
of MW meets the code.

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

Finding 1 (Decision Log 2): a listing record can reach the hub before its channel's row is registered, since log-plane frames and records use separate queues at the Relay. The registration now reads the held records in the insert's own synchronous step, and M3 gains the ordered test: the listing stored, the row registered, the listing removed, seven full days from the removal.

Finding 2 (Decision Log 3): the mixed-fleet differential compared the new endpoint with itself. It stays as the field isolation, and a baseline oracle is added (Interfaces K): a scripted lane's whole frame transcript against the one captured from 77af813 by the same test file, with normalization defined for identities, signatures, clocks and host addresses, and cases showing the comparison refuses an added outbound field and an altered known entry. Gate: class 1a, the unit job.

Decision Log 4: M1 lands on master alone, as its own pull request, ahead of M2 and M3; sminos's T1 pins channel-rule.json from that commit. The second pull request carries M2 and M3 on mw-channels-2.

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)
…ed vectors channel-rule.json at version 1

The one test of a channel's id (Interfaces §A of docs/doperpowers/plans/2026-11-18-mw-sminos-channels.md)
and the file of vectors sminos's suite copies (§B), written from §B exactly; its retired cases are
run by the app's reader in a following commit. isChannelId has no caller outside its test yet.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ded (D7's reader rule)

projectSessions passes by a retired with reason ended and no thread when the session's latest
joined carries its thread; every other retired is honoured. The kept lifecycle keeps that ended
under a key of its own, so it never displaces a moved or another retired the reader honours
(Interfaces §G of docs/doperpowers/plans/2026-11-18-mw-sminos-channels.md). Both suites run
channel-rule.json's four retired cases; the cache's through a file written and read back.

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

A member frame whose lane is not the held one is taken after gone, so the listing under the
session id (lane A) or the app session id (lane B) no longer stays at the hub when a session is
reopened under the other lane (Interfaces §E of docs/doperpowers/plans/2026-11-18-mw-sminos-channels.md).

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

The retire note now reads 'records it retired; it returns only if its human reopens it' and the
send note of one not running 'recorded: <machine> wakes it for this, or holds it until its human
reopens it', true under every sminos in the field (Interfaces §H of
docs/doperpowers/plans/2026-11-18-mw-sminos-channels.md). The unit test and the Playwright scene pin them.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…on 1 (Decision Log 6), the lane change keeps gone whole (7), M1's small names (8)

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…n 1 (Decision Log 6)

A stamped joined, an unstamped moved, then an unstamped ended: a member no more. It is the case a
reader that keeps one retired per session fails, which the parent's four cannot show. The file is
§B's block again byte for byte; the names pin holds the parent's four first, then the fifth. The
cache suite's own moved-then-ended case folds into the shared one and keeps its check that the
file holds both retired events.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…, and a shared listing follows the record that stays

A restatement keeps the held members and the listings at the hub apart: a frame restates its
session and the one listing it reports (lane A its session id, lane B its app session id once
joined), so a session listed under one lane before an endpoint restart and restated under the
other no longer keeps its old listing. When a member that shared an app session's listing leaves
and the listing was last reported from its record, the listing is reported again from the
records that stay, through #report and its Decision Log 190 (b) deferral (M1's review, P1 1 and 2).

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ffled case that tells offset order apart, the retire confirmation's sentence

address.test.ts and cache.test.ts read channel-rule.json from disk, as the app's project-rule
suites do, so tsconfig.node.json pulls no vectors module it does not list (TS6307). The shuffled
case hands over a moved, a stamped joined and an unstamped ended out of order, which only offset
order and D7 together read as a member. The Playwright scene asserts the retire confirmation shows
§H's sentence (M1's review, P2 3 and P3 4; the class 1a run's static job).

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…two deferred cache findings in the tech-debt tracker

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…(the re-report reverted)

The re-report of a listing another member still holds is reverted, with its #reporters map: gone
keeps master's Decision Log 190 (b) loop over superseded survivors. A stale shared listing is
master's behaviour for any gone of its reporter, and re-reporting made a plain gone of one of two
directly joined engines sign a listing master never sends (Constraint 4). The restatement split
and #withdraw stay. members.test.ts pins that the plain gone sends nothing and that a restatement
leaving both engines out withdraws the listing once; both pass against master's members.ts too.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…eversed, Decision Log 9; 11 (b) restated); the stale shared listing in the tech-debt tracker

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

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

chatgpt-codex-connector Bot commented Nov 18, 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-18T22:52:05.245009Z 9c2f967 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 8a7f308 into master Nov 18, 2026
SSFSKIM added a commit that referenced this pull request Nov 19, 2026
…e and DL163, #782 stopped rows, #779, #763, #765, #768)

Conflicts, each kept both sides:
- src/renderer/src/shell/DocumentSessionSpace.tsx: U10b's bar room (useBarRoom, --float-bar-room on the root) and ticket
  760's measure on [requested, enabled] with data-document-session-width; the root carries both the attribute and the style.
- src/renderer/src/shell/DocumentSessionSpace.test.tsx: U10b's bar-room case, then ticket 760's column-in-the-floating-render case.
- docs/tech-debt-tracker.md: the union's rows, then master's two of 2026-11-19 (master's removal of the anchoring row kept).
The wire is unchanged on master: WIRE_MINOR stays 57.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
@SSFSKIM
SSFSKIM deleted the mw-channels branch November 20, 2026 02:28
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