Skip to content

Row filing: another machine's session stays under the row its listing gave it, whether or not the project registry knows its project (#644) - #647

Merged
SSFSKIM merged 6 commits into
masterfrom
ux-wave/row-filing
Nov 14, 2026

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 14, 2026

Copy link
Copy Markdown
Owner

Root: docs/doperpowers/specs/2026-11-12-ux-wave-design.md · found by child U9's run on the Mac mini (#579) · a fault of master, built as its own small landing from master b8be1f0fb by the P5 architect's ruling of 2026-11-13 (UTC) on #644.

What it does

On this Mac ("A"), a session on another machine ("B") first shows in the sidebar as a listed row, under the row main's listing files it (B's machine row when the listing's project names no key A knows). When the person opens it, main reads the session's record over B's link. Since the project registry (M11, 1ba432458), registryRecords places B's registered folders among the page's projects under the address that record carries. rowOfListedRecord let the listing decide the row only while the record's project was not known here, so from the moment the record arrived the row was filed by its project: it left B's machine row for the registry project's row (collapsed, when the person had not opened it), and B's machine row, now empty, went away. The person clicked a row and it moved somewhere they could not see.

Now, for a record of another machine, a listing that names its address decides the row whether or not the record's project is known. This Mac's records keep the rule they had. The product change is in src/renderer/src/stores/org-projects.ts and the callers that file a record:

  • OrgIndex carries local, the machine the index was built for (orgIndex already took it).
  • rowOfListedRecord (now private) returns the listing's row unless the record is this Mac's and its project is known.
  • rowOfRecord is the one exported answer to "which row is this record under": the listing's row where rowOfListedRecord decides, else rowOfSession's. Every reader that files a record takes it: the sidebar (sidebar/derive.ts), a row's sessions (sessionsOfRow, whose state type now requires the listings; "Mark all read" in sidebar/menus.tsx and the row's remove count and archive ids in sessions/actions.ts), the resume chooser (resume/model.ts) and /resume (widgets/ResumeWidget.tsx), a row's archived list (sessions/ArchivedSessionsDialog.tsx), and the channel's waiting filter (channel/project.ts). After it no caller outside rowOfRecord calls rowOfSession to file a record.
  • sessionSetKey (the tab set's twin rule) follows the same rule in its own form (a hidden project keeps its org key, and setKeyOfListed falls back to the listing's key), so a tab stays in the set of its row; rowOf in keymap/actions-runtime.ts follows through it.

The three other places the ruling named. All follow.

  • The tab set (sessionSetKey): follows, changed as above.
  • The resume picker (chooserRows, src/renderer/src/resume/model.ts): follows through rowOfRecord; its promise is "filed as the sidebar files them". /resume opened from a session now starts on that session's sidebar row.
  • The channel's "Waiting on you" (waitingFor, src/renderer/src/channel/project.ts): follows through rowOfRecord. Consequence: while the listing's key and the registry disagree, that session's requests are not in the registry project's "Waiting on you", because the sidebar shows the session under B's row; where they agree, they are.

Rationale (for P5's Decision Log; it amends O7 M2's "one row per address" and registry M11).

  1. On A, another machine's session is filed by its listing whether or not the registry knows its project, because that row is the one the person clicked, and one address must not be filed in two places depending on whether a record is held.
  2. The project registry places other machines' locations among A's projects under the address the record carries, so "its project is known here" no longer means "this Mac's project"; the premise that RL2 machines send no projects stopped being true with M11.
  3. This Mac's records keep the old rule, and the tab set, the resume picker and the channel's waiting filter follow the sidebar, so each shows the session where the sidebar does.

The remaining limit (ruling point 4; tracker row of 2026-11-13). While a record is held and its listing leaves the page's store, no listing names the address, so rowOfSession files the record under the registry project's row when that row is listed: the row, and its tab set, can move without a click, and moves back when the listing returns. It is reachable today, briefly, for a live session: main's rows (src/main/org/rows.ts) drop a held listing when a gone lands at a higher revision (for a session going private, one link round trip), when a new head or certificate set fails verification until it is judged again, when a hub snapshot lacks the key and no channel answer holds it, when the machine leaves the RL2 roster, and while another member's change is not yet judged. Traced from the code; not reproduced. The tracker row names two ways to close it.

What is stored or sent. Nothing: no wire change (minor stays 42), no settings or layout key. Build f1852de3a is unaffected.

Verification

  • The head. ec277a835c34d88443ccae552257b8d0951b8b61: four commits on master b8be1f0fb and two merges of master (83f2de2ba, then 32c4d4086). The commits: e61902e5c (the tests alone, seen red: 4 failed, 127 passed, each failure the null-key case with the row moved to the registry project's key), 92838d312 (the fix, the comments that stated the old premise, the tracker row), then the review's fix wave: 0a2fcb8f8 (its tests alone, seen red: 5 failed, 85 passed) and 9163c0444 (rowOfRecord and its callers). git diff --stat 32c4d4086 ec277a835: 14 files changed, 239 insertions, 45 deletions.
  • The first merge of master (6c623c1a2, clean). Incoming change I, git diff --stat 9163c0444 6c623c1a2: 17 files changed, 1010 insertions, 63 deletions (e2e supervisor.spec: (h) and (f) settle on the app's own state #645: e2e/supervisor.spec.ts, src/main/app.ts, src/main/lifecycle/quit-guard.ts; gate: mini copies, a mini run of each run's own e2e groups whose specs the diff touches #646: gate files under .github/ and scripts/; the tracker). The branch's own change B is the 14 files above. (a) I and B share a file: yes, docs/tech-debt-tracker.md (different rows). (b) I touches e2e/: yes. (c) no directory two levels under src/ holds both. Since (a) and (b) fail, the whole set was rerun on 6c623c1a2.
  • The second merge of master (ec277a835, clean). I, git diff --stat 6c623c1a2 ec277a835: 9 files changed, 13 insertions, 13 deletions (the cloud identifiers replaced by invented ones: e2e/org-page.spec.ts, six unit test files under src/main/org and src/renderer/src/settings-tab/org, two plan documents). (a) no shared file. (b) I touches e2e/: one spec, e2e/org-page.spec.ts, which the settings group lists. (c) no directory two levels under src/ holds both. Rerun on ec277a835, as the architect asked for this change: class 1a and unit:darwin (unit test files changed), and e2e:settings on a hosted Mac and on the Mac mini. The default run and both e2e:remote runs stand from 6c623c1a2; the default run selected e2e/org-page.spec.ts at its earlier content, and the two settings runs are that spec's proof at its merged content.
  • Unit tests (rows, keys and ids; no time): sidebar/derive.test.ts (a listing on B with no key, then the record on a registry-placed location: under B's machine row before and after, and the machine row stays; listing and registry agreeing on the key: that project's row before and after; this Mac's record with a known project and a listing at its address: its project), the same three for sessionSetKey in stores/org-projects.test.ts, the chooser in resume/model.test.ts, waitingFor in channel/project.test.ts. With the "this Mac" exception removed on the build host both this-Mac cases fail, so they check something. The fix wave adds: sessionsOfRow for a registry-placed record with a keyless listing (the registry row holds none, B's machine row holds it; and the agree case) in stores/org-projects.test.ts, /resume opened from such a session in widgets/SessionWidgets.test.tsx, and the archived list in sessions/dialogs.test.tsx. On the build host at the head: web typecheck clean, eslint clean on the changed files, 178 files and 2754 tests green over stores, sidebar, resume, channel, keymap, widgets, sessions, test/org/channel.local.test.ts and the tokens guard.
  • Class 1a (static, unit, probes): on ec277a835, run 43547613057, green (static, the four unit shards, probes). On 6c623c1a2: run 43543822932, green.
  • macOS-only unit tests (unit:darwin --affected): on ec277a835, run 43547639326, green (14 paths from the merge base with master). On 6c623c1a2: run 43543848989, green (14 paths).
  • e2e:settings on ec277a835: on a hosted Mac, run 43547676849, green: 27 scenes, 27 passed, none failed, none on a retry. On the Mac mini (guest lane), run 43547727779, green: 27 scenes, 27 passed, none failed, none on a retry.
  • e2e:default on the Mac mini (renderer code; beside remote), on 6c623c1a2: run 43543894146, green on the Mac mini's host: 548 scenes, 245 passed, 303 skipped, none failed, none on a retry; 108 of the bare set's 109 spec files (26.2 min).
  • e2e:remote on a hosted Mac, on 6c623c1a2: run 43543938420, green: 9 passed, none failed, none on a retry.
  • e2e:remote on the Mac mini's host (the ruling's proof; rule R1), on 6c623c1a2: run 43544485448, green on the Mac mini's host (--lane no-hosted): 9 passed, none failed, none on a retry. The change edits no spec, so the gate adds no copy of its own; this one was launched by hand because the ruling names it.
  • Review. An independent reviewer read b8be1f0fb..92838d312 and found two callers that still filed another machine's record by its project (sessionsOfRow; the /resume widget's context row); a third of the same kind (the archived list) was found while confirming them. The fix wave answers all three with the one function. A second reviewer read the wave (92838d312..9163c0444): no findings.
  • Earlier heads (superseded by the runs above; for the record). On 9163c0444, before the merge of master: unit:darwin 43541835746 and e2e:remote on a hosted Mac 43541923026 (9 passed) were green. On 92838d312, before the fix wave: class 1a 43540128791, unit:darwin 43540152003, e2e:remote on a hosted Mac 43540237751 and on the Mac mini's host 43540285241 were green.
  • Not run / not shown. "Mark all read" through sidebar/menus.tsx has no test of its own (only sessionsOfRow under it), and no Electron scene opens the archived list or "Mark all read" for another machine's row. The fault was not reproduced in Electron on master: its trigger on the Mac mini (the registry holding B's folder before the record arrives) is inferred from the failed run's logs and proven at the unit level. The scene that met it is U9's (e2e/remote.spec.ts, not on master); U9 merges this branch and changes that scene's set-up so it no longer depends on arrival order (ruling point 5), and its runs on a hosted Mac and on the Mac mini are that scene's proof. No paid test applies.

Residue

  • The tracker row above (the listing leaving while the record is held).
  • e2e/remote.spec.ts lines 2377–2379 on master still state the retired premise in a comment; the scene's assertion holds. U9 rewords it.

Closes #644

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)

…a listed address filed by its listing though the registry knows its project

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
… files by its listing, whether or not the registry knows its project

rowOfListedRecord and sessionSetKey's twin rule let the listing decide for a record
whose address is not this Mac's; this Mac's records keep the old rule (the listing only
while the project is unknown). The resume chooser and the channel's waiting filter
follow through rowOfListedRecord. OrgIndex carries the machine it was built for. The
comments that said RL2 machines send no projects now say what the registry does; the
remaining limit (the listing leaving while the record is held) is a tracker row.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…iling callers (a row's sessions, /resume's context row, the archived list)

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…s under

rowOfRecord (stores/org-projects.ts) is the record's row: its listing's where
rowOfListedRecord decides, else rowOfSession's. Every reader that files a record takes
it: the sidebar's projectList, sessionsOfRow (Mark all read, the row's archive count and
ids), the resume chooser and /resume's context row, the archived sessions list and the
channel's waiting filter. sessionsOfRow now requires the listings; the sidebar menu
passes them. rowOfListedRecord is no longer exported.

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…pervisor scenes' settle and the gate's Mac mini copies)

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
…eplaced by invented ones in tests and plans)

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 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-14T02:54:17.376863Z ec277a8 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 5002c67 into master Nov 14, 2026
SSFSKIM added a commit that referenced this pull request Nov 14, 2026
…ready held by this branch: tree-equal)

Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
@SSFSKIM
SSFSKIM deleted the ux-wave/row-filing branch November 14, 2026 02:58
SSFSKIM added a commit that referenced this pull request Nov 14, 2026
…, PR #647: tree-equal with the U9 head this branch already holds)

Sminos-Session: ux-wave#10d85d03 (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.

Sidebar: another machine's session leaves its machine row once its record is held, when the registry knows its project

1 participant