Repository navigation
feat(devices): choose which threads another device's agents may change here, and "Let agents work on your other devices" - #1255
Merged
Conversation
…y change here
Settings → Devices → Limits gets "Agents on <device> may change: Nothing / Threads
they started / All threads", carried through bridge.policy, its validator, the
bridge.nodes policy view and `mousse-cli bridge limits --agent-reach`. bridge.policy
stays a local method of this computer's windows and command line, so a device
cannot change its own reach. The device's activity list marks the calls its agents
made ("by an agent").
Refs #1160
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… on your other devices" The switch on the calling computer is named for what it now covers, with the same stored key (agentAccess.remoteSubagents) and computer list. The settings search entry, the refusal texts agents read, the glossary and the threat model use the new name. Refs #1160 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 tasks done
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
The computer that runs a thread holds another device's agents to an agent reach rule (#1235): by default they may change only the threads they started there. Nobody could see or change that rule. On the calling computer, the switch was still called "Subagents on other devices", although it now covers more than subagents.
Change
On the computer that runs the threads, Settings → Devices → a computer's Limits… now has "Agents on may change", beside the highest permission mode. The choices are Nothing, Threads they started (the default) and All threads. The text under it says three things:
the rule covers what that device's agents start, message, steer and stop here;
they read threads as the device does;
it is a rule for a computer that works as it should, not a barrier. For a computer you do not trust, block it or lower its highest permission mode.
The setting travels the way the highest permission mode does:
bridge.policyand its validator, thepolicyon eachbridge.nodesrow, andmousse-cli bridge limits <node> --agent-reach none|launched|all.bridge.policyis a local method of this computer's windows and command line and is never routed, so a device cannot change its own reach. The owner reads the rule at each call, so a change applies from the next call.A service from before the setting sends no
agentReach, and the dialog then leaves the choice out.In the device's activity list, calls made by its agents are marked "by an agent". An
agent_reachrefusal reads "outside what its agents may change here".On the calling computer, Settings → Agents → "Subagents on other devices" is now "Let agents work on your other devices", described as "Runs on the computers you turn on, within the limit each of them set for this one." The stored key (
agentAccess.remoteSubagents) and the computer list are unchanged. The settings search entry (the old name still finds it), the refusal texts agents read, the glossary (a new "Agent reach" entry, an updated "Remote subagent" entry) andthreat-model.mduse the new name.Verification
Tier 4 (renderer, a local daemon method, CLI). Tested commit:
9951352252eb79f4e2b596012af85dc77eb2afd8, onorigin/master9bcedd7 (#1235 merged).npx vitest runon 19 files, 312 tests, all passing:tests/net/bridge/routed/agentMark.test.ts, the new test runs on two real daemons linked over Bridge. A window of the owner sets reach through the registeredbridge.policyhandler (the dialog's path). After Nothing, a marked send into a thread the device's agent started is refused (agent_reach). After All threads, a marked send reaches a thread a person on the owner started, and its audit row has actoragent. The device then tries to set its own reach: asrouted.bridge.policy, asbridge.policyover its session, through its routed client, and as a Bridge connection to the handler. Every attempt is refused and the stored value stays as it was.tests/renderer/deviceAgentReach.test.tsmounts Settings → Devices with only the daemon stubbed. Limits… shows the saved value. Choosing each of the three values and pressing Save sends that value alone, and the dialog shows it when opened again. A service from before the setting shows no choice. The activity list marks only the agent's row.tests/renderer/agentAccessSettingsScreen.test.tscovers the new switch name. Switching it still writesagentAccess.remoteSubagents, and the saved value is read back from disk.tests/net/bridge/nodePolicy.test.tschecks that reach is kept for each device separately and thatbridge.policyrefuses an unknown value.tests/net/cli/net.test.tschecks--agent-reach.nodePolicyMigration,routed/editorAsk,routed/deviceActivity,themeSelectors,deviceAccessRows,editorConnectionStates,editorConnection,agentAccessSettings,settingsSearch,run/remoteSubagents,renderer/deviceActivity,botDeviceControls,remote/botDeviceAccess,routed/remoteSubagents.npm run typecheck: clean.agentReach: "all", read back withbridge nodes.Screenshots (development app, two paired development daemons):
Notes
DeviceLimitsDialog.tsxand one label to the activity rows. Whichever lands second carries the choice over.Refs #1160
🤖 Generated with Claude Code