Repository navigation
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
Conversation
…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)
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. |
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
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)
This was referenced Nov 14, 2026
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.
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 masterb8be1f0fbby 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),registryRecordsplaces B's registered folders among the page's projects under the address that record carries.rowOfListedRecordlet 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.tsand the callers that file a record:OrgIndexcarrieslocal, the machine the index was built for (orgIndexalready took it).rowOfListedRecord(now private) returns the listing's row unless the record is this Mac's and its project is known.rowOfRecordis the one exported answer to "which row is this record under": the listing's row whererowOfListedRecorddecides, elserowOfSession'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" insidebar/menus.tsxand the row's remove count and archive ids insessions/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 outsiderowOfRecordcallsrowOfSessionto 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, andsetKeyOfListedfalls back to the listing's key), so a tab stays in the set of its row;rowOfinkeymap/actions-runtime.tsfollows through it.The three other places the ruling named. All follow.
sessionSetKey): follows, changed as above.chooserRows,src/renderer/src/resume/model.ts): follows throughrowOfRecord; its promise is "filed as the sidebar files them"./resumeopened from a session now starts on that session's sidebar row.waitingFor,src/renderer/src/channel/project.ts): follows throughrowOfRecord. 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).
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
rowOfSessionfiles 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 agonelands 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
f1852de3ais unaffected.Verification
ec277a835c34d88443ccae552257b8d0951b8b61: four commits on masterb8be1f0fband two merges of master (83f2de2ba, then32c4d4086). 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) and9163c0444(rowOfRecordand its callers).git diff --stat 32c4d4086 ec277a835: 14 files changed, 239 insertions, 45 deletions.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/andscripts/; 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 touchese2e/: yes. (c) no directory two levels undersrc/holds both. Since (a) and (b) fail, the whole set was rerun on6c623c1a2.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 undersrc/main/organdsrc/renderer/src/settings-tab/org, two plan documents). (a) no shared file. (b) I touchese2e/: one spec,e2e/org-page.spec.ts, which thesettingsgroup lists. (c) no directory two levels undersrc/holds both. Rerun onec277a835, as the architect asked for this change: class 1a andunit:darwin(unit test files changed), ande2e:settingson a hosted Mac and on the Mac mini. The default run and bothe2e:remoteruns stand from6c623c1a2; the default run selectede2e/org-page.spec.tsat its earlier content, and the twosettingsruns are that spec's proof at its merged content.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 forsessionSetKeyinstores/org-projects.test.ts, the chooser inresume/model.test.ts,waitingForinchannel/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:sessionsOfRowfor a registry-placed record with a keyless listing (the registry row holds none, B's machine row holds it; and the agree case) instores/org-projects.test.ts,/resumeopened from such a session inwidgets/SessionWidgets.test.tsx, and the archived list insessions/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 overstores,sidebar,resume,channel,keymap,widgets,sessions,test/org/channel.local.test.tsand the tokens guard.ec277a835, run 43547613057, green (static, the four unit shards, probes). On6c623c1a2: run 43543822932, green.unit:darwin --affected): onec277a835, run 43547639326, green (14 paths from the merge base with master). On6c623c1a2: run 43543848989, green (14 paths).e2e:settingsonec277a835: 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:defaulton the Mac mini (renderer code; besideremote), on6c623c1a2: 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:remoteon a hosted Mac, on6c623c1a2: run 43543938420, green: 9 passed, none failed, none on a retry.e2e:remoteon the Mac mini's host (the ruling's proof; rule R1), on6c623c1a2: 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.b8be1f0fb..92838d312and found two callers that still filed another machine's record by its project (sessionsOfRow; the/resumewidget'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.9163c0444, before the merge of master:unit:darwin43541835746 ande2e:remoteon a hosted Mac 43541923026 (9 passed) were green. On92838d312, before the fix wave: class 1a 43540128791,unit:darwin43540152003,e2e:remoteon a hosted Mac 43540237751 and on the Mac mini's host 43540285241 were green.sidebar/menus.tsxhas no test of its own (onlysessionsOfRowunder 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
e2e/remote.spec.tslines 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)