Repository navigation
New chat: the machine first, the place following it (a session on another machine with no project, in any folder) - #503
Merged
Merged
Conversation
…E_CHECKOUT) for a chat in no project there (rl2.spawn-home, RL2 1.10); the home-root rule: for a remote caller a root at the machine's home or above it is no root (CheckoutBounds, the checkout feed's file changes, the files service's roots and scm by the endpoint seam's remote context), one realpathed home (machineHome) that a '~' spawn starts in Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… its endpoint's capabilities (h2), again at a caps refresh, for the machine menu; rl2.spawn-home named for the device Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ct, the machine chip opens and B is chosen; New project on B registers a folder with no git and starts there; Don't work in a project starts in B's home once its trust is reviewed; M9's setup walked through B's New project Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… is a home (a home kept in git) bounds nothing of git's, so no git read runs on the home's repository; the checkout feed holds file changes and scm output while its bounds are read and never delivers them against bounds it couldn't read; scm's checkout covers a home by its repository too, and the feed drops a home checkout's scm output; the rule's homes are os.homedir()'s and the account's (machineHomes), a '~' spawn still starting in os.homedir()'s files.changed paths are compared as named: the machine's only emitter, the files service's watch table, names a change under the watched directory's confirmed realpath (join(entry.real, name)), so a path is canonical up to its last name. A '~' spawn keeps os.homedir() ($HOME first): the folder list, the setup policy's '~' trust read and the e2e scene's sandboxed home all read it, and the account's home is dropped beside it. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…hine chip opens with or without a project and lists every up RL2 machine, one where the member can't start sessions greyed with why; with another machine chosen the project chip's menu is that machine's places (its projects, New project through its folder sheet naming no org project, Don't work in a project in its home where its endpoint lists rl2.spawn-home and the member owns it), a local project's checkout there kept as before; Send starts there with no local project Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…tory is learned by rev-parse and the worktree list (git.worktree.list, no work-tree scan, which a home kept in git timed out), and only git's definite answer (the repository, or none) lets a root bound git: a timeout, a failure or the spine away leaves it a file root alone, its checkout covering, never kept; a root covers a home by its own worktree's root or its main checkout's (a linked worktree of a home kept in git), so the bounds, the feed and scm agree; paths are compared with the homes in one Unicode form (NFC, the trust key's) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…is its place's, not its machine's alone: another place chosen on the same machine lets it go, so a reload restores and the next Send asks after only the place the chip names Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…xt that may be absent (a caller passing none is this machine's own: main's wiring test calls them so) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…, compare and dispatch on realpaths as the filesystem names them (only a comparison with a home folds Unicode forms), and each remote git read asks, at its request, whether git at its own path answers for a home's repository (a home's linked worktree below a project root of its own repository), refusing no-target for one or for an answer that isn't definite Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ot takes no repository answer that its composed spelling isn't (the worktree service runs git at the NFC spelling: a sibling of it, or none, says nothing of the root), and a worktree status's path, a place, is refused no-target when it is a home or above one, or doesn't resolve (git.diff's and git.log's path stay pathspecs in the repository) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…'s own reading at the path (git.worktree.list now answers rev-parse's toplevel, core.worktree included; WIRE_MINOR 28), which must be the root or above it, so a repository whose work tree is the home, or anywhere but the root, bounds nothing of git's; scm's home guard reads git's top level at the checkout too (a home that is a linked worktree of a repository kept elsewhere) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…other place keeps its number, so the next start takes the next attempt key and main, which answers a key it holds with that key's own attempt, never returns the old place's session Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ch the endpoint's bounds now learn a root's repository from Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… is refused its own git read too, as round 4 fails closed on a repository answer that isn't the root's Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Codex Review SummaryThis 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 6, 2026
…at's machine first with the home-root rule (PR #503, DL 237); the O7 plan's subagent-rows gap marked lifted for lane B; three tracker rows 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.
What the owner asked (2026-11-06)
What changes
Machine first. A New chat tab's machine chip opens whenever the app reaches another machine, project or none. Its menu lists This Mac and every up RL2 machine. A machine where the member's rights are known and lack
spawnis greyed, with why in the item. "Set up this project there…" is gone: choosing the machine is enough.The place follows the machine. With another machine chosen, the project chip's menu is that machine's, in the local menu's shape:
session.projects.listas the menu opens);A greyed item reads its reason inline: not an owner, or an endpoint that predates the setup or the home spawn. A local project chosen first keeps its org-matched checkout there, with its words, branch and Worktree box as today. Otherwise the chip falls back to "Choose a project" on that machine. This Mac chosen again gives the local row back. Send needs a place on the machine and no longer needs a local project.
The contract change.
session.spawnfrom a current machine owner (the test that already admitstrust) may name the home ascheckout: '~'(HOME_CHECKOUT). For every other member, and forsminos.spawn, it isunknown-checkout. The spawn starts inmachineHome(), the realpath of os.homedir(), with no project, as a local "Don't work in a project" does; a worktree there is refused. The home's trust card reads~through the setup policy, which expands it as the folder list does. The endpoint advertisesrl2.spawn-home, which moves RL2 to 1.10; that is why this run has cross-build. The menu reads it through two new main-to-renderer MachineState fields: the member'srights(from caps) and the endpoint'scapabilities(from h2).The home-root rule (a binding addition from the desk track). For a remote caller, a session root whose realpath is a home of the machine, or an ancestor of one (
/,/Users), counts as no root, owners included. The homes are os.homedir()'s realpath and the passwd home's, when the two differ. Unicode forms are folded only when a path is compared with a home; everything else uses native realpaths. The rule covers:CheckoutBoundsand thecheckoutrule.git.worktree.list, which now answers git's owntoplevel), never by a status scan.paththat is a home, or doesn't resolve, is refused.git.changed,files.changedunder a dropped root, and a home checkout'sscm.remote.outputare filtered. They are held while the bounds are read, and never delivered against bounds the feed couldn't read.rootsOf, keyed onHandlerContext.remote. Only the endpoint seam sets that flag (mawsd'sfront.dispatch/intercepted), andmachine.opcarries it through.Local behaviour is unchanged. WIRE_MINOR moves to 28:
git.worktree.list's optionaltoplevel.Design points settled with the architect
'~'rather than an omittedcheckout. Making a required input optional is breaking under the wire manifest's rule (diffProperties), so it would take a WIRE_MAJOR. With the sentinel, the spawn's schema is unchanged (WIRE_MINOR moves only forgit.worktree.list'stoplevel). An older endpoint answers itunknown-checkout, and the renderer words that "update MAWS on ".'~'spawn starts in os.homedir(), which reads$HOMEfirst, not in the passwd home. That is where its trust card, the folder list and the e2e scene's sandboxed home all read. The rule drops both homes.ipc/events.ts), and a listing joins only A's own projects (main/org/rows.ts). So there is no group per project of that machine. That is P5's model; the e2e asserts it.Residue (non-blocking, accepted with the architect)
CheckoutBoundskeeps repositories per set of roots, so agit initof a home, or a nested repository removed, during the endpoint's lifetime is seen only once the roots change. Each request's own path is still checked live.files.changedpaths are compared as named. The machine's only emitter (watch.ts) namesjoin(entry.real, name), canonical up to its last name.scm.remote.outputshares HELD_FILE_CHANGES' cap, which drops the oldest silently. A feed whose bounds couldn't be read stays silent until the session's next change.canonicalPath; logged by the architect as tech debt). On a normalization-sensitive filesystem, a decomposed root whose composed spelling is another directory, or none, therefore fails closed for remote git.spawn, and a non-owner's greyed items. The scene's org has one member; component tests cover both.chooseMachinehelper's comment (about line 302) still says the menu lists only machines that hold a checkout, and M9's "Not driven" note cites a stale MachineMenu.test.tsx path. Both are left as they were sofix/remote-subagent-rowsmerges cleanly.Proof
checkout-rule.test.ts's Unicode-sibling case, whose expectation round 4 changed. The test-only 2981316 corrects it, and static, unit, probes and cross-build on 2981316 are green in run 42206657034, 0 flaky. The product code is identical between the two runs.core.worktreeand scm's linked-worktree home, fixed in 62c2a7e. The left-attempt key, fixed in 3b8fb98.Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)