Repository navigation
feat(agents): the other computer decides what agents may do there, read-only subagents run on another computer, Full control skips folder rules - #2379
Merged
Conversation
…ad-only subagents run on another computer; Full control skips the folder rules Removes the local switches for other computers and the per-device agent rate caps, holds a read-only remote subagent read-only on its computer (threads.create v7, run database migration 33), switches the user's Codex MCP servers off for a read-only Codex subagent instead of refusing it, and lets a Full control device open, browse and clone any local folder.
…ters # Conflicts: # src/mms/orchestrator/OrchestratorService.ts # tests/run/remoteSubagents.test.ts
This was referenced Nov 30, 2026
24 of 26 tasks
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.
Problem
Agents working across the user's own computers were blocked twice: once by the computer they run on and again by the computer they call.
Change
agentAccess, from the agent tools and from the checks (remote_subagents_off,remote_from_remote, and the localcomputer_not_allowed). What this computer's agents may do on another computer is now set only there: the switch for other computers, the block, the device's highest permission mode and its agent reach. Stored values of the old keys are ignored, and an older client may still send them. A computer list that can't be read is now refused ascomputers_unreadableinstead of being treated as "no such computer".computer_listno longer has anallowedfield.agent_rate_limited) and the 200-a-day budget (agent_daily_budget) are removed, along with the audit count behind them. A loop is still bounded by the hop count, the queue rules and the repeat guard.threads.createversion 7 takesreadOnlywithsubagent. The receiving computer creates that thread in its own project folder, with no worktree and a read-only binding, so every turn gets only the read-only tools, as a read-only subagent does on one computer. The sending computer sends it only to a computer that understands the key. An older computer is refused withupdate_neededand nothing is created there. A thread with no project is refused withread_only_needs_folder. A read-only caller's subagents there must also be read-only. A task that an older version stored as read-only through Plan mode is not started or continued (read_only_legacy).remote_subagents.read_onlyis run database migration 33.mcp_servers.<name>.enabled=false, the same override bot turns use), and the caller is told which ones were switched off. It is still refused when the setup can't be read, or when one of the user's servers is named like Mousse's own.projects.open,projects.setPath,folders.browseandsourceControl.cloneskip the hidden-folder, sensitive-folder, home and data-folder rules. Network and device paths stay refused for every device, and lower access levels keep every rule.docs/net/threat-model.md(remote subagents, threads agents start, the owner's limits,projects.open),docs/run-engine/SPEC.mdand the glossary's "Remote subagent".How to review
RemoteLaunchedThreads.ts,OrchestratorService(delegateRemoteTask,continueRemoteSubagent,findComputer,listComputers): the removed switches, and the read-only remote path.RemoteSubagents.advanceStart,remoteThreadStart.ts(readOnlyOnTheWire),remoteAgent.ts(create),MmsBackend.createThread,OrchestratorService.restoreDelegatedWorkspace: how a read-only subagent is held read-only on the receiving computer. This is where the risk is.remoteAgent.ts,OwnerRoutes.ts: the rate caps removal.codex/adapter.tschildPreflight,CodexProviderService.prepareThread,botApprovals.ts(readOnlyCodexMcpOff).MmsBackend(fullControl),folderBrowse.ts,cloneHere.ts,sourceControl/registerMethods.ts,domainRegistry.ts(BridgeCaller.fullControl).Kept on purpose
noneis stillcomputer_not_allowed) still reaches the agent and ends a settle watch.Verification
Tier 5 (auth and permissions, networking).
Run on a3b0166 (tree 642a506, on master 229d4a5):
node scripts/verify.mjs <15 files> --typecheck all: both typechecks pass, and all 315 tests pass.node scripts/verify.mjs <10 files in tests/net/bridge/routed>: 186 of 187 pass. The failing one,owner.test.ts"refuses every row with one extra key" (pty.create + cwd), fails the same way on master 229d4a5.What observes each part of the claim:
agentAccessSettings.test.ts,renderer/agentAccessSettingsScreen.test.ts(older keys are dropped and no rows remain), andnet/bridge/routed/threadCreateRemote.test.ts/threadToolsRemote.test.ts(a thread a third device started reaches the computer; the other computer's agent reachnonestill refuses). Tests that only checked the removed switches were removed.run/remoteSubagents.test.tsandthreadToolsRemote.test.ts.net/bridge/routed/remoteSubagents.test.ts(two real daemons: an older computer refuses with nothing created; a current one holds the thread read-only in its project folder, and its session gets the read-only workspace),run/remoteSubagents.test.ts(the wire call; no project is refused),run/remoteSubagentEngine.test.ts(migration 33 and the legacy row).subagentProviderPolicy.test.ts(the preflight table; the thread config switches the user's servers off; a reserved name or an unreadable setup refuses) andrun/subagentPolicy.test.ts(the caller's note).net/bridge/routed/remoteClone.test.ts(browse, clone and open over two daemons at each access level) andcloneHere.test.ts.Notes
limit-remote-parent-to-subagentsalso touchremoteAgent.ts. The edits here are limited to removing the rate caps and takingreadOnly.Refs #2202